text
stringlengths
25
2.19k
embedding
listlengths
768
768
def test _ nodst ( ) : pytest. debug _ func ( ) c = nldt. moment ( ) with pytest. raises ( attributeerror ) as err : # payload c. dst ( ) assert " object has no attribute'dst'" in str ( err )
[ 0.5736343860626221, 0.3206721842288971, 0.5175586938858032, -0.5058345198631287, -0.3861272633075714, 1.25679612159729, -0.06785336136817932, -0.6784613728523254, -0.37780246138572693, -0.13598762452602386, -0.58266282081604, 0.164809450507164, 0.7359819412231445, 1.6179986000061035, 0.5...
def delifin ( self, * args ) : return _ snap. schema _ delifin ( self, * args )
[ -0.3047007918357849, 0.807924747467041, 0.6750540137290955, 0.8193842768669128, -0.20579373836517334, 0.673271119594574, 0.29082074761390686, 0.5749119520187378, -0.26653236150741577, -0.8741355538368225, -0.8333345651626587, 0.2957724332809448, -1.4713889360427856, 0.23407503962516785, ...
def test _ initial ( self ) : self. assertisnone ( omniimagefield. initial _ data )
[ 0.785205602645874, 0.15702304244041443, 0.24731647968292236, -0.22464877367019653, 0.9694501757621765, 0.6696712374687195, 0.06707802414894104, 0.26979851722717285, 0.23872442543506622, -1.0805798768997192, -0.6315968632698059, 0.05333545804023743, -0.29755568504333496, 0.6769806146621704,...
def _ _ str _ _ ( self ) : return f " worker [ { self. _ worker _ id } ] failed with exitcode = { self. _ exitcode } "
[ -0.13755929470062256, -1.5742433071136475, 0.4781219959259033, -0.7676243782043457, -0.4837453365325928, 0.716422438621521, -0.7288113832473755, -0.23367731273174286, -0.40390118956565857, 0.47577357292175293, 0.0850982517004013, 0.6277278065681458, -0.1979641318321228, -0.0406360141932964...
def get _ span _ types ( span : span ) - > set [ str ] : types = [ token. _. spaczz _ type for token in span if token. _. spaczz _ type ] return set ( types )
[ 0.4802151024341583, 0.5082481503486633, 0.22057722508907318, -0.06857827305793762, -0.06977738440036774, 0.49764159321784973, 0.4794328808784485, -0.9789475202560425, 0.4885382056236267, -0.08897700905799866, -1.1958309412002563, 0.5931557416915894, -0.47931843996047974, 0.433636873960495,...
def savetxt ( * args ) : return _ snap. tcncom _ savetxt ( * args )
[ -0.5862176418304443, 0.7821911573410034, 0.2931278944015503, -0.5593620538711548, 0.40408775210380554, -0.1218455508351326, 0.46127960085868835, -0.11613558977842331, -0.3000771105289459, 0.5380111336708069, -1.9044080972671509, -2.0351204872131348, -1.0786336660385132, 0.1645996868610382,...
def get _ config _ parameter ( self, sim _ name, param ) : return self. get _ sim _ parameter ( sim _ name, param )
[ -0.6667952537536621, 0.30029094219207764, 0.20943686366081238, 0.6813989877700806, -0.4846900403499603, -0.8143638372421265, 0.01586436666548252, -0.15965712070465088, 0.3986693024635315, 1.4795325994491577, -0.007715608458966017, 0.7407463788986206, -0.39712488651275635, 0.023577442392706...
def _ _ eq _ _ ( self, * args ) : return _ snap. tstrflthi _ _ _ eq _ _ ( self, * args )
[ -0.49673590064048767, 0.0646546334028244, 0.06837122142314911, -1.1123613119125366, 1.0943268537521362, -0.006012507248669863, 0.702297031879425, 0.051173560321331024, -0.7743676900863647, -0.3307492434978485, -1.7347556352615356, -0.7782759070396423, 0.29901036620140076, 0.435722649097442...
def getsubvalv ( self, * args ) : return _ snap. tintprv _ getsubvalv ( self, * args )
[ -0.33040499687194824, -0.25366199016571045, 0.6920996904373169, 0.9745101928710938, -0.9296905398368835, 0.3200150430202484, -0.021684521809220314, 0.815005362033844, -0.6299914717674255, -1.171359896659851, -1.1166093349456787, 0.9316319823265076, -0.9513858556747437, 0.12769941985607147,...
def is _ block _ number _ in _ gap ( block _ number : blocknumber, gaps : chaingaps ) - > bool : gap _ ranges, tip _ child = gaps for low, high in gap _ ranges : if low > block _ number : return false elif high > = block _ number : return true # this range was below the block number, continue looking at the next range ...
[ -0.5286337733268738, -1.0146420001983643, 0.4979071319103241, 0.6193826198577881, -0.5866958498954773, 0.16851802170276642, 0.29386624693870544, -0.13678745925426483, 0.11659232527017593, -0.5846219062805176, -0.3040894567966461, 0.07473769038915634, -0.6109390258789062, 0.2449090778827667...
def get _ brat _ txt _ ann ( data _ path ) : filelist = os. listdir ( data _ path ) file _ name = set ( ) for item in filelist : file _ name. add ( item [ : - 4 ] ) return [ ( file _ predix + '. txt ', file _ predix + '. ann') for file _ predix in file _ name ]
[ -0.1848442107439041, -0.5792063474655151, 0.641829252243042, -0.1390533596277237, 0.18335990607738495, 0.4101305902004242, 0.39590731263160706, 0.44777461886405945, -0.8423405885696411, 0.9175482392311096, -0.5441545248031616, 0.47645267844200134, 0.5482112169265747, 0.3933088183403015, ...
def endei ( self, * args ) : return _ snap. tungraph _ endei ( self, * args )
[ -0.7125301957130432, 1.0255011320114136, 0.18946246802806854, 0.9964451193809509, 0.9213817715644836, -0.012030177749693394, 0.5040810108184814, 0.30080294609069824, -0.6239703893661499, -0.2707531750202179, -1.0097111463546753, -0.4481129050254822, -1.5439558029174805, -0.1278236210346222...
def predict _ future ( train, test, p, d, q ) : history = list ( train ) test _ predict = [ ] for i in range ( len ( test ) ) : model = arima ( history, order = ( p, d, q ) ) model = model. fit ( disp = 0 ) output = model. forecast ( ) test _ predict. append ( output [ 0 ] ) history. append ( output [ 0 ] ) print ( i )...
[ -0.8208217620849609, 0.5133708715438843, 0.2592916488647461, 0.7144558429718018, 0.17446133494377136, 0.020090611651539803, -0.48330771923065186, 0.4257097840309143, -0.5065863728523254, -0.3538297414779663, -0.08244932442903519, 0.17848579585552216, 0.37132132053375244, 0.1494883596897125...
def sne _ hds _ p _ i _ js ( ds _ hds _ i _ js, den _ s _ i, i, compute _ log = true ) : # number of data points n = ds _ hds _ i _ js. size # initializing the arrays with the p _ { ij }'s and the log ( p _ { ij } )'s. p _ js _ i = np. empty ( shape = n, dtype = np. float64 ) p _ js _ i [ i ] = 0. 0 log _ p _ js _ i = ...
[ -0.23290199041366577, 0.03514012694358826, 0.7272285223007202, -0.4286830723285675, -0.09902602434158325, -0.5864511728286743, -0.18129883706569672, 0.17091400921344757, 0.0033269417472183704, 0.9091818332672119, -0.36742720007896423, 0.2530912756919861, 0.4135555922985077, -0.759132087230...
def testremovingnamedmode ( self ) : ssd = self. added ( ) op = iecorescene. removesmoothskinninginfluencesop ( ) op. parameters ( ) ['input']. setvalue ( ssd ) op. parameters ( ) ['mode']. setvalue ( iecorescene. removesmoothskinninginfluencesop. mode. named ) op. parameters ( ) ['influencenames']. setvalue ( iecore. ...
[ 0.20180083811283112, -0.032054606825113297, 0.8619357347488403, -0.9382839798927307, -0.33262696862220764, 0.4135655164718628, 0.7116407752037048, -0.08514214307069778, -0.06745526939630508, -0.008039561100304127, -1.0051475763320923, 0.12048415094614029, -0.5150645971298218, -0.3753264546...
def new _ event _ loop ( self ) : return zmqeventloop ( )
[ 1.3705028295516968, -1.169702172279358, 0.06408659368753433, 0.15095427632331848, -0.6303569078445435, -0.0008281171321868896, -0.5003156065940857, -0.5547749400138855, -0.499872624874115, -0.3369027376174927, 0.14350664615631104, 0.535125732421875, -0.7688066363334656, -0.1305340826511383...
def set _ initial _ attribute _ values ( self, kwargs ) : instance = kwargs. get ('instance') if instance is none : return for attribute in instance. product _ class. attributes. all ( ) : try : value = instance. attribute _ values. get ( attribute = attribute ). value except exceptions. objectdoesnotexist : pass else ...
[ -0.5721549391746521, -0.6712304353713989, 0.6102002263069153, -0.42247912287712097, 0.6580715775489807, 0.3961326479911804, 0.033131714910268784, 0.07863179594278336, -0.14180631935596466, 0.726284384727478, -0.3004383444786072, 0.5983440279960632, 0.7716217637062073, 1.1737383604049683, ...
def account _ action ( self, action ) : if action = = self. balance : self. balance ( ) elif action = = self. add _ income : self. add _ income ( ) elif action = = self. do _ transfer : self. do _ transfer ( ) elif action = = self. close _ account : self. close _ account ( ) elif action = = self. logout : self. logout ...
[ -0.6340605616569519, -0.8586167693138123, 0.6195402145385742, 0.8151059150695801, 0.2951705753803253, 0.029310083016753197, 1.1362683773040771, -1.2204108238220215, 1.0047781467437744, 0.2597844898700714, -0.07677880674600601, 0.5759353041648865, 0.5235859751701355, -0.07914025336503983, ...
def tovargraphsequenceiterator ( self, * args ) : return _ snap. ttable _ tovargraphsequenceiterator ( self, * args )
[ -1.145865559577942, -0.3881908059120178, 0.08889762312173843, 0.7023482918739319, -0.22133834660053253, -0.7702760100364685, 0.751846432685852, -0.44573014974594116, -0.42491647601127625, 1.5653561353683472, -0.5373578071594238, -0.2867548167705536, -0.3642958700656891, -0.2808196842670440...
def test _ close _ idle _ connection _ not _ pooled ( self ) : mock = magicmock ( spec = connection ( ), autospec = true ) function _ mock = mock ( name = " close _ idle _ connections _ mock " ) mock. attach _ mock ( function _ mock, " close _ idle _ connections " ) session = factory. create _ session _ from _ file ( c...
[ -0.8526094555854797, -0.15961599349975586, 0.5767406821250916, -0.4552084803581238, 0.593254804611206, 1.0441622734069824, 0.5429172515869141, -1.055545449256897, -0.11370376497507095, -0.512954592704773, -0.5615584254264832, -0.38838058710098267, -0.4352085590362549, 0.0908956453204155, ...
def test _ content _ type _ field ( self ) : field = omnifield. _ meta. get _ field ('content _ type') self. assertisinstance ( field, models. foreignkey ) self. assertequal ( field. rel. to, contenttype ) self. assertfalse ( field. blank ) self. assertfalse ( field. null )
[ 0.981198787689209, 0.34070393443107605, 0.4126809239387512, -0.46834683418273926, 0.8869595527648926, 0.14025545120239258, 0.8392598628997803, -0.4731118977069855, 0.12382026016712189, -0.11456795036792755, -0.2156260907649994, -0.4264388382434845, -0.7368510365486145, -0.02198789268732071...
def generate _ sent3 ( description _ id, label ) : # getting the description inputs title, cat, features = format _ inputs ( create. query. get ( description _ id ) ) # inputs to lm if'shoes'in cat. lower ( ) : model ='perciapp / models / unisex _ shoes _ description _ end'args ['model _ name _ or _ path'] = model # gi...
[ -0.22839631140232086, 0.2992008626461029, 0.7443811297416687, 0.022247999906539917, -0.019880162551999092, 0.680016815662384, -0.026543334126472473, 0.4007035195827484, -0.29974934458732605, 0.6557654142379761, -0.463038831949234, -0.350637823343277, -0.7484075427055359, 0.5267775058746338...
def _ convert _ smart _ latex ( self, s ) : # fixme : implement this parts = s. split ('_') if len ( parts ) = = 1 : # a to $ a $ if a is greek letter else just a if parts [ 0 ] in self. latex _ kwd : return r'$ \ % s $'% str ( parts [ 0 ] ) else : return str ( parts [ 0 ] ) elif len ( parts ) = = 2 : # a _ xxx to $ a ...
[ -0.45833852887153625, -0.5778791904449463, 0.8400900959968567, -0.4759892225265503, -1.4262746572494507, -0.9975782632827759, -1.0716139078140259, -0.1933741569519043, 0.7358038425445557, 0.06118006631731987, 0.09132268279790878, 0.4508648216724396, 0.6888160109519958, -0.11778651922941208...
def test _ subclasses _ omni _ field ( self ) : self. asserttrue ( issubclass ( omniforeignkeyfield, omnifield ) )
[ 0.3998751938343048, 0.5460243225097656, 0.33266204595565796, 1.052382469177246, 0.0637960210442543, 1.1782305240631104, -0.026297559961676598, 0.0016542453086003661, 0.9120280742645264, -0.18777793645858765, -0.8646187782287598, -0.48366788029670715, -1.0791012048721313, -0.115699969232082...
def call ( self, coro : awaitable ) - > any : return anotherthreadtask ( coro, self. _ loop )
[ 0.38164737820625305, -0.0840996578335762, 0.44530028104782104, 0.7350414395332336, 0.06384296715259552, 0.15878763794898987, -0.5085344910621643, -0.6496334075927734, -0.7654192447662354, 0.319782555103302, -0.6356327533721924, 0.24437837302684784, -0.38960832357406616, 0.07714143395423889...
def dump ( self, * args ) : return _ snap. tnegraph _ dump ( self, * args )
[ -1.2117849588394165, 1.413915753364563, 0.22009100019931793, -0.4183008372783661, 0.0005979171255603433, 0.2964727282524109, 1.3555068969726562, -0.36477434635162354, -0.1765993982553482, 0.7956192493438721, -1.1176307201385498, -1.2124066352844238, -0.7846301198005676, 0.7451098561286926,...
def endnaflti ( self, * args ) : return _ snap. tneanet _ endnaflti ( self, * args )
[ -0.061504073441028595, 0.13817887008190155, 0.0801444947719574, -0.8906904458999634, -0.05705370008945465, 0.6320089101791382, 0.31186288595199585, -0.8565174341201782, -1.04205322265625, 0.5103343725204468, -0.8272165656089783, -1.02976655960083, -0.12729081511497498, 0.8141241073608398, ...
def convertgraph _ pngraph _ pneanet ( * args ) : return _ snap. convertgraph _ pngraph _ pneanet ( * args )
[ -1.6633987426757812, 0.1484789252281189, 0.4099639356136322, -0.08973780274391174, -0.012111359275877476, 0.12096408009529114, -1.3490113019943237, -1.3483353853225708, -0.7833950519561768, 0.007620599586516619, -0.7141687870025635, -0.7179508209228516, 0.28285109996795654, 0.0310978796333...
def getfltkeyide ( self, * args ) : return _ snap. pneanetmp _ getfltkeyide ( self, * args )
[ 0.33086666464805603, -0.2589297592639923, 0.49602454900741577, 0.12667661905288696, 0.942488968372345, 0.5970950722694397, -0.9557371735572815, -0.9403384327888489, -1.175836443901062, -0.7891843318939209, -0.45508167147636414, -0.2613150179386139, -1.810207724571228, 1.4508006572723389, ...
def distinct _ node _ count ( game _ state _ node ) : # count the number of distinct nodes, don't bother exploring subtrees # where you have already visited the root! node _ states = { } leaf _ states = { } _ mark _ distinct _ leaf _ states ( game _ state _ node, leaf _ states, node _ states ) return len ( node _ state...
[ -0.13690656423568726, 0.7886006832122803, 0.5825358629226685, -0.3375265598297119, 0.5681255459785461, 0.05966666713356972, 0.809008002281189, 0.40883007645606995, 0.47347673773765564, -0.28951650857925415, -0.8416112661361694, -0.07155083119869232, 1.2059080600738525, -0.4211113452911377,...
def generate ( self, hidden, maxlen, sample = true, temp = 1. 0 ) : if hidden. ndimension ( ) = = 1 : hidden = hidden. unsqueeze ( 0 ) batch _ size = hidden. size ( 0 ) if self. hidden _ init : # initialize decoder hidden state to encoder output state = ( hidden. unsqueeze ( 0 ), self. init _ state ( batch _ size ) ) e...
[ -0.40253114700317383, 0.4110850691795349, 0.8351123332977295, 0.5647782683372498, -1.163675308227539, -0.30215391516685486, 0.028208991512656212, 0.1573651283979416, -0.02913971245288849, -0.20184114575386047, -0.8222875595092773, 0.011343897320330143, 0.23507702350616455, 0.55734503269195...
def text2token ( texts ) : tokens = [ ] for text in texts : token = [ constants. bos ] + \ [ data ['dict'] ['src']. get ( i, constants. unk ) for i in text ] + \ [ constants. eos ] tokens. append ( token ) return tokens
[ -1.1024812459945679, -0.511286735534668, 0.3201906681060791, -0.857644259929657, 0.21635940670967102, -0.2523882985115051, -0.490612268447876, 1.1940839290618896, 0.026168053969740868, 0.3351132869720459, -1.0680052042007446, -0.02977302297949791, 0.6711638569831848, 0.4002048969268799, ...
def getsattridn ( self, * args ) : return _ snap. tneanet _ getsattridn ( self, * args )
[ 0.0863061174750328, -0.19841831922531128, 0.29618728160858154, -0.08926326036453247, 0.5718330144882202, -0.779519259929657, 0.22308561205863953, 0.29743045568466187, -0.3453994393348694, -0.7082256078720093, -0.22303986549377441, 0.3289475440979004, 0.3289462625980377, 0.8618333339691162,...
def isok ( self, throwexcept = true ) : return _ snap. pneanetmp _ isok ( self, throwexcept )
[ -0.21375219523906708, 0.6153450608253479, 0.12136496603488922, 0.30309081077575684, 0.05499131605029106, 1.3610588312149048, 0.35242369771003723, -0.7711666226387024, -0.1881474107503891, 0.6278322339057922, -0.5549098253250122, -1.1378532648086548, -0.6927889585494995, 0.3338863253593445,...
def ck _ agg ( a, log ) : try : agg = int ( a ) except typeerror : log. error ('" agg _ level " parameter must be either 1 or 2. exiting...') raise if agg < 1 or agg > 2 : log. error ('" agg _ level " parameter must be either 1 or 2. exiting...') raise validationexception else : return agg
[ -0.07467550784349442, 0.9439579844474792, 0.6657535433769226, 0.6200881004333496, -0.8202906250953674, 0.048093531280756, 1.1131230592727661, -0.19520604610443115, -1.1745800971984863, 1.1907392740249634, 1.305256962776184, 0.6799984574317932, -0.6183117032051086, 1.004530668258667, 1.08...
def colorextractor ( impath, mask ) : img = cv2. imread ( impath ) masked = img [ mask ] return [ np. median ( masked [ :, 0 ] ), np. median ( masked [ :, 1 ] ), np. median ( masked [ :, 2 ] ) ]
[ -0.5720430612564087, -0.7241324186325073, 0.5922527313232422, 0.6834554076194763, 0.5471474528312683, -0.4313156008720398, 0.013104469515383244, 0.23837684094905853, -0.13048534095287323, 0.6485793590545654, 0.2804684638977051, -0.01341148279607296, -0.3481316864490509, -0.8424181342124939...
def find _ nearest _ contourpixel ( pt, contour ) : " " " import sys mindist = sys. float _ info. max minidx = - 1 for i in range ( contour. shape [ 0 ] ) : dx = ( pt [ 0 ] - contour [ i, 0, 0 ] ) dy = ( pt [ 1 ] - contour [ i, 0, 1 ] ) dist = dx * dx + dy * dy if dist < mindist : mindist = dist minidx = i " " " dists ...
[ 0.3590331971645355, -1.293922781944275, 0.5305724740028381, -0.12006532400846481, -1.3750475645065308, 0.09546764194965363, -0.4762577712535858, -0.31311750411987305, 0.3718588352203369, 0.022239722311496735, -0.4058152735233307, 0.01943054422736168, -0.2759537100791931, 0.3255954086780548...
def plotallvsx ( self, * args ) : return _ snap. tgstatvec _ plotallvsx ( self, * args )
[ 0.010507073253393173, 0.35712847113609314, 0.3133842945098877, 0.6511847972869873, -0.8663907051086426, 0.6422219276428223, 0.021124286577105522, -0.366229385137558, 0.1377495378255844, -0.266522079706192, 0.25131720304489136, 0.8955888152122498, 0.7700991630554199, 0.9432716369628906, -...
def displayinfo ( msg ) : logger. info ( msg )
[ 0.6744428873062134, -0.8729769587516785, 0.47423967719078064, -0.1971379667520523, -0.5067536234855652, 0.19681768119335175, 0.4108055531978607, -0.39053234457969666, -0.6769792437553406, -0.15320174396038055, 0.5551877617835999, 0.9415505528450012, 0.30552157759666443, 1.2609931230545044,...
def invalid ( ) : print ('you have entered an invalid selection')
[ 0.5113582015037537, -1.3495852947235107, 0.16761723160743713, 0.2149462252855301, 0.04135909304022789, 0.6888277530670166, 0.3191899061203003, 0.31953078508377075, 0.08229082822799683, -0.4714900851249695, 0.4626779854297638, 1.4930932521820068, -0.4566543698310852, -0.47411414980888367, ...
def group _ start ( self ) : if self. has _ error ( ) : return'< div class = " form - group has - danger " >'else : return'< div class = " form - group " > '
[ -0.18292208015918732, 0.06204766780138016, 0.4763089716434479, 0.07441279292106628, -0.07092206925153732, -0.4220234751701355, -0.38589560985565186, -0.1329205483198166, 0.39104729890823364, -0.41449904441833496, 0.783412754535675, 0.9462652802467346, 0.203140988945961, 0.8087669610977173,...
def _ _ eq _ _ ( self, other ) : if not isinstance ( other, pipelinestepallof ) : return false return self. _ _ dict _ _ = = other. _ _ dict _ _
[ -0.48204305768013, -0.7397601008415222, 0.42387521266937256, 0.16700515151023865, -0.33711063861846924, 0.013885153457522392, -0.07364340871572495, -0.20707404613494873, 0.06476782262325287, -0.41848522424697876, -1.3175002336502075, -0.7626665830612183, 0.3688039183616638, 0.0123304538428...
def genrnddegk ( * args ) : return _ snap. genrnddegk ( * args )
[ -2.02718448638916, 0.9414276480674744, 0.23652130365371704, 0.6261594295501709, 0.21928435564041138, 0.8348751664161682, 0.8221932649612427, 0.28985387086868286, -1.6536469459533691, -0.8410603404045105, -1.3064346313476562, -0.40060028433799744, 0.11693166196346283, 1.8683884143829346, ...
def test _ is _ abstract ( self ) : self. asserttrue ( omniformbase. _ meta. abstract )
[ 0.01314903236925602, 0.024812815710902214, 0.37318533658981323, 0.1867987960577011, -0.07390698045492172, 1.3337432146072388, -0.38934823870658875, 0.3723660111427307, 0.7561244368553162, -0.5276352167129517, -0.29749152064323425, 0.4743303954601288, 0.38275131583213806, 1.0737724304199219...
def to _ homogenous ( points ) : return tf. pad ( points, [ ( 0, 0 ), ( 0, 1 ) ],'constant ', constant _ values = 1 )
[ -0.1872652769088745, 0.4085022211074829, 0.3465156853199005, 0.8369072675704956, 1.2544306516647339, 0.933566689491272, -0.14174097776412964, 0.4920075237751007, -0.02480265684425831, 1.0022691488265991, -0.3280353546142578, 0.23177199065685272, 0.08711990714073181, -0.7949526906013489, ...
def is _ valid ( self ) : return not self. validation _ errors ( )
[ -0.568649411201477, -0.11977215111255646, 0.33102747797966003, 0.6168540716171265, 0.16786734759807587, 0.8127880096435547, -0.5143241882324219, 0.33594775199890137, -0.23539699614048004, -0.7348989248275757, 0.15660694241523743, -0.5565409064292908, -0.5154425501823425, 0.1166198104619979...
def bsort ( self, * args ) : return _ snap. tintfltkdv _ bsort ( self, * args )
[ -0.06508747488260269, 0.7011584043502808, 0.29191872477531433, 0.921586811542511, -0.13937297463417053, -0.385448694229126, 0.3918066620826721, -0.7554126977920532, -1.6749404668807983, -0.8341245055198669, -0.015080828219652176, 0.4456484913825989, -1.4091523885726929, 1.5141874551773071,...
def apply ( self, x, use _ bn = false, use _ drop = false ) : # pass activations through the shared layers shared _ acts = [ x ] for layer in self. shared _ layers : _, _, layer _ acts = layer. apply ( shared _ acts [ - 1 ], \ use _ bn = use _ bn, use _ drop = use _ drop ) shared _ acts. append ( layer _ acts ) shared ...
[ -0.5500524044036865, 0.16069594025611877, 1.0282403230667114, 1.114551067352295, -0.03609463572502136, -0.1274642050266266, 0.9429506063461304, -0.14868538081645966, 0.441668838262558, 0.3727678656578064, -0.3927968144416809, -0.3548850417137146, -0.4662882089614868, 0.8398415446281433, ...
def get _ arg _ unary _ scores ( self, span _ emb ) : input = span _ emb for i, ffnn in enumerate ( self. arg _ unary _ score _ layers ) : input = f. relu ( ffnn. forward ( input ) ) input = self. arg _ dropout _ layers [ i ]. forward ( input ) output = self. arg _ unary _ score _ projection. forward ( input ) return o...
[ -0.6348037719726562, 0.44755056500434875, 0.5653620362281799, 0.2921726703643799, 0.8957546353340149, 0.31087756156921387, 0.49552401900291443, -0.502212405204773, 0.15991371870040894, 0.6745538115501404, 0.15239164233207703, -0.6471067070960999, 0.584674596786499, 0.14813776314258575, -...
def _ calculate _ fps ( self ) : self. fps = int ( len ( self. frames ) / self. duration ) return self. fps
[ 0.25322577357292175, 0.35248854756355286, 0.31785809993743896, -0.7422968149185181, -0.23481030762195587, -1.1547569036483765, 0.07802421599626541, -0.2326321303844452, -0.22377847135066986, -0.3000016510486603, -0.1103290393948555, -1.0964398384094238, -1.0155425071716309, 0.5848723053932...
def intrslen ( self, * args ) : return _ snap. tintprv _ intrslen ( self, * args )
[ -1.0403493642807007, 0.2544691264629364, 0.3110416829586029, -0.5027537941932678, -0.134256511926651, 0.07062287628650665, 0.3303830623626709, 0.5186721086502075, 0.009719494730234146, -0.4010906219482422, -0.6437784433364868, -0.06621255725622177, -2.4716796875, 0.2059074342250824, 1.09...
def getsattrdate ( self, * args ) : return _ snap. tundirnet _ getsattrdate ( self, * args )
[ 0.8480299711227417, -0.6227694153785706, 0.09712044894695282, 0.2545178532600403, 0.6193361282348633, 0.06058499589562416, -0.30640944838523865, -0.5159512162208557, -0.7988771200180054, -0.9362408518791199, 0.4801960587501526, -0.33898675441741943, -1.2052147388458252, 0.9990056753158569,...
def test _ normalize _ parameters ( self ) : headers = {'authorization': self. authorization _ header } parameters = collect _ parameters ( uri _ query = self. uri _ query, body = self. body, headers = headers ) normalized = normalize _ parameters ( parameters ) # unicode everywhere and always self. assertisinstance ( ...
[ -0.8743012547492981, -0.2715107798576355, 0.4556930661201477, 0.12695616483688354, 0.41216975450515747, 0.073741614818573, -0.3549876809120178, -0.46240121126174927, 0.44145098328590393, -0.08823063969612122, 0.12374090403318405, -0.024139977991580963, -0.7398589253425598, -0.2836406528949...
def calc ( self, x, problem, ideal _ point = none, utopian _ epsilon = 1e - 4, rho = 1e - 3 ) : # the final result to be returned kktpm = np. full ( ( x. shape [ 0 ], 1 ), np. inf ) fval = np. full ( ( x. shape [ 0 ], 1 ), np. inf ) # set the ideal point for normalization z = ideal _ point # if not provided take the on...
[ 0.2768595218658447, 0.5433639287948608, 0.8689962029457092, 0.6528337001800537, -0.6067056655883789, -0.48711878061294556, -0.6064926981925964, 0.5808075070381165, -0.09435128420591354, 0.46822988986968994, 0.1313571035861969, -0.18813848495483398, -0.1299692541360855, 0.33724895119667053,...
def load ( self, * args ) : return _ snap. pneanetmp _ load ( self, * args )
[ -0.970138669013977, 0.1331905573606491, 0.33413222432136536, -0.07997439801692963, 0.6557443141937256, 1.2652086019515991, -0.08011051267385483, -0.9044560790061951, -0.6513624787330627, 0.11234520375728607, -0.5602794885635376, -1.8084250688552856, -1.1803429126739502, 0.47105592489242554...
def sgx _ get _ whitelist _ size ( ) : c _ sgx _ get _ whilelist _ size = sgx _ uae _ service _ lib. sgx _ get _ whitelist _ size c _ sgx _ get _ whilelist _ size. argtypes = [ pointer ( c _ uint ) ] c _ sgx _ get _ whilelist _ size. restype = c _ uint size = c _ uint ( 0 ) ret = c _ sgx _ get _ whilelist _ size ( byre...
[ -0.500453770160675, 0.9384580254554749, 0.7810568809509277, -0.9214579463005066, -0.50335294008255, -0.012407518923282623, -0.029540570452809334, -0.5868450999259949, 0.6989767551422119, 0.008541594259440899, -0.5507158041000366, 1.1441200971603394, -1.239974021911621, 0.3271010220050812, ...
def maybe _ manage _ local _ roles ( self ) : ldap _ action = self. request. get ( " ldap _ action " ) if not isinstance ( ldap _ action, str ) : return userid = self. request. get ( " userid " ) if not isinstance ( userid, str ) : return user = self. get _ user ( userid ) if not user : return if ldap _ action = = " gr...
[ 0.40492087602615356, -0.4481024742126465, 0.5672673583030701, -0.09770023077726364, 0.41355231404304504, -0.37498143315315247, -0.08046089112758636, 0.0023436592891812325, 1.6459956169128418, -0.09411663562059402, 0.9487755298614502, 0.8412129282951355, 0.10487467795610428, 1.2701089382171...
def _ delete _ url ( self, video, shared _ live _ media ) : return f " / api / videos / { video. pk } / sharedlivemedias / { shared _ live _ media. pk } / "
[ 0.3695355951786041, -1.3871077299118042, 0.49638986587524414, 0.4510017931461334, 0.4394994378089905, 0.4202229380607605, 0.5488821268081665, 1.3788082599639893, 0.31936728954315186, 0.11376157402992249, 0.14618508517742157, -0.014260337688028812, -0.3371354937553406, -0.06902381032705307,...
def onentityselect ( self, entity ) : logger. debug ( " selecting entity % s " % entity ) # get qmodelidx from model # on view collapse and expand the qmodelidx node sgindex = self. _ scenegraphmodel. getindexforentityid ( entity. uid ) eiindex = self. _ entitiesmodel. getindexforentityid ( entity. uid ) self. _ view. ...
[ -0.3045811355113983, -0.6486157178878784, 0.3413035273551941, -0.4185699224472046, 0.14848147332668304, -0.26088374853134155, 0.7570947408676147, -0.5212876200675964, 1.371782898902893, 0.026127908378839493, 0.12439673393964767, 0.30765530467033386, 0.7669122815132141, 0.02233257330954075,...
def draw _ right _ t ( x = 1, y = 1 ) : print ( " { } { } ; { } ". format ( csi, y, x ), end = " ", flush = true )
[ 0.6016303300857544, 0.26793310046195984, 0.7432095408439636, -0.6415224075317383, -0.526096761226654, 0.5608991980552673, -0.9094070792198181, -0.8490294814109802, -0.4622425436973572, 0.8588327169418335, -0.3261079490184784, 0.9358212947845459, -0.21315057575702667, -0.21117441356182098, ...
def _ _ lt _ _ ( self, * args ) : return _ snap. tintprstrvhi _ _ _ lt _ _ ( self, * args )
[ -0.17072005569934845, -0.4299296736717224, 0.4533553123474121, -0.39567551016807556, 0.007124430499970913, -0.39363375306129456, -0.2445152848958969, -0.762317955493927, -1.3373184204101562, -0.7160108685493469, -1.2081284523010254, -0.5944650173187256, -1.486232042312622, 0.98995459079742...
def get ( self, request ) : form = loginuser ( ) return render ( request, " login. html ", { " form " : form } )
[ -0.8864821791648865, -0.16761958599090576, 0.5303064584732056, 0.1191076934337616, -0.5555842518806458, 0.49712884426116943, -0.6473739743232727, 0.3697129786014557, -0.3654433786869049, -1.2581870555877686, 0.26620739698410034, -0.39273926615715027, 0.14536988735198975, -0.608523666858673...
def lastlast ( self, * args ) : return _ snap. tinttrv _ lastlast ( self, * args )
[ -0.3688170611858368, -0.07710707932710648, 0.39293602108955383, -1.28753662109375, 0.5139973759651184, 0.29232272505760193, 0.2637341618537903, -0.630086362361908, 0.13238562643527985, -0.14140470325946808, -0.16352508962154388, -0.03961005061864853, -1.578131914138794, -0.2766879796981811...
def test _ run _ beta _ diversity _ through _ plots _ parallel ( self ) : run _ beta _ diversity _ through _ plots ( self. test _ data ['biom'] [ 0 ], self. test _ data ['map'] [ 0 ], self. test _ out, call _ commands _ serially, self. params, self. qiime _ config, tree _ fp = self. test _ data ['tree'] [ 0 ], parallel...
[ 0.5491335391998291, 0.43702489137649536, 0.7179184556007385, -0.2677342891693115, 0.7670888900756836, 0.8944234251976013, 1.141780138015747, 0.2171098291873932, -0.6749194860458374, -0.8568784594535828, 0.6746944785118103, -0.19751165807247162, -0.9387635588645935, 0.1298230141401291, 0....
def flip _ matchings ( matchings ) : converted = defaultdict ( set ) for key, values in matchings. iteritems ( ) : for value in values : converted [ value ]. add ( key ) return dict ( converted )
[ -1.4558416604995728, 0.323184609413147, 0.5583842992782593, -0.45591971278190613, -0.8199946284294128, -0.05235160142183304, -0.009869621135294437, 0.7334299087524414, -0.43701454997062683, 0.11957669258117676, -0.0327402800321579, -0.45848706364631653, 0.27684804797172546, -0.456796109676...
def save _ image ( self, name ) : while true : try : stream = io. bytesio ( self. new _ bytes ) im = image. open ( stream ) im. save ( " pictures / trump / " + name ) return except ioerror : if self. iterations = = 1 : raise valueerror ( message ='this image is beyond \ repair, maybe try again?') self. iterations - = 1...
[ -0.7998349070549011, -0.049907758831977844, 0.4072178304195404, -0.27372610569000244, -0.10512472689151764, 0.5947714447975159, 0.11884596943855286, -1.0879405736923218, -0.010078142397105694, 0.47587350010871887, -0.9604359269142151, -0.3291875123977661, -1.2092963457107544, 0.61553388833...
def test _ dur _ start _ end ( start, end, exp ) : pytest. debug _ func ( ) if isinstance ( exp, exception ) : with pytest. raises ( type ( exp ) ) as err : # payload d ( end = end, start = start ) assert str ( exp ) = = str ( err. value ) else : # payload result = d ( start = start, end = end ) assert exp = = result
[ -0.33491650223731995, 0.46163660287857056, 0.4790831506252289, -0.05529480800032616, -0.521283745765686, 0.5535563826560974, -0.20164276659488678, -0.5055738687515259, 0.01206404808908701, -0.48941701650619507, -0.1282997876405716, 0.5000215172767639, 0.33174294233322144, -0.18499508500099...
def with _ train _ key ( self, key ) : b = self. _ copy ( ) b. train _ key = key return b
[ -1.047316074371338, -0.10520347952842712, 0.5291285514831543, 0.44236913323402405, -0.9277204275131226, 0.32348009943962097, 0.018815504387021065, -0.28012239933013916, -0.6018780469894409, 0.7281460762023926, -0.9134649038314819, 0.4887904226779938, 0.24903564155101776, -0.361376017332077...
def create _ workout ( workout _ queries ) : # type : ( list ) - > list workout = [ ] for ( category, equipment ) in workout _ queries : exercise = wger _ api. exercise _ finder ( category, equipment ) if exercise is not none : workout. append ( exercise [ " name " ] ) return workout
[ -0.5389524102210999, 0.06941917538642883, 0.37010061740875244, 0.9723595380783081, 1.2697210311889648, 0.921504020690918, 0.017283890396356583, -1.0062642097473145, -0.2447068989276886, 0.06459571421146393, 0.18237100541591644, -0.9517916440963745, -0.3753962814807892, 0.5825248956680298, ...
def _ clone _ to _ group ( self, filter _ dict, new _ gid, clone _ executor, including _ disabled = false, including _ pinned = true ) : import time data _ list = [ ] affected _ kw _ list = [ ] _ start _ time = time. time ( ) if not including _ pinned : filter _ dict [ pair _ data. properties + '.'+ pair _ data. pinned...
[ -0.4628341495990753, 0.43841901421546936, 0.8597877025604248, 0.08869798481464386, -1.1330907344818115, 0.3710528612136841, 0.5282178521156311, -0.0789080411195755, -0.2777368426322937, 1.8735716342926025, 0.6223028898239136, 0.6955210566520691, -0.8711937665939331, 0.5226905941963196, 0...
def getiface ( self, name ) : return self. name2iface [ name ]
[ -1.3326135873794556, 0.017111370339989662, 0.4112318754196167, -0.20021794736385345, -0.52986741065979, -0.8438310623168945, -0.2738000154495239, -1.7694576978683472, 0.4575415253639221, 0.6640607118606567, -0.23432976007461548, 0.24496978521347046, -0.3402010202407837, -0.6590737104415894...
def test _ atomic _ any _ uri _ max _ length _ nistxml _ sv _ iv _ atomic _ any _ uri _ max _ length _ 1 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - maxlength - 1. xsd ", instance = " nistdata / a...
[ 0.0042652846314013, -0.24494129419326782, 0.33880096673965454, 1.0710142850875854, -0.5847246050834656, -0.02313733659684658, 0.09109174460172653, -0.06294990330934525, 0.09803277254104614, 0.0672253742814064, 0.1128290668129921, -0.2949596345424652, -0.40531468391418457, 0.518997371196746...
def test _ atomic _ qname _ pattern _ 2 _ nistxml _ sv _ iv _ atomic _ qname _ pattern _ 3 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - pattern - 3. xsd ", instance = " nistdata / atomic / qname / sc...
[ -0.00539074232801795, -0.3154967427253723, 0.5615799427032471, 0.15293492376804352, -0.585182785987854, 0.7061029672622681, -0.23090185225009918, -0.5185081958770752, 0.04721253365278244, 0.8113051056861877, -0.8075116872787476, 0.06373323500156403, 0.11773578822612762, -0.5172946453094482...
def _ get _ branch _ infos ( self ) : _ re _ patch = re. compile ( r '. * patch - \ d + $') tot = len ( self ) count = 0 for i, branch in enumerate ( self ) : if branch. name : _ logger. info ('[ % d / % d ] get branch info for % s % s ', i + 1, tot, branch. repo _ id. name, branch. name ) branch. mig _ branch _ name =...
[ -0.5344815850257874, -0.6155080199241638, 0.639182984828949, -0.5342164039611816, 0.564900815486908, 0.4338207244873047, -0.7577024698257446, -0.2916449010372162, -0.4211256206035614, -0.4134010374546051, -0.6405215859413147, -0.17979265749454498, 0.3472852110862732, 0.559674084186554, 0...
def find _ subdomain _ from _ x _ coordinate ( self, x ) : for material in self. materials : # if no borders are provided, assume only one subdomain if material. borders is none : return material. id # else find the correct material else : if isinstance ( material. borders [ 0 ], list ) and len ( material. borders ) > ...
[ 0.3703768253326416, -0.2772424519062042, 0.7964322566986084, 0.18997687101364136, -0.6644141674041748, 0.40745583176612854, -0.6088188886642456, -1.1058058738708496, 0.5862582921981812, -0.8465086221694946, -0.6780175566673279, 1.4507580995559692, -0.8204351663589478, 0.3484309911727905, ...
def _ _ ne _ _ ( self, * args ) : return _ snap. tcha _ _ _ ne _ _ ( self, * args )
[ -1.0733939409255981, 0.7987930774688721, 0.25735369324684143, -0.5619049072265625, 0.3741796016693115, -0.1183488517999649, -0.27893760800361633, -0.1658795177936554, -1.3034780025482178, 0.5391866564750671, -0.527267336845398, -1.361490249633789, 0.12737222015857697, 0.3850522041320801, ...
async def proxy ( message : message, new _ content : str ) : # copy over any attachments, and copy the inline reply if any. files = [ await att. to _ file ( ) for att in message. attachments ] ref = message. reference mention _ flag = true if ref is not none : ref. fail _ if _ not _ exists = false if message. reference...
[ 0.5067275762557983, -0.05048627406358719, 0.7226447463035583, -0.42445504665374756, 0.24640053510665894, -0.17357635498046875, -0.14347150921821594, -0.30080845952033997, -0.727726399898529, 0.24583908915519714, 0.6609833836555481, 0.8767315745353699, -1.2080845832824707, 0.095654785633087...
def set _ customize ( hass : homeassistant, domain : str, customize : list [ dict ] ) - > none : hass. data [ _ overwrite _ key _ format. format ( domain ) ] = customize hass. data [ _ overwrite _ cache _ key _ format. format ( domain ) ] = { }
[ -1.0258976221084595, 0.684840738773346, 0.2945294678211212, 0.05353831127285957, 0.45604604482650757, -1.0827022790908813, -0.7153438329696655, 0.5188776254653931, 0.07221665233373642, 0.14811012148857117, -0.7929707765579224, 1.644813895225525, 0.3509083688259125, 0.7707152366638184, 0....
def soilpilestiffness ( ks, dp, lp, ep, gp, jxx _ p, loadz = 0, nus = 0. 5, penderswtch = false, sndflg = true, h = [ ], m = [ ], batter = np. nan, psi = - 45. * np. pi / 180. ) : # general parameters ll = lp / dp ejxx _ p = ep * jxx _ p if penderswtch : if h or m : es _ d = ks * dp k = ep / es _ d la = 1. 3 * dp * k *...
[ 0.5461933016777039, -0.008361631073057652, 0.726813018321991, -0.993708610534668, -0.7909396886825562, 0.44448545575141907, -0.07240694761276245, 0.523625373840332, -0.15409794449806213, 0.34592321515083313, -0.5475192070007324, -0.3895919919013977, -0.840947151184082, 0.33459970355033875,...
def test _ get _ all _ cves _ bulk _ download ( bulk _ download _ user _ headers ) : res = requests. get ( f'{ env. awg _ base _ url } { cve _ url } / ', headers = bulk _ download _ user _ headers ) assert res. status _ code = = utils. http _ ok assert len ( json. loads ( res. content. decode ( ) ) ['cverecords'] ) > =...
[ 0.18015211820602417, -0.2765766382217407, 0.5334079265594482, 0.7021663784980774, 1.1154041290283203, -0.1391371488571167, -0.9765629172325134, 0.1418733447790146, 0.1369188129901886, -0.4539906680583954, -0.4679442346096039, 0.6975345015525818, 0.16726386547088623, -0.005681606475263834, ...
def delta _ test ( delta _ test _ array ) : for i in delta _ test _ array : radius = find _ radius ( mass _ star, i * msun, eta, xi, mue, pp _ factor ) # converting to mks pc, rhoc, tc = central _ thermal _ for _ main ( mass _ star, radius, mue ) t _ eff = teff _ for _ main ( mass _ star ) # find integrated values ; ar...
[ 0.2286887913942337, -0.8710183501243591, 0.7722887396812439, 0.002754406537860632, 0.0011987644247710705, 0.9803594350814819, -0.02446577697992325, 0.061293721199035645, -0.9730640053749084, -0.13460469245910645, 0.25467047095298767, -0.3423483967781067, -0.7365596890449524, 1.175652146339...
def random _ splittable _ variable ( self ) - > str : if self. is _ at _ least _ one _ splittable _ variable ( ) : return np. random. choice ( np. array ( self. splittable _ variables ( ) ), 1 ) [ 0 ] else : raise nosplittablevariableexception ( )
[ -0.6378309726715088, 0.06850787252187729, 0.41250768303871155, 0.4276752471923828, -0.8435198664665222, 0.3712019622325897, 1.0849677324295044, -0.31638526916503906, -0.23927752673625946, 0.3158670961856842, -0.07533431053161621, 0.5792323350906372, -0.8655392527580261, 0.01288370974361896...
def save ( self, * args, * * kwargs ) : self. orderitem _ total = self. product. price * self. quantity super ( ). save ( * args, * * kwargs )
[ -1.0865892171859741, -0.6752789616584778, 0.7605053782463074, 0.2829200327396393, 1.106539011001587, -0.0006818114779889584, -0.5046886801719666, -0.16140346229076385, -0.5594426989555359, 0.8433255553245544, -1.4505456686019897, -0.7914257645606995, 0.49202513694763184, -0.232490360736846...
def setupclass ( cls ) : cls. binsize = 10000 cls. tx _ bbfile = ref _ files [ " 100transcripts _ bigbed " ] cls. cds _ bbfile = ref _ files [ " 100cds _ bigbed " ] cls. as _ cds _ bbfile = ref _ files [ " 100cds _ antisense _ bigbed " ] cls. tx _ hash = bigbedgenomehash ( cls. tx _ bbfile ) cls. cds _ hash = bigbedgen...
[ -0.15671294927597046, -0.3342314064502716, 0.5470021963119507, -0.7332453727722168, 0.14916931092739105, -0.046681735664606094, -0.03700881823897362, -0.00015216671454254538, -0.2544046640396118, -0.26232632994651794, -0.43060627579689026, 0.04426169395446777, 0.47345608472824097, 0.277540...
def test _ future _ moves ( self ) : from future. moves. collections import counter, ordereddict # backported to py2. 6 from future. moves. collections import userdict, userlist, userstring from future. moves import configparser from future. moves import copyreg from future. moves. itertools import filterfalse, zip _ l...
[ -0.12481610476970673, 0.45383623242378235, 0.6689465045928955, -0.04113505408167839, -0.061659760773181915, -0.618561863899231, 0.09667496383190155, -0.4542470872402191, 0.2909897565841675, -0.2519524395465851, -0.9054815769195557, 0.24499233067035675, -0.0536893792450428, 0.82033449411392...
def gumbel _ softmax ( input, dim = - 1, tau = 1, hard = true, eps = 1e - 20 ) : raise notimplementederror
[ 0.6636390686035156, 0.7898241281509399, 0.650159478187561, 1.0798221826553345, -1.3858802318572998, 0.6455720663070679, 0.015425519086420536, -0.476113885641098, 0.3442278802394867, 0.24043118953704834, 0.0815938338637352, 0.8939258456230164, -0.04199094697833061, 0.10282590240240097, 0....
def execute ( self, context ) : addon _ data = bpy. context. scene. maplus _ data # check auto grab prerequisites if not ( maplus _ geom. get _ active _ object ( ) and maplus _ geom. get _ select _ state ( maplus _ geom. get _ active _ object ( ) ) ) : self. report ( {'error'}, ('cannot complete : cannot auto - grab ve...
[ 0.1971406489610672, -0.6606939435005188, 0.6683311462402344, 1.0107280015945435, -0.18675760924816132, -0.06904252618551254, 0.6030452251434326, -1.1314287185668945, 0.3276929557323456, 0.1439787596464157, -0.6163662672042847, 0.10580498725175858, 0.16708461940288544, 0.32453277707099915, ...
async def field _ append _ description ( self, ctx : context, id : int, *, description : unicode ) - > none : if id > = 0 and id < = self. embed _ fields [ ctx. author ] : embed = self. embeds [ ctx. author ]. embed embed. set _ field _ at ( id, name = embed. fields [ id ]. name, value = embed. fields [ id ]. value + d...
[ 0.09831869602203369, 0.22828693687915802, 0.6419004797935486, -0.10556324571371078, 0.1595982313156128, 0.9559887647628784, -1.2321829795837402, -0.04347802326083183, 0.045095883309841156, -0.1095481887459755, -0.7933349013328552, 0.7143734097480774, -0.5061001181602478, 0.2090857625007629...
def wx _ 2 _ wyczysc ( self, evt ) : self. t _ scisk. setvalue ( " 0 " ) self. t _ samotnosc. setvalue ( " 0 " ) self. t _ nadzieja. setvalue ( " 0 " ) self. t _ generacje. setvalue ( " 0 " )
[ -0.4091229736804962, -0.43196263909339905, 0.4444449841976166, -0.6373476982116699, 0.1862460821866989, 0.46678784489631653, 0.4501064717769623, -0.7211247086524963, -1.4842286109924316, 0.5281615853309631, -0.9816713929176331, 0.05409440025687218, 0.6950926184654236, 0.8804883360862732, ...
def _ cache _ average _ attempts ( ) : games = game. query ( game. game _ over is false ). fetch ( ) if games : count = len ( games ) total _ attempts _ remaining = sum ( [ game. attempts _ remaining for game in games ] ) average = float ( total _ attempts _ remaining ) / count memcache. set ( memcache _ moves _ remain...
[ -0.5897738933563232, 0.051179952919483185, 0.5162510275840759, -0.5794809460639954, 0.08253152668476105, 0.053906068205833435, -0.20967818796634674, -0.3070826530456543, -0.8339409828186035, 1.2010880708694458, -0.533609926700592, 0.5245441198348999, -0.5760301351547241, 0.2248559892177581...
def is _ genome _ in _ config ( conf, genome ) : if genome in conf ['genomes'] : return true else : log. critical ('genome " { } " does not exist in configuration'' file '. format ( genome ) ) return false
[ 0.6988447904586792, -0.013296994380652905, 0.18841777741909027, 0.414530485868454, -0.5982037782669067, 0.4737686216831207, -0.8521000742912292, 0.8220354318618774, -0.8375135064125061, 0.9002740383148193, -0.28321829438209534, 0.604802668094635, -0.6332312226295471, 1.178428292274475, -...
def hyper _ background _ noise _ tag ( self ) - > str : if self. hyper _ background _ noise is none : return " " return f " _ _ { conf. instance ['notation'] ['setup _ tags'] ['hyper'] ['hyper _ background _ noise'] } "
[ 1.7433699369430542, -0.1953323930501938, 0.732441246509552, 0.6881492733955383, 1.3518649339675903, 0.2725052535533905, -0.19753529131412506, 0.3210923671722412, -0.5987727642059326, 0.4088008403778076, -0.7436898350715637, 0.9983500242233276, -0.04483181610703468, 0.5584778785705566, 0....
async def on _ message ( self, topic, msg, retain ) : if msg in _ mqtt. payload _ on : if not self. _ state : # false or none ( unknown ) await self. on ( ) # no return because state will be published by on ( ) / off ( ) elif msg in _ mqtt. payload _ off : if self. _ state is not false : # true or none ( unknown ) awai...
[ 0.3105616271495819, -0.014169435948133469, 0.8908352851867676, -0.1639370620250702, -0.08796882629394531, 0.3894035518169403, -0.7275405526161194, -0.08463068306446075, 0.35939422249794006, -0.1610078066587448, 0.6001927852630615, -0.6409798860549927, -1.150328278541565, 0.9542924761772156...
def solve _ homogeneous ( m ) : assert ( isinstance ( m, np. ndarray ) ), " ndarray required " # from : http : / / campar. in. tum. de / twiki / pub / chair / # teachingws05computervision / 3dcv _ svd _ 000. pdf u, s, vh = np. linalg. svd ( m ) return vh. t [ :, - 1 ]
[ 0.14251916110515594, 0.41120073199272156, 0.6580056548118591, 0.5372626781463623, -0.09683429449796677, 0.5263516902923584, -0.015164473094046116, 0.24542762339115143, 0.29116740822792053, 1.089302659034729, 0.26797789335250854, 0.11474128812551498, -0.7043173909187317, -0.6003136038780212...
def sides _ parallel ( coords, clockwise = true ) : if len ( coords )! = 5 : # pragma : no cover raise valueerror ('quadrilateral must contain exactly 5 coordinates') # get coordinates for [ bottom left, top left, top right, bottom right ] if clockwise : corners = [ coords [ 0 ], coords [ 1 ], coords [ 2 ], coords [ 3 ...
[ 0.15227727591991425, 0.22504757344722748, 0.9057257771492004, -1.1568734645843506, -0.28036820888519287, 0.1695171445608139, -0.4227886199951172, -0.7057909965515137, -0.0654018297791481, 0.18343514204025269, -0.8309495449066162, -0.41078537702560425, -0.7475107312202454, -0.16643153131008...
def unionlen ( self, * args ) : return _ snap. tinttrv _ unionlen ( self, * args )
[ -0.73480224609375, -0.15650631487369537, 0.10004141926765442, 0.2443132847547531, -0.02573135308921337, 0.262071430683136, 0.8202546238899231, 0.9409205913543701, 0.2339857667684555, -0.3765522539615631, -0.6381937265396118, 0.2781287133693695, -0.23730231821537018, 0.18429335951805115, ...
def isin ( self, * args ) : return _ snap. tintintvv _ isin ( self, * args )
[ -1.129225492477417, -0.32439669966697693, 0.858759343624115, 1.0495197772979736, 0.02291223220527172, 0.20068445801734924, 0.13538995385169983, 0.49232566356658936, -0.37413594126701355, -0.4907015860080719, -0.6891513466835022, 1.2432395219802856, -1.4923584461212158, -0.3050726056098938,...
def v2t ( self, vec ) : return self. dict. vec2txt ( vec )
[ -0.042384423315525055, -0.8681240081787109, 0.45824316143989563, -1.2736408710479736, -0.37729182839393616, -0.6667330861091614, -0.3266967236995697, -0.38336434960365295, -0.3333180546760559, 0.9136048555374146, -1.0944321155548096, -0.020286420360207558, 0.5580572485923767, -0.9291547536...
def tgstat _ getvalstr ( * args ) : return _ snap. tgstat _ getvalstr ( * args )
[ 0.11087989062070847, 0.04852331429719925, -0.2514760494232178, 0.7359362244606018, -0.18252156674861908, 1.323201060295105, -0.06568819284439087, -1.3911758661270142, -1.479037880897522, -0.2509905695915222, 0.4562482237815857, -0.6754418611526489, 0.21148699522018433, 0.4651359021663666, ...
def test _ inscription _ date _ limit ( self ) : now = datetime. datetime ( 2016, 6, 17, 8, 0, 0 ) self. assertredirects ( self. resp, r ('tournaments : list') )
[ -0.21726946532726288, 0.7508708238601685, 0.4718034267425537, -0.10933595150709152, 0.3978734314441681, 0.8751503825187683, 0.402089387178421, 0.2596302628517151, 0.46924108266830444, 0.3866807520389557, 0.007237722165882587, -0.11978986114263535, 0.48754045367240906, -0.22580604255199432,...