text
stringlengths
25
2.19k
embedding
listlengths
768
768
def isinbin ( self, * args ) : return _ snap. tcncomv _ isinbin ( self, * args )
[ -0.3445054888725281, 0.1264069676399231, 0.5420167446136475, 0.3831489384174347, 0.7105284929275513, 0.07143469154834747, 0.42240625619888306, -0.38124698400497437, -0.5493160486221313, -0.435585081577301, -0.49111834168434143, 0.5954686999320984, -1.037855863571167, 1.1454097032546997, ...
def getv ( * args ) : return _ snap. tfltv _ getv ( * args )
[ -0.1791202276945114, 0.27587857842445374, 0.19532416760921478, 0.6916715502738953, 0.9493889808654785, -0.12694193422794342, 0.8930091857910156, 0.811357319355011, -0.9140498042106628, -0.5538627505302429, -0.1669134646654129, 0.03102211095392704, 0.26175281405448914, 1.0510485172271729, ...
def setup _ loss ( self ) : with vs. variable _ scope ( " loss " ) : span1, span2 = tf. split ( self. span, num _ or _ size _ splits = 2, axis = 1 ) loss1 = tf. nn. sparse _ softmax _ cross _ entropy _ with _ logits ( labels = tf. reshape ( span1, [ - 1 ] ), logits = self. flat _ logits1, name ='loss1') loss2 = tf. nn....
[ -0.5181409120559692, -0.10013614594936371, 0.4081849455833435, -0.3825478255748749, 0.3948031961917877, -0.03652848303318024, 0.6968348622322083, 0.13126826286315918, 0.3717348575592041, 0.27401986718177795, 0.3371801972389221, 0.5487909913063049, 0.6813706755638123, -0.2581641674041748, ...
def _ read _ json _ policy _ reform _ text ( text _ string ) : # pylint : disable = too - many - locals # strip out / / - comments without changing line numbers json _ str = re. sub ('/ /. * ','', text _ string ) # convert json text into a python dictionary try : raw _ dict = json. loads ( json _ str ) except valueerro...
[ -0.11036771535873413, -0.24080519378185272, 0.9050814509391785, -1.5661059617996216, -1.2419955730438232, 0.325741708278656, -0.06465711444616318, 0.23726710677146912, -0.5542316436767578, 1.0406430959701538, -0.24332109093666077, 0.507325291633606, 0.32367995381355286, -0.1637020409107208...
def get _ likes _ count ( obj ) - > int : return get _ object _ likes _ count ( obj = obj )
[ -0.3154585361480713, 0.09572330862283707, 0.5998179912567139, -0.0465824119746685, -0.6542276740074158, 0.28577035665512085, 0.427202433347702, -0.6481845378875732, -0.09336251020431519, 0.09201714396476746, -0.9061680436134338, 1.0059303045272827, 0.17738783359527588, -0.22959619760513306...
def manage _ packet ( self, packet ) : ip _ layer = packet. getlayer ( ip ) src = ip _ layer. src dst = ip _ layer. dst print ( " [! ] new packet : { src } - > { dst } ". format ( src = src, dst = dst ) ) self. mongo. add _ to _ db ( src, dst )
[ -1.0013736486434937, 1.1120227575302124, 0.483317494392395, -0.9025940895080566, 0.3623614013195038, 0.21129098534584045, -0.47797659039497375, 0.08108159899711609, 0.26142922043800354, -0.15330588817596436, -0.36666882038116455, -0.11886786669492722, -0.004916704259812832, -0.011688294820...
def addmol ( self, mol, centerit = true, moltrans = none, drawingtrans = none, highlightatoms = [ ], confid = - 1, flagclosecontactsdist = 2, highlightmap = none, ignorehs = false, highlightbonds = [ ], * * kwargs ) : conf = mol. getconformer ( confid ) if'coordscale'in kwargs : self. drawingoptions. coordscale = kwarg...
[ -0.16622798144817352, -1.0508451461791992, 0.9901283383369446, -0.27441805601119995, -0.17467163503170013, 0.495022714138031, -0.13975931704044342, -0.04627680405974388, 0.7183253765106201, -0.691347599029541, -0.2025657594203949, -0.21712666749954224, -0.4332505166530609, -0.1044441089034...
def get _ needed _ dirs ( files ) : dirs = [ ] for f in files : for d in new _ dirs : if f. startswith ( d ) : dirs. append ( d ) return dirs
[ -1.3152002096176147, -0.7673200368881226, 0.5548552870750427, 0.8007558584213257, 0.005907786078751087, 0.2803988456726074, 0.35872939229011536, 0.1657709926366806, -0.1003478467464447, 0.34264108538627625, 0.0774693489074707, 0.47954317927360535, -0.2479497492313385, 1.25873863697052, -...
def test _ get _ github _ username ( self ) : pass
[ 0.24826449155807495, 0.35687685012817383, 0.08467674255371094, 1.8409783840179443, 0.7704069018363953, -0.02365727350115776, 1.1995891332626343, 0.6640697717666626, -0.2744283378124237, -0.6120443940162659, -0.41057854890823364, 0.10894294083118439, -1.1094578504562378, -0.1248294487595558...
def fast _ power ( a, n, m ) : # ( a ^ n ) % m result = 1 value = a power = n while power > 0 : if power % 2 = = 1 : result = result * value result % = m value = value * value value % = m power = power / / 2 return result
[ 0.13886450231075287, 0.5003308057785034, 0.3654898405075073, 0.7243905067443848, -0.5711348056793213, -1.06209135055542, 0.17849086225032806, 0.07451869547367096, -0.4275364279747009, -0.310629665851593, 0.7876326441764832, -0.46906521916389465, -0.5151887536048889, 0.7305812239646912, 0...
def auto _ make _ code ( * args ) : return _ ida _ auto. auto _ make _ code ( * args )
[ -1.0575752258300781, 0.23974061012268066, 0.20699743926525116, 0.43974384665489197, -0.10303550213575363, -0.44934025406837463, 1.1564395427703857, -0.21897901594638824, -0.608109176158905, -0.13091544806957245, -0.8437799215316772, 0.06895150989294052, 0.21506066620349884, -0.009829168207...
def geteaintvi ( self, * args ) : return _ snap. tneanet _ geteaintvi ( self, * args )
[ -1.1440011262893677, -0.11046183109283447, 0.16385851800441742, -0.737907886505127, 0.8169033527374268, -0.1537829041481018, 0.39835619926452637, -0.8883553147315979, -0.8282354474067688, 0.4327251613140106, -0.2457543909549713, -1.446655511856079, -0.5139384269714355, 0.21782787144184113,...
def matrix _ distance ( matrix _ a, matrix _ b ) : return _ create _ and _ connect _ node ('matrix _ distance ', matrix _ a, matrix _ b )
[ 0.510378897190094, -0.30070123076438904, 0.508704423904419, -0.0010969764553010464, -0.607710599899292, 0.19440202414989471, -0.05606813728809357, 0.34500357508659363, 0.11447207629680634, 0.8176470994949341, 0.39570581912994385, 0.5154223442077637, -0.32384610176086426, -0.296854317188262...
def get _ tracks _ from _ album ( self, album, progress = progress ( ) ) : q = { " limit " : 50 } url = " albums / { } / tracks ". format ( album ['id'] ) page = self. get _ api _ v1 ( url, q ) results = self. _ extract _ page ( page, progress ) tracks = [ ] for track in results : track ['album'] = album tracks. append...
[ -0.6335058808326721, 0.17315776646137238, 0.6691370010375977, 0.9207749366760254, 0.7804099321365356, 0.3311578929424286, -0.634337842464447, -0.7769327759742737, -0.7631899118423462, 0.48192915320396423, -0.5119643807411194, -0.7905240654945374, -0.7873501777648926, -0.1726544350385666, ...
async def terminate _ provisioned _ product _ with _ options _ async ( self, request : servicecatalog _ 20210901 _ models. terminateprovisionedproductrequest, runtime : util _ models. runtimeoptions, ) - > servicecatalog _ 20210901 _ models. terminateprovisionedproductresponse : utilclient. validate _ model ( request )...
[ -1.498360276222229, -0.21011020243167877, 0.4766053259372711, 0.3006824851036072, 0.19341813027858734, 0.24105271697044373, -0.4827052652835846, -0.8908528089523315, 0.7416019439697266, 0.30453595519065857, -0.03673877194523811, 0.2565544545650482, -0.564318060874939, 0.3899785280227661, ...
def main ( ) : try : # establishing the connection with postgresql database # change the parameters below accordingly connection = psycopg2. connect ( database = " project ", user = " postgres ", \ password = " ", host = " 127. 0. 0. 1 ", port = " 5432 " ) cursor = connection. cursor ( ) print ( " = = = = = = = = = = =...
[ 0.29178106784820557, -0.024961458519101143, 0.7991663217544556, 0.9573066234588623, 0.17115184664726257, -0.11011763662099838, 0.7576640844345093, 0.5232856273651123, -1.2514493465423584, 0.1896052211523056, 0.41016125679016113, 0.07009980082511902, -0.7919411659240723, 0.6511884331703186,...
def arc _ cordinates ( arc, circumference ) : y = np. sin ( arc * ( 2. * np. pi / circumference ) ) x = np. cos ( arc * ( 2. * np. pi / circumference ) ) return y, x
[ -0.23799476027488708, -1.1981356143951416, 0.5922915935516357, -1.5575683116912842, 0.4885566830635071, -0.8394824862480164, -0.0868149846792221, 0.2849328815937042, 0.5804845690727234, 0.19689099490642548, 0.4889500141143799, 1.2687327861785889, 0.7276060581207275, -0.3984031081199646, ...
def rates _ for _ yr ( population, rates _ all _ years, sim _ year ) : rates _ yr = rates _ all _ years [ rates _ all _ years ['yr'] = = sim _ year ] pop _ w _ rates = population. join ( rates _ yr ) return pop _ w _ rates
[ 0.728316068649292, -0.14331123232841492, 0.3690214455127716, 0.33191707730293274, 0.10829316824674606, 0.10488469153642654, -0.3987528085708618, 0.1179133802652359, 0.10375858098268509, 1.385811448097229, 0.8405305743217468, -0.666712760925293, -0.49428287148475647, -0.057725414633750916, ...
def putstrln ( self, * args ) : return _ snap. tsout _ putstrln ( self, * args )
[ 0.18250708281993866, 0.7206109762191772, 0.5568212270736694, 0.5498434901237488, -0.34640535712242126, -0.6252353191375732, 0.6631640791893005, 0.8337565660476685, -0.5617401003837585, 0.472472220659256, -1.5436619520187378, -0.33644795417785645, -0.6034864187240601, -0.09627297520637512, ...
def treeedge ( self, * args ) : return _ snap. tbiconvisitor _ treeedge ( self, * args )
[ -0.6286966800689697, 1.016094446182251, 0.026010600849986076, 0.5713820457458496, 0.9347267150878906, -0.19592586159706116, 0.995973527431488, 0.7306851744651794, -1.7731157541275024, 0.3052237331867218, 0.06941276788711548, -0.8189876079559326, -1.5344074964523315, 0.4935356676578522, 1...
def _ _ lt _ _ ( self, * args ) : return _ snap. tstrprstrvhi _ _ _ lt _ _ ( self, * args )
[ 0.41275104880332947, -0.9641242027282715, 0.3140259385108948, -0.8928130269050598, 0.5470693707466125, 0.393555223941803, -0.675850510597229, -0.5582613945007324, -1.3208043575286865, -0.1521453559398651, -0.5085057616233826, -1.117742896080017, -1.7552181482315063, -0.019765770062804222, ...
def encoder _ generate _ edits ( self, encoder _ input ) : source _ words = encoder _ input. source _ words source _ word _ embeds = self. editor. encoder. token _ embedder. embed _ seq _ batch ( source _ words ) insert _ embeds = self. editor. encoder. token _ embedder. embed _ seq _ batch ( encoder _ input. insert _ ...
[ -0.48615503311157227, 0.15024471282958984, 0.7377023100852966, -0.30224788188934326, -0.42715173959732056, 0.561882734298706, 1.0685973167419434, 0.5251609683036804, 0.4486439526081085, 0.14257289469242096, -0.37267187237739563, 0.2607971429824829, 0.23334988951683044, 0.6982274651527405, ...
def begnaflti ( self, * args ) : return _ snap. tneanetmp _ begnaflti ( self, * args )
[ 1.1288702487945557, -0.577021062374115, 0.04907899349927902, -0.7735028266906738, 1.3113174438476562, 0.24370433390140533, -0.10110542923212051, -0.2895866632461548, -0.9371150135993958, 0.4372572898864746, -0.2856270670890808, -0.9803642630577087, -0.2373979240655899, 0.9295575618743896, ...
def silhouette _ score ( data, centroids ) : # # # start code here # # # clusters = get _ clusters ( data, centroids ) # first lets find the average distance to all other object in its own cluster a = [ ] for cluster in clusters : for point in cluster : distances = np. linalg. norm ( np. array ( point ) - np. array ( c...
[ 0.1538950502872467, -0.8553587198257446, 0.8472869992256165, 0.010645965114235878, 0.2039380818605423, -0.3986280858516693, 0.5667629241943359, -0.038796909153461456, 0.1221310943365097, 1.1951879262924194, -0.35048454999923706, 0.4603745937347412, -0.22776058316230774, -0.2953763306140899...
def _ _ lt _ _ ( self, * args ) : return _ snap. tstr _ _ _ lt _ _ ( self, * args )
[ 0.449047327041626, -0.4202651381492615, 0.1941952407360077, -1.1574803590774536, 0.4936390519142151, -0.0358230285346508, -0.22114187479019165, -0.9229968786239624, -1.359049916267395, -0.627892792224884, -0.8112260699272156, -1.3539692163467407, 0.1987799108028412, 0.2852456569671631, 0...
def getweightoutedgesv ( self, * args ) : return _ snap. tneanetmp _ getweightoutedgesv ( self, * args )
[ 0.02471073344349861, 0.017596915364265442, 0.40939053893089294, -0.4861666262149811, 0.3141454756259918, -0.7522775530815125, 0.45073339343070984, 0.04515321925282478, -0.10814889520406723, 0.33997252583503723, -0.24569861590862274, -0.6929473876953125, 0.21169398725032806, 0.2810688912868...
def reserve ( self, * args ) : return _ snap. tmem _ reserve ( self, * args )
[ -0.4132440686225891, 0.5178636312484741, 0.08593636006116867, -0.37376514077186584, 1.2094467878341675, -0.015713663771748543, 0.7787274718284607, -0.028426101431250572, -1.103742241859436, -0.6726065278053284, -0.6192827820777893, -1.1451843976974487, -1.09573495388031, 0.0602581128478050...
def extractandextend ( blocks, cdsseq, geneseq ) : blocks = [ [ 0, 0, 0, 0, 0, 0 ] ] + order ( blocks ) + [ [ len ( cdsseq ), len ( cdsseq ), len ( geneseq ), len ( geneseq ), 0, 0 ] ] remainingblocs = [ ] for i in range ( 0, len ( blocks ) - 1 ) : if blocks [ i ] [ 1 ] = = blocks [ i + 1 ] [ 0 ] : pass else : bloc = [...
[ 0.24314041435718536, -0.2599322497844696, 1.0130159854888916, 0.8012754917144775, -0.760031521320343, -0.5058937072753906, 0.39756283164024353, 0.7308146357536316, 0.2951650619506836, 1.1778521537780762, -1.4569092988967896, -0.16400721669197083, -1.221977949142456, 0.21155989170074463, ...
def new ( * args, * * kargs ) : obj = itksubtractconstantfromimagefilterius2dius2 _ superclass. _ _ new _ orig _ _ ( ) import itktemplate itktemplate. new ( obj, * args, * * kargs ) return obj
[ 0.6965572834014893, -0.5641161799430847, 0.46518272161483765, -0.7979210019111633, -1.2445087432861328, -0.36394619941711426, 0.1619730144739151, 0.7157779335975647, -0.3147050142288208, -0.9801145195960999, -1.2866883277893066, 0.5075488090515137, 0.46168437600135803, -0.1862974911928177,...
def invalidate _ permission ( sensorgroup ) : sensor _ group = sensorgroup. objects ( name = sensorgroup ). first ( ) pipe = r. pipeline ( ) sensors _ list = r. smembers ('sensorgroup : { } '. format ( sensor _ group ['name'] ) ) for sensor in sensors _ list : pipe. delete ( sensor ) pipe. execute ( )
[ -0.47292429208755493, 0.2594449520111084, 0.26929011940956116, 0.1857602447271347, -0.17730474472045898, -1.0661321878433228, 0.17590144276618958, -0.39105287194252014, 0.4421755075454712, 0.8208207488059998, 0.6643203496932983, 0.26166385412216187, -1.5347949266433716, 0.6457822322845459,...
def strattrnameei ( self, * args ) : return _ snap. tcrossnet _ strattrnameei ( self, * args )
[ -0.03461918234825134, 0.7015870213508606, 0.34911370277404785, 0.07954681664705276, 0.24226951599121094, 0.278085857629776, 0.8652918338775635, -1.024765968322754, -1.185089349746704, 0.6152375340461731, -0.39058277010917664, -1.2200610637664795, -0.47969257831573486, -0.12098100781440735,...
def patches2array2 ( patches, img _ size, nn _ input _ patch _ size = ( 64, 64 ), step _ size = 16, nn _ output _ patch _ size = ( 16, 16 ) ) : window _ output _ size = ( step _ size, step _ size ) patches _ in _ row = ( img _ size [ 1 ] - nn _ input _ patch _ size [ 1 ] ) / / step _ size + 1 arr = np. empty ( ( 0, pat...
[ -0.288326233625412, -0.783218502998352, 0.9988734722137451, -0.01950775273144245, -0.8748283982276917, -0.041415367275476456, 0.8103261590003967, -0.980955183506012, 0.1731334924697876, 0.03311494365334511, -0.08542348444461823, 0.5918503999710083, 0.12751361727714539, 0.9458556175231934, ...
def addedgeunchecked ( self, * args ) : return _ snap. tneanetmp _ addedgeunchecked ( self, * args )
[ -0.37429553270339966, 0.12984351813793182, 0.3370833694934845, -0.30916547775268555, 1.4683090448379517, 0.9026532173156738, 0.6588971018791199, 0.4008600413799286, -0.2439660280942917, 0.024524593725800514, -0.06778611987829208, -1.0429471731185913, -0.49799904227256775, 0.887310504913330...
def plot _ detect _ series ( sim _ names, ref _ sim, fname = none ) : print'detect series : ', ref _ sim, sim _ names # settings xlbl ='metric'ylbl ='threshold'all _ sims = [ ref _ sim ] + sim _ names y _ ticks _ lbl = ['inv'] + range ( 15, 35, 5 ) + ['inv'] fig _ sz = ( 10, 5 ) axis _ pad _ x = 0. 5 axis _ pad _ extra...
[ 0.9773180484771729, 0.23817451298236847, 0.7867681980133057, -0.12125387042760849, -0.33307281136512756, 0.47577938437461853, 0.7496691942214966, -0.36811718344688416, -0.21418289840221405, 0.6617401242256165, 0.3245027959346771, 0.6987056136131287, 0.40644219517707825, 0.41970545053482056...
def checkout ( self, train, test ) : assert ( train [ " x " ]. isnull ( ). sum ( ). sum ( ) = = 0 ), f " warning train has nulls at checkout " assert ( " features " in train ), " training features vector is missing. " assert ( " y " in train ), " y _ train vector is missing. " assert ( train [ " x " ]. shape [ 0 ] = = ...
[ 0.45331883430480957, 0.22338785231113434, 0.8473228812217712, -0.5878909826278687, 0.6014540195465088, -0.10369650274515152, 0.2541201710700989, 0.2681088447570801, -0.1848243921995163, 0.382346510887146, 0.014651298522949219, 0.5637710094451904, 0.8622117042541504, -0.5634909272193909, ...
def query _ summary ( self, rec ) : raise notimplementederror ( )
[ -1.237072229385376, 0.5080842971801758, 0.44741958379745483, -0.33813077211380005, -0.32381758093833923, 0.5363177061080933, 0.3297244608402252, -0.47352081537246704, 0.23079435527324677, 0.4179554879665375, 0.3633935749530792, 0.24143871665000916, 0.1063145250082016, -0.017218073830008507...
def tree _ based _ non _ dominated _ sort ( f ) : n, m = f. shape # sort the rows in f indices = np. lexsort ( f. t [ : : - 1 ] ) f = f [ indices ] obj _ seq = np. argsort ( f [ :, : 0 : - 1 ], axis = 1 ) + 1 k = 0 forest = [ ] left = np. full ( n, true ) while np. any ( left ) : forest. append ( none ) for p, flag in ...
[ -0.33209845423698425, -0.44836190342903137, 0.9143315553665161, 0.13616110384464264, -0.5218529105186462, 0.23733696341514587, 0.012633359991014004, -0.0205288827419281, -0.7449166774749756, 1.0234142541885376, 0.07734470069408417, 0.177862748503685, -0.283857524394989, 1.2480509281158447,...
def loss _ accuracy _ plot ( df : dataframe ) : _ start _ index _ from _ one ( df ) fig, axes = plt. subplots ( nrows = 1, ncols = 2, figsize = ( 12. 8, 4. 8 ) ) for i in range ( 2 ) : sns. lineplot ( data = df [ _ loss _ accuracy _ columns [ i ] ], markers = ['o ','o'], ax = axes [ i ] ) axes [ i ]. set ( title = f " ...
[ 0.05980142951011658, 0.06347018480300903, 0.5358525514602661, -0.588653028011322, -0.0782906711101532, 0.2457752823829651, 0.6190612316131592, -0.17955660820007324, -0.015297742560505867, -0.5172086954116821, 0.34591418504714966, 1.450451135635376, 1.335033655166626, -0.08464032411575317, ...
def _ _ ixor _ _ ( self, * args ) : return _ snap. tuint _ _ _ ixor _ _ ( self, * args )
[ -0.8793617486953735, 0.3955128490924835, 0.24624982476234436, 0.13037338852882385, -0.15254318714141846, 0.2916698455810547, -0.5809463858604431, 0.11761152744293213, -0.9972573518753052, -0.1806587427854538, -0.36108484864234924, -2.0324723720550537, 0.03169502690434456, -1.46838569641113...
def softmax ( x ) : e _ x = np. exp ( x - np. max ( x ) ) return e _ x / e _ x. sum ( axis = 0 )
[ 0.8649698495864868, 0.4100235402584076, 0.586788535118103, 0.8714758157730103, -0.7606977820396423, -0.22649173438549042, -0.49580153822898865, 0.8991497755050659, 1.4858969449996948, 0.4267454147338867, -0.25058120489120483, 0.5910142660140991, 0.45821714401245117, -0.3392471373081207, ...
def inbox ( ) : global username return template ( " inbox ", username = username )
[ 0.34095340967178345, -0.10244721919298172, 0.2331719994544983, 0.29825359582901, -1.810794711112976, 0.03581542521715164, 0.2702219486236572, 0.5886532068252563, -0.5298103094100952, -0.6769260168075562, -0.7020655274391174, 0.3979946970939636, -0.8739323616027832, -0.34016016125679016, ...
def stack _ search ( start, expand, mode ='bfs ', build _ inv = false ) : if mode not in ('bfs ','dfs') : raise valueerror ('mode should be bfs or dfs ', mode ) rval _ set = set ( ) rval _ list = list ( ) if mode is'bfs': start _ pop = start. popleft else : start _ pop = start. pop expand _ inv = { } while start : l = ...
[ -0.27379053831100464, 0.5776244401931763, 0.7515963912010193, 0.5355444550514221, -0.42521706223487854, -0.5585313439369202, -0.1765519380569458, 0.45555269718170166, -0.36524730920791626, 0.8460514545440674, -0.45792949199676514, -0.3698643445968628, -1.0507032871246338, 0.171055555343627...
def add _ multiple _ values ( self, values, template = " in _ file _ % 02i " ) : kwargs = { } for file _ key, value in self. _ get _ new _ kwarg _ keys ( values, template ) : self. add _ value ( " % % ( % s ) s " % ( file _ key, ) ) kwargs [ file _ key ] = value self. set _ kwargs ( * * kwargs ) return kwargs
[ -0.9699893593788147, 0.11036282777786255, 0.46728000044822693, -0.044546619057655334, -0.028407873585820198, -0.2812286615371704, -1.007355809211731, 0.2599525451660156, -1.2518402338027954, -0.0886370986700058, -1.13942289352417, -0.912392258644104, 0.14746136963367462, 1.9239495992660522...
def _ _ getattr _ _ ( self, name ) : return getattr ( self. _ state, name, none )
[ -0.5775533318519592, -1.3007071018218994, 0.5602309703826904, -1.1195029020309448, -1.1900020837783813, -0.9604700207710266, -0.09095467627048492, -1.2063674926757812, 0.6914809942245483, 0.09853614866733551, 0.018273888155817986, -0.2796507775783539, 0.5778454542160034, -0.195266798138618...
def _ _ lt _ _ ( self, * args ) : return _ snap. tstrtrinthi _ _ _ lt _ _ ( self, * args )
[ 1.478285789489746, -0.7740227580070496, 0.16266600787639618, -1.7968839406967163, 0.3891388475894928, -0.13566000759601593, -0.08097994327545166, -0.5231682062149048, -1.688420295715332, -0.1850115805864334, -0.9926357269287109, -0.7896812558174133, -0.5974911451339722, 0.0867137610912323,...
def inc _ val ( self ) : self. action [ " value " ] + = self. action [ " delta " ]
[ -0.5393874645233154, 0.3457052409648895, 0.5790437459945679, 0.6279085874557495, 0.43691015243530273, 1.109629511833191, 0.6830503940582275, -0.23673732578754425, -0.3446255922317505, -0.47093936800956726, -0.3013061285018921, 0.7924010753631592, 0.891973614692688, 0.07849422097206116, -...
def fltattrnameni ( self, * args ) : return _ snap. pneanet _ fltattrnameni ( self, * args )
[ -0.7977064847946167, 0.8280749320983887, 0.06663808971643448, 0.02456720359623432, -0.11451117694377899, -0.0654502883553505, -0.6594501733779907, -1.516032099723816, -0.9265812039375305, -0.2506241500377655, -1.2139759063720703, -0.6635034084320068, -0.26558825373649597, -0.00769316870719...
def augment ( self, augmentation ) : raise notimplementederror ( )
[ -0.9636698961257935, -0.28336840867996216, 0.3803757131099701, 0.46621593832969666, 0.32780107855796814, 0.22521941363811493, 0.4060879647731781, -0.011364491656422615, 0.7870014905929565, -0.36527034640312195, -0.7534441947937012, 0.5465594530105591, 0.5477169752120972, 0.816277027130127,...
def run _ query ( cur, sql, params = none, * * kwargs ) : params = params or kwargs sql = querybuilder ( sql, params ). get _ sql ( 0 ) cur. execute ( sql ) rows = cur. fetchall ( ) # convert result rows to dbdict if rows : rows = [ skytools. dbdict ( r ) for r in rows ] return rows
[ 0.2838234007358551, 0.4865756928920746, 0.44971176981925964, 0.36315926909446716, -0.703437328338623, -0.661648690700531, -1.5161045789718628, 0.9767215847969055, 0.5462466478347778, -0.0340379998087883, 0.3349621593952179, -0.10870654135942459, -0.3038850426673889, 1.3886617422103882, -...
def _ assignment ( self, arr, num ) : if arr. shape = = ( ) : arr = arr. reshape ( ( 1 ) ) arr [ : ] = num arr = arr. reshape ( ( ) ) else : if isinstance ( num, np. ndarray ) : arr [ : ] = num [ : ] else : arr [ : ] = num return arr
[ -0.6837742328643799, -0.15231657028198242, 0.5686367154121399, 0.514979898929596, -0.10703320056200027, -0.641909658908844, 0.6041998267173767, 0.4092103838920593, 1.1363534927368164, 0.7945263981819153, 1.1296641826629639, 0.7061007618904114, 0.0946330651640892, 0.5663780570030212, 0.80...
def _ _ call _ _ ( self, * args ) : return _ snap. tstr _ _ _ call _ _ ( self, * args )
[ -0.8411484360694885, 0.8738802671432495, 0.13445036113262177, -0.3335588276386261, -0.21309766173362732, 0.34588876366615295, -0.25872179865837097, -0.7326701879501343, -0.962190568447113, 0.24929416179656982, -0.44570618867874146, -1.490607738494873, 0.4090346097946167, -0.303853094577789...
def combine _ fasta _ files ( fnames : list [ str ], dedup _ sequences : bool = true ) - > dict [ str, str ] : fasta _ dicts = [ read _ file _ as _ sequence _ dict ( fname ) for fname in fnames ] retval = { } for seq _ dict in fasta _ dicts : for seq _ name, seq in seq _ dict. items ( ) : if not dedup _ sequences : ass...
[ -0.8756266832351685, -0.45464202761650085, 0.6233343482017517, 0.019695304334163666, -0.7422172427177429, -0.36890754103660583, 0.41343286633491516, 0.19152560830116272, -0.33566316962242126, 0.6178674101829529, -0.4681555926799774, -0.9175502061843872, 0.5756387710571289, 0.77101916074752...
def test _ fees ( accountant :'accountant ', expected _ pnls : list [ fval ] ) : history = [ trade ( timestamp = timestamp ( 1677593073 ), location = location. external, base _ asset = a _ eth, quote _ asset = a _ eur, trade _ type = tradetype. buy, amount = assetamount ( fval ( 100 ) ), rate = price ( fval ( 50 ) ), f...
[ 0.5725908875465393, 0.7793875932693481, 0.9740675687789917, -0.5518870949745178, 0.9928591847419739, 0.428951621055603, 1.0386935472488403, 0.2577207684516907, 0.0914994329214096, -0.3352372646331787, 0.0051320395432412624, 0.5553509593009949, 0.5274975895881653, 0.4824010133743286, 0.25...
def test _ attack ( self ) : unit1 = unit ( ) unit2 = unit ( ) self. assertequal ( unit1. damage, 10 ) self. assertequal ( unit2. health, 100 ) unit1. attack ( unit2 ) self. assertequal ( unit2. health, 90 )
[ -0.7744941115379333, -0.4541718661785126, 0.5488245487213135, 0.01027248427271843, 1.3935736417770386, 0.4655437171459198, 0.4349493980407715, 0.02637430652976036, -0.29689306020736694, -0.9086740612983704, 0.17519159615039825, 0.6767942905426025, -0.14530222117900848, -0.6312159299850464,...
def show _ multipolygon ( multipolygon, axis, show _ coords, extent, color, alpha, title ) : for polygon in multipolygon : if show _ coords : plot _ coords ( axis, polygon. exterior ) patch = polygonpatch ( polygon, facecolor = color, edgecolor = color, alpha = alpha, zorder = 2 ) axis. add _ patch ( patch ) xmin, ymin...
[ 0.44291070103645325, -0.7707449197769165, 0.8092212080955505, -0.6441939473152161, -1.2102434635162354, 0.8215047121047974, -0.4044262766838074, 0.03305623307824135, 0.653660774230957, 0.16752371191978455, 0.16471022367477417, 0.9175275564193726, 0.19926674664020538, -0.2989088296890259, ...
def kmeans ( data, centroids ) : # we give the change in the centroid values a 1 % tolerance tolerance = 0. 005 # we need to keep making the clusters until the centroids stop changing # use the isoptimal attribute to break if the change is less than a certain tolerance isoptimal = false while not isoptimal : # this is ...
[ 0.36078253388404846, -0.3326647877693176, 0.48229947686195374, 0.8161933422088623, -0.28814437985420227, -0.2790152132511139, -0.5111030340194702, 0.15766121447086334, 0.2544326186180115, 1.190524697303772, 0.009280258789658546, 0.7196797728538513, -0.44024956226348877, -0.5890111327171326...
def describe _ array ( array : np. ndarray, include : optional [ union [ str, int, list [ union [ str, int ] ] ] ] = none, exclude : optional [ union [ str, int, list [ union [ str, int ] ] ] ] = none, * * kwargs : bool ) - > dict [ union [ str, int ], union [ str, int, float, bool, np. ndarray, dict [ str, union [ str...
[ -0.49819546937942505, 0.10229580104351044, 0.9251628518104553, 0.03560476005077362, -0.722287654876709, -0.1969911754131317, 0.5546437501907349, 0.002829121658578515, -0.11991431564092636, 0.28428915143013, 1.0103944540023804, 1.3380162715911865, 0.041321996599435806, 1.1122335195541382, ...
def create ( * * kwargs ) - > none : if ( err : = _ sendrequest ( requests. post, * * kwargs ) ) is not none : printhtmlerror ( err )
[ 0.2028186321258545, 0.9072429537773132, 0.547709047794342, 1.2162355184555054, 0.6913495063781738, 0.8879101276397705, -1.267300009727478, -1.098801851272583, -0.9374839067459106, -0.27636149525642395, -0.2508928179740906, 0.10302089154720306, -0.7889449596405029, 0.7941003441810608, 0.1...
def set _ light _ cam _ pos ( self, light _ cam _ pos ) : self. light _ cam _ pos = light _ cam _ pos
[ -0.07318343967199326, -1.6914633512496948, 0.41853246092796326, 0.053041040897369385, 0.1609925478696823, 0.4986114501953125, -0.24728213250637054, -0.4934844970703125, 0.01619858294725418, -0.8994506001472473, -1.5789077281951904, -0.4341723322868347, -0.24474209547042847, 0.7326435446739...
def putstr ( self, * args ) : return _ snap. tsout _ putstr ( self, * args )
[ -0.0854419693350792, 0.5696293711662292, 0.417226105928421, 0.5039864182472229, -0.44140297174453735, 0.10906969755887985, 1.1950339078903198, 0.17208607494831085, -1.1957756280899048, 0.2211207151412964, -0.27500101923942566, -0.745758056640625, -0.4020480513572693, -0.0016181899700313807...
def test _ add _ bearer _ token ( self ) : # invalid token type client = client ( self. client _ id, token _ type = " invalid " ) self. assertraises ( valueerror, client. add _ token, self. uri ) # case - insensitive token type client = client ( self. client _ id, access _ token = self. access _ token, token _ type = "...
[ 0.0982152447104454, 0.2503492534160614, 0.8973895311355591, -0.46809813380241394, 0.6507523655891418, 0.5718358755111694, 0.10113932937383652, -0.22267977893352509, 0.09024687856435776, -1.1628336906433105, -0.46854913234710693, -0.13434961438179016, -0.07961126416921616, 0.030204836279153...
def _ _ exit _ _ ( self, exc _ type, exc _ val, exc _ tb ) : self. close ( )
[ 0.12048632651567459, -0.8002947568893433, 0.6445279717445374, 0.21483437716960907, -0.2077314853668213, 0.8274556994438171, 0.6310141086578369, 0.019224019721150398, -0.1264026165008545, -0.30198171734809875, 1.138527750968933, -0.12495581060647964, -0.42177632451057434, 0.2462201267480850...
def fix _ missing _ frames ( frame _ df, framesync _ fpath ) : with open ( framesync _ fpath,'r') as f : sync _ data = yaml. load ( f ) for d in sync _ data : print ( " fixing missing buttons in { } ". format ( d ['name'] ) ) print ( " using { } as reference. ". format ( d ['reference _ name'] ) ) new _ startframe = d ...
[ -0.40660396218299866, -0.37732431292533875, 0.8239597678184509, 0.15802785754203796, 0.10973747819662094, -0.12341661006212234, 0.6348659992218018, -0.18609550595283508, 0.2229621708393097, 0.03333691507577896, -0.5948643088340759, 0.5848038196563721, 0.44877737760543823, 0.628823220729827...
def is _ legal _ move ( game _ board, row, col ) : " " " this converts row and col, which are strings, into integers. if the inputed row and col cannot be converted into an integer, the function returns false " " " try : row = int ( row ) col = int ( col ) except valueerror : return false if row > = 0 and row < = 2 and...
[ 0.6058787703514099, -0.03360464423894882, 0.9127417206764221, 0.11985989660024643, -0.5531063675880432, 0.4392002522945404, -0.6643439531326294, 0.4000501036643982, -0.3870578408241272, 0.17255370318889618, 0.6043177843093872, 0.40127798914909363, -0.6402541399002075, -0.16352346539497375,...
def ins ( self, * args ) : return _ snap. tintv _ ins ( self, * args )
[ -1.8219430446624756, 0.45041805505752563, 0.41655799746513367, -0.22925052046775818, -0.3660479784011841, 0.6216915249824524, 0.2625832259654999, -0.0071993637830019, -0.3812709152698517, -0.6574622988700867, -0.003578379051759839, 0.8582017421722412, -1.2759361267089844, 0.199339300394058...
def _ configure ( self ) : # configure if needed if'configure'in self. _ xpd. _ data : # todo : log this print'configuring...'self. _ run _ cmds ( self. _ xpd. _ data ['configure'] )
[ -0.49541768431663513, 0.08335655182600021, 0.3040909469127655, 0.4729897975921631, 0.5498640537261963, -1.2504712343215942, -0.5648891925811768, -0.324095755815506, -0.002119018230587244, -0.22374649345874786, 0.18592487275600433, -0.4299907386302948, 0.15952840447425842, 0.731297612190246...
def is _ prime ( n ) : if n = = 0 or n = = 1 : return false for i in xrange ( 2, n ) : if n % i = = 0 : return false return true
[ -1.211354374885559, 0.7718545794487, 0.25912266969680786, 0.8992618322372437, 0.7719095945358276, -0.1858530193567276, -0.9902084469795227, -0.03170301765203476, 0.8941582441329956, -0.511368989944458, -0.4785524010658264, -0.7810754776000977, -0.9969203472137451, 0.7885958552360535, -0....
def test _ get _ command _ for _ testrunner _ libssh2 ( self ) : executor = self. real _ executor executor. stand _ alone = false self. testrun. use _ libssh2 = true command = executor. _ get _ command _ for _ testrunner ( ) self. _ assertcommandcontains ( command, " testrunner - lite " ) self. _ assertcommandcontains ...
[ 0.20449960231781006, -0.42979907989501953, 0.5190011262893677, 0.3980896770954132, 0.8069629669189453, -0.02296048402786255, -0.5117112398147583, -0.06539709120988846, -0.2850225567817688, -1.066792368888855, -0.1904735416173935, 0.5831668376922607, 0.6674845814704895, 0.9677729606628418, ...
def link _ names ( self ) - > list [ str ] : return [ lnk. name for lnk in self. urdf. links ]
[ -0.339585542678833, -0.5941922068595886, 0.30907464027404785, 0.0818600207567215, 1.0755364894866943, 0.6963173151016235, -0.9881004095077515, 0.6767033934593201, 0.13552410900592804, -0.7934262156486511, -0.2616994380950928, 1.0930140018463135, 0.20877337455749512, 0.14077743887901306, ...
def cleanup _ dupes ( apps, schema _ editor ) : db _ alias = schema _ editor. connection. alias file = apps. get _ model ( " laxy _ backend ", " file " ) dupefiles = ( file. objects. using ( db _ alias ). values ( " fileset ", " path ", " name " ). annotate ( records = count ( " fileset " ) ). filter ( records _ _ gt =...
[ 0.7581613063812256, -0.4406370222568512, 0.678638219833374, -0.09613706171512604, 0.7100592851638794, -0.24375367164611816, 0.6046894192695618, 0.36915645003318787, -0.36291664838790894, -0.09343500435352325, -0.15052753686904907, -0.1184430941939354, 0.32641535997390747, 0.289434850215911...
def drive _ fmm ( expansion _ wrangler, src _ weights ) : wrangler = expansion _ wrangler geo _ data = wrangler. geo _ data traversal = geo _ data. traversal ( ) tree = traversal. tree # interface guidelines : attributes of the tree are assumed to be known # to the expansion wrangler and should not be passed. logger. i...
[ -0.2738870680332184, -0.1996268779039383, 0.7814638614654541, -0.4490630626678467, -0.1837639957666397, -0.020443188026547432, 0.6324429512023926, -0.34906846284866333, 0.5261984467506409, -0.5525141954421997, -0.07296444475650787, -0.2866072654724121, 0.02853681892156601, 0.58499020338058...
def p500 _ setup ( self ) : ctx = self. item _ start ( ) # always first line of test # drivers are stored in the shared _ state and are retrieved as, drivers = self. shared _ state. get _ drivers ( self. chan, type = driver _ type _ update ) if len ( drivers ) > 1 : self. logger. error ( " unexpected number of drivers ...
[ -0.45133283734321594, -0.8634169101715088, 0.804597020149231, -0.1851767599582672, 0.9706159830093384, -0.855316698551178, 0.6030057668685913, -0.3040442168712616, 0.2253376990556717, 0.21832235157489777, -0.7434262633323669, -0.31910619139671326, -1.3023631572723389, 0.07503682374954224, ...
def overlayremove ( self, event ) : self. overlayframe. place _ forget ( ) # hide the frame
[ 1.3880857229232788, -0.02680051699280739, 0.4679759740829468, -0.059947989881038666, -0.4101111590862274, 0.5332366824150085, 1.0576214790344238, 0.5142182111740112, 0.5876168608665466, 0.061914630234241486, -0.4667491614818573, 0.10395459085702896, -0.5895020365715027, -0.2591269314289093...
def to _ pyzx ( self ) : from pyzx import circuit zxqc = circuit. from _ qasm ( self. to _ qasm ( ) ) return zxqc
[ 0.263062983751297, -0.7346566915512085, 0.31247764825820923, -0.48429596424102783, -0.60716712474823, -0.17172661423683167, -0.01950305886566639, -1.4529991149902344, 1.3571068048477173, -1.0925438404083252, 0.09078720211982727, 0.5061150193214417, 0.3146878480911255, -0.024522900581359863...
def trunc ( self, * args ) : return _ snap. tintprv _ trunc ( self, * args )
[ -0.4968050718307495, 0.0778065025806427, 0.4781993627548218, -0.3063727915287018, 0.3473723530769348, 0.4359072148799896, 0.5060258507728577, 0.3841457962989807, -0.41124221682548523, -0.2157006412744522, -0.3901747763156891, 0.987028181552887, -0.6822197437286377, -0.3778769075870514, 1...
def get _ fields ( file _ path ) : parser = pdfparser ( file _ path ) doc = pdfdocument ( ) parser. set _ document ( doc ) doc. set _ parser ( parser ) doc. initialize ( ) return resolve1 ( doc. catalog ['acroform'] ) ['fields']
[ 0.3776726722717285, -0.05483414605259895, 0.3971146047115326, -0.742158830165863, 0.3136776089668274, -0.5377174615859985, -0.2276286780834198, 0.3703439235687256, -0.8725944757461548, -0.6088273525238037, -0.6993608474731445, -0.9679862260818481, -0.17832642793655396, -1.0096246004104614,...
def mixin _ market _ params ( exchange _ name, params, market ) : # todo : make this more externalized / configurable if'lot'in market : params ['min _ trade _ size'] = market ['lot'] params ['lot'] = market ['lot'] if exchange _ name = ='bitfinex': params ['maker'] = 0. 001 params ['taker'] = 0. 002 elif'maker'in mark...
[ -0.04519493505358696, -0.6748286485671997, 0.5992638468742371, -0.6291772127151489, -0.08383230865001678, -0.24875712394714355, -1.067636489868164, 0.3049890398979187, 0.2717722952365875, 0.935829758644104, -0.17880430817604065, 0.19374406337738037, -0.013303506188094616, 0.532205700874328...
def author _ formatter ( author : author, department : bool = false, institution : bool = false, home _ institution : institution = none, profile : bool = false ) - > dict : if not author : raise typeerror result = { } if department : departments = [ ] try : for d in author. departments : # possible typeerror, attribut...
[ -0.48127296566963196, -0.8017436265945435, 0.5460044741630554, -0.17686057090759277, -0.6858046054840088, -0.4072611927986145, -0.03325140103697777, -0.0766867846250534, 0.3027145266532898, 0.028288256376981735, -0.21630187332630157, 0.2558341324329376, 0.20945288240909576, 0.5431010127067...
def _ respond _ or _ raise ( self, response, raise _ exec = true ) : try : response. raise _ for _ status ( ) except requests. exceptions. requestexception as e : http _ method = response. request. method if response. request is not none else'unknown'request _ headers = response. request. headers if response. request i...
[ -0.285855233669281, -0.43259164690971375, 0.6733274459838867, 0.12757132947444916, -0.035196736454963684, -0.5774203538894653, -0.6194232702255249, 0.04847421497106552, 0.45491093397140503, -0.19579404592514038, 0.9498381614685059, -0.9169691205024719, -0.27359986305236816, 0.0204451959580...
def isnode ( self, * args ) : return _ snap. tngraphmp _ isnode ( self, * args )
[ -0.4080521762371063, 0.12478240579366684, 0.17033812403678894, 0.2967303395271301, 1.5213054418563843, -0.40343695878982544, 0.7324547171592712, -0.6102623343467712, -0.17848703265190125, 0.7090913653373718, 0.07389649003744125, -0.49466344714164734, -1.4355841875076294, 0.0213699247688055...
async def async _ update _ zwave _ js _ nodes _ and _ devices ( hass : homeassistant, entry _ id : str, primary _ lock : keymasterlock, child _ locks : list [ keymasterlock ], ) - > none : client = hass. data [ zwave _ js _ domain ] [ entry _ id ] [ zwave _ js _ data _ client ] ent _ reg = async _ get _ entity _ regist...
[ -0.34249135851860046, -0.26882755756378174, 0.501652181148529, -0.4196416735649109, 0.36229461431503296, -0.3349670171737671, 0.6286113262176514, -0.1989683210849762, 0.581161379814148, 0.3693048059940338, -0.461976021528244, 1.1742794513702393, 0.10990408807992935, 0.2936306893825531, 0...
def addsattrdate ( self, * args ) : return _ snap. tundirnet _ addsattrdate ( self, * args )
[ 0.2784242331981659, -0.36864835023880005, 0.2037595808506012, 0.06793715059757233, 0.30150535702705383, 0.5632615089416504, -0.2572738528251648, -0.33805474638938904, -0.6117101907730103, -1.2216417789459229, 0.2658008933067322, -0.3637862801551819, -0.5602970719337463, 1.6191248893737793,...
def admin _ add _ user _ to _ group ( userpoolid = none, username = none, groupname = none ) : pass
[ -0.8653198480606079, 0.8192745447158813, 0.0458173044025898, 0.7801050543785095, 0.1774495542049408, 0.46989312767982483, 0.9840248227119446, -0.8734597563743591, -0.739274799823761, 0.32245978713035583, -0.19206616282463074, 1.4359362125396729, -0.8993045091629028, 0.040766555815935135, ...
def day _ over _ day _ changes ( prices : list [ stockprice ] ) - > list [ dailychange ] : return [ dailychange ( symbol = today. symbol, date = today. date, pct _ change = pct _ change ( yesterday, today ) ) for yesterday, today in zip ( prices, prices [ 1 : ] ) ]
[ -1.684300422668457, 0.23739470541477203, 0.5582510232925415, 0.6351994872093201, 0.4394940435886383, 0.7109548449516296, -0.2727016508579254, -0.6067385673522949, 0.17202706634998322, 0.1800273358821869, 0.06283015757799149, -0.11532697826623917, 0.5710552334785461, 1.3618186712265015, 0...
def check _ binder _ conf ( binder _ conf ) : # grab the configuration and return none if it's not configured binder _ conf = { } if binder _ conf is none else binder _ conf if not isinstance ( binder _ conf, dict ) : raise configerror ( " ` binder _ conf ` must be a dictionary or none. " ) if len ( binder _ conf ) = =...
[ -0.21743492782115936, -0.5243753790855408, 0.6769521236419678, 0.24990980327129364, -0.16535501182079315, -0.12325672805309296, 0.2091151475906372, 0.49486273527145386, -0.21546897292137146, 0.13492605090141296, -0.2826799154281616, -0.38306304812431335, -0.17980876564979553, 1.73894262313...
def getei ( self, * args ) : return _ snap. tbpgraph _ getei ( self, * args )
[ 0.3201203942298889, 1.7946834564208984, 0.36663761734962463, 1.0394612550735474, 1.9588698148727417, -0.8218956589698792, 1.3934242725372314, -0.33246272802352905, -1.5023056268692017, 0.40525537729263306, -0.3854338824748993, -0.4621383845806122, -1.1473643779754639, -0.31592538952827454,...
def get _ filesystems ( self ) : # filesystems = self. get _ memcache _ group ('filesystems') # if filesystems is not none : # return filesystems params = {'limit': 1000 } filesystems = self. get _ paged _ list ( self. bitstore. filesystems ( ), params ) # self. save _ memcache _ group ('filesystems ', filesystems,'ser...
[ -0.999664306640625, 0.855130672454834, 0.47710520029067993, 0.35564297437667847, 0.5378708243370056, -0.7812483310699463, -0.1763136088848114, -0.9494905471801758, 1.218496322631836, -0.6745529770851135, -0.08728848397731781, 0.09872584789991379, -0.7142596244812012, 0.9312182068824768, ...
def get _ migration _ classes ( app ) : for name in get _ migration _ names ( app ) : yield get _ migration ( app, name )
[ -0.4843098521232605, 0.5851107239723206, 0.40140095353126526, 1.3173377513885498, 0.1501951664686203, 0.3336133062839508, -1.7580524682998657, -1.4126996994018555, -0.20211580395698547, 0.23848091065883636, -0.29446324706077576, -0.31524237990379333, 1.49961519241333, 0.9324092268943787, ...
def hadcn ( x, num _ classes, doc _ length, sent _ length, kwarg _ sent, kwarg _ doc, is _ training = false, init = false, is _ stacked = false ) : batch _ size = tf. shape ( x ) [ 0 ] document _ size = tf. shape ( x ) [ 1 ] sentence _ size = tf. shape ( x ) [ 2 ] emsize = x. get _ shape ( ) [ 3 ] counters = { } with t...
[ 0.9057450890541077, 0.14883144199848175, 0.7830340266227722, 0.01373145543038845, -0.29971176385879517, -0.2537980079650879, 0.4910610616207123, 0.3272568881511688, -0.16661177575588226, 0.6946752071380615, -0.32344725728034973, 0.5193145871162415, 0.49746596813201904, 0.3705397844314575, ...
def get _ privatexml ( xmpp, available _ methods, callback ) : def _ cb ( iq ) : if iq [ " type " ] = = " error " : available _ methods [ " privatexml " ] = false else : available _ methods [ " privatexml " ] = true for conf in iq ['private'] ['bookmarks'] ['conferences'] : b = bookmark. parse _ from _ element ( conf, ...
[ -0.2785669267177582, -0.14483524858951569, 0.5217036008834839, 0.5717212557792664, 0.20419637858867645, -0.48977190256118774, -0.04816592112183571, -0.7410192489624023, 0.028033824637532234, 0.10798011720180511, -0.003202598076313734, 0.4729436933994293, -1.2433075904846191, 0.374266296625...
def test _ atomic _ boolean _ white _ space _ 1 _ nistxml _ sv _ iv _ atomic _ boolean _ white _ space _ 2 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / boolean / schema + instance / nistschema - sv - iv - atomic - boolean - whitespace - 2. xsd ", instance = " nistdat...
[ -0.578427255153656, -0.020714711397886276, 0.5367963910102844, 0.6337288022041321, -0.050452180206775665, 0.4174205958843231, 0.05885590240359306, -0.40271565318107605, 0.041322290897369385, 0.777952253818512, -0.07470685988664627, 0.49110808968544006, 0.054322756826877594, 0.5450900793075...
def passw ( ) : if request. method = = " post " : # check if all passwords are entered if javascript fails if not request. form. get ( " old _ pw " ) or not request. form. get ( " password1 " ) or not request. form. get ( " password2 " ) : return flash ( " all fields must be filled out. " ) # get the passwords old _ pw...
[ 0.27193430066108704, -0.06608417630195618, 0.8585121631622314, 0.9404433369636536, 0.049940310418605804, 0.21192632615566254, 0.47712114453315735, 0.21516647934913635, -0.6320387125015259, 0.4265928268432617, 0.47055771946907043, -0.4075596332550049, 0.15568004548549652, 0.9916647672653198...
def cmd _ hostname ( self, args ) : fog _ host = self. app. settings [ " fog _ host " ] return [ self. _ client _ hostname ( fog _ host, mac ) for mac in get _ macs ( ) ]
[ -0.11573316156864166, 0.07615678012371063, 0.4988991618156433, 1.3332327604293823, 0.43664368987083435, -0.31598636507987976, 0.1532721370458603, 0.030080076307058334, -1.187353491783142, 0.5253371000289917, 0.4778675436973572, 0.04756380245089531, -0.040310416370630264, 0.497071772813797,...
def getnaflti ( self, * args ) : return _ snap. tneanet _ getnaflti ( self, * args )
[ 0.21383461356163025, -0.16154545545578003, -0.01496799010783434, -0.21864180266857147, 0.3926454186439514, 0.2376290261745453, 0.22657516598701477, -1.0043836832046509, -0.8280669450759888, 0.17828959226608276, -0.8082399368286133, -1.1833782196044922, -0.10711587965488434, 0.4994709491729...
def startacq ( self ) : self. pipe = none try : cmd ='get _ physio - - pipe % s auto'% self. test _ pattern # sys. stdout. write ( cmd +'\ n') # sys. stdout. flush ( ) self. pipe = sshpipe ( cmd, linux _ host, linux _ user ) if self. pipe is none : raise oserror ('unidentified error in sshpipe') except oserror, errstr ...
[ 0.3542943000793457, -0.9143531918525696, 1.0287944078445435, -0.08085262775421143, -0.12666749954223633, 0.5781679153442383, 0.55976402759552, 0.14269252121448517, -0.8264283537864685, 0.027954405173659325, 0.31765618920326233, 0.9485557079315186, 0.41195663809776306, 0.6129697561264038, ...
def load _ overrides ( introspection _ module ) : namespace = introspection _ module. _ _ name _ _. rsplit ( ". ", 1 ) [ - 1 ] module _ key ='gi. repository.'+ namespace # we use sys. modules so overrides can import from gi. repository # but restore everything at the end so this doesn't have any side effects has _ old ...
[ -0.10240071266889572, 0.25270694494247437, 0.8020475506782532, -1.0777841806411743, 0.5515581965446472, -0.015290959738194942, 0.007717400789260864, -1.162479043006897, 0.3745901584625244, 0.06627067178487778, 0.261212021112442, -0.05689195543527603, -0.5575177669525146, 0.1522270739078521...
def test _ check _ length _ of _ initial _ values ( self ) : # alias the functions to be checked func = mixed _ logit. check _ length _ of _ init _ values func _ 2 = self. estimator. check _ length _ of _ initial _ values for i in [ - 1, 1 ] : init _ vals = np. ones ( self. fake _ design _ 3d. shape [ 2 ] + i ) self. a...
[ 0.41903233528137207, 0.5012957453727722, 0.5439578294754028, 0.0508212149143219, 0.6613107919692993, 0.6192478537559509, -0.2187589406967163, -0.07949766516685486, -0.5213630199432373, -0.2614057660102844, -0.4816535413265228, 0.7271525263786316, 0.19394785165786743, 0.552914023399353, 0...
def transform _ args _ wrapper ( self, func ) : def wrapper ( * args, * * kwargs ) : args, kwargs = self. _ transform _ arg _ paths ( args, kwargs ) return func ( * args, * * kwargs ) return wrapper
[ -0.790524959564209, -0.24292513728141785, 0.40502265095710754, -0.6464521288871765, 0.3072047233581543, -0.15564225614070892, 0.0814460813999176, 0.754843533039093, -0.13327142596244812, 0.1986662596464157, 0.5991436839103699, 0.10996686667203903, 0.8534067273139954, 0.3983175754547119, ...
def unionlen ( self, * args ) : return _ snap. tintv _ unionlen ( self, * args )
[ -0.7627720236778259, 0.3984276354312897, 0.2899400293827057, 1.136611819267273, 0.10827949643135071, 0.42847082018852234, 0.4813622236251831, 0.989652693271637, 0.3207322359085083, -0.6350458860397339, -0.9817785620689392, 0.032846350222826004, -0.6334744095802307, 0.4893910586833954, 0....
async def stop ( self ) : if self. runner : await self. runner. cleanup ( )
[ -0.3496685028076172, 0.3571426570415497, 0.06371641904115677, 0.3277512490749359, 0.5118770599365234, 0.36492955684661865, 0.5626198053359985, 0.8871139287948608, -0.3386719822883606, -0.5149509906768799, 0.0028092495631426573, 0.5008432865142822, -0.6333622932434082, 0.6817619800567627, ...