text
stringlengths
25
2.19k
embedding
listlengths
768
768
async def test _ unbypass ( hass, two _ zone _ alarm ) : # noqa : f811 await setup _ risco ( hass ) with patch ( " homeassistant. components. risco. riscoapi. bypass _ zone " ) as mock : data = { " entity _ id " : first _ entity _ id } await hass. services. async _ call ( domain, " unbypass _ zone ", service _ data = d...
[ 0.3777715861797333, 0.25042524933815, 0.6898553967475891, 0.32523396611213684, 1.081640362739563, 0.3462698459625244, 1.0604275465011597, 0.09387906640768051, -0.08553966134786606, -0.29801061749458313, -0.33225372433662415, 0.42840564250946045, -0.30489885807037354, 0.17664137482643127, ...
def pf _ avg _ prod _ sum ( qp, ns ) : m = ns. shape [ 0 ] pfss = [ ] pfprods = [ ] pfsums = [ ] pfavgs = [ ] errs = [ ] errsums = [ ] for j in range ( qp. shape [ 0 ] ) : # loop over homodyne data if ( j % int ( ( qp. shape [ 0 ] / 10 ) ) = = 0 ) : print ( str ( j ) + " homodyne data " ) # # calculate pattern function...
[ -0.17442826926708221, 0.3481574058532715, 0.9456295371055603, -0.4235294759273529, -0.17594367265701294, -0.012988489121198654, 0.6329178214073181, -0.5990469455718994, 0.18361319601535797, 0.6379473209381104, -0.7634900212287903, 0.7389656901359558, 0.47885259985923767, 0.4371862411499023...
def process _ credit _ card ( request, order _ id, receipt _ code ) : if request. method = ='post': error = none form = creditcardform ( request. post ) order = get _ object _ or _ 404 ( order, id = order _ id, receipt _ code = receipt _ code ) if form. is _ valid ( ) : data = form. cleaned _ data gateway = data ['gate...
[ 0.18453699350357056, 0.05477141588926315, 0.8025494813919067, -0.5100632905960083, -0.18644346296787262, -0.656403124332428, -0.27159103751182556, 0.6386891007423401, 0.23222410678863525, 0.7977676391601562, 0.7522644996643066, -0.33083948493003845, 0.5754913687705994, 0.9589304327964783, ...
def device _ state _ attributes ( self ) : data = { attr _ battery _ critical : self. _ nuki _ device. battery _ critical, attr _ nuki _ id : self. _ nuki _ device. nuki _ id, } return data
[ -0.6866135001182556, -0.5723705291748047, 0.3500522971153259, 0.05834800377488136, -0.5044466257095337, -0.024422334507107735, -0.1961723417043686, -0.0743284672498703, -0.30169978737831116, 0.0005881019751541317, -0.5199172496795654, -0.47168946266174316, 0.564156174659729, -0.36932817101...
def train ( self, session, dataset, train _ dir, embeddings ) : # some free code to print out number of parameters in your model # it's always good to check! # you will also want to save your model parameters in train _ dir # so that you can use your trained model to make predictions, or # even continue training contex...
[ -0.292662650346756, 0.13109658658504486, 0.6098495721817017, 0.334902286529541, -0.08771193027496338, -0.35499823093414307, 0.5992007255554199, 0.06203175708651543, -0.09912002831697464, 0.13926354050636292, -0.8155902624130249, 0.15184541046619415, 0.1493329554796219, 0.15135350823402405,...
def get _ heated _ steering _ wheel _ level ( self ) - > int : if self. data _ available : return self. _ vehicle _ data. get ( " climate _ state ", { } ). get ( " steering _ wheel _ heat _ level " ) return none
[ 0.10819973051548004, 0.13030153512954712, 0.400316059589386, 0.09381277859210968, 0.18526805937290192, -0.1181979849934578, -0.6168882250785828, -0.0998447835445404, -0.6991667747497559, 0.06552620232105255, -1.0923871994018555, 0.03598559647798538, -0.059736911207437515, 0.633098363876342...
def get _ samples _ multiple _ batches ( paths _ to _ samples _ info, google _ bucket _ id, sublist = none ) : paths _ to _ samples = pd. read _ excel ( paths _ to _ samples _ info, index _ col = 0 ) df _ list = [ ] for tsca _ id, paths in paths _ to _ samples. iterrows ( ) : if sublist is not none and tsca _ id not in...
[ 0.007086071651428938, 0.33625465631484985, 0.4718431234359741, 1.344969630241394, 0.6395031213760376, 0.43089041113853455, -0.28845712542533875, 0.30656111240386963, -0.5536845326423645, 0.008274548687040806, 0.02968939207494259, -0.11666984856128693, 0.7791059017181396, 0.2836537361145019...
def on _ paint _ extras ( self, dc ) : pass
[ 0.4557826817035675, -0.29648640751838684, 0.37873923778533936, -1.055538296699524, -0.49114152789115906, 0.5812293291091919, 0.39360788464546204, -0.019542962312698364, 1.2259749174118042, -0.49142327904701233, -0.4930223226547241, 0.7782973647117615, -0.3759680986404419, 1.071333646774292...
def doy _ estimator ( forcing, doy _ series, threshold, non _ prediction = 999 ) : # if threshold is not met for a particular row, ensure that a large doy # gets returned so it produces a large error non _ prediction _ buffer = np. expand _ dims ( np. zeros _ like ( forcing [ 0 ] ), axis = 0 ) non _ prediction _ buffer...
[ -0.8741171360015869, 0.5315276384353638, 0.5672095417976379, 0.10575049370527267, 0.18124857544898987, -0.41809535026550293, -0.021593794226646423, 0.14948581159114838, -0.7693582773208618, 0.31337228417396545, -0.008346033282577991, 0.6908186078071594, 0.29837700724601746, 0.5112336874008...
def genefinder ( rsid, genotype, filename ) : # project1. genefinder ('rs4434422 ','ag ','mygenome. txt') will return true with open ( filename,'rt') as fin : # return any ( ( ( rsid in line ) and ( genotype in line ) ) for line in fin ) return any ( ( ( rsid = = line. split ( ) [ 0 ] ) and ( genotype = = line. split (...
[ 0.1918940246105194, -1.103428840637207, 0.42968425154685974, 0.23028460144996643, -0.15406616032123566, -0.16521801054477692, -0.6571387648582458, 0.899968147277832, -0.7759237885475159, 0.17130601406097412, 0.472087025642395, 0.3836994767189026, -0.7452879548072815, 0.6587479114532471, ...
def start _ conversation ( self, bot _ id, bot _ name, member _ list, topic _ name, isgroup ) : activityresponseobject = {'bot': {'id': bot _ id,'name': bot _ name },'isgroup': isgroup,'members': [ {'id': member _ id,'name': mamber _ name } for member in member _ list ],'topicname': topic _ name } url = str ('https : /...
[ 0.011927989311516285, -0.6048526167869568, 0.7181307673454285, 0.6370538473129272, 0.5716590881347656, -0.3027759790420532, -0.7629231214523315, 0.06730285286903381, 0.010284684598445892, 1.2595574855804443, -0.31108927726745605, 0.4549194574356079, -1.676921010017395, 0.3643367290496826, ...
def clean ( self ) : self. unique _ combinations = { } self. reverse _ combinations = [ ] self. label _ count = none
[ -0.841336727142334, -0.4317283034324646, 0.29087594151496887, -0.4493638277053833, 0.3311859667301178, -0.06106087937951088, 1.0593174695968628, 0.5366542935371399, -0.5612760186195374, 0.06649249792098999, -0.8964755535125732, 0.5720438361167908, -0.23986604809761047, 0.03135178983211517,...
def forward ( self, predictions : mx. np. ndarray, labels : mx. np. ndarray, valid _ lengths : mx. np. ndarray, ) - > mx. np. ndarray : weight _ mask = mx. np. expand _ dims ( mx. np. ones _ like ( labels ), axis = - 1 ) # noinspection pyunresolvedreferences weight _ mask = mx. npx. sequence _ mask ( weight _ mask, val...
[ -0.4770759046077728, 0.5917789340019226, 0.5931849479675293, -0.05275433510541916, 0.12207873910665512, 0.709492027759552, -0.05491297319531441, 0.2729005515575409, -0.6683375835418701, -0.041154611855745316, 0.7959758043289185, 0.5837125182151794, 0.3911793529987335, -0.039796605706214905...
def nb _ times _ best _ _ dist ( logs ) : return np. sum ( logs ['expected _ best _ reward'] = = logs ['expected _ reward'], axis = 1 )
[ 0.1406165361404419, -0.14815929532051086, 0.4098241925239563, -0.07188664376735687, 0.7288079261779785, -0.10508748888969421, -0.40189188718795776, -0.17998088896274567, 0.3882872760295868, 0.8859615921974182, -0.7264904379844666, 0.42866387963294983, 0.5840795040130615, -0.255175918340683...
def has _ schedule ( self, schedule _ name = none, schedule _ id = none, task _ id = none ) : if self. _ get _ schedule _ id ( schedule _ name, schedule _ id, task _ id ) : return true return false
[ 0.6180967092514038, -0.18251411616802216, 0.4446585774421692, 0.9389718770980835, 0.0023692508693784475, -0.6409214735031128, -1.3019155263900757, 0.47608682513237, -0.08857806771993637, 0.19578354060649872, -0.27962785959243774, 0.5214530825614929, 0.2609268128871918, 0.30307990312576294,...
def test _ func ( ) : monitor. monitor + = 1
[ 0.07164324820041656, 0.36314883828163147, 0.40130141377449036, 0.5973538756370544, 1.0817508697509766, -0.14138926565647125, 1.6999750137329102, -0.5193337202072144, 0.17780105769634247, -1.6014600992202759, -0.7565498352050781, 0.10603555291891098, 0.042183730751276016, 0.1106967404484748...
def hasmodification ( cls ) : return false
[ -1.179580569267273, -0.5729796886444092, 0.4832492172718048, 0.4864749014377594, 0.4679429531097412, 0.3514960706233978, 0.14595215022563934, 0.7935876846313477, 0.49347570538520813, -0.22124509513378143, -0.2659027576446533, -0.5161636471748352, -0.3938833773136139, 1.5606368780136108, ...
def genreate _ pooled _ snv _ table ( name2snptable, name2scaffs, scaff2name2position2counts, scaff2all _ snvs ) : # def genreate _ pooled _ snv _ table ( snptables, names, name2position2counts, all _ snvs ) : ddsts = [ ] order = [ ] for scaff, name2position2counts in scaff2name2position2counts. items ( ) : dbs = [ ] n...
[ -0.3475440442562103, 0.09324874728918076, 0.6150157451629639, -0.439769983291626, -0.48685380816459656, 0.3983234167098999, 0.34277117252349854, -0.3436973989009857, 0.488651305437088, -0.39897164702415466, -0.6317688226699829, 0.19802170991897583, 0.5246217250823975, -0.2930505573749542, ...
def test _ auto _ verify _ released ( mock _ lfs, xfs, queue, simplenode, simplefile, archivefilecopy ) : simplenode. io _ class = " lustrehsm " simplenode. io _ config ='{ " quota _ group " : " qgroup ", " headroom " : 300000 }'# enable auto _ verify simplenode. auto _ verify = 1 # create file xfs. create _ file ( " /...
[ 0.19379837810993195, -0.001139958156272769, 0.6563831567764282, 0.3916113078594208, 0.2180115431547165, 0.39436715841293335, 0.09558470547199249, 0.8438936471939087, 0.011474085040390491, -0.34109964966773987, -0.4281160533428192, 0.4261017143726349, 0.060743995010852814, -0.03525459393858...
def produce ( # pylint : disable = too - many - arguments self, topic : str, value : messaget, flush : bool = true, on _ delivery : deliverycallbackt = none, fail _ silently : bool = false, ) - > none : logger. info ( " producing message. ", extra = { " topic " : topic, " value " : value, " flush " : flush, }, ) try : ...
[ 0.2685500979423523, 0.761558473110199, 0.5748567581176758, 0.32424813508987427, -0.6287341713905334, -0.2826559841632843, 0.19992408156394958, -0.5054551362991333, -0.13125930726528168, -0.34644490480422974, 0.36406418681144714, -0.329189658164978, -0.021831829100847244, 0.3425449132919311...
def _ _ init _ _ ( self ) : tm _ preference _ file = ('{ }. plist '. format ( environ ['tm _ app _ identifier'] ) if'tm _ app _ identifier'in environ else'com. macromates. textmate. plist') self. default _ values = {'latexautoview': 1,'latexengine': " pdflatex ",'latexengineoptions': " ",'latexverbose': 0,'latexuselate...
[ -0.059575945138931274, -0.39138057827949524, 0.49695348739624023, 0.14527344703674316, -0.06037403643131256, 0.02705884538590908, -0.9177162647247314, 0.3623489737510681, -0.5085459351539612, 0.257083922624588, -0.445553719997406, -0.35350313782691956, -0.5037818551063538, 1.04289662837982...
def test ( ) : import unittest tests = unittest. testloader ( ). discover ('tests') unittest. texttestrunner ( verbosity = 2 ). run ( tests )
[ 1.0541062355041504, 0.7142888903617859, 0.31522756814956665, 0.3143027126789093, 1.1972639560699463, 0.31295427680015564, 0.260395884513855, 0.4990655481815338, -0.020186446607112885, -0.2889373302459717, -0.2518767714500427, 0.06829232722520828, -0.3291386663913727, 0.4624207019805908, ...
def normalize _ comma _ separated _ topic _ ids ( comma _ separated _ topic _ ids : str ) - > list [ str ] : if not comma _ separated _ topic _ ids : return list ( [ ] ) return list ( comma _ separated _ topic _ ids. split ( ',') )
[ 0.19310998916625977, -1.2479604482650757, 0.01798914559185505, -0.07942211627960205, -0.11277637630701065, 0.6832528114318848, -1.0276485681533813, 0.41709190607070923, 1.0054757595062256, 0.7778490781784058, 0.29322370886802673, 0.3154657185077667, -1.0303499698638916, -0.0046870871447026...
def create _ workflow ( ) : data = json. loads ( request. data ) path = path ( app. config ['base _ path'] ) / unicode ( data ['name'] ) # setup default configuration config = app. config ['default _ config'] # overlay user - supplied values, if existant user _ config = data. get ('config ', none ) if user _ config is ...
[ -0.4865456223487854, -0.24019315838813782, 0.45939621329307556, 0.6249635815620422, -0.0946081280708313, -0.30353376269340515, -0.12787628173828125, -0.3902466297149658, -0.30188220739364624, -0.11051277071237564, -1.124009132385254, -0.7944673895835876, -0.2468578815460205, 0.467201799154...
def ln _ gaussian _ prior ( x, mean, sigma ) : if x > = 0 : return gaussian _ prior ( x, mean, sigma ) else : return - np. inf
[ 0.4196884036064148, -0.3941619098186493, 0.4959043562412262, -0.019046079367399216, -0.7707052826881409, -0.08119673281908035, -1.195947527885437, -0.5189868807792664, 0.6201283931732178, -0.09413054585456848, 0.7526605129241943, 0.768810510635376, -0.03755190595984459, -0.1934711784124374...
def get _ model _ perms ( self, request ) : return { }
[ -1.362234115600586, -0.01356639713048935, 0.3370632529258728, 0.5151054263114929, -0.472001850605011, 0.11055295169353485, 0.08744253218173981, -0.7260240316390991, -0.8901278972625732, 0.04607141762971878, -0.6955046653747559, -0.9464885592460632, -0.14514292776584625, 0.38717931509017944...
def voxel _ nature _ cnn ( scaled _ images, * * kwargs ) : activ = tf. nn. relu layer _ 1 = activ ( voxel _ conv ( scaled _ images,'c1 ', n _ filters = 8, filter _ size = 1, stride = 1, init _ scale = np. sqrt ( 2 ), * * kwargs ) ) layer _ 2 = activ ( voxel _ conv ( layer _ 1,'c2 ', n _ filters = 64, filter _ size = 6,...
[ 0.5613399744033813, -0.49130091071128845, 0.6495630145072937, 0.6549161672592163, 0.11284288018941879, -0.10668646544218063, 0.07725020498037338, -0.03178685903549194, -1.0210373401641846, 0.535622239112854, -0.054998330771923065, 0.3507753908634186, -0.22964806854724884, -0.11494080722332...
def get _ current _ zone _ length ( bot : bot ) - > int : result = re. search ( " [ 0 - 9 ] + ", bot. driver. find _ element _ by _ xpath ( " / / div [ @ class ='content'] " " / / div [ @ class ='water'] " " / / div [ contains ( @ class,'active') ] " " / / div [ @ class ='length'] " ). text, ) if result : return int ( ...
[ -0.24291065335273743, -0.2513684630393982, 0.8088424801826477, 0.21110577881336212, 0.16311703622341156, 0.3466917872428894, 1.8538299798965454, 0.4047108292579651, 0.39413243532180786, 0.2965787649154663, -0.5291998386383057, -0.02785181812942028, -0.6049663424491882, 0.5231394171714783, ...
def prepare _ batch _ sample _ set _ for _ metadata _ export ( path, tsca _ id ) : raw = pd. read _ table ( path ) print ( " % d samples in this batch " % raw. shape [ 0 ] ) # create dfs to upload all _ samples = pd. concat ( [ pd. dataframe ( index = raw. index, columns = ['membership : sample _ set _ id'], data = tsc...
[ -0.356803834438324, -0.5678817629814148, 0.6493209004402161, -0.46372103691101074, -0.24174639582633972, -0.30948448181152344, 0.16392575204372406, -0.239607572555542, -0.43570029735565186, 0.7232571244239807, 0.49440798163414, 0.2824455201625824, 0.7039303779602051, 0.02194206602871418, ...
def download _ single _ image ( self, params ) : preview _ url, original _ url, search _ term = params self. download _ fault = 0 timeout = 1 try : if preview _ url. startswith ( " http : / / " ) or preview _ url. startswith ( " https : / / " ) : response = urllib. request. urlopen ( preview _ url, data = none, timeout...
[ -0.561725914478302, 0.49478647112846375, 0.8619452118873596, 0.5712249279022217, -0.552431046962738, -0.30360549688339233, 0.475134015083313, 0.8157622218132019, 0.48216331005096436, 0.379054456949234, -0.09092694520950317, -0.21285277605056763, 0.0723041519522667, 0.9027727842330933, -0...
def test _ atomic _ hex _ binary _ length _ 1 _ nistxml _ sv _ iv _ atomic _ hex _ binary _ length _ 2 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - length - 2. xsd ", instance = " nistdata / ...
[ 0.11086630076169968, -0.5361694693565369, 0.4330548644065857, 0.7243028283119202, -0.1745510697364807, 0.3561617136001587, 0.15757891535758972, 0.18337944149971008, -0.7944240570068359, 0.2848550081253052, -1.0266860723495483, -0.2767229676246643, 0.21328243613243103, 0.9799543619155884, ...
def reformat ( rows ) : last = outside [ 0 ] for row in rows : if not row : last = outside [ 0 ] else : # flip token / tag and sanitise the tag sequence. tag = row [ 3 ] tag = last = fix _ tag ( tag, last ) row [ 3 ] = row [ 0 ] row [ 0 ] = tag yield row
[ -0.24293793737888336, -0.03826059773564339, 0.5584267973899841, -0.4078442454338074, -0.3984314501285553, -1.3133351802825928, -0.8989791870117188, 0.20805613696575165, -0.1839347928762436, 0.3709934949874878, 0.0817173570394516, -0.43995481729507446, 0.3479774594306946, 0.5307002663612366...
def test _ epoch _ manipulate ( ) : global dbusdaemon proc, filename, socks = test _ experiment. start _ experiment ( dbusdaemon ) # now check that the device lives on the bus dbus _ test _ bus = dbus. bus. busconnection ( dbusdaemon. address ) p = dbus _ test _ bus. get _ object ( " soma. recording. experiment ", " / ...
[ 0.09439325332641602, 1.211910367012024, 0.5866442322731018, -0.17021909356117249, 0.3193422853946686, 0.2593989670276642, 0.4996682107448578, 0.9842274188995361, -0.6411241888999939, -0.3843139410018921, -0.24681808054447174, 0.7370145916938782, -0.7055508494377136, -0.01691518723964691, ...
def type ( self, type ) : self. _ type = type
[ -0.32935619354248047, 0.10083340108394623, -0.26466044783592224, 0.12795951962471008, 0.665567934513092, 0.5896559953689575, 0.621394157409668, -0.2589966058731079, -0.23707804083824158, -0.0581749863922596, -0.7010132074356079, 0.19177821278572083, -0.5846775770187378, 0.6979304552078247,...
def pytest _ addoption ( parser ) : parser. addoption ( " - - installation ", action = " store _ true ", default = false, help = " run tests that require installation " )
[ 0.8255197405815125, 0.13992291688919067, 0.5519204139709473, 0.7200048565864563, 1.4131337404251099, 0.44454169273376465, 1.066872239112854, 0.3785367012023926, 0.7735865116119385, 0.7261627316474915, -0.4241744577884674, -0.6880599856376648, -0.21634183824062347, 1.0528312921524048, -0....
def orderbyrel ( jobs, kw, algo ) : for i in range ( len ( jobs ) ) : if algo = = 1 : jobs [ i ] [ 5 ] = levenshtein _ distance ( jobs [ i ] [ 0 ]. strip ( ), kw ) elif algo = = 2 : jobs [ i ] [ 5 ] = damerau _ levenshtein _ distance ( jobs [ i ] [ 0 ]. strip ( ), kw ) elif algo = = 3 : jobs [ i ] [ 5 ] = hamming _ dis...
[ 0.38680794835090637, -0.045584071427583694, 0.7708379030227661, -0.8146923184394836, -1.0621587038040161, -0.005712695419788361, 0.3439295291900635, -0.34079989790916443, -0.5501351356506348, 0.3846101760864258, -0.45569702982902527, 0.020509924739599228, -0.6574339866638184, -0.1775696128...
def generate _ report ( self ) : self. logger. debug ( " generate html report " ) left = " " time = " " html = " " if self. rddepot. ischecked ( ) : modus = " depot " elif self. rdcontentleft. ischecked ( ) : modus = " content _ left " else : modus = " repo " try : self. logger. debug ( " getting reference server from ...
[ -0.2209516316652298, 0.5527336001396179, 0.8702168464660645, -0.7026044130325317, 0.005567256361246109, 0.5255793929100037, 0.823236346244812, -0.8873307704925537, -0.10140354186296463, -0.03261620178818703, -0.04570590332150459, -0.44787919521331787, -0.5163798332214355, 1.685858011245727...
def reviewhome ( self, inputevent ) : context = self. getflatreviewcontext ( ) context. gobegin ( ) self. _ reviewcurrentline ( inputevent ) self. targetcursorcell = self. getbraillecursorcell ( ) return true
[ 0.22692479193210602, -0.5750479102134705, 0.5264277458190918, 0.7260061502456665, 0.04210836440324783, 0.8802984952926636, 0.7383266687393188, 0.050209660083055496, 0.03417790308594704, -0.20093093812465668, -0.2134975641965866, 1.0587180852890015, -0.9719820618629456, 0.03059503249824047,...
def _ write _ int ( self, x ) : while x > = 128 : b = x & 127 self. _ write ( chr ( b | 128 ) ) x = x > > 7 self. _ write ( chr ( x ) )
[ -0.6958892345428467, 0.5570806860923767, 0.29399219155311584, -0.6658690571784973, -0.4481515884399414, 0.47222015261650085, -0.5862158536911011, -1.1143450736999512, 0.14637911319732666, 0.06073771417140961, -0.8216871023178101, -0.17137926816940308, -0.3060005307197571, -0.01327109988778...
async def wait ( self, state _ or _ states : union [ any, sequence [ any ] ] ) - > tuple [ any, any ] : states = ensure _ list ( state _ or _ states ) if self. _ state in states : return ( none, self. _ state ) watcher : future = future ( ) watcher. _ states = states # type : ignore # pylint : disable = protected - acc...
[ 0.02544388733804226, 0.49904221296310425, 0.37130576372146606, -0.37589511275291443, 0.38228994607925415, -0.8288188576698303, -0.8645406365394592, -0.3561239540576935, 0.3536595106124878, -0.5638255476951599, -0.528209924697876, -0.503096342086792, 0.5791147947311401, 0.3443949520587921, ...
def close ( ) : conn. commit ( ) cursor. close ( )
[ 0.5154933929443359, -0.7926663160324097, 0.7986607551574707, 0.20776349306106567, -0.13483598828315735, 0.7900269031524658, 0.19386911392211914, 1.1359261274337769, -1.367624282836914, 0.13500621914863586, 0.553267776966095, -0.2967594861984253, -0.6398712992668152, 0.6471455693244934, 0...
def get _ computer _ move ( game _ board, computer ) : row = random. randint ( 0, 2 ) col = random. randint ( 0, 2 ) " " " checks to see if the row and col input are valid inputs. otherwise, the computer must continue to generate random number coordinates " " " while not is _ legal _ move ( game _ board, row, col ) : r...
[ 0.029344353824853897, 0.5159619450569153, 0.657813310623169, -0.20876219868659973, 0.058873679488897324, 0.6354040503501892, 0.501262903213501, -0.052384231239557266, -0.23799888789653778, 0.06851045787334442, -0.03579478710889816, -0.020406676456332207, -0.7364762425422668, -0.49843025207...
def compute _ non _ relational _ message ( receiver, senders, senders _ mask, granularity, message _ fn ) : mx _ sr = [ ] num _ senders = senders. size ( 1 ) for s in range ( num _ senders ) : sender = senders [ :, s ] if granularity in {'v2 ','specific'} : sender = torch. cat ( [ receiver, sender ], dim = - 1 ) m _ sr...
[ -0.6286171078681946, 0.7555680274963379, 0.5585846900939941, 0.7279722690582275, 0.26723238825798035, -1.3562827110290527, 0.33858180046081543, 0.672100841999054, -0.0008837176137603819, 0.9027777910232544, 0.041855793446302414, 0.38232967257499695, 0.19237199425697327, -0.2085626572370529...
def to _ dict ( self ) : result = { } for attr, _ in six. iteritems ( self. openapi _ types ) : value = getattr ( self, attr ) if isinstance ( value, list ) : result [ attr ] = list ( map ( lambda x : x. to _ dict ( ) if hasattr ( x, " to _ dict " ) else x, value ) ) elif hasattr ( value, " to _ dict " ) : result [ att...
[ -1.0918314456939697, -0.2934507131576538, 0.8755732774734497, -0.9140207171440125, -0.5602613091468811, -0.39216169714927673, 0.5610913038253784, -0.716509222984314, -0.11130552738904953, -0.010403653606772423, -0.6907275915145874, -0.47398683428764343, 0.07651932537555695, 0.7405382394790...
def gotograin ( self, event, plot ) : # # go to grain id specified in event self. grainid = int ( event ) self. grainplot. arrow = none self. currdicgrain = self. currmap [ self. grainid ] self. currebsdgrain = self. currdicgrain. ebsdgrain self. redraw ( )
[ 0.33490636944770813, 0.03321710601449013, 0.45969152450561523, -0.4564404785633087, 0.024562232196331024, 0.19496168196201324, 1.0317879915237427, 0.011292148381471634, -0.2996899485588074, 0.19724377989768982, 0.022990871220827103, 1.3928782939910889, 0.02564583346247673, 0.17683260142803...
def get _ db _ auth _ addr ( ) : web _ address ='https : / / pulsar - cat. icrar. uwa. edu. au /'if'mwa _ pulsar _ db _ user'in os. environ and'mwa _ pulsar _ db _ pass'in os. environ : auth = ( os. environ ['mwa _ pulsar _ db _ user'], os. environ ['mwa _ pulsar _ db _ pass'] ) else : auth = none raise noautherror ( "...
[ -0.5221260786056519, -0.9532623291015625, 0.7434576153755188, -0.25050482153892517, -0.3410690724849701, 0.08470622450113297, 0.2015068680047989, 0.5495044589042664, 0.1946747899055481, -0.16282062232494354, 0.4532061815261841, 1.3504084348678589, -0.4972997009754181, 1.0368552207946777, ...
def _ _ init _ _ ( self, msg, exception _ details = none ) : message = " % s with exceptions % s " % ( msg, exception _ details ) super ( ). _ _ init _ _ ( message ) self. exception _ details = exception _ details
[ 1.9941645860671997, 0.7305834889411926, 0.4458985924720764, -0.05844574049115181, 0.2691931128501892, -0.6169165968894958, -0.46814408898353577, 0.9988390803337097, 0.16775177419185638, -1.0503109693527222, 0.6099188327789307, 0.04419718310236931, -0.21562331914901733, 1.1519713401794434, ...
def executerequest ( self, method, api _ route = none, query _ args = none, data = none ) :
[ -1.7730684280395508, -0.08951560407876968, 0.498771607875824, -0.0009089697268791497, 1.5555493831634521, -0.3407197892665863, -0.9292933344841003, 0.6327278017997742, -0.07336392998695374, 0.1517476886510849, 0.487362265586853, -0.1331300437450409, -0.19162949919700623, -0.475224614143371...
def test _ split _ shuffled _ df _ default ( df ) : # shuffle the dataframe df _ shuffled = df. sample ( frac = 1 ) test = drophighpsifeatures ( ) base, test = test. _ split _ dataframe ( df _ shuffled ) # the base dataframe should contain indexes from 0 to 499 set ( base. index ) = = { _ for _ in range ( 0, 500 ) } # ...
[ -0.6232674717903137, 0.9869318604469299, 0.3502838611602783, 0.7009713649749756, 1.106873631477356, -0.42381396889686584, 1.0360761880874634, 0.3237525522708893, 0.5547892451286316, -0.6833309531211853, -0.7021917700767517, -0.35469159483909607, -0.24144960939884186, -0.3377653658390045, ...
def full _ join ( test, * table _ arg, * * table _ kwarg ) : pa, pb, ta, tb = _ join _ args ( table _ arg, table _ kwarg ) table = _ composite _ table ( pa, pb, ta, tb ) _ join _ loop ( table, test, pa, pb, ta, tb, false, true ) return table
[ 0.9571326971054077, -0.013727610930800438, 0.6049756407737732, 0.726900041103363, -0.2379319816827774, 0.5083405375480652, 0.622601330280304, 0.14709220826625824, -0.24665489792823792, -0.04178990051150322, 0.463980495929718, -0.6301771402359009, -1.0720258951187134, -0.4796857535839081, ...
def get _ dependencies ( spack _ path, package, packages ) : spack _ bin = os. path. join ( spack _ path,'bin ','spack') cmd = [ spack _ bin,'find ','- - show - full - compiler ','- lv'] code, output, error = run _ cmd _ output ( cmd ) installed _ packages = { } for line in output. split ('\ n') : line = line. strip ( ...
[ 0.4316911995410919, -0.008070740848779678, 1.0406359434127808, -0.151849627494812, 0.4396874010562897, -0.5563571453094482, 0.16819167137145996, 0.3031526207923889, -0.7339118719100952, -0.15984892845153809, -0.5928962826728821, -0.4245298504829407, -0.30924832820892334, 0.9384481310844421...
def active _ route _ latitude ( self ) - > optional [ float ] : if " active _ route _ latitude " in self. _ vehicle _ data. get ( " drive _ state ", { } ) : return self. _ vehicle _ data. get ( " drive _ state ", { } ). get ( " active _ route _ latitude " ) return none
[ 0.13185860216617584, -1.7114020586013794, 0.5806244015693665, -0.26792722940444946, 0.5421528220176697, -0.5340276956558228, -0.23671050369739532, -0.11738473176956177, -0.19129595160484314, 0.5425247550010681, 0.39830735325813293, 0.31752651929855347, -0.2515965402126312, -0.9102706909179...
def test _ atomic _ id _ enumeration _ 2 _ nistxml _ sv _ iv _ atomic _ id _ enumeration _ 3 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / id / schema + instance / nistschema - sv - iv - atomic - id - enumeration - 3. xsd ", instance = " nistdata / atomic / id / schem...
[ -0.3809565007686615, -0.5657712817192078, 0.5718771815299988, 0.6553948521614075, -0.3256787359714508, 0.62277752161026, -0.14767006039619446, 0.028908681124448776, 0.714286744594574, 1.3281946182250977, -0.10421288013458252, 0.4701802730560303, 0.324258416891098, -0.6474615335464478, 0....
def possible _ hit _ ships ( board, ships, coordinate, hit _ option ) : seq _ length = hit _ option ['seq _ length'] # length of sequence of hits. ship _ fits = 0 # count of ships that could be this sequence. y, x = coordinate # based on the sequence's position, ascertain if there is enough room to fit a ship length. #...
[ -0.7621936202049255, -0.21084310114383698, 0.6876612305641174, -0.6356923580169678, -0.2770082354545593, -0.1907838135957718, 0.46101510524749756, 0.03101516142487526, -0.03288913890719414, 0.7530309557914734, -0.2435193806886673, 0.5818353295326233, 0.11553199589252472, -0.650538086891174...
def shutdown ( self ) : pass
[ -0.26774483919143677, -1.5082571506500244, -0.01705523394048214, 0.880611777305603, 0.4223591089248657, 0.8051880598068237, 0.9282345771789551, 0.4924866855144501, -0.005293499678373337, -0.24309781193733215, -0.24565327167510986, 0.08879107236862183, -0.7610750794410706, -0.14590491354465...
def autocmd ( name, pattern ='* ', sync = false, allow _ nested = false, eval = none ) : def dec ( f ) : f. _ nvim _ rpc _ method _ name ='autocmd : { } : { } '. format ( name, pattern ) f. _ nvim _ rpc _ sync = sync f. _ nvim _ bind = true f. _ nvim _ prefix _ plugin _ path = true opts = {'pattern': pattern } if eval ...
[ -0.19541242718696594, -0.5434699058532715, 1.022626519203186, -0.18492136895656586, -0.31999287009239197, -0.6417859196662903, 0.7200123071670532, 0.012015895918011665, 0.30125123262405396, -0.32174620032310486, -0.10903289914131165, 0.5472198128700256, 0.5356429219245911, -0.3785661160945...
def get _ exp _ list _ df ( self, * * kwargs ) : df _ list = get _ exp _ list _ df ( exp _ list = self. exp _ list, verbose = self. verbose, * * kwargs ) return df _ list
[ -0.4490134119987488, -0.2966257929801941, 0.25210702419281006, 0.6088457703590393, 0.35574448108673096, -0.728008508682251, -0.28172677755355835, 1.0464719533920288, 0.5536208748817444, -0.38687217235565186, -0.20030561089515686, 0.6576772928237915, -0.7150121927261353, 0.14663782715797424...
def get _ api _ v1 ( self, endpoint, params = none ) : headers = { " authorization " : " % s % s " % ( self. auth. token _ type, self. auth. access _ token ) } url = " { } / { } ". format ( self. api _ url, endpoint ) resp = self. session. get ( url, params = params, headers = headers, timeout = self. default _ timeout...
[ -0.955504298210144, -0.4224669635295868, 0.7563529014587402, 0.28634950518608093, -0.13261909782886505, -0.5346444845199585, -1.1788650751113892, -0.4218064546585083, -0.2026319056749344, 0.9184257984161377, -0.20688548684120178, 1.2663649320602417, -0.7255120277404785, -0.7488958239555359...
def test _ do _ region _ show _ calls _ region _ manager _ with _ fields ( self, mock _ get ) : client = mock. mock ( ) session = mock. mock ( ) session. project _ id = 1 client. regions = regions. regionmanager ( session,'http : / / 127. 0. 0. 1 /') test _ args = namespace ( id = 1 ) regions _ shell. do _ region _ sho...
[ 0.3538444936275482, 0.6639814376831055, 0.36805298924446106, -0.529149055480957, 0.29851454496383667, 0.09291629493236542, -0.8248973488807678, -0.8350197672843933, 0.320112407207489, -0.7506000995635986, -0.2959880828857422, 0.6846361756324768, -0.022963665425777435, 0.9536747932434082, ...
def _ shiftaliendown ( self ) : self. _ steps = self. _ steps + 1 self. _ alienfire ( ) for i in self. _ aliens : if i is not none : for j in i : if j is not none : j. y = j. y - alien _ v _ walk
[ -0.1419893056154251, -0.3263047933578491, 0.6669328808784485, 0.56865394115448, 0.5601413249969482, 0.5012784004211426, 0.6512913107872009, 0.09985169023275375, -0.20680251717567444, -0.6357830166816711, 0.3059859275817871, -0.15868689119815826, -0.6647389531135559, 1.176658272743225, 0....
def _ update _ namespace _ references ( self, namespace ) : for name in namespace. typedefs. values ( ) : self. _ update _ type _ references ( namespace, name ) for name in namespace. enumerations. values ( ) : self. _ update _ type _ references ( namespace, name ) for name in namespace. structs. values ( ) : self. _ u...
[ -1.2366578578948975, -0.5173130631446838, 0.6564465761184692, -0.8901525735855103, -0.009901221841573715, 0.13613133132457733, 0.04974887892603874, -1.6274136304855347, 0.48939263820648193, 0.584533154964447, -0.4773125648498535, 0.4480583071708679, -0.7335655093193054, 2.0168933868408203,...
def y ( self ) : return self. _ y
[ -0.4691777229309082, -0.48634740710258484, 0.3861790597438812, -0.012666984461247921, 0.440446674823761, 0.7547146081924438, 0.9984039068222046, -0.6021562218666077, -0.3152507543563843, -1.7897186279296875, -0.5292863249778748, 0.6750957369804382, 0.43195220828056335, -0.5890169739723206,...
def _ read _ bytes ( self, count, break _ on _ termchar = false, * * kwargs ) : if count > = 0 : return self. connection. read _ bytes ( count, break _ on _ termchar = break _ on _ termchar, * * kwargs ) elif break _ on _ termchar : return self. connection. read _ raw ( none, * * kwargs ) else : # pyvisa's ` read _ raw...
[ -0.029171941801905632, 0.262107789516449, 0.5924973487854004, 0.475796639919281, -0.7665837407112122, -0.64089035987854, -0.7484157085418701, -0.689703643321991, -0.5242278575897217, 0.05675549432635307, 0.7228032350540161, -0.33080583810806274, -0.4835672676563263, -0.5093799233436584, ...
def _ get _ preds _ vector ( self, sess, inputs, preds, is _ training ) : utils. thin _ line ( ) print ('getting prediction vectors...') pred _ all = [ ] _ batch _ generator = utils. get _ batches ( self. x _ test, batch _ size = self. cfg. test _ batch _ size, keep _ last = true ) if len ( self. x _ test ) % self. cfg...
[ -0.3537343144416809, -0.22889962792396545, 0.9039065837860107, 0.5731452107429504, 0.22919462621212006, 0.2075766623020172, 0.28999724984169006, 0.04771246016025543, 0.1090923473238945, 0.183771550655365, 0.39982596039772034, 0.9871048331260681, -0.1543474644422531, 0.5392788052558899, 0...
def test _ inserted _ namespace ( self ) : obj = object ( ) self. namespace ['my _ namespace _ key'] = 414 self. namespace ['secret _ object'] = obj reporter = yield self. get _ reporter _ with _ suite _ run ( ) result = self. get _ result _ by _ test _ name ( reporter. errors,'statustest _ raise _ exception') globs, l...
[ 0.5732346773147583, 0.4386020600795746, 0.4542638957500458, 0.24213187396526337, 0.22382643818855286, -0.02347755618393421, 0.5018953084945679, -0.15612466633319855, 0.9831326603889465, -0.318372905254364, -1.5313036441802979, -0.19887153804302216, -0.9133520722389221, 1.096269965171814, ...
def _ _ eq _ _ ( self, other ) : if not isinstance ( other, loyaltyledgerentry ) : return false return self. to _ dict ( ) = = other. to _ dict ( )
[ 0.039621707051992416, -0.5823189616203308, 0.5895983576774597, -1.3644654750823975, 0.27870962023735046, 0.37916046380996704, -1.4372502565383911, -0.4258121848106384, 0.9368711113929749, 0.4637179374694824, -1.0958434343338013, 0.4404197335243225, -0.25510066747665405, 0.7030360102653503,...
def make _ progress _ reporter ( self ) : return nullprogressreporter ( )
[ 0.8324623107910156, -0.6602307558059692, 0.4057806134223938, -0.7442824244499207, -0.13869445025920868, 0.004505558405071497, -0.04438469186425209, 0.021044939756393433, -0.15242306888103485, -2.2804927825927734, 0.3159402012825012, -1.4927440881729126, -1.549120545387268, 0.62584793567657...
def convert _ to _ new _ cycle ( context, logger = none ) : if logger is none : # called as upgrade step : define our own logger. logger = logging. getlogger ('ageliaco. rd2') # run the catalog. xml step as that may have defined new metadata # columns. we could instead add < depends name = " catalog " / > to # the regi...
[ -0.8690658807754517, -0.33668699860572815, 0.6695706248283386, 0.22623948752880096, 0.1496441811323166, -0.19163964688777924, 0.4602610468864441, -1.1775251626968384, -0.5668274164199829, 0.8313735723495483, -0.5660433769226074, 0.6473692655563354, 0.0004311187658458948, -0.248489394783973...
def reload _ package _ platforms ( hass : homeassistant ) - > bool : return asyncio. run _ coroutine _ threadsafe ( async _ reload _ package _ platforms ( hass ), hass. loop ). result ( )
[ -1.0302376747131348, 1.4799901247024536, 0.3685148358345032, 1.3479331731796265, -0.03634967654943466, -0.10402610898017883, -0.06390403211116791, -0.6584479212760925, -0.033202145248651505, 0.6555349826812744, -0.5380339026451111, -0.09096571058034897, -0.16353407502174377, 0.424111813306...
def test _ transient _ regions ( ) : dom = pc. box2poly ( [ [ 0. 0, 4. 0 ], [ 0. 0, 3. 0 ] ] ) def cont _ predicates ( ) : p = dict ( ) p ['safe'] = pc. box2poly ( [ [ 0. 5, 3. 5 ], [ 0. 5, 2. 5 ] ] ) ppp = abstract. prop2part ( dom, p ) ppp, new2old _ reg = abstract. part2convex ( ppp ) ppp. plot ( ) return ppp def dr...
[ 0.4377468228340149, -0.06324216723442078, 0.8111053109169006, -0.42827123403549194, 0.3237054646015167, 0.03381434455513954, 0.352383553981781, -0.22233423590660095, -0.1737658828496933, -0.6407740116119385, -0.8002310395240784, -0.02754111774265766, 0.3169943690299988, 0.19690755009651184...
def yearly _ relative ( self ) : if self. schedule _ freq _ type = ='yearly _ relative': return {'active _ start _ time': schedulepattern. _ time _ converter ( self. _ pattern ['active _ start _ time'],'% h : % m ', false ),'relative _ time': schedulepattern. _ relative _ day [ self. _ pattern ['freq _ relative _ inter...
[ -0.021356523036956787, -0.48739534616470337, 0.929184079170227, -0.27493909001350403, -1.0331889390945435, 0.4570457339286804, 0.20543231070041656, -0.20717187225818634, -0.41375812888145447, 0.8071483969688416, -0.7660889029502869, 0.011456199921667576, -0.31530487537384033, -0.3124078512...
def test _ atomic _ any _ uri _ enumeration _ nistxml _ sv _ iv _ atomic _ any _ uri _ enumeration _ 1 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - enumeration - 1. xsd ", instance = " nistdata / a...
[ -0.829226016998291, -0.6000747084617615, 0.5888859629631042, 0.7144328951835632, -0.05908485874533653, 0.11091645061969757, 0.14154715836048126, 0.0684114322066307, 0.6310361623764038, 0.16030055284500122, 0.42623087763786316, -0.477693110704422, -0.46199142932891846, -0.06477134674787521,...
def test _ atomic _ hex _ binary _ min _ length _ nistxml _ sv _ iv _ atomic _ hex _ binary _ min _ length _ 1 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - minlength - 1. xsd ", instance = " ...
[ 0.16448907554149628, -0.5184105634689331, 0.4282552897930145, 0.8192576169967651, -0.31827864050865173, 0.2709900438785553, -0.5987592935562134, -0.012697690166532993, 0.08928309381008148, 0.25883209705352783, -0.5020103454589844, -0.24999043345451355, -0.1852058321237564, 0.57812321186065...
def encodeasmarket ( data ) : cookies = [ ] if len ( data ) > 39 : cookies = encodeascookies ( data [ 39 : ] ) data = data [ : 39 ] # if needed, pad the data to 80 characters hexdata = binascii. hexlify ( data ) if len ( hexdata ) < 78 : padsize = 78 - len ( hexdata ) padding = [ ] for index in range ( padsize ) : padd...
[ -0.1584223508834839, -0.3432031273841858, 0.5812329053878784, -0.586050271987915, -0.5826123356819153, -0.8564005494117737, -0.2574630677700043, 0.320954293012619, 1.161192774772644, -0.220010444521904, -0.15232232213020325, 0.7100411057472229, 0.1709934026002884, 0.9224616289138794, 0.0...
def write _ wav ( data, path, sample _ rate = 16000, normalize = false ) : data = data. copy ( ) int16 _ max = np. iinfo ( np. int16 ). max int16 _ min = np. iinfo ( np. int16 ). min if normalize : if not data. dtype. kind = ='f': data = data. astype ( np. float ) norm _ coeff = 1. / np. max ( np. abs ( data ) ) * int1...
[ 0.26595941185951233, 0.07265808433294296, 0.9253592491149902, 0.04498318210244179, -0.07557576894760132, -0.47221967577934265, 0.12232990562915802, -0.3436044454574585, 0.7990122437477112, 0.11597346514463425, 0.6754661202430725, 0.294837087392807, -0.6195888519287109, -0.49722468852996826...
def forward _ expected ( self, inputs ) : if self. nobias : x, w = inputs b = none else : x, w, b = inputs y _ expected = f. convolution _ nd ( x, w, b, stride = self. stride, pad = self. pad, cover _ all = self. cover _ all, dilate = self. dilate, groups = self. groups ) return y _ expected. array,
[ -0.35792112350463867, 0.11844253540039062, 0.36324506998062134, 0.23099827766418457, -0.09880825132131577, 0.5064353942871094, 0.5790574550628662, -0.29719826579093933, 0.07168497890233994, -0.7358857989311218, 0.6221073865890503, 0.7270721793174744, 0.1601409763097763, 0.9130493402481079,...
def read _ c _ string ( self, address : int, maxlen : int = 0, encoding : str = " ascii " ) - > str : self. seek ( address ) length = 0 string = " " while ( char : = self. read ( 1 ) )! = b " \ x00 " : try : string + = char. decode ( encoding ) length + = 1 except unicodedecodeerror : print ( f " { char } at pos { leng...
[ 0.5527164936065674, -0.22434915602207184, 0.5449135899543762, -0.31992602348327637, -1.1360523700714111, 0.35668468475341797, -0.19901780784130096, -0.047765832394361496, 0.3848588764667511, -0.23118679225444794, 0.7432169318199158, 0.7466145753860474, -0.4003312587738037, -1.2066539525985...
def test _ atomic _ base64 _ binary _ pattern _ 4 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ pattern _ 5 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - pattern - 5. xsd ", instance ...
[ -0.12628696858882904, -0.44821783900260925, 0.40790024399757385, 1.078898310661316, -0.11384370177984238, -0.15015345811843872, 0.57258540391922, -0.5268276333808899, -0.5447486042976379, 0.6656566858291626, -0.7887637615203857, 0.06686653941869736, -0.9327614307403564, 0.19916611909866333...
def domain _ command ( reliability : str ) - > list [ commandresults ] : args = demisto. args ( ) domains = args. get ( " domain ", [ ] ) is _ recursive = argtoboolean ( args. get ( " recursive ",'false') ) should _ error = argtoboolean ( demisto. params ( ). get ('with _ error ', false ) ) demisto. info ( f " whois co...
[ -0.8496608138084412, 0.35567647218704224, 0.8667482733726501, -0.17806199193000793, 0.9480879306793213, -0.02564985491335392, 0.4079152047634125, -0.28307801485061646, -0.3135727643966675, 0.3538447916507721, 0.5463117957115173, 0.1409587562084198, 0.2580898106098175, -0.15683262050151825,...
def mean _ squared _ error ( estimates, targets ) : acc = 0 for i in range ( len ( estimates ) ) : diff = pow ( ( targets [ i ] - estimates [ i ] ), 2 ) acc + = diff n = 1 / estimates. shape [ 0 ] solution = n * acc return solution
[ -0.17215941846370697, -0.41784942150115967, 0.4071175158023834, 0.9922119975090027, 0.415766179561615, -0.4571804702281952, 0.27022403478622437, 0.07214261591434479, -0.1937221884727478, 1.134665846824646, 0.9970366358757019, 0.8439754843711853, 0.0444093681871891, 0.1770707368850708, 0....
def match ( self, patterns, limits = none ) : if limits is none : limits = [ none ] * len ( patterns ) else : err _ msg = " patterns and limits should be equal in length " assert len ( patterns ) = = len ( limits ), err _ msg def _ match ( pattern, limit ) : " " " find all matching paths to the pattern provided. " " " ...
[ -0.3593390882015228, 0.35076817870140076, 0.8478978276252747, -0.5678983330726624, 0.10534237325191498, -0.514617383480072, -0.11668369174003601, 0.3564443588256836, 0.45412757992744446, -0.0073174177668988705, 0.10832060128450394, 0.03226543590426445, -0.058688145130872726, -0.23158127069...
def test _ github _ signup ( self ) : pass
[ -0.2101709395647049, 0.04413735866546631, 0.2766023576259613, 1.124079704284668, 1.0648540258407593, 0.554920494556427, 1.1088569164276123, 0.93498694896698, -0.120979905128479, 0.04490417614579201, -0.4271033704280853, -0.38848447799682617, -0.9313284754753113, -0.47967928647994995, -0....
def _ extract _ message _ from _ line ( self, line ) : if line : split _ by _ colon = line. split (':') if len ( split _ by _ colon ) > 2 : return split _ by _ colon [ 2 ] return''
[ 0.23400309681892395, 0.3816298842430115, 0.7638711333274841, 0.6923274993896484, 0.23878471553325653, -0.3948812782764435, -0.3577638268470764, -0.13261303305625916, -0.5119199156761169, 0.6904608011245728, 0.04616091772913933, -0.06838183104991913, -0.8590400815010071, -0.4260857701301574...
def test _ add _ exe _ args _ list _ of _ mixed _ lists _ init ( ) : exe _ args = [ [ " 1 ", " 2 ", 3 ], [ " 4 ", " 5 ", 6 ] ] with pytest. raises ( typeerror ) as type _ error : settings = runsettings ( " python ", exe _ args = exe _ args ) assert " executable arguments were not list of str or str " in type _ error. v...
[ -0.4178318977355957, 0.03721433877944946, 0.6356987357139587, 0.6430932879447937, 1.3103270530700684, 0.8583457469940186, -0.26269903779029846, 0.3113052546977997, -0.1269105225801468, 0.42273059487342834, -1.0209673643112183, -0.4790268838405609, -1.0293515920639038, 1.4059576988220215, ...
def _ _ init _ _ ( self, ads _ hub, name, ads _ var ) : self. _ state _ dict = { } self. _ state _ dict [ state _ key _ state ] = none self. _ ads _ hub = ads _ hub self. _ ads _ var = ads _ var self. _ event = none self. _ attr _ unique _ id = ads _ var self. _ attr _ name = name
[ 0.33018243312835693, -0.29941844940185547, 0.550302267074585, -0.005574723239988089, -0.8563406467437744, -0.4155171513557434, -0.14153660833835602, 0.5589391589164734, 0.5297838449478149, 0.4027198851108551, -0.42211198806762695, 0.7422311305999756, 0.2805841565132141, 0.6159716844558716,...
def process _ rrevents ( conn, cursor, dom ) : for rrevent in allrrevents ( dom ) : print rrevent written = false tries = 0 while true : try : cursor. execute ('insert or ignore into disruptions ('+ \'update _ at, ltisid, eventstart, eventend, event _ type, category, title,'+ \'sector, location, description, lastmodifi...
[ -0.22129762172698975, -0.004721952602267265, 1.0093342065811157, -0.04447994381189346, 0.3738457262516022, -0.6642307639122009, 0.7691646218299866, 0.04267888888716698, -0.14167042076587677, 0.4311780631542206, -0.2952732741832733, -1.2475130558013916, -1.1368695497512817, 0.06297654658555...
def close ( self, avoidsave = false ) : logger. internal ( " entering configuration. close " ) if not avoidsave : configfileloader. saveguistate ( self ) application. unactivate ( ) for sc in self. _ compositefilters + self. _ applications : sc. cleanup ( ) for c in self. _ compositefilters : self. subconfigremoved. em...
[ -0.6390542984008789, -0.1682797372341156, 0.3916347026824951, -0.3957376182079315, -0.3743493854999542, 0.137632355093956, 1.2422152757644653, -0.0734243392944336, -0.8039953708648682, 0.3173164129257202, -0.5683004260063171, -0.45026063919067383, -0.8914958834648132, 0.9702730774879456, ...
def get _ score _ lists ( self, * * kwargs ) : score _ lists = get _ score _ lists ( exp _ list = self. exp _ list, savedir _ base = self. savedir _ base, score _ list _ name = self. score _ list _ name, filterby _ list = self. filterby _ list, verbose = self. verbose, * * kwargs ) return score _ lists
[ -1.0074151754379272, -0.05354945734143257, 0.45450007915496826, 1.164064645767212, 0.708988606929779, 0.3509525954723358, 0.028873199597001076, -0.11540793627500534, 0.4991518259048462, 0.834816575050354, -0.6335339546203613, 0.3677476942539215, -0.7184704542160034, 0.5579797625541687, -...
def refugees _ arrival ( self ) : rand _ percent = random. randint ( 1, 100 ) if rand _ percent < = game _ config. refugees _ arrival _ probability : refugees _ number = random. randint ( * game _ config. refugees _ number _ range ) log ( log. info, " refugees arrival happened, refugees number : { } ". format ( refugee...
[ -0.4196319580078125, -0.5174131989479065, 0.827044665813446, -0.251629114151001, 0.34555551409721375, 0.6212260127067566, 0.21934108436107635, -0.11300887912511826, 0.1252882331609726, 0.7771714329719543, -0.5799583196640015, 0.07871706038713455, 0.663632869720459, 0.3016609251499176, 0....
def test _ inputs _ default _ rows _ in _ table ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) self. assert _ util ( input _ page. table. get _ row _ count, 0 )
[ 0.2729170322418213, 1.1041678190231323, 0.38714367151260376, 1.131770372390747, 1.4943559169769287, 0.24346743524074554, 0.20956294238567352, 0.20702940225601196, 0.3496430516242981, -0.5433570146560669, 0.8374099731445312, -0.8499965071678162, -0.309516042470932, 0.7574708461761475, -0....
def mention ( self ) - > str : return self. member. mention
[ 1.0612940788269043, -1.5418970584869385, 0.5184506773948669, 0.23369136452674866, 0.569017767906189, 0.5141880512237549, -0.3528406023979187, -0.07040838897228241, 0.38194313645362854, 0.5599145889282227, 0.2023753523826599, 1.0650237798690796, -1.145126223564148, -0.1582159847021103, 0....
def test _ atomic _ hex _ binary _ pattern _ 3 _ nistxml _ sv _ iv _ atomic _ hex _ binary _ pattern _ 4 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - pattern - 4. xsd ", instance = " nistdata...
[ -0.3532649576663971, 0.2465197890996933, 0.6338996887207031, 0.6318568587303162, 0.022983316332101822, 0.5011857748031616, -0.3979678452014923, 0.07633417099714279, 0.17622967064380646, 0.16681234538555145, -0.4543251097202301, -0.8812513947486877, -0.3631420135498047, -0.00384345906786620...
def ispremium ( eptype = none ) : # fixme i thoroughly misunderstood the meaning of being logged in ( ack! ). # one can be freebie, yet log in. this borks the logic used to choose # resolution. login ( ) if not dict ['authentication'] : resetauthinfo ( ) authinfo = dict ['authentication'] if ( time. time ( ) - authinfo...
[ -1.100097894668579, -0.004837417509406805, 0.8662523031234741, 0.5169365406036377, -0.6154587864875793, -0.05739292502403259, -0.4586489796638489, -0.2851533591747284, 1.2076176404953003, -0.28680965304374695, -0.07802452892065048, 0.5266368389129639, -0.8905423879623413, 0.203454434871673...
def test _ logged _ out _ message _ delete ( self ) : message = message ( id = 0xf00f, text = " hello world ", user _ id = self. testuser. id ) db. session. add ( message ) db. session. commit ( ) with self. client as c : response = c. post ( f " / messages / { 0xf00f } / delete ", follow _ redirects = true ) self. ass...
[ 0.3079040050506592, 0.00909639522433281, 0.5352452993392944, 0.1918897032737732, 0.38343697786331177, 0.5308220386505127, 0.09978867322206497, -0.14574354887008667, 0.5957050323486328, -0.8776556253433228, 0.29673293232917786, 0.5822206735610962, -0.5243031978607178, 0.027541384100914, 0...
def _ _ init _ _ ( self, database ) : self. m _ database = database self. m _ tsd = threading. local ( ) self. m _ lock = threading. lock ( ) self. m _ anonid = 0
[ 0.3400290310382843, 0.11228379607200623, 0.3369729518890381, 0.25589069724082947, -0.3011850416660309, 0.34892380237579346, 0.18289509415626526, 0.8746615648269653, -0.032108161598443985, 0.20312093198299408, -0.3521783947944641, -0.6027251482009888, -0.46775251626968384, 1.474375963211059...
def update _ compiler ( spack _ path, compiler ) : myprint ('update _ compiler ', compiler ) spack _ bin = os. path. join ( spack _ path,'bin ','spack') # get arch code, output, error = run _ cmd _ output ( [ spack _ bin,'arch'] ) spack _ arch = output. strip ('\ n') platform = spack _ arch. split ('-') [ 1 ] # get com...
[ 0.2500709295272827, -0.7839068174362183, 0.962090253829956, -0.3415195643901825, 0.07803202420473099, -0.44998136162757874, 0.7788366079330444, 0.8263058066368103, -0.5901355743408203, -0.23509545624256134, -0.7459982633590698, 0.6023338437080383, 0.16886022686958313, 0.6990946531295776, ...
def symlink ( self, target, source, * * kwargs ) : raise fuseoserror ( erofs )
[ -0.2134295254945755, 0.286112517118454, 0.15404586493968964, 0.44672027230262756, 0.1197647824883461, -0.8921143412590027, -0.010159204714000225, 0.8478717803955078, 0.6295674443244934, -0.9231265187263489, -0.4311462938785553, 0.9630044102668762, 0.5120181441307068, 0.10316281765699387, ...
def structural _ weight _ per _ area ( self ) : ratio = self. weight _ structural / ( self. s + self. s _ v + self. s _ h + self. s _ f ) return ratio
[ 0.09989473223686218, -0.47002092003822327, 0.45746713876724243, -0.40088170766830444, -0.506834089756012, 0.0445549339056015, 1.1966861486434937, -0.1869051605463028, -0.28081244230270386, 0.4167942404747009, 0.8097301721572876, -0.6253455281257629, -0.15097972750663757, 0.7031115889549255...
def to _ text _ string ( obj, encoding = none ) : if py2 : # python 2 if encoding is none : return unicode ( obj ) else : return unicode ( obj, encoding ) else : # python 3 if encoding is none : return str ( obj ) elif isinstance ( obj, str ) : # in case this function is not used properly, this could happen return obj ...
[ -0.41643887758255005, -0.7081042528152466, 0.5680414438247681, 0.7535562515258789, -0.8971095085144043, -0.3385120928287506, -0.2185988426208496, -0.3730027675628662, 0.8828149437904358, 0.3264685273170471, -0.6580092906951904, 0.11499995738267899, -0.11250629276037216, -0.657463014125824,...
def post ( self, request, id ) : { { cookiecutter. panel } } = client. { { cookiecutter. panel } } _ update ( request, id, * * request. data ) return rest _ utils. createdresponse ('/ api / { { cookiecutter. api _ module } } / { { cookiecutter. panel } } / % s'% { { cookiecutter. panel } }. uuid, { { cookiecutter. pane...
[ -1.7805546522140503, -0.9048367738723755, 0.4813236594200134, -0.3457600772380829, -0.32770079374313354, -0.3145731985569, -0.13514454662799835, -0.1993401199579239, -0.06737988442182541, 1.027840256690979, -0.6786839962005615, 0.6339022517204285, -1.2300856113433838, -0.1850154995918274, ...