text
stringlengths
25
2.19k
embedding
listlengths
768
768
def getintattr ( self, * args ) : return _ snap. trowiterator _ getintattr ( self, * args )
[ 0.132531076669693, 0.22328312695026398, 0.37900587916374207, 0.37843963503837585, -0.020137403160333633, -0.16208317875862122, 0.9226964712142944, -0.8554745316505432, -1.1915558576583862, 0.661601185798645, 0.5139474868774414, -0.8143167495727539, -1.1628563404083252, 0.4431201219558716, ...
def gen _ sys ( dict = case _ a, tf = 100, n = 1000 ) : # unpack the parameters gamma1 = dict ['gamma1'] beta1 = dict ['beta1'] alpha1 = dict ['alpha1'] omega1 = dict ['omega1'] delta1 = dict ['delta1'] # initial conditions for the simulation x0 = np. array ( [ dict ['x0'], dict ['v0'] ] ) # generate a time sequence t ...
[ -0.3232402801513672, 0.48156774044036865, 0.7845968008041382, -0.9841275811195374, 0.47499141097068787, -0.5961190462112427, 0.7953067421913147, -0.3003873825073242, -0.6000266671180725, 0.8764085173606873, -0.9395333528518677, -0.5099132061004639, 0.28906115889549255, 0.4187929928302765, ...
async def chat _ history _ users ( request : historyquery = historyquery ( ), collection : str = depends ( authentication. authenticate _ and _ get _ collection ) ) : users, message = historyprocessor. fetch _ chat _ users ( collection, request. month ) return { " data " : { " users " : users }, " message " : message }
[ -0.5217188000679016, 0.11254613846540451, 0.4001561403274536, 0.7300372123718262, -0.3889939785003662, 0.5937615633010864, -0.05907204747200012, -0.621649444103241, -0.8102513551712036, 0.13075901567935944, 0.362836092710495, 1.606502652168274, 0.3573157489299774, 0.5084728002548218, -0....
def _ get _ wd ( self, index ) : wd = self. wd if index in self. wd _ mult : wd * = self. wd _ mult [ index ] elif index in self. idx2name : wd * = self. wd _ mult. get ( self. idx2name [ index ], 1. 0 ) return wd
[ -0.2591651976108551, 0.22129516303539276, 0.5692712664604187, -0.4142725169658661, -0.5071882009506226, -0.34205836057662964, 0.0326106995344162, -1.2416009902954102, 0.807073712348938, -0.5129560232162476, 1.173523187637329, 0.5284664034843445, -0.6394380927085876, 0.5098437070846558, 0...
def wx _ symulacja ( self ) : tupele = plansza _ na _ tuple ( aktualny _ zestaw ) ile _ gen = parametry ['ile _ generacji'] parametry = parametry licznik = 0 max _ zakres = ile _ gen tekst = " postep symulacji : { } / { }. prosze czekac ". format ( licznik, ile _ gen ) self. progres _ bar = wx. progressdialog ( title =...
[ -0.7231632471084595, 0.35061630606651306, 0.6109888553619385, -0.17197899520397186, -0.6570725440979004, 0.3219570815563202, 1.2311099767684937, -0.725467324256897, -0.8345967531204224, 0.13309119641780853, -0.06389591097831726, 0.07729292660951614, 0.3883913457393646, 0.9861347079277039, ...
def update _ udp _ listener ( self, blb _ id, listener _ port, backend _ port = none, scheduler = none, health _ check _ string = none, health _ check _ timeout _ in _ second = none, health _ check _ interval = none, unhealth _ threshold = none, health _ threshold = none, config = none ) : path = utils. append _ uri ( ...
[ -0.6435506343841553, -0.7629621624946594, 0.9622623920440674, -0.21383431553840637, -0.2979402244091034, 0.20121388137340546, -0.4202461242675781, -0.057980190962553024, -0.10304930806159973, 0.23243969678878784, -0.7884665727615356, 0.7900177240371704, -0.9073898792266846, -0.530204117298...
def _ _ format _ event _ times _ synopsis ( timeslots, tz ) : timeslots _ by _ date = itertools. groupby ( timeslots, lambda x : _ _ timestamp _ to _ datetime _ in _ zone ( x [ " start _ date " ], tz ). date ( ) ) date _ synopses = [ ] times _ summaries = [ ] formatted _ dates = [ ] for d, day _ timeslots in timeslots ...
[ 0.05620763078331947, 0.11137235909700394, 0.7428224682807922, 0.11201739311218262, -0.6165928840637207, -0.4251084625720978, -0.003239475889131427, 0.17606888711452484, 0.4686885178089142, 1.2665393352508545, 0.8955766558647156, -0.47858455777168274, 1.10867440700531, 1.1157920360565186, ...
def test _ oauth _ timestamp ( self ) : v = requestvalidator ( ) e = baseendpoint ( v ) # invalid timestamp length, must be 10 r = e. _ create _ request ('https : / / a. b / ','get ', ('oauth _ signature = a & oauth _ consumer _ key = b & oauth _ nonce = c &'' oauth _ version = 1. 0 & oauth _ signature _ method = rsa -...
[ -0.34171614050865173, 0.32407882809638977, 0.8875678777694702, 0.1306794285774231, 0.7475029230117798, 0.18579378724098206, -0.45267215371131897, -0.0939038097858429, 0.8063348531723022, 0.43937888741493225, -0.049603596329689026, 0.026108847931027412, 0.2993040978908539, 0.393472701311111...
def compute _ synonyms ( self ) : # keep track of tokens we have seen to handle repeats for entity, type in self. entities : phrases = [ ] mod _ entity = entity for s in ['of ','- ','-'] : mod _ entity = mod _ entity. replace ( s,'' ) # add all tokens in entity - - we only compute token - level edits ( except for acron...
[ -0.24787940084934235, -0.21405838429927826, 0.7435078620910645, -0.752596378326416, -0.05206289514899254, 0.02526341751217842, -0.28369250893592834, 1.125563383102417, -0.3917168080806732, 0.45262497663497925, -0.34616950154304504, 0.8756178021430969, 0.6632686257362366, 0.6805287599563599...
def trunc ( self, * args ) : return _ snap. tintv _ trunc ( self, * args )
[ -0.2008080929517746, 0.3844117522239685, 0.5604322552680969, 0.3210962116718292, 0.3467594385147095, 0.4075968861579895, 0.8990962505340576, -0.07326139509677887, -0.4376552104949951, -0.3155664801597595, -0.34974053502082825, 1.4736659526824951, -0.36819279193878174, -0.09377884119749069,...
def count ( ) : global session _ time, total _ time if running : label [ " text " ] = " \ n ". join ( get _ times ( ) ) # todo : find more reliable wait method. label. after ( 1000, count ) session _ time + = 1 total _ time + = 1 with open ( time _ path, " w " ) as time _ file : time _ file. write ( label [ " text " ] ...
[ -0.1740933507680893, -0.4751541018486023, 0.5523331761360168, -0.045468010008335114, 0.9073882102966309, 0.6215152144432068, 0.7194156050682068, 0.25218549370765686, -0.6293811202049255, 1.1533740758895874, -0.803612470626831, -0.6638964414596558, 0.43322062492370605, 0.5437651872634888, ...
def tstrutil _ getstdnamev ( * args ) : return _ snap. tstrutil _ getstdnamev ( * args )
[ -0.7042288184165955, 0.743290364742279, 0.20217257738113403, 0.14009079337120056, -0.20224855840206146, 0.004258202388882637, 0.5436724424362183, -1.0641043186187744, -1.3340390920639038, -0.26359617710113525, -1.421954870223999, 0.8706772327423096, 0.6584778428077698, 0.5464961528778076, ...
def ixxxxx ( p, fmass, nhel, nsf ) : fi = wavefunction ( 2 ) fi [ 0 ] = complex ( - p [ 0 ] * nsf, - p [ 3 ] * nsf ) fi [ 1 ] = complex ( - p [ 1 ] * nsf, - p [ 2 ] * nsf ) nh = nhel * nsf if ( fmass! = 0. ) : pp = min ( p [ 0 ], sqrt ( p [ 1 ] * * 2 + p [ 2 ] * * 2 + p [ 3 ] * * 2 ) ) if ( pp = = 0. ) : sqm = [ sqrt (...
[ 0.03662880137562752, 0.23455418646335602, 0.8657888770103455, 0.41220760345458984, -0.6325494647026062, -0.2634611129760742, 0.04254765436053276, 0.14999964833259583, 0.13249818980693817, -0.33989012241363525, -0.6778180599212646, -0.41903558373451233, -0.525867760181427, -0.43289113044738...
def test _ fit _ attributes ( variables, expected _ psi, df ) : transformer = drophighpsifeatures ( variables = variables ) dft = transformer. fit _ transform ( df ) assert transformer. variables _ = = list ( expected _ psi. keys ( ) ) assert transformer. psi _ values _ = = pytest. approx ( expected _ psi, 12 ) assert ...
[ -0.6336551904678345, 0.23686133325099945, 0.38044583797454834, -0.08081124722957611, 0.8837448358535767, 0.0646047368645668, 0.2813388407230377, 0.5792779922485352, -0.26268622279167175, -0.1311255693435669, -0.6189760565757751, -0.10172602534294128, -0.11102717369794846, -0.12333003431558...
def qsort ( self, * args ) : return _ snap. tintfltkdv _ qsort ( self, * args )
[ -0.36182084679603577, 0.3732926547527313, 0.06318390369415283, -0.6319524645805359, -0.161002516746521, -0.0334760919213295, 0.3888434171676636, -0.8733405470848083, -0.7457987666130066, -1.0754382610321045, -0.3477326035499573, -0.08344215154647827, -0.9337114095687866, 1.286702275276184,...
async def async _ init ( self ) - > none : await self. _ api. get _ host _ data ( ) if self. _ api. mac _ address is none : raise reolinksetupexception ( " could not get mac address " ) if not self. _ api. is _ admin : raise usernotadmin ( f " user'{ self. _ api. username }'has authorization level " f "'{ self. _ api. ...
[ 0.19509673118591309, 0.014799385331571102, 0.739132285118103, 0.48297205567359924, 1.087999701499939, -0.5937464237213135, 0.26967546343803406, 0.3617691397666931, 0.21034932136535645, 0.6748754382133484, -0.35722872614860535, 0.3409718871116638, -0.46053194999694824, 0.514202356338501, ...
def _ _ str _ _ ( self ) : return str ( self. tk )
[ -0.5086832046508789, -1.0829873085021973, 0.34707656502723694, -1.4315534830093384, -0.8346023559570312, 0.7258908748626709, 0.10844504833221436, -0.4201868176460266, -0.05009986832737923, -0.17138934135437012, 0.6361136436462402, 0.4843897819519043, 0.03159291297197342, 0.2015824764966964...
def _ _ idiv _ _ ( self, * args ) : return _ snap. tsflt _ _ _ idiv _ _ ( self, * args )
[ -0.5336287021636963, 0.3238515555858612, 0.4387912452220917, 0.1799871325492859, 0.014722108840942383, 0.44906744360923767, 1.0156147480010986, 0.09330349415540695, -1.6049931049346924, -0.8035629391670227, -1.1212363243103027, -0.71150803565979, -0.340649276971817, 0.33987173438072205, ...
def _ get _ overall _ firing _ rate ( self, unit _ id ) : if self. _ block _ starts is none : # for the stimulus, create a list of start and stop times for the given block of trials. only needs to be # calculated once todo : see if python allows for private property variables start _ time _ intervals = np. diff ( self....
[ -0.13043542206287384, -0.024977922439575195, 0.5396600961685181, -0.22479626536369324, -0.2943437099456787, -0.7613638639450073, 0.05725288391113281, 0.3658483624458313, -0.3398851156234741, 0.20474357903003693, -0.030760180205106735, 0.3361230194568634, -0.7075176239013672, 1.173136949539...
def qsort ( self, * args ) : return _ snap. tintv _ qsort ( self, * args )
[ -1.2139408588409424, 0.17258568108081818, 0.4211398959159851, -0.25598978996276855, 0.008833917789161205, 0.4442877173423767, 0.2684548497200012, -1.420910358428955, -0.24037021398544312, -0.9780986309051514, -1.0070291757583618, 0.5684643983840942, -1.7407176494598389, 0.5391535758972168,...
def _ _ init _ _ ( self, input _ queue, output _ queue ) : multiprocessing. process. _ _ init _ _ ( self ) self. input _ queue = input _ queue self. output _ queue = output _ queue
[ 0.496381938457489, -1.4156179428100586, 0.6372385621070862, -0.620125949382782, -0.2788175940513611, -0.3329017162322998, -0.9254989624023438, 0.22341664135456085, 0.021126989275217056, -0.1524423211812973, -0.10693679004907608, 0.4164339601993561, -0.014318551868200302, 0.5071213245391846...
def upload _ cohorts ( namespace, workspace, tsca _ id ) : cohorts _ sample _ set _ metadata = " cohort _ files / fc _ upload _ sample _ set _ cohorts _ % s. txt " % tsca _ id res = upload _ entities _ from _ tsv ( namespace, workspace, cohorts _ sample _ set _ metadata ) return res
[ -0.5418521165847778, -0.16425204277038574, 0.2749893069267273, -1.00887930393219, 0.2627728283405304, -0.21260176599025726, 0.23867568373680115, -0.7653080224990845, -0.11267939954996109, 1.2737960815429688, -0.06946952641010284, 0.6094158291816711, 0.08866674453020096, 0.22753804922103882...
def _ is _ blocked ( self ) : time. sleep ( randint ( 4, 8 ) ) blked = self. driver. find _ elements _ by _ xpath ( " / / div / h3 [ contains ( text ( ),'action blocked') ] " ) if blked : self. driver. delete _ all _ cookies ( ) logging. error ( " err : action _ blocked " ) self. text _ to _ speech ( " action has been ...
[ -0.2740488648414612, 0.5273253917694092, 0.8170599937438965, 1.7373195886611938, 0.577499508857727, -0.3279716670513153, 0.29575449228286743, -0.06818604469299316, 0.5404040813446045, 1.151738166809082, 0.4365207850933075, 0.8573307991027832, -0.58443683385849, 0.8959057927131653, 0.7322...
def optimize ( self, session, train _ x, train _ y ) : input _ feed = train _ x # fill in this feed _ dictionary like : # input _ feed ['train _ x'] = train _ x output _ feed = train _ y outputs = session. run ( output _ feed, input _ feed ) return outputs
[ -0.9594696760177612, -0.06589678674936295, 0.5502384901046753, -0.18327243626117706, 0.37995588779449463, -1.5914655923843384, -1.1264909505844116, -1.255990743637085, -0.9310529232025146, 0.0748620256781578, -0.6649357676506042, 0.16962453722953796, 0.036910753697156906, -0.69563800096511...
def generate _ decoding ( self, hidden, maxlen, sample = true, temp = 1. 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 ) ) else : state = self. init _ hidden ( batch _ size ) # < s...
[ -0.10915002226829529, 0.10812139511108398, 0.6864316463470459, 0.37944573163986206, -1.1284884214401245, -0.3111351430416107, -0.07877980172634125, 0.35268333554267883, 0.18665766716003418, 0.11170443147420883, -0.8495843410491943, 0.09862610697746277, 0.442802757024765, 0.6427686214447021...
def oob _ cut _ single ( x _ y _ z _ r _ array, mask _ checker, cut _ pct, pts _ per _ unit _ volume, num _ surf _ pts ) : valid _ index = np. ones ( x _ y _ z _ r _ array. shape [ 0 ], dtype = np. uint8 ) monte _ index = np. zeros ( x _ y _ z _ r _ array. shape [ 0 ], dtype = np. uint8 ) # # # # # # # # # # # # # # # ...
[ 0.7494808435440063, -0.45187732577323914, 0.8540549278259277, 0.33426928520202637, -0.4213505685329437, 0.8885228633880615, 1.382909893989563, 0.4305274784564972, 0.5586239695549011, 0.8631061911582947, 0.45780491828918457, 0.036314453929662704, -0.1832832247018814, -0.2001282423734665, ...
def download _ file ( self, fid ) : if fid not in self. data _ catalog : raise requesterror ('fid not found in the catalog : { } '. format ( fid ) ) record = self. data _ catalog [ fid ] supplied _ url, params = _ url _ params ( record ['url'] ) assert supplied _ url = = self. url +'/ download'response = self. _ call _...
[ -0.07179340720176697, -0.2773136794567108, 0.611009418964386, -0.25957661867141724, 0.14562048017978668, -0.39916354417800903, 0.2774682343006134, -0.28421550989151, -0.4432922601699829, -0.30110982060432434, 0.4473666250705719, 0.2919052839279175, -0.12406813353300095, 0.16426068544387817...
def validate _ code ( self, client _ id, code, client, request, * args, * * kwargs ) : raise notimplementederror ('subclasses must implement this method.')
[ -0.375072181224823, -0.12815378606319427, 0.5499961376190186, -0.11839065700769424, -0.012419505976140499, 0.7406061887741089, 0.1759357452392578, -0.26280057430267334, -0.25334432721138, -0.17305515706539154, 0.2695709466934204, 0.4224429130554199, -0.3985687494277954, 0.7582371234893799,...
def run _ timed _ search ( self ) : starttime = time. time ( ) query _ results = self. _ get _ search _ results ( ) first _ item = self. _ parse _ most _ recent _ item ( query _ results ) items = self. _ run _ search ( query _ results, old _ items = none ) while true : time. sleep ( self. interval - ( ( time. time ( ) ...
[ -0.8812084197998047, 0.05569068342447281, 0.7372128367424011, 0.32220861315727234, 0.9718140959739685, 0.17613032460212708, 0.1116267666220665, -0.4877305030822754, -1.0383801460266113, -0.4462150037288666, -0.11640971153974533, -0.24114985764026642, -0.6488842368125916, 0.326008141040802,...
def get _ gateway ( gateway, * args, * * kwargs ) : # is the class in the cache? clazz = gateway _ cache. get ( gateway, none ) if not clazz : # let's actually load it ( it's not in the cache ) gateway _ filename = " % s _ gateway " % gateway gateway _ module = none for app in settings. installed _ apps : try : gateway...
[ -0.28481656312942505, -0.29948151111602783, 0.5144606828689575, 0.09358815103769302, -0.2587590515613556, -0.5464000105857849, -0.6838225722312927, -0.38403069972991943, 0.6483597755432129, 0.33125293254852295, 0.13943792879581451, 0.37520313262939453, -0.5519014596939087, 1.43032205104827...
def find _ value ( pagesplit, fieldname ) : # location of field. the value is + 2 fields relative to this. loc _ field = pagesplit. index ('name ='+ fieldname ) loc _ value = loc _ field + 2 return pagesplit [ loc _ value ]. lstrip ('value = "'). rstrip ('" >')
[ -0.8175293207168579, -0.14653733372688293, 0.36785680055618286, -0.6224215030670166, -0.24521689116954803, -0.18217119574546814, 0.3763897716999054, -0.14829669892787933, -0.45022737979888916, 0.5083158016204834, 0.006396267097443342, -0.18512630462646484, -0.22201958298683167, -0.47554922...
def tstrutil _ stripend ( * args ) : return _ snap. tstrutil _ stripend ( * args )
[ -0.4956298768520355, 0.19146203994750977, 0.4046584963798523, -0.7472060322761536, 0.31740716099739075, 1.0012669563293457, -0.026190778240561485, 0.12302369624376297, -1.1286808252334595, -0.18181295692920685, -0.3039245307445526, 0.8084853887557983, 0.41836485266685486, 1.236159443855285...
def updateeventtype ( self, eventtypeid, name, schemaid, description = none ) : req = apiclient. oneeventtypesurl % ( self. host, " / draft ", eventtypeid ) body = { " name " : name, " schemaid " : schemaid } if description : body [ " description " ] = description resp = requests. put ( req, auth = self. credentials, h...
[ -1.0864274501800537, -0.58980792760849, 0.6135556697845459, 0.027766454964876175, -0.30988752841949463, -0.43964827060699463, -0.6943219900131226, 0.2376633882522583, 0.7267062067985535, 1.2567164897918701, -0.9183148145675659, 0.7809024453163147, -1.7608017921447754, 0.3906111419200897, ...
def auto _ renew ( self ) - > optional [ pulumi. input [ bool ] ] : return pulumi. get ( self, " auto _ renew " )
[ 0.5839163064956665, 0.3266012966632843, 0.5594777464866638, 1.0692996978759766, 0.7822414636611938, 0.9542679786682129, -0.4847274422645569, 0.7345886826515198, 0.11483097076416016, -0.12213003635406494, -0.5675570964813232, 1.2105003595352173, -0.4118407368659973, -0.9429903626441956, -...
def evaluate _ for _ range ( board, pocket _ combos = none ) : # todo : some way handle card int duplicates in board and pocket _ combos if pocket _ combos is none : pocket _ combos = combinations ( deck ( remove = board ). cards, 2 ) results _ dict = { } for c1, c2 in pocket _ combos : temp _ result = flopevaluator. e...
[ -1.1421051025390625, 0.18623188138008118, 0.4874372184276581, -0.7648317217826843, -0.5984039902687073, -0.6215404272079468, 0.3922908306121826, 0.6301394701004028, -0.7198659181594849, -0.3626932203769684, -0.7229748964309692, -0.7702952027320862, 0.3337930142879486, 0.3515948951244354, ...
def testskippedrecords ( self ) : self. sf. produce ( [ self. e1 ] ) e1 _ end = os. path. getsize ( self. sf. buffer _ file. data _ path ) self. sf. produce ( [ self. e2 ] ) e2 _ end = os. path. getsize ( self. sf. buffer _ file. data _ path ) # corrupt event e2 by writing garbage at the end. with open ( self. sf. buff...
[ 0.4566171169281006, 0.09769964963197708, 0.8977431058883667, -0.3247334957122803, 1.0158671140670776, 0.6126761436462402, 0.6996606588363647, -0.4115522503852844, -0.2671167850494385, -0.025196976959705353, -0.5671216249465942, 0.3417303264141083, 0.0005473914206959307, 0.2123698592185974,...
def _ _ getattr _ _ ( self, name ) : if not self. is _ materialized : self. get ( ) return self. _ value. _ _ getattribute _ _ ( name )
[ -0.49968481063842773, -0.3962532579898834, 0.5740333199501038, -0.04008369892835617, -0.6823948621749878, -0.40610936284065247, -0.19177794456481934, -0.7638373374938965, 0.5926072001457214, 0.12134192883968353, 0.6831662058830261, -0.1556113064289093, 0.3571186363697052, 0.649651408195495...
def loadnodelist ( * args ) : return _ snap. loadnodelist ( * args )
[ -1.4041653871536255, 1.2118080854415894, 0.6891582608222961, 0.7396461367607117, -0.20775969326496124, 0.020381847396492958, 0.4277091920375824, -0.1842571347951889, 0.022331831976771355, 0.05306747555732727, -1.616270899772644, -0.7203876376152039, -0.1277616173028946, 0.4511597454547882,...
def part _ relpath ( path ) : path _ parts = [ ] while true : path _ parts. insert ( 0, basename ( path ) ) if path _ parts [ 0 ] = ='parts': break new _ path = dirname ( path ) if new _ path = = path : break path = new _ path return join ( * path _ parts ) # pylint : disable = w0142
[ 0.9089206457138062, -0.33114463090896606, 0.6994643211364746, -0.4436395764350891, -0.49126049876213074, 0.29830753803253174, 0.7358183860778809, -0.9619672298431396, 0.3991507589817047, 0.12988440692424774, 0.5234274864196777, -1.0614820718765259, -1.4732508659362793, -0.8267753720283508,...
def classification ( s, tr, clf, target, rad = 1 ) : assert target in ['respcat ','gain _ ind'],'invalid target'# laod data img1, img2, img3 = n _ load ( get _ image, [ 1, 2, 3 ], {'s': s } ) data1, data2, data3 = tuple ( [ i. get _ data ( ) for i in [ img1, img2, img3 ] ] ) bh1, bh2, bh3 = n _ load ( get _ behav, [ 1,...
[ -0.228901207447052, -0.5438897609710693, 0.788108766078949, -0.6082387566566467, 0.6766526103019714, 0.2872568666934967, 0.2373596429824829, -0.013388398103415966, -0.11748719960451126, 0.2853868901729584, 0.24629220366477966, 1.0149017572402954, 0.14322057366371155, 0.1654481142759323, ...
def enumerate _ repo ( cls, path ) : # make list of debs deblist = list ( ) for dirpath, dirnames, filenames in os. walk ( path ) : deblist + = [ os. path. join ( dirpath, name ) for name in filenames if name. endswith ('deb') ] # we could just chop at the first'_ ', but this is # arguably safer pkglist = list ( ) for ...
[ -1.2211123704910278, 0.48250868916511536, 0.9486677646636963, -0.4274704158306122, -0.21468904614448547, -0.2802586257457733, 0.10696063935756683, -0.5000982284545898, 0.36371496319770813, 0.5706526041030884, -0.3675209581851959, -0.6799396872520447, 0.604178249835968, 0.18515127897262573,...
def coladd ( self, * args ) : return _ snap. ttable _ coladd ( self, * args )
[ -0.4044598340988159, 0.416224867105484, 0.616821825504303, 0.22117918729782104, 0.3121884763240814, 1.6162391901016235, 0.383316308259964, -0.10544248670339584, -1.1308703422546387, 1.0134847164154053, 0.07077573239803314, -0.7055217623710632, -0.48499757051467896, 0.7737141251564026, 0....
def _ set _ max _ bw _ threshold _ absolute ( self, v, load = false ) : if hasattr ( v, " _ utype " ) : v = v. _ utype ( v ) try : t = yangdynclass ( v, base = restrictedclasstype ( base _ type = restrictedclasstype ( base _ type = long, restriction _ dict = {'range': ['0.. 4294967295'] }, int _ size = 32 ), restrictio...
[ -0.06763876229524612, -0.43356937170028687, 1.045743703842163, -0.21951591968536377, -0.35335102677345276, 0.6421613693237305, 0.027180461212992668, -0.8303263187408447, -0.725143313407898, -0.01539069414138794, -0.5709443092346191, -0.2803296446800232, -0.3752093017101288, 1.4089139699935...
def add _ string _ event ( self, eventstring ) : if self. eventid : self. eventlist. append ( self. isotimestamp +'' + self. eventid +'' + eventstring ) else : self. eventlist. append ( self. isotimestamp +'' + eventstring )
[ 0.10405022650957108, -0.9624123573303223, 0.6682989001274109, -0.2572994828224182, 0.26242494583129883, 1.0728596448898315, -1.4696389436721802, 0.49141454696655273, 1.4928739070892334, 0.46826809644699097, -0.15117458999156952, 0.44362345337867737, -0.22526924312114716, 0.3990043997764587...
def get ( self, request, id ) : return change _ to _ id ( client. { { cookiecutter. panel } } _ show ( request, id ). to _ dict ( ) )
[ -1.1362072229385376, 0.44016149640083313, 0.2390250712633133, -0.4566824734210968, -0.42777594923973083, -1.1810953617095947, -0.29488271474838257, -0.3769686818122864, 0.0007846521912142634, 1.2578442096710205, 0.1132909283041954, 1.9733545780181885, -0.31184470653533936, 0.17220313847064...
def sdcn ( x, num _ classes, kwarg, is _ training = false, init = false, is _ stacked = false ) : batch _ size = tf. shape ( x ) [ 0 ] document _ size = tf. shape ( x ) [ 1 ] emsize = x. get _ shape ( ) [ 2 ] counters = { } with tf. variable _ scope ('sdcn') : # [ batch, doc, num _ channels [ - 1 ] ] if is _ stacked : ...
[ 0.11192528903484344, -0.049118973314762115, 0.7933400869369507, 0.6028899550437927, -0.21484875679016113, -0.448656290769577, 0.12992419302463531, -0.2580452561378479, 0.14351673424243927, 0.3934858441352844, -0.24932755529880524, 0.4607973098754883, 0.9510160088539124, 0.03768276795744896...
def collapsed _ branches _ from _ small _ switch ( self, small _ switch ) : for br in self. _ small _ tt. outgoing _ branches ( small _ switch ) : if self. is _ branch _ collapsed ( br ) : yield br
[ 0.18106403946876526, -0.2777024209499359, 0.5191316604614258, 0.3581669330596924, -1.159398078918457, -0.10787981003522873, -0.26903724670410156, -1.1032599210739136, 0.4466865658760071, -0.3646712899208069, -0.6759704351425171, -0.9486280679702759, -0.5820485353469849, 0.44854462146759033...
def memory ( n ) : def g ( func ) : nonlocal n n = func ( n ) print ( n ) return g return g
[ -0.3124465346336365, 0.6648014783859253, 0.3395070433616638, -0.47956979274749756, -0.49907130002975464, -0.5443287491798401, 1.306786060333252, -0.30625981092453003, 0.2768986225128174, -0.12934932112693787, -0.5749064683914185, 0.9430601000785828, -0.10245654731988907, 0.9683054685592651...
def setup ( self ) : # db. session. close ( ) db. drop _ all ( ) db. create _ all ( ) user1 = user. signup ( " tester1 ", " password1 ", none, none, none ) user1id = 11 user1. id = user1id specimen1 = specimen ( link = " https : / / i. imgur. com / pmkflkn. jpg ", user _ id = 11, ) specimen1id = 12 specimen1. id = spec...
[ 0.6074522137641907, -0.013463350012898445, 0.6829004287719727, 0.6794471740722656, 1.1762325763702393, 0.6272990703582764, 0.6097363829612732, 0.25439614057540894, -0.04393675550818443, 0.0409892313182354, -0.5994926691055298, -0.32878145575523376, -0.11971156299114227, 0.20148703455924988...
def process ( self, metric ) : entry = {'timestamp': metric. timestamp,'value': metric. value, " tags " : { } } entry [ " tags " ] [ " hostname " ] = metric. host if self. cleanmetrics : metric = metricwrapper ( metric, self. log ) if self. skipaggregates and metric. isaggregate ( ) : return for tagkey in metric. getta...
[ -0.07860135287046432, 0.9053948521614075, 0.757171630859375, -0.06452378630638123, 0.34303852915763855, -0.33673784136772156, -0.2721008062362671, -1.0009405612945557, -0.7668775916099548, 0.22889631986618042, -0.1976754516363144, -0.08937368541955948, 0.5683404207229614, 0.741402804851532...
def restart _ with _ reloader ( self ) : while 1 : _ log ('info ','* restarting with % s'% self. name ) args = _ get _ args _ for _ reloading ( ) new _ environ = os. environ. copy ( ) new _ environ ['werkzeug _ run _ main'] ='true'# a weird bug on windows. sometimes unicode strings end up in the # environment and subpr...
[ -0.2993015944957733, -0.5980420708656311, 0.7701022624969482, 0.4845271408557892, -0.5267266035079956, 0.02990046516060829, -0.41967833042144775, -0.17520059645175934, -1.0526143312454224, 0.5019003748893738, 0.0775710716843605, 0.44777199625968933, -0.8192027807235718, 0.6751243472099304,...
def get _ grid _ height ( self ) : return self. _ height
[ 0.16080793738365173, 0.6431106328964233, 0.46384525299072266, 1.2089647054672241, -0.22785717248916626, -0.04086104780435562, 0.5648565292358398, -0.21993348002433777, -0.8617343902587891, -0.1813058704137802, -0.1357538104057312, 0.47349750995635986, -0.24023345112800598, -0.3507728576660...
def get _ joint _ upper _ limit ( self, joint : joint ) - > float : if joint. limit is none : return 1e9 return joint. limit. upper
[ 0.262336790561676, -0.24490854144096375, 0.6940454244613647, 1.0228742361068726, -0.15202021598815918, -0.08062340319156647, -0.07520211488008499, 0.4414251148700714, 0.4175742566585541, 0.2710329592227936, 0.595702588558197, 0.6726619005203247, -0.9798102974891663, -0.3951278030872345, ...
def sample _ with _ source _ homography ( self, x ) : # x is batch 1, h, w self. homography. sample _ fixed _ homography ( h = x. shape [ - 2 ], w = x. shape [ - 1 ] ) template2, hom2, mask2 = self. homography ( x. permute ( 1, 2, 0 ) ) orb _ points2 = self. orb. compute ( template2 [ 1 ]. squeeze ( ) ) template2 = num...
[ 0.3411189615726471, -0.5672207474708557, 1.0164872407913208, 0.7611145973205566, -0.7496287226676941, -0.06137698143720627, 0.646553099155426, 0.20598578453063965, 0.15841320157051086, 0.055053383111953735, -1.2274709939956665, 0.11153025925159454, 0.5834388136863708, -0.14907552301883698,...
def get _ sections _ from _ soup ( self, soup ) : sections = soup. find _ all ( " section " ) return sections
[ -0.2734915614128113, -0.5528422594070435, 0.4039120674133301, 0.14547434449195862, 0.12549591064453125, -0.1613738238811493, 0.08251488208770752, -1.0082406997680664, 0.21031534671783447, -0.14294685423374176, -0.08140478283166885, -1.2067114114761353, 0.8520785570144653, 1.291396498680114...
def get _ link _ rpy ( self, link : str, q : arraytype, base _ link : str ) - > casadiarraytype : return quaternion. fromvec ( self. get _ link _ quaternion ( link, q, base _ link ) ). getrpy ( )
[ -0.41609689593315125, -0.9541110396385193, 0.21793895959854126, -0.26200997829437256, 0.7481432557106018, -0.5449774861335754, -0.8887380957603455, -0.8334165215492249, 0.31071311235427856, -0.712041974067688, 0.33149299025535583, 1.1244341135025024, -0.9404178857803345, -0.632243633270263...
def test _ undirected _ edge _ hashing ( self ) : v0 = undirectedvertex ( val ='v0') v1 = undirectedvertex ( val ='v1') v2 = undirectedvertex ( val ='v2') e01 = undirectededge ( ( v0, v1 ) ) e02 = undirectededge ( ( v0, v2 ) ) e10 = undirectededge ( ( v1, v0 ) ) edge _ set = set ( [ e01 ] ) self. asserttrue ( e01 in ed...
[ 0.07835261523723602, 0.12734569609165192, 0.6474021077156067, -0.259208619594574, 0.45495131611824036, 1.1324833631515503, 0.3635030686855316, 0.21178294718265533, -0.06373990327119827, -0.30293285846710205, 0.06754609942436218, -0.16730481386184692, 0.1902601718902588, -0.3759146332740783...
def create _ tsv ( data _ path, dataset _ name ) : dataset = pd. read _ csv ( data _ path + dataset _ name ) no _ samples, no _ features = dataset. shape no _ features = no _ features - 2 y _ true, labels = pd. factorize ( dataset. fold ) dataset. insert ( 1,'class labels ', y _ true ) # in order to remove white space ...
[ -0.582268476486206, -0.0681009441614151, 0.6652436256408691, -0.642879068851471, -0.21351179480552673, -0.22509928047657013, -0.6416218280792236, 0.7227678894996643, -1.199765682220459, 0.29019492864608765, -0.08164659887552261, 0.35468029975891113, 0.8029030561447144, -0.23221445083618164...
def _ _ add _ _ ( self, other ) : result = self # self 的 本 for item in other : result. add ( item ) return result
[ -0.4322066307067871, -0.6984969973564148, 0.9475647807121277, 0.5182143449783325, -0.12841038405895233, -0.042485494166612625, -0.3087078630924225, -0.7635248303413391, 0.8346102833747864, -0.3870886266231537, -1.1727421283721924, 0.19864638149738312, -0.8957234621047974, -0.37966379523277...
def mod _ input ( mods, header ) : df = pd. dataframe ( mods ) new _ header = df. iloc [ header ] df = df [ ( header + 1 ) : ] df. columns = new _ header return df
[ -1.2254157066345215, 0.2030465304851532, 0.6369745135307312, 0.26352569460868835, -0.6047759056091309, -0.33436840772628784, -0.10281261056661606, -0.18459048867225647, 0.12341517210006714, -0.14508266746997833, 0.5385310649871826, 1.126247763633728, -0.7027729749679565, -1.113320350646972...
def sortbykey ( self, asc = true ) : return _ snap. tintprflth _ sortbykey ( self, asc )
[ -0.13486413657665253, 0.2708081305027008, 0.16704882681369781, 0.223789781332016, 0.02216396853327751, -0.26254376769065857, 0.2903776466846466, -0.12031828612089157, -0.8077254295349121, -0.49315065145492554, -0.31387051939964294, -0.7894101142883301, -1.580295443534851, 1.293098330497741...
def set _ stdout ( self, f ) : self. stdout = f
[ 0.9171442985534668, -0.06503627449274063, 0.2801203429698944, -0.016314547508955002, -0.3560287654399872, -0.03270233795046806, 0.4721527695655823, -0.1901502162218094, -1.5265390872955322, -0.878558337688446, -0.6074417233467102, 0.2430177927017212, 0.6789658069610596, -0.0182841978967189...
def _ _ init _ _ ( self, start _ edges = none ) : self. v _ count = 0 self. adj _ matrix = [ ] # populate graph with initial vertices and edges ( if provided ) # before using, implement add _ vertex ( ) and add _ edge ( ) methods if start _ edges is not none : v _ count = 0 for u, v, _ in start _ edges : v _ count = ma...
[ 0.4909414052963257, -0.07095731794834137, 0.6605525016784668, 0.8919453620910645, 0.1983630508184433, -0.0832638368010521, 0.6538386940956116, 0.8287021517753601, 0.21939106285572052, -0.0866074487566948, 0.1713849902153015, 0.23168468475341797, -0.2416805922985077, 0.12996160984039307, ...
def from _ alias ( alias, config _ root = none ) : if config _ root = = none : config _ root = dbmarshal. get _ config _ root ( ) config = config _ root +'/'+ alias if os. path. exists ( config ) : f = open ( config,'r') data = pickle. load ( f ) f. close ( ) return dbmarshal. factory ( data ['hostname'], data ['userna...
[ -0.020060162991285324, -0.0841815248131752, 0.5735149383544922, 0.028680892661213875, -0.463457316160202, 0.20891514420509338, -0.7195611000061035, 0.6880961656570435, 0.09871421754360199, -0.006038515828549862, -0.12078392505645752, 0.04962220788002014, 0.22720903158187866, 0.294511407613...
def tstr _ getnrabsfpath ( * args ) : return _ snap. tstr _ getnrabsfpath ( * args )
[ 0.044411465525627136, 0.614402711391449, 0.147201806306839, 0.633185088634491, 0.5484105348587036, -0.02144685387611389, 0.1655290126800537, -1.3787503242492676, -1.8067893981933594, -0.7753603458404541, 0.030269434675574303, -0.4194354712963104, -0.10100720077753067, 0.7343844771385193, ...
def pprint _ table ( out, table ) : col _ paddings = [ ] for i in range ( len ( table [ 0 ] ) ) : col _ paddings. append ( get _ max _ width ( table, i ) ) for row in table : # left col print > > out, row [ 0 ]. ljust ( col _ paddings [ 0 ] + 1 ), # rest of the cols for i in range ( 1, len ( row ) ) : col = format _ nu...
[ 0.4152221083641052, 0.06941666454076767, 0.7259587049484253, 0.7594897150993347, -0.8215405344963074, -0.13955171406269073, 0.3324255049228668, -0.4893852472305298, -0.16311264038085938, 0.1598392277956009, 0.5119388103485107, -0.25281450152397156, -0.06708015501499176, 0.8649502992630005,...
def _ in _ whitelist ( self, path ) : extension = os. path. splitext ( path ) [ 1 ] for wl _ extension in self. whitelist : if extension = = wl _ extension : return true return false
[ -0.2675832211971283, -0.2684813141822815, 0.6390179395675659, -0.4284215569496155, -0.750946044921875, 0.288554310798645, -0.369955837726593, -0.19389311969280243, 0.6881540417671204, 0.9392257332801819, -0.26287755370140076, 1.0235528945922852, -0.9715726971626282, 0.27867794036865234, ...
def simulated _ annealing ( problem, schedule ) : raise notimplementederror
[ 0.11376498639583588, 0.15851861238479614, 0.20612791180610657, 0.7537213563919067, -0.3457317054271698, 0.7080805897712708, -0.13051314651966095, 0.7680366635322571, 0.15168265998363495, 1.1367214918136597, -0.24340879917144775, 0.0495530441403389, 0.8908340334892273, -0.320478618144989, ...
def test ( self, k1 : key, k2 : key ) - > statresult : obs1 = self. observations [ k1 ] obs2 = self. observations [ k2 ] _, p _ value = stats. ttest _ ind ( obs1, obs2, equal _ var = false ) return statresult ( k1. paradigm, k2. paradigm, self. _ _ get _ ordering ( obs1, obs2, p _ value ) )
[ -0.477353572845459, 0.05186835303902626, 0.6692615747451782, -0.11441115289926529, -0.7200345993041992, 0.2802775800228119, -0.5230493545532227, -0.7022243738174438, -0.5033074617385864, 0.43231067061424255, 0.37188518047332764, 0.22904928028583527, 0.04420917481184006, -0.7904979586601257...
def simplify _ compatibility _ array ( considered _ signals ) : # calculate for each signal the index of the alt profile of that signal # i. e. all the signals with the first alt profile get 0, # second get 1 etc. unique _ alt _ profiles, index _ signals _ profile = t. extra _ ops. unique ( axis = 0, return _ inverse =...
[ 0.5879756808280945, -0.3410439193248749, 0.6479277014732361, -0.3330167829990387, 0.27862417697906494, 0.6732107400894165, 0.7949568033218384, 0.22082170844078064, 0.7143110036849976, 0.5339241623878479, -0.9105969667434692, 0.48458942770957947, 0.04972684755921364, 0.24438853561878204, ...
def addnodewithedges ( self, * args ) : return _ snap. tneanetmp _ addnodewithedges ( self, * args )
[ -0.22721102833747864, 0.2740091383457184, 0.18919289112091064, -0.3279409110546112, 0.5766465663909912, -0.173179492354393, -0.20031867921352386, -0.4395095705986023, 0.3442099392414093, 0.5345011353492737, 0.15118736028671265, -1.4245989322662354, -0.44196340441703796, 0.4291127622127533,...
def get _ predict _ func ( t5 _ gin _ file : str, model _ checkpoint _ dir : str, guided _ decoding : bool, compute _ grammar : bool = true, dataset _ name : str = none, bot _ gin _ file : str = none ) : # setup t5 params gin. parse _ config _ file ( t5 _ gin _ file ) if dataset _ name is not none : t5 _ params = load ...
[ 0.41744881868362427, 0.29178330302238464, 0.760345458984375, -0.14161230623722076, -0.2269279956817627, -0.3864389955997467, 0.5762175917625427, 0.3806215822696686, -1.5073235034942627, 0.2377554476261139, -0.10662967711687088, 0.29700809717178345, -0.28098440170288086, 0.08402501791715622...
def _ _ init _ _ ( self, x, y, var = 1, learnrate = 0. 001, xi = 10 ) : # cache data and kernel self. x = x self. y = y # initialize a value of alpha that satisfies sum ( a. * y ) = 0 self. alpha = np. zeros ( x. shape [ 0 ] ) # self. alpha [ self. y = = 1 ] / = np. sum ( self. alpha [ self. y = = 1 ] ) # self. alpha [...
[ 0.8714927434921265, -0.029561256989836693, 0.8122926950454712, 0.17307725548744202, -0.006068030837923288, -0.026407096534967422, -0.14048202335834503, -0.06960438191890717, 0.06502024829387665, 0.12399769574403763, -0.2699909806251526, 0.4052686393260956, -0.1726234257221222, 1.2173212766...
def complete _ workflow ( self, result ) : self. workflow _ state. completed = true self. decisions. append ( {'decisiontype':'completeworkflowexecution ','completeworkflowexecutiondecisionattributes': {'result': utils. encode _ task _ input ( result ) } } )
[ -0.11282577365636826, -0.28019776940345764, 0.45956891775131226, 0.12855388224124908, 0.49517425894737244, -0.09800412505865097, 0.7786892652511597, 0.007339476142078638, 0.003912323620170355, 0.489959716796875, -0.9930989146232605, -0.16276778280735016, -0.04565148800611496, 0.59104871749...
def report ( self ) : f = open ( self. report _ pathname, " w " ) self. competition. write _ full _ report ( f ) f. close ( )
[ 0.18338173627853394, -0.43598341941833496, 0.3808012008666992, 0.478162556886673, 1.5905470848083496, 0.2909313142299652, 2.113605260848999, 1.2322691679000854, -0.29498544335365295, -0.3639566898345947, -0.4426499307155609, -0.549855649471283, -0.5036072731018066, -0.10227356106042862, ...
def putdosln ( self, lns = 1 ) : return _ snap. tsout _ putdosln ( self, lns )
[ 0.07818817347288132, 1.099462866783142, 0.2954727113246918, 0.27526840567588806, -0.3437899947166443, -0.741884708404541, -0.008323206566274166, 0.2489023655653, -0.02849993295967579, -0.23673738539218903, -1.5562361478805542, -0.06871400773525238, 0.4779159724712372, 0.07664325088262558, ...
def test _ feature _ request _ target _ date _ validation ( self ) : # bill lumbergh continues to attempt creating some frs. common _ values = {'user _ id': 4,'client _ id': 3 } # past target date. past _ exception = false try : featurerequest ( title ='add rrsp account interface to web client. ', target _ date = datet...
[ -0.6281348466873169, 0.7214124798774719, 0.5950826406478882, 0.26270365715026855, 0.33207133412361145, 0.20840653777122498, -0.670925498008728, -0.09516849368810654, -0.6729623675346375, -0.6080602407455444, 0.5500965118408203, 0.2466573566198349, 0.4028284549713135, 0.3386632204055786, ...
def ins ( self, * args ) : return _ snap. tintfltkdv _ ins ( self, * args )
[ -0.6678121089935303, 0.6220800280570984, 0.06292298436164856, -0.48634088039398193, -0.06396608799695969, 0.13856203854084015, 0.35579848289489746, 0.009152388200163841, -0.9569373726844788, -0.9984982013702393, 0.6993198990821838, 0.2664353847503662, -0.6272156834602356, 0.997579216957092...
def delete _ user _ attributes ( userattributenames = none, accesstoken = none ) : pass
[ -0.24966801702976227, -0.2690776288509369, 0.2745784819126129, 0.7624927163124084, -0.5974372625350952, 0.20102201402187347, 0.27599823474884033, 0.28606000542640686, 0.07439569383859634, -0.21711911261081696, -0.6354150772094727, 0.814221978187561, -0.35265690088272095, -0.863384544849395...
def append ( self, subpath : str, permissions : list [ list [ str ] ], identities : list [ dict ], rev : int ) - > dict : payload = self. _ payload ( permissions, identities, " append " ) return self. _ http. patch ( [ self. segment, subpath ], payload, rev = rev )
[ -0.875830352306366, 0.35148298740386963, 0.5389161109924316, 0.2505545914173126, 0.07644347101449966, 0.7345549464225769, -0.6598469018936157, 0.3696441650390625, -0.1027512475848198, -0.2357630729675293, 0.16029608249664307, 0.13863268494606018, -0.7825722694396973, -1.0185521841049194, ...
def get _ catalog _ item ( self, project _ name : str, catalog _ item _ id : str, * * kwargs : any ) - > json : error _ map = { 401 : clientauthenticationerror, 404 : resourcenotfounderror, 409 : resourceexistserror, 304 : resourcenotmodifiederror, } error _ map. update ( kwargs. pop ( " error _ map ", { } ) or { } ) _...
[ -0.7547058463096619, -0.4922657907009125, 0.7739689350128174, 0.06882896274328232, -0.013933026231825352, -0.003024877281859517, -0.5370664596557617, -0.587404727935791, -0.7561113238334656, 0.6973971724510193, -0.1752847582101822, 1.5388617515563965, -0.4227723181247711, -0.54557996988296...
def calculate _ ptdf ( branches, buses, index _ set _ branch, index _ set _ bus, reference _ bus, base _ point = basepointtype. flatstart ) : _ len _ bus = len ( index _ set _ bus ) _ mapping _ bus = { i : index _ set _ bus [ i ] for i in list ( range ( 0, _ len _ bus ) ) } _ len _ branch = len ( index _ set _ branch )...
[ -0.021964455023407936, 0.15997977554798126, 0.6498377919197083, -0.24744118750095367, -0.5228167176246643, -0.6611013412475586, 0.5314204096794128, 0.36408206820487976, -0.14835627377033234, 0.3304888904094696, 0.4952995479106903, 0.18668720126152039, -1.1105186939239502, -0.38900533318519...
def post _ password ( self, enc _ password _ b64 ) : try : path = self. _ get _ password _ path ( ) action = lambda : self. _ post _ data ( path, enc _ password _ b64 ) return self. _ exec _ with _ retry ( action ) except error. httperror as ex : raise
[ -0.8562207818031311, 0.2516758143901825, 0.5984265804290771, 1.3937492370605469, 0.5553222894668579, -0.3622133135795593, 0.14716245234012604, -0.19736219942569733, 0.2796405255794525, 0.2556961476802826, -0.7425233125686646, 0.19041529297828674, -0.9035691618919373, 0.14871956408023834, ...
def deleteevent ( self, physicalinterfaceid, eventid ) : req = apiclient. oneeventurl % ( self. host, " / draft ", physicalinterfaceid, eventid ) resp = requests. delete ( req, auth = self. credentials, verify = self. verify ) if resp. status _ code = = 204 : self. logger. debug ( " event mapping deleted " ) else : rai...
[ -0.9762356877326965, -0.343328595161438, 0.6851686239242554, -0.03286575898528099, -0.2053821086883545, 0.09507526457309723, -0.21577991545200348, -0.1936163604259491, 0.8245975971221924, 0.10363613069057465, 0.45752638578414917, -0.09522731602191925, -1.2245539426803589, 0.312221258878707...
def connect _ mqtt ( ) : client = mqtt. client ( ) client. connect ( mqtt _ host, mqtt _ port, mqtt _ keepalive _ interval ) return client
[ 0.6139402985572815, -1.283616304397583, 0.3818306028842926, -0.4815497100353241, -0.6531191468238831, 1.145613670349121, -1.2788194417953491, -0.9930003881454468, -0.4463101327419281, 0.05569653585553169, 0.32476237416267395, -0.6687829494476318, -0.28762051463127136, -1.193912148475647, ...
def main ( ) : credentials = get _ credentials ( ) http = credentials. authorize ( httplib2. http ( ) ) discoveryurl = ('https : / / sheets. googleapis. com / $ discovery / rest? version = v4') service = googleapiclient. discovery. build ('sheets ','v4 ', http = http, discoveryserviceurl = discoveryurl ) # google sheet...
[ 0.5335370302200317, 0.30339378118515015, 0.8032731413841248, 0.8917601108551025, 0.07495654374361038, 0.3443857729434967, -0.3629593551158905, -0.5170807242393494, -0.42137405276298523, 0.46558868885040283, 0.1089375913143158, 1.6505361795425415, 0.28227537870407104, 0.34412112832069397, ...
def row _ reduce ( self ) : res = self. row _ echelon ( ) for i in range ( 1, res. m ) : for j in range ( res. n ) : if res [ i, j ] = = 1 : for k in range ( i ) : constant = res [ k, j ] res. data [ k ] = [ elem _ k - elem _ i * constant for elem _ i, elem _ k in zip ( res. data [ i ], res. data [ k ] ) ] break return...
[ 0.03710877522826195, 0.9136506915092468, 0.5831095576286316, -0.06706440448760986, 0.1565357893705368, -0.39675167202949524, 0.950323760509491, 0.9915351271629333, 0.47932562232017517, 0.95679771900177, -0.2583315372467041, -0.916955828666687, -0.5072547197341919, 0.41163817048072815, 0....
def test _ address ( self ) : code, reply = self. do _ cmd ( b " mail from : < " + from + b " > ", flush = true ) self. assertequal ( code, 250, reply ) self. do _ cmd ( b " rset " ) code, reply = self. do _ cmd ( b " mail from : " + from ) self. assertequal ( code, 250 )
[ -0.1578713357448578, 0.21342849731445312, 0.40897122025489807, -0.3209737241268158, 0.7377507090568542, 0.4539797902107239, 0.24303807318210602, -0.3169129192829132, 0.9428228735923767, -0.298727422952652, -0.40441828966140747, 1.9746730327606201, -0.10099151730537415, -0.36502617597579956...
def check _ balance ( self, account _ name ) : if self. account _ exists ( account _ name ) : acct _ balance = self. accounts [ account _ name ]. check _ balance ( ) note = " checking balance of { } " self. report ( note. format ( account _ name ) ) return acct _ balance else : note = " no account named { } " self. rep...
[ 0.4651576578617096, -0.09051305055618286, 0.5437135696411133, 0.12951867282390594, 0.6169137358665466, -0.4319020211696625, 0.8260310292243958, -0.40327417850494385, 1.126160740852356, 0.1976054459810257, 0.7106826305389404, 0.28339245915412903, -0.8710618019104004, 0.27768442034721375, ...
def cleanup ( self ) : for i, _ in enumerate ( self. _ sensors _ list ) : if self. _ sensors _ list [ i ] is not none : self. _ sensors _ list [ i ]. stop ( ) self. _ sensors _ list [ i ]. destroy ( ) self. _ sensors _ list [ i ] = none self. _ sensors _ list = [ ]
[ -0.7472748756408691, -0.5622515678405762, 0.29713374376296997, -0.5021368861198425, 0.8659964203834534, -0.5604842901229858, 0.32625293731689453, 0.07569506019353867, 0.7354413866996765, 0.3962498903274536, -0.6703264713287354, -0.1772865206003189, -0.7602447867393494, 1.1044769287109375, ...
def get _ mm _ matrix _ type _ specifications ( mm _ filename ) : with open ( mm _ filename,'r') as f : # read banner line = f. readline ( ) token _ list = line. split ( ) if len ( token _ list )! = 5 : raise ioerror ('matrix format not recognized as matrix market format : not the right number of tokens in the matrix m...
[ 0.5208978056907654, -1.01252019405365, 0.4537140727043152, 0.3632926642894745, -0.01132192462682724, 0.18022094666957855, 0.09833388775587082, 0.3766910135746002, 0.20763272047042847, 0.4736975133419037, 0.06690622866153717, 0.8704801201820374, -0.5814509391784668, 0.29204830527305603, 0...
def getv ( * args ) : return _ snap. tstrintprv _ getv ( * args )
[ -0.2529471218585968, -0.3690749704837799, 0.3567734360694885, -0.6175914406776428, 0.6654921174049377, 0.47766318917274475, 0.19051429629325867, 0.40442684292793274, -1.0196354389190674, 0.04507189616560936, 0.2534947097301483, 0.7182662487030029, -0.36076614260673523, -0.8396303653717041,...
def test _ qv _ circuits _ length ( self ) : qubits _ lists = [ [ 0, 1, 2 ], [ 0, 1, 2, 4 ] ] ntrials = [ 2, 3, 5 ] for qubits in qubits _ lists : for trials in ntrials : qv _ exp = quantumvolume ( qubits ) qv _ exp. set _ experiment _ options ( trials = trials ) qv _ circs = qv _ exp. circuits ( ) self. assertequal ( ...
[ 0.39639073610305786, 0.5056400895118713, 0.2776944637298584, -0.622886598110199, 0.3514970541000366, 0.13157697021961212, 0.04195113480091095, -0.4103497564792633, 0.6769676804542542, -0.14034658670425415, -0.3154701888561249, -0.019003134220838547, -0.5935476422309875, 0.4105803966522217,...
def apply _ low _ pass _ filter2img ( histogram, scale, threshold, method ) : # obtain the high frequency threshold and average of frequency average = sum ( histogram ) / 256 high _ freq _ threshold = average * threshold # method " average " that applies an average filter to histogram if method = = " average " : # init...
[ 0.3876791000366211, 0.07985533773899078, 0.6479567289352417, -0.017188657075166702, -0.35221004486083984, -0.8411247134208679, 0.36503493785858154, -0.3965122103691101, 0.4259791076183319, -0.1353684514760971, 0.000862982589751482, 0.4986080527305603, 0.005288451444357634, 0.98382055759429...
def total _ seconds ( delta ) : return ( delta. days * 24 * 60 * 60 ) + delta. seconds
[ 0.019857585430145264, 0.4104803800582886, 0.6036681532859802, -0.6851181983947754, -0.3775765597820282, 0.20851613581180573, 0.5559499859809875, -1.1301555633544922, 0.06281822174787521, -0.9005076289176941, -0.2398097664117813, -0.44660118222236633, 0.6028635501861572, -0.1602801084518432...
def cost _ derivative ( self, output _ activations, y ) : return ( output _ activations - y ) # for a quadratic cost function
[ -0.7281218767166138, -0.6323872804641724, 0.47034019231796265, 0.6715038418769836, -0.7280565500259399, -0.3609563112258911, 0.0549633651971817, -0.41314059495925903, -0.4899313151836395, 0.2211865782737732, 0.551733672618866, -0.028984293341636658, 0.6174139380455017, -1.1353250741958618,...
def is _ supported _ algorithm ( algorithm _ str ) : return algorithm _ str in dataone _ to _ python _ checksum _ algorithm _ map
[ 0.06651914119720459, 0.20110076665878296, 0.28354012966156006, -0.23867949843406677, -0.8236246705055237, 0.8162257671356201, -0.6452208757400513, 1.0233078002929688, 0.7579752206802368, 0.6018713116645813, -0.6681870818138123, 0.5735541582107544, -0.3391502797603607, 0.5961178541183472, ...
def test _ update _ delete _ over _ min ( unode, simpleacq, archivefile, archivefilecopy ) : archivefilecopy ( node = unode. db, file = archivefile ( name = " filey ", acq = simpleacq ), has _ file = " y ", wants _ file = " y ", ) archivefilecopy ( node = unode. db, file = archivefile ( name = " filem ", acq = simpleac...
[ 0.22968710958957672, 0.15240931510925293, 0.69756680727005, -0.22355224192142487, 0.10708398371934891, 0.2968829274177551, -0.26521751284599304, 0.22678400576114655, 0.601699948310852, -0.03891642391681671, -0.182587131857872, -0.11705129593610764, 0.46001672744750977, -0.6780701279640198,...
def sortbykey ( self, asc = true ) : return _ snap. tinth _ sortbykey ( self, asc )
[ -0.5385696291923523, 0.1805683672428131, 0.08241438120603561, 0.09884665161371231, -0.1868513822555542, 0.2884153425693512, 0.5403895378112793, -0.9364448189735413, -0.7592073678970337, 0.4133751690387726, -1.0706000328063965, 0.46796661615371704, -1.5509300231933594, 0.46511563658714294, ...
def prepare _ vals _ for _ variation _ attributes ( self, result, variation ) : variation _ attributes = [ ] option _ name = [ ] for options in result. get ( " options " ) : attrib _ name = options. get ( " name " ) attrib _ name and option _ name. append ( attrib _ name ) option1 = variation. get ( " option1 ", false ...
[ -0.12588010728359222, -0.5588134527206421, 0.5834981203079224, -0.28322288393974304, -0.2779654562473297, -0.39085879921913147, -0.40159836411476135, -0.35361000895500183, -0.0998280867934227, 1.236171007156372, -0.6012628674507141, -0.4568384885787964, -0.2176641970872879, 0.3117389380931...