text
stringlengths
25
2.19k
embedding
listlengths
768
768
def settargetvolume ( self, targetvolume ) : self. write ( " mlt " + str ( targetvolume ) ) resp = self. read ( 5 ) # response should be crlfxx :, crlfxx >, crlfxx < where xx is address # pump11 replies with leading zeros, e. g. 03, but phd2000 misbehaves and # returns without and gives an extra cr. use int ( ) to deal...
[ -1.014776349067688, -0.8184823989868164, 0.6640322804450989, -0.7892822027206421, 0.6787317991256714, 0.1854567676782608, 0.005531892646104097, 0.010457810945808887, 0.3418746888637543, -0.658268392086029, 0.3734549880027771, 0.47470539808273315, -0.34764179587364197, -0.35686758160591125,...
def matrix _ adjoint _ lemma _ 40 ( mat ) : if mat. nrows ( )! = mat. ncols ( ) : raise valueerror, " make sure that this is indeed a combinatorial adjoint matrix " else : dim = mat. nrows ( ) l = list ( ) mat _ space = matrixspace ( combinatorialscalarring ( ), dim ) for i in range ( dim ) : l. append ( list ( ) ) for...
[ -0.357405424118042, 0.5065916776657104, 0.6308076977729797, 0.08782104402780533, -1.1805739402770996, 0.5280348658561707, 0.1520112007856369, -0.5887993574142456, 0.9347929954528809, 0.4886528253555298, 0.22307053208351135, -0.012465590611100197, 0.5504795908927917, -0.4313805401325226, ...
def embed _ state ( args, embs, subj0 = none, a _ t = none, subj _ prev = none, d _ t = none, subj _ t = none, qtype = none, initial _ state = false, actions = none, qtype _ order = none ) : s = [ ] if args. one _ hot _ states : # only actions and query types have scalable one - hot encodings if args. a _ t _ in _ stat...
[ 0.20550429821014404, -0.01716010645031929, 0.772567868232727, -0.3418194353580475, 0.1627219170331955, -0.13676230609416962, 0.2046746462583542, -0.12318039685487747, 0.9908602833747864, 0.6593695282936096, 0.21660204231739044, 0.5517921447753906, 0.14108480513095856, 0.36872994899749756, ...
def test _ get _ children ( self ) : pass
[ 0.7885665893554688, 1.2236911058425903, 0.2763561010360718, 1.4547035694122314, 0.7723332047462463, 0.5574230551719666, 1.2653462886810303, -0.8437642455101013, -0.36395204067230225, -1.6668692827224731, -0.6853011846542358, -0.09385047107934952, -0.9376363158226013, -0.61189866065979, -...
def encode _ npz ( subvol ) : fileobj = io. bytesio ( ) if len ( subvol. shape ) = = 3 : subvol = np. expand _ dims ( subvol, 0 ) np. save ( fileobj, subvol ) cdz = zlib. compress ( fileobj. getvalue ( ) ) return cdz
[ 0.6670907735824585, -0.15221238136291504, 0.5579477548599243, 0.7230690121650696, -0.8476333022117615, 0.5160261392593384, 0.3034723997116089, -0.3445345163345337, 0.8330459594726562, -0.074482262134552, -1.0575580596923828, 0.4317801594734192, -0.3275143504142761, 0.07255779206752777, 0...
def append ( self, * args, * * kwargs ) : # real signature unknown pass
[ -0.05654401704668999, -0.15782999992370605, 0.3648061454296112, 0.9376466870307922, 0.31516537070274353, 0.35576164722442627, -0.24719654023647308, -0.20122970640659332, 0.1783813089132309, -0.6875467300415039, -0.7989194989204407, 0.051527880132198334, -0.3790012300014496, 1.0862210988998...
def save _ data ( origin, query _ name, timestamp, filename, data, is _ data _ url = false, headers _ dic = none, post _ data = none, avoid _ compression = false ) : def get _ headers ( h ) : headers _ string ='' if h is none : return'' for k in list ( h. keys ( ) ) : headers _ string = headers _ string +'- - header = ...
[ -0.45861074328422546, -0.18622152507305145, 1.0598586797714233, 0.22480648756027222, -0.0018691997975111008, 0.30343925952911377, -0.2577545642852783, -0.0643116757273674, -0.45405176281929016, -0.1952047199010849, -0.18706727027893066, 0.10338320583105087, 0.3114977180957794, 0.5183174610...
def correct _ timestamps _ in _ log _ parser _ data ( data, first _ original _ timestamp, key ='' ) : if key = ='timestamps'and isinstance ( data, list ) : for i, element in enumerate ( data ) : if isinstance ( element, list ) : data [ i ] = recording. correct _ timestamps _ in _ log _ parser _ data ( element, first _ ...
[ -0.02599565126001835, -0.09164337068796158, 1.050933837890625, 0.2953505218029022, 0.054590869694948196, 0.23331505060195923, -0.3268898129463196, 0.8555301427841187, 0.0814853236079216, 0.6316952705383301, 0.4015467166900635, 0.07679501175880432, 0.17504151165485382, 0.8466255068778992, ...
def letter _ range ( start, end, step = 1 ) : return [ chr ( x ) for x in range ( ord ( start ), ord ( end ), step ) ]
[ -0.74233478307724, -0.37861308455467224, 0.15525327622890472, 0.182060107588768, -0.5665844082832336, 0.35069194436073303, -0.7909654974937439, 0.19716188311576843, -0.8996477723121643, 0.6545939445495605, -1.5425567626953125, 0.5859461426734924, 0.15422648191452026, -0.302329957485199, ...
def receive _ damage ( self, dmg ) : self. health - = dmg # decrease health self. damage + = dmg * 1. 5 # this variable is used in the health bar, to ensure that it decreases properly
[ -0.24692173302173615, -0.03545664623379707, 0.6585424542427063, -0.9113754630088806, 0.04751572012901306, -0.015340008772909641, -0.17816631495952606, 0.3032076060771942, -0.03401481732726097, -0.3095236122608185, -0.044998351484537125, -0.2467995434999466, -0.5456273555755615, 0.591650903...
def index ( request ) : num _ visits = request. session. get ('num _ visits ', 0 ) request. session ['num _ visits'] = num _ visits + 1 # some context object to pass to the template renderer here. context = {'natalia _ jimenez':'creo creo creo en mi ','music _ data':'music data here ','num _ visits': num _ visits, } re...
[ -0.2513946294784546, 0.7188326716423035, 0.39353951811790466, -0.13439767062664032, 0.5249636173248291, 0.19020536541938782, 0.9541439414024353, -0.0028539046179503202, 0.16088609397411346, 0.05479924753308296, 0.3886849284172058, 0.6331031918525696, 0.6073278188705444, -0.844978392124176,...
def _ get _ base _ pose ( self ) : _ p = self. rob. tcp. base p = v ( _ p [ 0 ], _ p [ 1 ], _ p [ 2 ] ) _ r = self. rob. tcp. rotation. q r = r ( _ r [ 3 ], _ r [ 0 ], _ r [ 1 ], _ r [ 2 ] ) return pose ( p, r )
[ 0.10857056826353073, -0.6204268932342529, 0.6269598603248596, -0.3868723213672638, 0.21311749517917633, -0.28292420506477356, -0.47247248888015747, -0.48157235980033875, -0.16640472412109375, 0.5952966213226318, -0.43442654609680176, -0.45972365140914917, -1.5141538381576538, -0.8284511566...
def getweight ( self, nbr ) : return self. connectedto [ nbr ]
[ -1.1393532752990723, -0.030085789039731026, 0.4042261838912964, -0.08246424049139023, 0.21875903010368347, 0.017203563824295998, 0.1888970136642456, -2.395512819290161, -0.7615862488746643, -0.04768875241279602, -0.5479790568351746, -1.1609621047973633, -1.5066238641738892, 0.1779034435749...
def read _ large _ file ( file _ object ) : # loop indefinitely until the end of the file while true : # read a line from the file : data data = file _ object. readline ( ) # break if this is the end of the file if not data : break # yield the line of data yield data
[ 0.6367623209953308, -0.2559538185596466, 0.7445165514945984, -0.2646171748638153, 0.5445054769515991, 1.0924221277236938, -0.9274681806564331, 0.04756894335150719, -1.1990090608596802, -0.4777385890483856, 0.1592552810907364, -0.3081277310848236, 0.6844357848167419, -0.003455093363299966, ...
def _ _ init _ _ ( self, color, size = 20 ) : # call the parent class ( sprite ) constructor super ( ). _ _ init _ _ ( ) # create an image of the block, and fill it with a color. # this could also be an image loaded from the disk. self. image = pygame. surface ( ( size, size ) ) self. image. fill ( ( 255, 255, 255 ) ) ...
[ 0.14676298201084137, 0.15664228796958923, 0.6984858512878418, -0.1341119110584259, -0.2704838216304779, 0.108133964240551, 0.2417731136083603, -0.5201605558395386, -0.1114351749420166, 0.08420112729072571, -0.8461534976959229, 0.003946187440305948, 0.3650625944137573, 0.8497231006622314, ...
def stemwordsnowball ( self, word ) : return self. snws. stem ( word )
[ 0.12752337753772736, 0.5810278654098511, -0.008853408508002758, 0.02186056226491928, -0.5147024393081665, 0.10269882529973984, -0.2166130542755127, -0.8570565581321716, 1.3459491729736328, 0.1154581606388092, -1.1098603010177612, 0.1236354410648346, -0.9782738089561462, 0.20395499467849731...
def saver ( myfile _ str ) : print ( " \ t saving sequences for which the motifs were found... " ) print ( " \ t myfile _ str : ", myfile _ str ) # print ( " \ t foundin _ list : ", foundin _ list ) outfilename _ str = myfile _ str + " _ out. fasta " # output _ file = open ( " new _ record. fasta ", " w " ) outputfile ...
[ 0.016717664897441864, -1.724051594734192, 0.510601818561554, -0.33622851967811584, -0.23943296074867249, -0.031645793467760086, 0.6628743410110474, 0.5263909697532654, -0.8681268692016602, 0.13129621744155884, -1.1749377250671387, -0.04234277829527855, -0.6173655390739441, 0.75605547428131...
def set _ pad _ mode _ 2 ( data : bytearray, block _ size : int ) - > bytearray : return data + b'\ x80'+ b'\ x00'* ( block _ size + get _ pad _ size ( data, block _ size ) - 1 )
[ 0.10976575314998627, -0.58549964427948, 0.6733683943748474, 0.11464501917362213, -0.4266067147254944, -0.20421472191810608, -0.6582244038581848, -0.6191271543502808, -0.1504082828760147, -0.018020793795585632, -0.6735953688621521, 0.7545657157897949, 0.39721500873565674, 1.2229973077774048...
def setinparent ( self, * args, * * kwargs ) : # real signature unknown pass
[ -0.36790987849235535, -0.4623270034790039, 0.38115134835243225, 0.0070384591817855835, -0.10754907876253128, 0.33470794558525085, 1.007399559020996, -0.9758965373039246, -0.6989407539367676, -0.7067602276802063, -0.6370524168014526, 0.8255866169929504, -1.033790946006775, 0.541963815689086...
def types ( ) : return { name : cls for cls in workflowfixture. _ _ subclasses _ _ ( ) for name in cls. param _ names }
[ -0.1165822297334671, -0.2210088074207306, 0.5484536290168762, -0.25980880856513977, 0.5590699911117554, 0.22548829019069672, 0.48034176230430603, -0.8244497776031494, -0.31723544001579285, 0.2912216782569885, -1.0079318284988403, 0.13296808302402496, -0.10666786879301071, 1.31647789478302,...
def bip32key ( self ) - > bip32publickey : return self. m _ pub _ key
[ 0.8696543574333191, -0.27119582891464233, 0.1458474099636078, 0.06994511187076569, 0.18103338778018951, 1.3063055276870728, 0.2222525179386139, -0.2408871352672577, -0.5704775452613831, 0.09143967181444168, -0.10082343965768814, 0.3517981171607971, -0.6700332164764404, -0.34755390882492065...
def is _ on ( self ) : return self. _ state
[ -0.4963167607784271, -0.8233047127723694, 0.38571134209632874, 0.5212296843528748, -0.1907917559146881, 0.15096035599708557, -0.7506654262542725, 0.4711097180843353, 0.8635730743408203, -0.23374901711940765, -0.9641846418380737, 0.4100387394428253, -0.7961317300796509, -0.5958478450775146,...
def find _ best _ thresholds _ around _ estimates _ experimental ( self, estimatedthresholds ) : estimatedthresholds = [ int ( k ) for k in estimatedthresholds ] if sum ( estimatedthresholds ) < 10 : return self. find _ best _ thresholds _ around _ estimates _ old ( estimatedthresholds ) print ('estimated ', estimatedt...
[ 0.513302206993103, -0.2697199881076813, 0.6043491363525391, 1.1620100736618042, 0.6546074151992798, -0.48660939931869507, -0.06616967916488647, -0.32556578516960144, -0.2278451770544052, 0.4659988582134247, -0.2769280672073364, 0.15543778240680695, -0.7952232956886292, 0.7432729005813599, ...
def exportsolvers ( self ) : solver _ jsons = [ ] for item in self. _ solvers : if item. age > 0 and item. living : solver _ jsons. append ( json. dumps ( item, default = json _ out, indent = 2, sort _ keys = true ) ) return solver _ jsons
[ -1.556895136833191, -1.3408946990966797, 0.38555070757865906, 0.19345757365226746, -0.34718552231788635, -0.11323806643486023, -0.24201138317584991, -1.383878231048584, 0.07616699486970901, 0.937590479850769, -1.2251553535461426, -0.11030086874961853, -0.06186361983418465, 0.96294981241226...
def menu ( ) : ascii _ menu ( " rabbitmq ", menu _ list )
[ -0.43054842948913574, -0.029854368418455124, 0.1791389286518097, 0.06691008806228638, -0.013385681435465813, -0.3785597085952759, -1.6642217636108398, 0.8960800170898438, -0.3420526087284088, 0.576264500617981, -1.2375965118408203, 0.6344483494758606, -0.8782345056533813, 1.085316419601440...
def description ( self, description ) : if self. _ configuration. client _ side _ validation and description is none : raise valueerror ( " invalid value for ` description `, must not be ` none ` " ) # noqa : e501 self. _ description = description
[ 0.604110598564148, 0.43823203444480896, -0.13994362950325012, 0.7506406307220459, 0.04671459272503853, 1.130080223083496, 0.20422294735908508, 0.03218480199575424, 0.3163992762565613, 0.5164851546287537, -0.5566431879997253, -0.09220899641513824, -0.5499951839447021, 0.1309763640165329, ...
def get ( self ) : app. logger. info ( " ping " ) return api _ common. ping ( api _ version = api _ version )
[ -0.9840594530105591, -0.2695753872394562, 0.34164494276046753, 0.8546116352081299, 1.0931978225708008, 0.06908531486988068, -0.8143260478973389, 0.6636784076690674, -0.4048766791820526, 0.7479530572891235, 0.6653411388397217, 0.305961936712265, -0.7932929992675781, -0.5587165355682373, -...
def km _ to _ miles ( km ) : miles = km * 0. 6 return miles
[ 0.7284526824951172, -0.330936461687088, 0.15032663941383362, 0.17556697130203247, -0.20241445302963257, -0.5138289928436279, -1.052611231803894, 0.48773884773254395, 0.6372884511947632, 0.266650915145874, -0.6437428593635559, -0.8416606783866882, -0.9630128741264343, 0.2406163513660431, ...
def _ parse _ cpbr _ row ( s ) : index, number, type, name = s. strip ('+ cpbr :'). split ( ',') return {'index': int ( index ),'number': number. replace ('" ','' ). rstrip ( ),'type': int ( type ),'name': name. replace ('" ','' ). rstrip ( ), }
[ -0.07693397998809814, -0.15000930428504944, 0.35580265522003174, -0.726256251335144, -1.4447367191314697, -0.5880924463272095, 0.015581673011183739, 0.20939549803733826, -0.0053616915829479694, 0.1062801405787468, -1.175257682800293, -0.6108262538909912, -0.290677547454834, -0.070275045931...
def _ _ init _ _ ( self ) : pygame. init ( ) pygame. display. set _ caption ( " remember everything " ) gameicon = pygame. image. load ('book. png') pygame. display. set _ icon ( gameicon ) self. start = 0 self. bg = color ('pink') self. screen = pygame. display. set _ mode ( ( 1200, 630 ) ) self. x, self. y = ( 1200, ...
[ -0.43967491388320923, -0.5062650442123413, 0.9948940873146057, 0.29656982421875, 0.022166509181261063, 0.5591219663619995, 0.8255137801170349, -0.8578672409057617, 0.24392715096473694, 0.4761892855167389, -1.1181411743164062, -0.3329324722290039, -0.09113394469022751, 1.0155657529830933, ...
def to _ words ( text ) : result = [ ] if re. search ( r'\ s ', text ) : words = text. split ( ) for word in words : result + = to _ words ( word ) return result prev = 0 for i, letter in enumerate ( text ) : if letter. isupper ( ) : substr = text [ prev : i ] if substr : result. append ( substr ) prev = i if prev < le...
[ -0.6470459699630737, 0.6331066489219666, 0.9047207236289978, 0.24494853615760803, 0.13710571825504303, -0.33766233921051025, 0.6837795972824097, 0.8920941948890686, 0.937560498714447, 0.8857843279838562, -0.6699208617210388, 0.21816883981227875, -1.277499794960022, 0.7828147411346436, -1...
def spawn _ volume _ from _ snapshot ( self, volume, snapshot ) : ret, output = self. dpl. spawn _ vdev _ from _ snapshot ( self. _ conver _ uuid2hex ( volume ['id'] ), self. _ conver _ uuid2hex ( snapshot ['volume _ id'] ), volume. get ('display _ name ','' ), volume. get ('display _ description ','' ), self. _ conver...
[ -0.33516085147857666, 0.12791265547275543, 0.8151007890701294, 0.32952049374580383, -0.05021330714225769, -0.2905023694038391, -0.5084869265556335, -0.08215386420488358, 0.5093269944190979, 0.07470539212226868, -0.09276255965232849, -0.27720528841018677, 0.24438051879405975, -0.01221270300...
def aggregate ( airbnb _ gdf, nbh _ gdf, room _ gdf, entire _ home _ gdf, superhost _ gdf, illegal _ gdf ) : # perform spatial join join _ all = gpd. sjoin ( nbh _ gdf, airbnb _ gdf, how ='inner ', op ='contains'). groupby ('buurt'). size ( ). reset _ index ( name ='airbnb _ listingcount') nbh _ gdf = nbh _ gdf. merge ...
[ 0.29241126775741577, 0.5240375995635986, 0.8280366659164429, 0.44970703125, 0.3590475618839264, 0.9559456706047058, 0.16507065296173096, 0.24308767914772034, -1.003090500831604, -0.3954809904098511, 0.3914303481578827, 0.3225584626197815, -0.5056360363960266, 0.40405339002609253, 1.18752...
def test _ dimensions ( self ) : # want to be able to pull dimensions out using the channels name dimensions = self. train. dimensions ['train channel'] assert dimensions = = ['loss']
[ -0.0571320541203022, 0.567501425743103, 0.43142861127853394, -0.6683260798454285, 0.2635674774646759, 0.5374923348426819, 0.2059871256351471, -0.1870492398738861, -0.014365262351930141, -0.4775678813457489, -0.20866021513938904, -0.14190000295639038, 0.17707006633281708, -0.151854574680328...
def _ randomnucleotide ( b ) : possible _ bases = iupacdata. ambiguous _ dna _ values [ b ] return random. choice ( possible _ bases )
[ -0.9030669927597046, 0.19548751413822174, 0.27960649132728577, -0.4087267220020294, -0.18226034939289093, 0.31247541308403015, 0.09828194230794907, -0.23435941338539124, 0.9547229409217834, -0.18265821039676666, -0.07206132262945175, 0.078820139169693, -0.7416725158691406, -0.9264499545097...
def test _ filter _ name ( self ) : t1 = taskfactory ( name = " b ", creator = self. user, status = task. status. new ) t2 = taskfactory ( name = " a ", creator = self. user, status = task. status. assigned ) t3 = taskfactory ( name = " c ", creator = self. user, status = task. status. completed ) t4 = taskfactory ( na...
[ -0.08140590786933899, 0.5511292219161987, 0.9669923186302185, 0.09726686775684357, -0.2610880434513092, 0.6003404259681702, 0.5572918653488159, -0.8749328851699829, -0.5586015582084656, 0.21977540850639343, -0.4928624927997589, -0.5440050363540649, 0.9441978335380554, 0.7224801182746887, ...
def remove _ node ( self, value ) : self. nodes = [ node for node in self. nodes if node. value! = value ] for node in self. nodes : node. edges = [ node for node in node. edges if node. value! = value ] self. length = self. length - 1
[ -0.7326897382736206, 0.5736330151557922, 0.4278743267059326, -0.8716103434562683, -0.48634257912635803, 0.1747523546218872, 0.2828812003135681, 0.7062315940856934, 0.722017765045166, 1.0101927518844604, -0.8702256083488464, 0.6012378931045532, -0.6524592638015747, -0.10507898777723312, -...
def face ( * args ) : return _ topods. topods _ face ( * args )
[ -0.7524804472923279, 0.06010258197784424, 0.35907992720603943, 0.8916398882865906, 0.4532475471496582, 0.4582549035549164, 1.031637191772461, -1.3337117433547974, -0.4100346565246582, -0.4154185950756073, -0.12529312074184418, -0.6161662936210632, -0.7968124151229858, 0.23540066182613373, ...
def stats ( self, mu, var ) : return mu, var
[ -0.3361104428768158, -0.6250483393669128, 0.4306361973285675, -0.7047551274299622, -0.08035548776388168, 0.12663473188877106, -0.6542019248008728, -0.5682491660118103, -0.12689673900604248, -0.6136348843574524, 0.5827693939208984, 1.4876244068145752, -0.2665274441242218, 0.0698087587952613...
def default ( self, node ) : # handle characters like \ &, \ $, \ %, etc. if len ( node. nodename ) = = 1 and node. nodename not in encoding. stringletters ( ) : return self. textdefault ( node. nodename ) # render child nodes return str ( node )
[ -0.032370101660490036, 0.44833967089653015, 0.34445720911026, -0.486861914396286, -0.8120801448822021, 0.0391751229763031, -0.7659635543823242, -0.18153375387191772, 0.060532405972480774, 0.10970660299062729, 0.10233625024557114, -0.8666378855705261, -0.7933762073516846, 0.062453493475914,...
def insertnodeatend ( self, value = none ) : node = node ( value ) if self. nextnode. value is none : self. nextnode = node return currentnode = self. nextnode while currentnode. nextnode is not none : currentnode = currentnode. nextnode currentnode. nextnode = node
[ -0.8992786407470703, 1.18691885471344, 0.6379476189613342, -1.0554279088974, -0.017536187544465065, 0.32835710048675537, 0.07005001604557037, -0.016885753720998764, 0.09416936337947845, 0.31226325035095215, -0.43194395303726196, 0.017808621749281883, -1.775151014328003, 0.9752256274223328,...
def _ get _ other _ direction ( self, direction ) : self. _ check _ direction ( direction ) return self. directions [ not self. directions. index ( direction ) ]
[ -0.9477102160453796, -0.31932517886161804, 0.4467449188232422, -0.009127146564424038, -0.0092711690813303, -0.0641387328505516, -0.23389677703380585, -1.4081937074661255, 1.0430420637130737, -0.2777097523212433, 0.31381163001060486, 1.2293469905853271, -1.1068724393844604, 0.49949562549591...
def build _ auxiliary _ structures ( nodes _ filename, ways _ filename ) : nodes = { } edges = { } dic = { } # loop over each node in ways file # look for the node in node file for ways in read _ osm _ data ( ways _ filename ) : # if it has an allowed highway types if'highway'in ways ['tags'] and ways ['tags'] ['highwa...
[ 0.16571715474128723, -0.13834398984909058, 0.659178614616394, -1.3100085258483887, -0.21910427510738373, 0.2506348192691803, -0.29206031560897827, 0.39273539185523987, -1.2881721258163452, 0.3799113929271698, -0.031139779835939407, 0.2992071211338043, 0.2630956470966339, 0.3615405857563019...
def get _ 5gnr _ usermargin ( self ) : rdstr = self. queryfloat ( f'conf : nrmm : meas : rfs : umar?') return rdstr
[ -0.6375668048858643, 0.14094814658164978, 0.3437175750732422, -0.017420804128050804, -0.10376572608947754, 0.15171585977077484, 0.3938334882259369, -1.3425394296646118, 0.48850879073143005, -0.6869795322418213, 0.7485293745994568, 0.17130127549171448, -1.5697472095489502, 0.563879489898681...
def _ _ init _ _ ( self, name ) : super ( thirdoperator, self ). _ _ init _ _ ( name )
[ -0.1483742594718933, 0.5194282531738281, 0.5599545836448669, -0.0051661403849720955, -1.1075067520141602, 0.020098557695746422, -0.41220489144325256, 0.355120986700058, 0.38700157403945923, 0.7611595988273621, -1.3150498867034912, -1.5101467370986938, -0.49237123131752014, -0.6877232193946...
def build _ discriminator _ base _ conv _ layer _ block ( base _ conv _ layers, params ) : with tf. variable _ scope ( name _ or _ scope = " discriminator ", reuse = tf. auto _ reuse ) : # get conv block layer properties. conv _ block = params [ " discriminator _ base _ conv _ blocks " ] [ 0 ] # create list of base con...
[ -0.51567542552948, -1.033172845840454, 0.5845121741294861, 0.9347915053367615, 0.4150295853614807, 0.14727269113063812, 0.03920992463827133, -0.05650569871068001, -0.5279867053031921, 0.4714282155036926, -0.6755186319351196, 0.24207015335559845, -0.1297735571861267, 0.08624450862407684, ...
def funcnameea ( self, func _ ea ) : func = self. disas. funcat ( func _ ea ) if func is not none : return self. funcnameinner ( func. name ) return self. funcnameinner ( self. disas. nameat ( func _ ea ) )
[ -0.5167257189750671, -0.9667977094650269, 0.798793613910675, -1.0124449729919434, -0.7952952980995178, -1.3708484172821045, 0.40050119161605835, -0.11254405975341797, 0.8214184641838074, 0.2873767018318176, 1.0512365102767944, 0.1653052568435669, 2.0968334674835205, 0.8549367785453796, 1...
def _ model _ check ( model ) : status = model. solver. optimize ( ) if status = ='infeasible': return false solution = get _ solution ( model ) if solution. objective _ value! = 0 : return true return false
[ -0.7769060134887695, 0.01309764850884676, 0.6269852519035339, 1.0603418350219727, -0.22750483453273773, 0.487131267786026, -0.5235026478767395, 0.010679594241082668, -0.8087956309318542, 0.29535630345344543, -0.07475026696920395, -1.058938980102539, -0.06554007530212402, 0.6624800562858582...
def test _ dispatch _ crawl _ feeds ( self ) : with patch. object ( tasks. retrieve _ feed _ entries, " delay " ) as m : tasks. dispatch _ crawl _ feeds ( ) # have all rss feeds been called? all _ rss _ feeds = models. rssfeed. objects. all ( ) self. assertequals ( len ( all _ rss _ feeds ), m. call _ count ) for rss _...
[ 1.2148104906082153, 0.855273962020874, 0.7181904911994934, -0.012685191817581654, 1.8474611043930054, -0.24833987653255463, 0.4754599928855896, 0.3084252178668976, -0.09925448149442673, -1.3003062009811401, -0.9037027955055237, -0.7124198079109192, 0.5771716237068176, 0.478973925113678, ...
def bio _ tagging _ df ( df ) : pdf, _ = prep _ df ( df ) tdf = transform _ df ( pdf ) bio _ tags _ df = [ bio _ tagging _ sentence ( l ) for l in tdf ] bio _ tags _ df = pd. dataframe ( bio _ tags _ df, columns = [ " text ", " bio _ tags " ] ) return bio _ tags _ df
[ 0.12556342780590057, 0.501396119594574, 0.4299345314502716, 0.22672702372074127, 0.5535435676574707, -0.5745081901550293, 0.015950052067637444, 0.9025519490242004, -0.9005327224731445, 0.3119722902774811, 0.8295204043388367, 0.28009745478630066, 0.0711459219455719, -0.06537091732025146, ...
def _ _ init _ _ ( self, parent, id = none, logger = none ) : widget. _ _ init _ _ ( self, parent, logger = logger ) self. id = id
[ 0.6793251037597656, -0.35156363248825073, 0.6495532393455505, -0.11777421087026596, -0.1703534871339798, -0.3352975845336914, -0.6092754006385803, 0.8785256147384644, 0.6782642006874084, -1.2424839735031128, -0.894109845161438, 0.01111298706382513, -0.09553349018096924, 1.1873276233673096,...
def get _ user ( u _ id ) : status, info = user. get _ user _ by _ uid ( u _ id ) ret = { " data " : [ ], " status " : status, " msg " : " " } if status = = " success " : ret ['data'] = {'u _ id': info [ 0 ] [ 0 ],'u _ name': info [ 0 ] [ 1 ], " u _ role " : info [ 0 ] [ 2 ], " u _ phone " : info [ 0 ] [ 4 ],'c _ id': ...
[ -1.0562816858291626, -0.31023108959198, 0.8558185696601868, -0.05266974866390228, -0.3987963795661926, -0.03471248969435692, -0.22279781103134155, -0.3432530462741852, 0.08056402206420898, -0.16110792756080627, -1.1530869007110596, 0.4249476492404938, 0.29192933440208435, 0.598272860050201...
def energy ( self, x ) : lp = 0. 0 # log posterior ca = x [ 0 ] ce = x [ 1 ] indx = 2 for i, md in enumerate ( self. mdlist ) : # # # # # # # # # # # # # # # # # # # a e s lp + = md. logpost ( x [ indx ], x [ indx + 1 ], x [ indx + 2 : ( indx + md. n ) ] ) ei = x [ indx + 1 ] # # hyper prior for e _ i lp + = ( ca - 1 )...
[ 0.4583278000354767, 0.30471131205558777, 0.746139645576477, -0.5068485140800476, -0.9396688938140869, 0.066778764128685, -0.30664151906967163, 0.9893853068351746, 0.015507776290178299, 0.12162856757640839, 0.02312127687036991, -0.17442525923252106, -0.8394201397895813, -0.05929338186979294...
def write _ to _ string ( self, output ='ps ', dpi = 72 ) : # the reportlab drawtostring method, which this function used to call, # just uses a cstringio or stringio handle with the drawtofile method. # in order to put all our complicated file format specific code in one # place we'll just use a stringio handle here :...
[ -0.43919649720191956, -0.27073565125465393, 0.5097910761833191, -0.4211462736129761, -0.07891445606946945, -0.05945684015750885, -0.23817764222621918, -1.2877334356307983, -0.6739854216575623, -1.2051787376403809, 0.5543842315673828, -0.928769052028656, -0.6717005968093872, -0.960092186927...
def last _ stop ( line : str ) - > bool : return line [ - 1 ] = = eol
[ -0.7074437141418457, -0.40183693170547485, 0.6509625911712646, -0.290248841047287, 0.36551451683044434, 0.06311699748039246, -0.8335394263267517, -0.24770104885101318, -0.0839235857129097, 1.0637378692626953, -0.0008690070826560259, -1.0158747434616089, 0.13613563776016235, -1.056083798408...
def _ _ init _ _ ( self, amsn _ conversation, parent, contacts _ uid ) : self. _ main = parent. _ main self. _ uid = md5. new ( str ( random. random ( ) ) ). hexdigest ( ) self. _ main. send ( " newchatwidget ", [ self. _ uid ] ) self. _ main. addlistener ( " sendmessage ", self. sendmessage ) self. _ amsn _ conversati...
[ 0.9187923669815063, -0.2234845757484436, 0.5217106342315674, 0.19543269276618958, -0.2584265172481537, 0.6619051098823547, 0.10127861052751541, -0.25091323256492615, 0.584915041923523, -0.47595134377479553, -0.48235467076301575, 0.1736212521791458, 0.257087767124176, 1.3342288732528687, ...
def _ _ ne _ _ ( self, other ) : if not isinstance ( other, materialupdateoperation ) : return true return self. to _ dict ( )! = other. to _ dict ( )
[ -0.9046163558959961, -0.12194756418466568, 0.9187941551208496, 0.3922818899154663, -1.0894622802734375, -0.10554969310760498, -0.6954213976860046, -0.5419401526451111, 0.4099677503108978, 0.26873111724853516, -0.7683978080749512, -0.8471867442131042, -0.3497166633605957, -0.318664789199829...
def test _ ing _ pair _ in _ list _ case _ 1 ( self ) : ing _ list = load _ ing _ list ( ) pairs = extract _ pairs ( ing _ list ) ing1 = ingredient ( " " ) ing2 = ingredient ( " " ) self. asserttrue ( ingredientpair ( ing1, ing2 ) in pairs ) self. asserttrue ( ingredientpair ( ing2, ing1 ) in pairs )
[ -0.8079431056976318, -0.014105780981481075, 0.682948112487793, 0.8537276983261108, -0.6565799117088318, -0.022367069497704506, -0.48759397864341736, 1.0436007976531982, 0.14566530287265778, 0.9835320115089417, -0.8233657479286194, -0.5861819982528687, -1.1501555442810059, 0.899945080280304...
def test _ pruning _ src _ tgt ( ) : g = nx. digraph ( ) g. add _ edges _ from ( [ ( 0, 1 ), ( 0, 2 ), ( 0, 3 ), ( 0, 4 ), ( 1, 0 ), ( 2, 0 ), ( 2, 1 ), ( 2, 3 ), ( 3, 0 ), ( 3, 2 ), ( 3, 4 ), ( 3, 5 ), ( 4, 1 ), ( 4, 3 ), ( 4, 5 ), ( 5, 0 ), ( 5, 2 ) ] ) src = 0 tgt = 5 length = 5 cfpg = pg. cfpg. from _ graph ( g, sr...
[ 0.17491604387760162, 0.8066731691360474, 0.6374077796936035, -0.3004930317401886, -0.30888432264328003, 0.09246627241373062, 0.5392292141914368, -0.13571645319461823, 0.32507362961769104, 0.3386588990688324, -0.911861777305603, -0.9289774298667908, -0.5620557069778442, -0.3336568772792816,...
def get _ default _ dom _ elem ( ) : return [ get _ dom _ elem ( ). first ( ) ]
[ -0.057794239372015, 0.2886677086353302, 0.5018931031227112, 1.877424716949463, 1.323184847831726, 0.44032952189445496, -0.10205809026956558, -0.030757393687963486, 0.012992240488529205, -0.9808509945869446, -0.25857311487197876, 0.6654513478279114, 0.40394237637519836, 0.3771551251411438, ...
def do _ update ( self, node _ id ) : _ error _ code, _ msg = ramstkdatamodel. do _ update ( self, node _ id ) if _ error _ code! = 0 : _ error _ code = 2006 _ msg ='ramstk error : attempted to save non - existent hardware id'\'{ 0 : d }. '. format ( node _ id ) return _ error _ code, _ msg
[ -0.33746302127838135, 0.04215909168124199, 0.5484905242919922, 0.08253461122512817, 0.4327777624130249, -0.1344819813966751, 0.3023897409439087, -0.039276525378227234, -0.5659148693084717, 1.2935495376586914, -0.45798322558403015, 0.25580736994743347, -0.6249264478683472, 0.603156328201294...
def get _ game ( self, format ='json') : response = self. get ( self. base _ url + " game / nhl ", format = format ) return response ['fantasy _ content'] ['game'] [ 0 ] ['game _ id']
[ -0.7098424434661865, -0.0391237810254097, 0.6559131741523743, 0.28043606877326965, 0.627315104007721, 0.1460566222667694, -1.757967472076416, -0.8169605731964111, -0.33622780442237854, 0.447087824344635, 1.1131908893585205, 0.20911884307861328, -0.751903772354126, 0.543031632900238, 0.32...
def rgba2bgra ( im : np. ndarray ) - > np. ndarray : return cv. cvtcolor ( im, cv. color _ rgba2bgra )
[ 0.5306047797203064, -0.33876267075538635, 0.7304918169975281, 0.2943629026412964, 0.6034331321716309, 0.42057350277900696, 0.15869875252246857, -0.9818037152290344, 0.5348841547966003, 1.7464085817337036, 0.9074967503547668, 0.3706582486629486, -0.15269584953784943, 0.6314500570297241, 0...
def show _ error _ message ( title, message ) : return _ show _ error _ message ( title, message )
[ -0.3928563892841339, 0.5348906517028809, 0.30886152386665344, 0.7033199667930603, -1.0500901937484741, -0.73124760389328, -0.1199294924736023, -0.21549910306930542, -0.6627107262611389, 0.04568310081958771, 1.5138334035873413, 1.7678388357162476, -0.18186014890670776, -0.005063414573669434...
def rand _ colour ( ) : colour ='' for i in range ( 0, 3 ) : colour + = ( " % 02x " % random. randint ( 0, 255 ) ) return colour
[ -0.49124836921691895, -0.24261873960494995, 0.4052109718322754, -1.426356315612793, 0.31472069025039673, 0.9475670456886292, -1.0796239376068115, 0.18339882791042328, 0.22415482997894287, -0.3132365345954895, -0.09319793432950974, -0.24577294290065765, -0.4269073009490967, -0.4293444454669...
def repeat ( iterations : int = 3 ) : def decorator ( func ) : @ functools. wraps ( func ) def wrapper ( * args, * * kwargs ) : for _ in range ( iterations ) : result = func ( * args, * * kwargs ) return result return wrapper return decorator
[ -1.1890438795089722, 0.7843071818351746, 0.5734976530075073, -0.5638744831085205, -0.8464642763137817, 0.09961822628974915, -0.34935760498046875, 0.12824808061122894, 0.4692545235157013, -0.0353911817073822, -0.02574312314391136, 0.2814367711544037, 0.2542283833026886, -1.1077743768692017,...
def tree _ stats ( root, max _ depth = none ) : stats = {'total _ vnodes': 0,'total _ qnodes': 0,'total _ vnodes _ children': 0,'total _ qnodes _ children': 0,'max _ vnodes _ children': 0,'max _ qnodes _ children': 0,'max _ depth': 0 } treedebugger. _ tree _ stats _ helper ( root, 0, stats, max _ depth = max _ depth ) ...
[ -0.23891936242580414, 0.9025522470474243, 0.6007028818130493, -0.6666681170463562, -0.7263641357421875, -0.5729519724845886, 0.1003168448805809, -0.5166444778442383, 0.11115840822458267, 0.06189313530921936, -0.6387271285057068, 0.5537133812904358, 0.729131281375885, 0.8068406581878662, ...
def process _ document ( self, context, document _ format ) : available _ formats = self. document _ converter. available _ output _ formats. copy ( ) available _ formats. remove ( document _ format ) self. logger. debug ( " document with supported document format detected " ) self. send _ message ( context, " document...
[ -0.11366530507802963, -0.49994730949401855, 0.5363672971725464, 0.2960977852344513, -0.02381565049290657, -0.3030977249145508, -0.014734575524926186, -0.3210689425468445, 0.6206948161125183, 0.7301446795463562, 0.22989673912525177, 0.647181510925293, -0.8840854167938232, 0.574694037437439,...
def _ exec _ test ( self, tf _ name, test _ func ) : compiled _ code = self. _ compiled _ py [ tf _ name ] log = self. log [ tf _ name ]. children [ test _ func ] # load the module in to the namespace # capture the standard out rather than dumping it to terminal with stdout _ ctx ( ) as stdout : global _ namespace = di...
[ 0.5614440441131592, -0.11397538334131241, 0.6498762965202332, -0.1426200121641159, 0.22349336743354797, 0.06268013268709183, 0.35925689339637756, -0.2866133451461792, -0.6511850357055664, 0.4147178828716278, 0.29927858710289, 0.7946376204490662, -0.12125183641910553, 0.07079525291919708, ...
def _ _ init _ _ ( self, design _ matrix, weights _ prior _ scale = 0. 1, weights _ batch _ shape = none, name = none ) : init _ parameters = dict ( locals ( ) ) with tf. name _ scope ( name or'sparselinearregression') as name : if not isinstance ( design _ matrix, tfl. linearoperator ) : design _ matrix = tfl. linearo...
[ 1.009326457977295, 0.6181083917617798, 0.8571229577064514, -0.1520063579082489, -0.36991989612579346, 0.12808415293693542, 0.05565393716096878, 0.7170190215110779, -0.010703012347221375, 0.34478604793548584, -0.451342910528183, -0.02482026256620884, -0.6907675266265869, 0.0861475020647049,...
def create _ mailing _ label _ report _ csv ( self ) : filename = " hundrednights - donors - { 0 }. csv ". format ( datetime. now ( ). strftime ( " % y - % m - % d " ) ) donors = self. _ _ create _ mailing _ label _ report _ data ( ) data = [ [ d. name, d. street _ 1, d. street _ 2, d. city, d. zip, d. state, d. is _ o...
[ -1.05869722366333, -0.19323423504829407, 0.5483248233795166, -0.38127970695495605, 0.1159890741109848, 0.3652726709842682, -0.04066473990678787, -0.08579891175031662, 0.25116264820098877, -0.022349083796143532, -0.12256758660078049, 0.4813303053379059, 0.18483787775039673, 0.27112621068954...
def handler _ send _ sticker ( update : update, context : callbackcontext ) : update. message. reply _ sticker ( sticker )
[ 1.0228906869888306, -0.21658042073249817, 0.3444611728191376, 0.10288481414318085, -0.4742286205291748, 0.37373799085617065, 0.07655316591262817, -0.8282911777496338, -0.011112511157989502, 0.8944864273071289, -0.2048736810684204, -0.19624543190002441, -1.3127646446228027, 0.74989175796508...
def _ _ init _ _ ( self, bayesian = true, n _ samples = 30, tu = 0. 0125, device ='cpu') : self. bayesian = bayesian self. n _ samples = n _ samples self. tu = tu self. seg _ model = branchederfnet ( num _ classes = [ 4, 1 ] ). to ( device ). eval ( ) self. model _ path = os. path. join ( os. path. dirname ( os. path. ...
[ 0.030518464744091034, 0.4294685423374176, 0.7128037810325623, 0.9956204295158386, 0.6864351630210876, 0.5395562052726746, 0.6002289056777954, 0.309791624546051, -0.956840455532074, -0.5250105261802673, -0.4344494640827179, -0.16864916682243347, -0.23006299138069153, 0.5401575565338135, 0...
def parameter _ general ( self ) : return self. token. value [ : - 1 ]. split ( )
[ -1.3799936771392822, 0.14376439154148102, 0.6922497153282166, -0.1860293298959732, 0.9714084267616272, 0.1950705200433731, -1.1223777532577515, -0.3414076566696167, -0.6752157807350159, 1.2542883157730103, 0.17966307699680328, 1.2855875492095947, -0.5188361406326294, 0.5199795961380005, ...
def is _ prime _ v2 ( num ) : if num = = 1 : return false for n in range ( 2, m. floor ( m. sqrt ( num ) ) ) : if num % n = = 0 : return false else : return true
[ -0.7448188066482544, -0.22994597256183624, 0.528551459312439, 0.9214755296707153, -0.2749999761581421, -0.3180803060531616, -0.9556238651275635, -0.6102718710899353, 1.4300968647003174, -0.02706393226981163, 0.09624148905277252, 0.3189433515071869, -1.3160781860351562, 0.5159731507301331, ...
def observation _ space ( self ) : raise notimplementederror
[ -0.15943889319896698, -0.034412965178489685, 0.5708365440368652, 0.38066715002059937, -0.5574020147323608, 1.1022918224334717, 1.0449011325836182, -0.02874484285712242, 0.38052016496658325, -0.6857590079307556, 0.29119282960891724, -0.18855999410152435, 0.4678601026535034, 0.42427310347557...
def to _ schema ( self ) : schema = super ( ). to _ schema ( ) if self. disabled is not none : schema [ " disabled " ] = self. disabled if self. collapsed is not none : schema [ " collapsed " ] = self. collapsed group = [ ] for field in self. fields. values ( ) : group. append ( field. to _ schema ( ) ) schema [ " grou...
[ -0.7074385285377502, 0.20996901392936707, 0.3237378001213074, -0.8300867080688477, 0.010510028339922428, -0.03858063369989395, -0.38866108655929565, 1.0881956815719604, -0.13016928732395172, 0.3266696333885193, -0.5318289399147034, -0.2734938859939575, 0.02548595517873764, -0.6866950392723...
def head ( self ) : return self. _ dll. head
[ 0.06384561955928802, -0.6919528245925903, 0.692065417766571, 0.4332398772239685, 0.2037600576877594, 1.2828196287155151, 0.4350054860115051, -1.3782110214233398, 0.753055989742279, -0.3637762665748596, 0.2783716320991516, 1.1559945344924927, -1.0092517137527466, -1.1834367513656616, 0.34...
def to _ element _ tree ( self ) : if self. _ _ class _ _. _ namespace : tag = " { % s } % s " % ( self. _ _ class _ _. _ namespace, self. _ _ class _ _. _ tag ) nsmap = { none : self. _ _ class _ _. _ namespace } else : tag = self. _ _ class _ _. _ tag nsmap = none new _ tree = self. et. element ( tag ) #, nsmap = nsm...
[ 0.19389617443084717, -0.5257247686386108, 0.48258841037750244, -0.13601793348789215, 0.09075658768415451, 0.24086473882198334, -0.637074887752533, -0.2156863957643509, 1.3055481910705566, -0.495750367641449, -0.3844411075115204, 0.6782179474830627, -0.5183543562889099, 0.5683292746543884, ...
def ajax _ request ( ) : user _ query = request. data. decode ('utf - 8') print ( " contenu de la requete = ", user _ query ) # for debug parser = parser ( ) cleaned _ query = parser. clean ( user _ query ) print ( " requete nettoyee = ", cleaned _ query ) # for debug gmaps _ request = gmapsrequest ( cleaned _ query ) ...
[ -0.8081064820289612, -0.9932607412338257, 0.9686304926872253, -0.6660451889038086, -0.544310986995697, -0.2890688180923462, -0.8594059348106384, 0.029469499364495277, -0.023922890424728394, 0.254487007856369, 0.2673693895339966, 0.43283167481422424, -0.30858808755874634, 0.4858951568603515...
def get _ cur _ timestamp ( ) : return int ( time. mktime ( datetime. datetime. now ( ). timetuple ( ) ) )
[ -0.7586517333984375, -0.11175243556499481, 0.6440500020980835, -0.4672420620918274, -0.1147383600473404, -0.4620310664176941, 0.43778058886528015, 0.22896349430084229, -0.6976486444473267, 0.4749753773212433, -0.01665012538433075, -0.6841557621955872, -0.0745309591293335, -0.58158606290817...
def _ getcoords ( self ) : indices = self. _ traj. _ indices if indices is none : return self. _ getxyz ( ) else : return self. _ getxyz ( ) [ indices ]
[ -0.5387148857116699, 0.44743871688842773, 0.4604776203632355, 0.2764700949192047, 0.3883446455001831, -0.8600399494171143, 0.029615173116326332, -0.22769080102443695, 0.12318270653486252, -0.32199785113334656, 0.7664491534233093, -1.0729427337646484, -0.488454669713974, -0.921633780002594,...
def _ mgui _ get _ max ( self ) - > float : val = self. _ qwidget. maximum ( ) return self. _ post _ get _ hook ( val )
[ 0.054979629814624786, 0.4516676962375641, 0.568917453289032, 0.8316755890846252, 0.3505190312862396, -0.33966726064682007, -0.7917854189872742, -0.8443138003349304, -0.3731422424316406, -0.3602043092250824, 0.41359350085258484, 0.4142362177371979, -0.35435304045677185, 0.6714491248130798, ...
def merge _ operations ( circuit : circuit _ type, merge _ func : callable [ [ ops. operation, ops. operation ], optional [ ops. operation ] ], ) - > circuit _ type : def apply _ merge _ func ( op1 : ops. operation, op2 : ops. operation ) - > optional [ ops. operation ] : new _ op = merge _ func ( op1, op2 ) qubit _ se...
[ -0.230350062251091, 1.0761728286743164, 0.8324411511421204, 0.5342910885810852, -0.5248890519142151, -0.3689013719558716, 0.5932668447494507, -0.6403810977935791, 0.7239664793014526, 0.2670546770095825, -0.33669379353523254, -0.16695140302181244, -0.2791067659854889, 0.09635090827941895, ...
def get _ all _ unique _ peptides _ in _ db ( self ) - > list [ str ] : return list ( set ( self. _ database. iloc [ :, 2 ] ) )
[ -0.5173881649971008, -0.21696290373802185, 0.6657693982124329, 0.47509709000587463, 1.1009207963943481, 0.85781329870224, -1.016562581062317, 0.37688082456588745, -0.08387990295886993, 0.28664806485176086, -1.13285231590271, 0.5232183933258057, -0.12787111103534698, -0.7764988541603088, ...
def is _ local _ sparse ( self ) : local _ vals = self. _ local _ importance _ values return issparse ( local _ vals ) or \ ( ( isinstance ( local _ vals, list ) or isinstance ( local _ vals, np. ndarray ) ) and issparse ( local _ vals [ 0 ] ) )
[ 0.5093557238578796, -0.46660342812538147, 0.3997838497161865, 0.1630372703075409, 0.5168931484222412, -0.05041482299566269, -0.3883804678916931, 0.7141352295875549, 1.13662850856781, -0.017272841185331345, -0.09281537681818008, 0.9444646835327148, -0.9239117503166199, 1.1024248600006104, ...
def load _ embeddings ( self, path, mtx _ name, languages = none, filter _ rows = - 1 ) : if type ( languages ) = = str : languages = set ( [ languages ] ) elif type ( languages ) = = list : languages = set ( languages ) i2w = ordereddict ( ) data, indices, indptr = [ ], [ ], [ 0 ] with gzip. open ( path,'rb') as f : f...
[ 0.012855904176831245, 0.127710223197937, 0.8171993494033813, -0.581691324710846, -1.1140626668930054, -0.18846765160560608, 0.6867320537567139, 0.20536334812641144, -0.02086217887699604, 0.6002382636070251, -0.3664069175720215, 0.09560061991214752, -0.40144070982933044, -0.2069397568702697...
def forward ( self, x1, x2, diag = false, last _ dim _ is _ batch = false, full _ covar = true, * * params ) : if last _ dim _ is _ batch : raise notimplementederror ( ) else : n = x1. shape [ 0 ] m = x2. shape [ 0 ] out = torch. zeros ( ( n, m ), device = x1. get _ device ( ) ) for i in range ( n ) : for j in range ( ...
[ -0.05359354987740517, 0.5672994256019592, 0.721678614616394, 0.8422057628631592, -0.05654047429561615, -0.0017211935482919216, 0.02201145887374878, 0.7676244378089905, -1.2831286191940308, 0.5794604420661926, 0.45414382219314575, 0.46889322996139526, 0.37210792303085327, -0.140335559844970...
def compare ( self, current _ value, best _ value ) : raise notimplementederror
[ -0.340790331363678, -1.4002623558044434, 0.4546377956867218, 0.5695390105247498, 0.20116986334323883, 0.8388627767562866, -0.42641714215278625, -0.12558098137378693, -0.7077769637107849, -0.19151805341243744, 0.115804523229599, 0.7814216017723083, 0.29896169900894165, 0.7631023526191711, ...
def run _ agent ( dataset, search _ engine, nouns, reader, redis _ server, embs, args, agent _ from _ checkpoint = none, agent = none, dev = false, eval _ dataset = none, eval _ search _ engine = none, eval _ nouns = none, existing _ session = none, total _ accuracy _ only = false, outer _ e = none, summary _ writer = ...
[ -0.5675982236862183, -0.09292244911193848, 0.7859302759170532, -0.24428017437458038, 0.24494299292564392, -0.3709244728088379, 0.5072551369667053, 0.1949266940355301, 1.0524661540985107, 0.38466936349868774, 0.40825021266937256, -0.03896255046129227, 0.3168210983276367, 0.4166197180747986,...
def remove ( self ) : self. storage. pop ( )
[ 0.40457791090011597, -0.1965230107307434, 0.35873863101005554, -0.06412383168935776, 0.16030137240886688, 0.11661051213741302, 0.2572333514690399, 0.6142001748085022, -0.12735262513160706, 0.04822530224919319, -0.3770957589149475, -0.23789094388484955, -0.6578220725059509, -0.3229514956474...
def get _ ontology _ map ( df, ontology _ key, name _ key, input _ id _ map, input _ code _ map, input _ phenotype _ name _ map, add _ duplicate _ phenotypes = false ) : # loop for index, row in df. iterrows ( ) : key = row [ ontology _ key ] code = row ['ph'] phenotype _ name = row [ name _ key ] # if key not yet in m...
[ -1.2327219247817993, -0.061537519097328186, 0.661029577255249, 0.14186447858810425, 0.21226321160793304, -0.09408564120531082, -0.15749229490756989, -0.4032605290412903, -0.10289806127548218, 0.4441332221031189, -0.394145131111145, -0.3264496624469757, -0.003618032904341817, 0.163174733519...
def _ children ( self ) - > list ['virtualproduct'] : return [ from _ validated _ recipe ( child ) for child in self ['juxtapose'] ]
[ -0.08087886869907379, -0.37664318084716797, 0.30447298288345337, 1.0442156791687012, -0.5224801301956177, 0.28830501437187195, -0.255264014005661, 0.039018888026475906, 0.7574211359024048, 0.748939037322998, -0.5919632315635681, 0.01146447192877531, 0.3962012827396393, -0.2712003290653229,...
def testgettaginstancewithunicodevalue ( self ) : result = tagapi ( self. user ). create ( [ ( u'username / tag ', u'description') ] ) [ ( objectid, path ) ] = result tagvalueapi ( self. user ). set ( { objectid : { u'username / tag': u'value'} } ) self. store. commit ( ) with login ( u'username ', uuid4 ( ), self. tra...
[ -0.10816780477762222, 0.44529131054878235, 0.4656633138656616, -0.2842119038105011, 0.28509068489074707, 0.5092428922653198, -0.15697713196277618, -0.2760571241378784, -0.33897286653518677, -0.7431771755218506, -1.2343511581420898, -0.27326905727386475, 0.12434316426515579, 0.0066903815604...
def build _ mask ( self, img : np. ndarray ) - > np. ndarray : img = np. ones _ like ( img ). astype ( np. float32 ) return self. warp ( img, flags = cv2. inter _ nearest )
[ -1.3518942594528198, -0.1531066596508026, 0.4787698984146118, 0.6149387955665588, 0.444686621427536, 0.4967210292816162, 0.28235527873039246, -0.8679695129394531, 0.6774245500564575, -0.3726845979690552, 0.5329150557518005, 0.10605724900960922, -0.27374354004859924, -0.13287155330181122, ...
def v _ ml ( tag, messages ) : if not isinstance ( messages, list ) : raise typeerror for message in messages : if message = = " " : continue v ( tag, message )
[ 0.16182290017604828, 0.03774021565914154, 0.2597600221633911, 0.44495096802711487, 0.57118821144104, -0.319379061460495, -0.2798997163772583, -0.5070861577987671, -0.2466437965631485, 0.736687421798706, 0.06585628539323807, 0.07357391715049744, -0.7015491127967834, 1.4336163997650146, -1...
def test _ outside _ calendar ( self ) : # outside but not a leave work _ entry _ 1 = self. create _ work _ entry ( datetime ( 2018, 10, 10, 3, 0 ), datetime ( 2018, 10, 10, 4, 0 ) ) # outside and a leave work _ entry _ 2 = self. create _ work _ entry ( datetime ( 2018, 10, 10, 1, 0 ), datetime ( 2018, 10, 10, 2, 0 ), ...
[ -0.13861285150051117, 0.12947039306163788, 0.8438748717308044, -0.2469968944787979, 0.48010677099227905, 0.9281454086303711, 0.37313809990882874, -0.4249076247215271, 0.22939909994602203, -0.32840490341186523, -0.1703423410654068, -0.4918208718299866, -0.7387465238571167, 0.078269153833389...
def created _ time ( self ) - > pulumi. output [ str ] : return pulumi. get ( self, " created _ time " )
[ 1.2076799869537354, -0.38521426916122437, 0.25494542717933655, 0.3484787046909332, 1.0369603633880615, 0.9827452301979065, -0.34704118967056274, -0.19126710295677185, -0.2581307590007782, 0.022866476327180862, -0.12309497594833374, 0.44873273372650146, 0.57090824842453, -0.7111907005310059...
def get _ here _ json ( url ) : return requests. get ( url ). text
[ -1.339509129524231, -1.5002368688583374, 0.5682979822158813, -0.6720442771911621, -0.8438907861709595, -0.7122820019721985, -1.052968144416809, -0.9302539825439453, -0.3258569538593292, 0.9625099301338196, -1.1081963777542114, -0.15470296144485474, 0.10796170681715012, -0.6964183449745178,...
async def set _ tilt ( self, device _ id : str, value : int ) : zone _ id = self. _ get _ zone _ id ( device _ id ) if zone _ id : await self. _ request ( " createrequest ", f " / zone / { zone _ id } / commandprocessor ", { " command " : { " commandtype " : " gototilt ", " tiltparameters " : { " tilt " : value, }, }, ...
[ -0.4367374777793884, 0.720251739025116, 0.43158411979675293, 0.30474424362182617, 0.39612752199172974, -0.048783402889966965, 0.832734227180481, -1.2638105154037476, 0.10860554128885269, 1.3250075578689575, -0.31665340065956116, 1.3240636587142944, -0.514742374420166, -0.027323750779032707...