Search is not available for this dataset
id
int64
0
10.8M
vector
listlengths
1.54k
1.54k
ast_depth
int64
3
164
ast_data
stringlengths
297
510k
full_path
stringlengths
0
319
code
stringlengths
60
56.5k
17,301
[ -0.007817060686647892, 0.024976316839456558, 0.03526349738240242, -0.0486607551574707, 0.0033014672808349133, 0.05861300602555275, 0.01234461646527052, -0.03602905571460724, 0.01693796180188656, 0.026985906064510345, 0.03217734396457672, -0.016292022541165352, -0.010149619542062283, 0.0321...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root_module", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}], "kwarg"...
def register_Ns3LogComponent_methods(root_module, cls): ## log.h (module 'core'): ns3::LogComponent::LogComponent(ns3::LogComponent const & arg0) [copy constructor] cls.add_constructor([param('ns3::LogComponent const &', 'arg0')]) ## log.h (module 'core'): ns3::LogComponent::LogComponent(std::string const &...
17,302
[ 0.039942752569913864, 0.03760281205177307, 0.04317186772823334, -0.03549686819314957, 0.00913746003061533, 0.02308349497616291, 0.02378547564148903, -0.01432042382657528, 0.01519790105521679, -0.0027011665515601635, 0.017760133370757103, -0.0093305055052042, -0.03603505343198776, 0.0251309...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root_module", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}], "kwarg"...
def register_Ns3RngStream_methods(root_module, cls): ## rng-stream.h (module 'core'): ns3::RngStream::RngStream(uint32_t seed, uint64_t stream, uint64_t substream) [constructor] cls.add_constructor([param('uint32_t', 'seed'), param('uint64_t', 'stream'), param('uint64_t', 'substream')]) ## rng-stream.h (mod...
17,303
[ 0.003961210139095783, -0.007625177968293428, 0.05774995684623718, -0.04239040985703468, -0.0029739406891167164, 0.035013943910598755, 0.056633781641721725, -0.026497038081288338, 0.005614242050796747, 0.002029134426265955, 0.022068733349442482, 0.0029299610760062933, -0.03622717782855034, ...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root_module", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}], "kwarg"...
def register_Ns3RandomVariable_methods(root_module, cls): cls.add_output_stream_operator() ## random-variable.h (module 'core'): ns3::RandomVariable::RandomVariable() [constructor] cls.add_constructor([]) ## random-variable.h (module 'core'): ns3::RandomVariable::RandomVariable(ns3::RandomVariable const...
17,304
[ -0.010175901465117931, -0.018004436045885086, 0.037915363907814026, -0.022675340995192528, -0.0004189069732092321, 0.040346138179302216, 0.03689062222838402, -0.029669784009456635, 0.010289099998772144, 0.0198751799762249, -0.0021358670201152563, 0.005811822135001421, 0.0009048390202224255, ...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root_module", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}], "kwarg"...
def register_Ns3TriangularVariable_methods(root_module, cls): ## random-variable.h (module 'core'): ns3::TriangularVariable::TriangularVariable(ns3::TriangularVariable const & arg0) [copy constructor] cls.add_constructor([param('ns3::TriangularVariable const &', 'arg0')]) ## random-variable.h (module 'core'...
17,305
[ -0.004688902758061886, -0.017230268567800522, 0.020695846527814865, -0.03519270196557045, -0.00339236157014966, 0.04461321607232094, 0.022221188992261887, -0.011128898710012436, 0.00367607525549829, 0.012306462973356247, 0.019719626754522324, -0.01858477294445038, -0.0398053340613842, -0.0...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root_module", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}], "kwarg"...
def register_Ns3SequentialVariable_methods(root_module, cls): ## random-variable.h (module 'core'): ns3::SequentialVariable::SequentialVariable(ns3::SequentialVariable const & arg0) [copy constructor] cls.add_constructor([param('ns3::SequentialVariable const &', 'arg0')]) ## random-variable.h (module 'core'...
17,306
[ -0.020680585876107216, -0.010820942930877209, 0.0343032106757164, -0.04568701982498169, -0.015304897911846638, 0.027371736243367195, 0.023058537393808365, -0.02066793665289879, 0.014305653050541878, 0.013394948095083237, 0.017505768686532974, 0.0024143161717802286, -0.014267707243561745, 0...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root_module", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}], "kwarg"...
def register_Ns3UniformVariable_methods(root_module, cls): ## random-variable.h (module 'core'): ns3::UniformVariable::UniformVariable(ns3::UniformVariable const & arg0) [copy constructor] cls.add_constructor([param('ns3::UniformVariable const &', 'arg0')]) ## random-variable.h (module 'core'): ns3::Uniform...
17,307
[ 0.0133614307269454, 0.034598831087350845, 0.05880415439605713, -0.06254581362009048, -0.006282297428697348, 0.05935847386717796, 0.03256632015109062, -0.026284024119377136, 0.02152610756456852, 0.030094977468252182, -0.0067326826974749565, -0.0029967944137752056, -0.01852353848516941, 0.01...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root_module", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}], "kwarg"...
def register_Ns3Vector2D_methods(root_module, cls): cls.add_output_stream_operator() ## vector.h (module 'core'): ns3::Vector2D::Vector2D(ns3::Vector2D const & arg0) [copy constructor] cls.add_constructor([param('ns3::Vector2D const &', 'arg0')]) ## vector.h (module 'core'): ns3::Vector2D::Vector2D(doub...
17,308
[ 0.010718095116317272, 0.013921566307544708, 0.05946245789527893, -0.0258795116096735, -0.03222351521253586, 0.023890716955065727, 0.060821887105703354, -0.019799839705228806, 0.00856566522270441, 0.029982974752783775, -0.013355136848986149, -0.004462201613932848, -0.0319717712700367, -0.00...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root_module", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}], "kwarg"...
def register_Ns3WeibullVariable_methods(root_module, cls): ## random-variable.h (module 'core'): ns3::WeibullVariable::WeibullVariable(ns3::WeibullVariable const & arg0) [copy constructor] cls.add_constructor([param('ns3::WeibullVariable const &', 'arg0')]) ## random-variable.h (module 'core'): ns3::Weibull...
17,309
[ 0.01486189104616642, 0.044867414981126785, 0.053249239921569824, -0.062311943620443344, -0.0005095568485558033, 0.0524040162563324, 0.03589862957596779, -0.025967221707105637, 0.02235153317451477, 0.01261969469487667, -0.0010073744924739003, 0.010148582048714161, -0.019451938569545746, 0.0...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root_module", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}], "kwarg"...
def register_Ns3Vector3D_methods(root_module, cls): cls.add_output_stream_operator() ## vector.h (module 'core'): ns3::Vector3D::Vector3D(ns3::Vector3D const & arg0) [copy constructor] cls.add_constructor([param('ns3::Vector3D const &', 'arg0')]) ## vector.h (module 'core'): ns3::Vector3D::Vector3D(doub...
17,310
[ 0.001727709430269897, 0.019438257440924644, 0.025054840371012688, -0.015347921289503574, -0.024200143292546272, 0.042734865099191666, 0.038095079362392426, -0.01979234628379345, -0.007344291545450687, 0.0063125500455498695, -0.0013079920317977667, 0.0012660203501582146, -0.000833329861052334...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root_module", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}], "kwarg"...
def register_Ns3ZetaVariable_methods(root_module, cls): ## random-variable.h (module 'core'): ns3::ZetaVariable::ZetaVariable(ns3::ZetaVariable const & arg0) [copy constructor] cls.add_constructor([param('ns3::ZetaVariable const &', 'arg0')]) ## random-variable.h (module 'core'): ns3::ZetaVariable::ZetaVari...
17,311
[ -0.004363103304058313, 0.01608854904770851, 0.03558675944805145, -0.026974206790328026, -0.021013613790273666, 0.03296005725860596, 0.013714414089918137, -0.010481550358235836, -0.0036338146310299635, -0.005351273342967033, 0.011858043260872364, 0.005543856415897608, -0.015343474224209785, ...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root_module", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}], "kwarg"...
def register_Ns3ZipfVariable_methods(root_module, cls): ## random-variable.h (module 'core'): ns3::ZipfVariable::ZipfVariable(ns3::ZipfVariable const & arg0) [copy constructor] cls.add_constructor([param('ns3::ZipfVariable const &', 'arg0')]) ## random-variable.h (module 'core'): ns3::ZipfVariable::ZipfVari...
17,312
[ 0.0037770806811749935, -0.003887907136231661, 0.04159880802035332, -0.017600417137145996, -0.015539647080004215, 0.04802074283361435, 0.04902716726064682, -0.015587572008371353, 0.02072751708328724, 0.022464795038104057, 0.019852887839078903, -0.016294464468955994, -0.0015845168381929398, ...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root_module", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}], "kwarg"...
def register_Ns3EmpiricalVariable_methods(root_module, cls): ## random-variable.h (module 'core'): ns3::EmpiricalVariable::EmpiricalVariable(ns3::EmpiricalVariable const & arg0) [copy constructor] cls.add_constructor([param('ns3::EmpiricalVariable const &', 'arg0')]) ## random-variable.h (module 'core'): ns...
17,313
[ 0.002157439012080431, -0.006338238716125488, 0.03405584394931793, -0.02194005809724331, -0.02117215469479561, 0.04424578323960304, 0.04709798842668533, -0.032008104026317596, 0.017503289505839348, 0.0116465138271451, 0.008379883132874966, -0.01145149115473032, -0.008184860460460186, 0.0074...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root_module", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}], "kwarg"...
def register_Ns3ConstantVariable_methods(root_module, cls): ## random-variable.h (module 'core'): ns3::ConstantVariable::ConstantVariable(ns3::ConstantVariable const & arg0) [copy constructor] cls.add_constructor([param('ns3::ConstantVariable const &', 'arg0')]) ## random-variable.h (module 'core'): ns3::Co...
17,314
[ -0.006547710858285427, 0.0014368498232215643, 0.032270632684230804, -0.03596239164471626, 0.0020604797173291445, 0.03048929199576378, 0.026152119040489197, -0.0027317090425640345, -0.01312123890966177, 0.024215880781412125, 0.01978835090994835, -0.029301732778549194, -0.011836867779493332, ...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root_module", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}], "kwarg"...
def register_Ns3ErlangVariable_methods(root_module, cls): ## random-variable.h (module 'core'): ns3::ErlangVariable::ErlangVariable(ns3::ErlangVariable const & arg0) [copy constructor] cls.add_constructor([param('ns3::ErlangVariable const &', 'arg0')]) ## random-variable.h (module 'core'): ns3::ErlangVariab...
17,315
[ 0.016805732622742653, -0.004521369468420744, 0.03421511873602867, -0.03102782368659973, -0.02396507002413273, 0.040734581649303436, 0.036388274282217026, -0.007479275111109018, 0.007533603813499212, 0.02974807657301426, -0.006130108144134283, -0.021997157484292984, -0.0017747431993484497, ...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root_module", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}], "kwarg"...
def register_Ns3ExponentialVariable_methods(root_module, cls): ## random-variable.h (module 'core'): ns3::ExponentialVariable::ExponentialVariable(ns3::ExponentialVariable const & arg0) [copy constructor] cls.add_constructor([param('ns3::ExponentialVariable const &', 'arg0')]) ## random-variable.h (module '...
17,316
[ 0.010000900365412235, 0.02023128978908062, 0.032925669103860855, -0.034254290163517, -0.018963059410452843, 0.03461664170026779, 0.04609110578894615, -0.026065148413181305, 0.009173531085252762, 0.018226278945803642, -0.012048185802996159, -0.011661677621304989, -0.01642659865319729, 0.019...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root_module", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}], "kwarg"...
def register_Ns3NormalVariable_methods(root_module, cls): ## random-variable.h (module 'core'): ns3::NormalVariable::NormalVariable(ns3::NormalVariable const & arg0) [copy constructor] cls.add_constructor([param('ns3::NormalVariable const &', 'arg0')]) ## random-variable.h (module 'core'): ns3::NormalVariab...
17,317
[ -0.012718510814011097, 0.012485929764807224, 0.0402977280318737, -0.01940215565264225, -0.03407924249768257, 0.035988856106996536, 0.034519921988248825, -0.041913554072380066, 0.005474835634231567, 0.016170503571629524, 0.014126238413155079, 0.0030663975048810244, -0.013269361108541489, 0....
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root_module", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}], "kwarg"...
def register_Ns3GammaVariable_methods(root_module, cls): ## random-variable.h (module 'core'): ns3::GammaVariable::GammaVariable(ns3::GammaVariable const & arg0) [copy constructor] cls.add_constructor([param('ns3::GammaVariable const &', 'arg0')]) ## random-variable.h (module 'core'): ns3::GammaVariable::Ga...
17,318
[ -0.004735693801194429, 0.006543867290019989, 0.025142228230834007, -0.036533404141664505, -0.025486642494797707, 0.031175851821899414, 0.03893154859542847, -0.0028589556459337473, 0.00221477379091084, -0.006438629701733589, -0.001368089229799807, -0.018088117241859436, 0.006467331200838089, ...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root_module", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}], "kwarg"...
def register_Ns3ParetoVariable_methods(root_module, cls): ## random-variable.h (module 'core'): ns3::ParetoVariable::ParetoVariable(ns3::ParetoVariable const & arg0) [copy constructor] cls.add_constructor([param('ns3::ParetoVariable const &', 'arg0')]) ## random-variable.h (module 'core'): ns3::ParetoVariab...
17,319
[ -0.02052115648984909, 0.02980394847691059, 0.040819525718688965, -0.033987391740083694, -0.009035250172019005, 0.06663806736469269, 0.03297247365117073, -0.00546756386756897, 0.008026519790291786, 0.009876890107989311, 0.029457390308380127, -0.048196252435445786, 0.007519060745835304, 0.02...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root_module", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}], "kwarg"...
def register_Ns3Object_methods(root_module, cls): ## object.h (module 'core'): ns3::Object::Object() [constructor] cls.add_constructor([]) ## object.h (module 'core'): void ns3::Object::AggregateObject(ns3::Ptr<ns3::Object> other) [member function] cls.add_method('AggregateObject', '...
17,320
[ -0.028623003512620926, 0.026913395151495934, 0.031368739902973175, -0.047765444964170456, -0.015127452090382576, 0.02225082367658615, -0.001958927372470498, -0.02253575809299946, 0.029710937291383743, 0.0016553745372220874, 0.02019152231514454, -0.04242939502000809, 0.01999724842607975, 0....
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root_module", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}], "kwarg"...
def register_Ns3SimulatorImpl_methods(root_module, cls): ## simulator-impl.h (module 'core'): ns3::SimulatorImpl::SimulatorImpl() [constructor] cls.add_constructor([]) ## simulator-impl.h (module 'core'): ns3::SimulatorImpl::SimulatorImpl(ns3::SimulatorImpl const & arg0) [copy constructor] cls.add_const...
17,321
[ -0.0512983575463295, 0.023421017453074455, 0.03646082803606987, -0.05995780602097511, 0.028687581419944763, 0.048006754368543625, 0.015267970971763134, -0.048943597823381424, 0.024446478113532066, 0.01088760793209076, 0.02663666009902954, -0.005801449529826641, -0.026180898770689964, 0.010...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root_module", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}], "kwarg"...
def register_Ns3Time_methods(root_module, cls): cls.add_binary_numeric_operator('+', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right')) cls.add_binary_numeric_operator('-', root_module['ns3::Time'], root_module['ns3::Time'], param('ns3::Time const &', 'right')) cls.add_...
17,322
[ -0.006968091242015362, 0.010419817641377449, 0.028984157368540764, -0.046565983444452286, -0.007368853781372309, 0.04139485955238342, 0.019598565995693207, -0.07425735890865326, 0.0255841426551342, -0.0015093222027644515, 0.0004110640729777515, 0.014931624755263329, -0.026941563934087753, ...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root_module", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}], "kwarg"...
def register_Ns3WallClockSynchronizer_methods(root_module, cls): ## wall-clock-synchronizer.h (module 'core'): ns3::WallClockSynchronizer::WallClockSynchronizer(ns3::WallClockSynchronizer const & arg0) [copy constructor] cls.add_constructor([param('ns3::WallClockSynchronizer const &', 'arg0')]) ## wall-cloc...
17,323
[ -0.03778200224041939, 0.03216781094670296, 0.0348990373313427, -0.034165654331445694, -0.010811115615069866, 0.02186247706413269, 0.0034867427311837673, -0.03411507606506348, 0.02688237465918064, -0.01286585908383131, 0.007681581657379866, -0.04491354525089264, 0.025276513770222664, 0.0112...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root_module", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}], "kwarg"...
def register_Ns3DefaultSimulatorImpl_methods(root_module, cls): ## default-simulator-impl.h (module 'core'): ns3::DefaultSimulatorImpl::DefaultSimulatorImpl(ns3::DefaultSimulatorImpl const & arg0) [copy constructor] cls.add_constructor([param('ns3::DefaultSimulatorImpl const &', 'arg0')]) ## default-simulat...
17,324
[ -0.014909930527210236, 0.025318259373307228, 0.028180550783872604, -0.04368896037340164, -0.010837672278285027, 0.02937750704586506, -0.015209170058369637, -0.025890717282891273, 0.017681147903203964, -0.0014433424221351743, 0.029169341549277306, -0.017915336415171623, 0.03104284033179283, ...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root_module", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}], "kwarg"...
def register_Ns3RealtimeSimulatorImpl_methods(root_module, cls): ## realtime-simulator-impl.h (module 'core'): ns3::RealtimeSimulatorImpl::RealtimeSimulatorImpl(ns3::RealtimeSimulatorImpl const & arg0) [copy constructor] cls.add_constructor([param('ns3::RealtimeSimulatorImpl const &', 'arg0')]) ## realtime-...
17,325
[ 0.009308391250669956, -0.012143942527472973, 0.02956991083920002, -0.035818737000226974, 0.0049695842899382114, 0.03223450481891632, 0.04529808461666107, -0.02289663814008236, -0.0014413563767448068, 0.00274859881028533, 0.0475146509706974, 0.0022814106196165085, -0.027636311948299408, 0.0...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root_module", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}], "kwarg"...
def register_Ns3RandomVariableValue_methods(root_module, cls): ## random-variable.h (module 'core'): ns3::RandomVariableValue::RandomVariableValue() [constructor] cls.add_constructor([]) ## random-variable.h (module 'core'): ns3::RandomVariableValue::RandomVariableValue(ns3::RandomVariableValue const & arg0...
17,326
[ -0.047951508313417435, 0.040781471878290176, 0.05291305109858513, -0.03926880657672882, 0.017562050372362137, 0.015459445305168629, -0.0342165008187294, -0.024172401055693626, 0.042536165565252304, 0.01790996454656124, 0.030767623335123062, -0.009605428203940392, 0.007343992590904236, 0.02...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "root_module", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyar...
def register_functions(root_module): module = root_module ## nstime.h (module 'core'): ns3::Time ns3::Abs(ns3::Time const & time) [free function] module.add_function('Abs', 'ns3::Time', [param('ns3::Time const &', 'time')]) ## int64x64.h (module 'core'):...
17,327
[ -0.011127631179988384, -0.025121470913290977, 0.047182194888591766, -0.028662079945206642, 0.01963547058403492, 0.01285902876406908, 0.008436508476734161, -0.015576089732348919, 0.020802704617381096, 0.01499247271567583, 0.01855902187526226, -0.027391092851758003, -0.013980870135128498, 0....
12
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "use_resource", "annota...
class ProximalAdagradOptimizerTest(test.TestCase): def doTestProximalAdagradwithoutRegularization(self, use_resource=False): with self.cached_session() as sess: var0 = variables.Variable([0.0, 0.0]) var1 = variables.Variable([0.0, 0.0]) grads0 = constant_op.constant([0.1, 0.2]) grads1 = c...
17,328
[ -0.006472681649029255, -0.009019995108246803, 0.04404635727405548, -0.030914684757590294, -0.015071871690452099, 0.03189120814204216, 0.01648526079952717, -0.014031103812158108, 0.032919127494096756, 0.031094569712877274, 0.035540323704481125, -0.0325593538582325, -0.017076315358281136, -0...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def testProximalAdagradwithoutRegularization2(self): with self.cached_session() as sess: var0 = variables.Variable([1.0, 2.0]) var1 = variables.Variable([4.0, 3.0]) grads0 = constant_op.constant([0.1, 0.2]) grads1 = constant_op.constant([0.01, 0.02]) opt = proximal_adagrad.ProximalAda...
17,329
[ -0.016724729910492897, 0.008152485825121403, 0.03869643434882164, -0.02948799543082714, -0.0035449869465082884, 0.0176298338919878, 0.002187332371249795, -0.02654968947172165, 0.033711809664964676, 0.01520310714840889, 0.02875341847538948, -0.035522013902664185, -0.008277101442217827, 0.00...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "use_resource", "annotation": null, "type_comment": null}}], "kwar...
def doTestProximalAdagradwithoutRegularization(self, use_resource=False): with self.cached_session() as sess: var0 = variables.Variable([0.0, 0.0]) var1 = variables.Variable([0.0, 0.0]) grads0 = constant_op.constant([0.1, 0.2]) grads1 = constant_op.constant([0.01, 0.02]) opt = proximal...
17,330
[ -0.007135862018913031, -0.03003113530576229, 0.05512011796236038, -0.03885640576481819, 0.0030573259573429823, 0.0054180859588086605, 0.009499773383140564, -0.012046494521200657, 0.023828230798244476, 0.009657368063926697, 0.023941699415445328, -0.025757182389497757, -0.025315919890999794, ...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def testProximalAdagradWithL1(self): with self.cached_session() as sess: var0 = variables.Variable([1.0, 2.0]) var1 = variables.Variable([4.0, 3.0]) grads0 = constant_op.constant([0.1, 0.2]) grads1 = constant_op.constant([0.01, 0.02]) opt = proximal_adagrad.ProximalAdagradOptimizer( ...
17,331
[ -0.01014834176748991, 0.0326988585293293, 0.023452050983905792, -0.026924172416329384, -0.01666618511080742, 0.003086838172748685, 0.04346852749586105, -0.003904614131897688, 0.04027661308646202, -0.027776973322033882, 0.04127560928463936, 0.0029573950450867414, -0.02451196126639843, 0.020...
11
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def testMinimizeSparseResourceVariable(self): for dtype in [dtypes.float32, dtypes.float64]: with self.cached_session(): var0 = resource_variable_ops.ResourceVariable([[1.0, 2.0]], dtype=dtype) x = constant_op.constant([[4.0], [5.0]], dtype=dtype) pred = math_ops.matmul(embedding_ops.e...
17,332
[ -0.019862420856952667, -0.027727890759706497, 0.0038393852300941944, -0.05401036515831947, -0.020452631637454033, -0.010057684034109116, 0.0264270156621933, -0.025800669565796852, -0.002902876352891326, 0.01798338070511818, 0.03512360155582428, -0.03982120007276535, -0.015791166573762894, ...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "opt", "annotation": null, "type_comment": null}}, {"_type": "arg"...
def applyOptimizer(self, opt, steps=5, is_sparse=False): if is_sparse: var0 = variables.Variable([[1.0], [2.0]]) var1 = variables.Variable([[3.0], [4.0]]) grads0 = ops.IndexedSlices( constant_op.constant( [0.1], shape=[1, 1]), constant_op.constant([0]), ...
17,333
[ -0.00791028793901205, -0.03309880569577217, 0.05114355683326721, -0.03988443687558174, -0.004388670437037945, 0.008563718758523464, 0.009713506326079369, -0.010932407341897488, 0.021525532007217407, 0.013860281556844711, 0.020193537697196007, -0.027318451553583145, -0.025232497602701187, -...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def testProximalAdagradWithL1_L2(self): with self.cached_session() as sess: var0 = variables.Variable([1.0, 2.0]) var1 = variables.Variable([4.0, 3.0]) grads0 = constant_op.constant([0.1, 0.2]) grads1 = constant_op.constant([0.01, 0.02]) opt = proximal_adagrad.ProximalAdagradOptimizer...
17,334
[ 0.002360922982916236, -0.038294821977615356, 0.04210066422820091, -0.02671181969344616, 0.009065471589565277, 0.03673466295003891, 0.030115803703665733, -0.03186507150530815, 0.026026295498013496, 0.0291229747235775, 0.01933651976287365, -0.01978565752506256, -0.02898114174604416, 0.063446...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def testEquivSparseAdagradwithoutRegularization(self): with self.cached_session(): val0, val1 = self.applyOptimizer( proximal_adagrad.ProximalAdagradOptimizer( 3.0, initial_accumulator_value=0.1, l1_regularization_strength=0.0, l2_regularizatio...
17,335
[ 0.008088760077953339, -0.02655935473740101, 0.046189084649086, -0.01917615719139576, 0.007509191520512104, 0.035555265843868256, 0.029986368492245674, -0.023359129205346107, 0.023107143118977547, 0.033060599118471146, 0.02905401960015297, -0.029356403276324272, -0.02726491540670395, 0.0410...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def testEquivAdagradwithoutRegularization(self): with self.cached_session(): val0, val1 = self.applyOptimizer( proximal_adagrad.ProximalAdagradOptimizer( 3.0, initial_accumulator_value=0.1, l1_regularization_strength=0.0, l2_regularization_stre...
17,336
[ -0.007720060180872679, -0.014569777064025402, 0.03874724358320236, 0.00991852581501007, -0.01831112429499626, 0.020583059638738632, 0.008935149759054184, -0.015632273629307747, -0.009963737800717354, 0.006578440777957439, -0.006770594511181116, -0.0563349649310112, -0.002919041784480214, 0...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []}}, "body": [{"_type": "Assign", "_fields": {"value": {"_type": "Call", "_fields": {"a...
def test_bad_estimator(): # test grid-search with clustering algorithm which doesn't support # "predict" sc = SpectralClustering() grid_search = GridSearchCV(sc, param_grid=dict(gamma=[.1, 1, 10]), scoring='ari') assert_raise_message(TypeError, "'score' or a 'predict'"...
17,337
[ 0.026539310812950134, 0.031032975763082504, -0.01969870924949646, 0.0071631669998168945, 0.004029281437397003, -0.02827448770403862, 0.01462665293365717, -0.056059569120407104, 0.006128734443336725, 0.04291226342320442, 0.006334508769214153, -0.061799000948667526, 0.006039751227945089, 0.0...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []}}, "body": [{"_type": "Assign", "_fields": {"value": {"_type": "Call", "_fields": {"a...
def test_grid_search_no_score(): # Test grid-search on classifier that has no score function. clf = LinearSVC(random_state=0) X, y = make_blobs(random_state=0, centers=2) Cs = [.1, 1, 10] clf_no_score = LinearSVCNoScore(random_state=0) grid_search = GridSearchCV(clf, {'C': Cs}) grid_search.f...
17,338
[ 0.02054007723927498, 0.0008356127073056996, 0.03229932487010956, -0.040043219923973083, -0.021599071100354195, -0.033645130693912506, -0.013866206631064415, -0.008593297563493252, 0.04430126026272774, 0.03624849021434784, 0.01782640442252159, -0.05480295419692993, -0.013568364083766937, 0....
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []}}, "body": [{"_type": "Assign", "_fields": {"value": {"_type": "Dict", "_fields": {"k...
def test_param_sampler(): # test basic properties of param sampler param_distributions = {"kernel": ["rbf", "linear"], "C": distributions.uniform(0, 1)} sampler = ParameterSampler(param_distributions=param_distributions, n_iter=10, random_state=0) ...
17,339
[ 0.04486893117427826, -0.01535483356565237, 0.013655252754688263, 0.012283866293728352, -0.021543651819229126, -0.020934145897626877, 0.03647651895880699, -0.03823470696806908, -0.00843343697488308, 0.03424948453903198, -0.01031469739973545, -0.0465802364051342, 0.009007778018712997, 0.0302...
12
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []}}, "body": [{"_type": "Assign", "_fields": {"value": {"_type": "Call", "_fields": {"a...
def test_randomized_search_grid_scores(): # Make a dataset with a lot of noise to get various kind of prediction # errors across CV folds and parameter settings X, y = make_classification(n_samples=200, n_features=100, n_informative=3, random_state=0) # XXX: as of today (...
17,340
[ -0.020344732329249382, 0.03995679318904877, -0.01234421506524086, -0.03676443547010422, -0.019965313374996185, -0.022438080981373787, -0.011873211711645126, 0.0012985303765162826, -0.03064139001071453, 0.0468386746942997, 0.019062556326389313, -0.02794620394706726, -0.0177280455827713, -0....
12
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "data", "annotation": null, "type_comment": null}}], "kwarg": null...
def postprocess_data(self, data): if not data or self.label not in data: return [] mlist = [] data = data[self.label] # Avoid duplicates. A real fix, using XPath, is auspicabile. # XXX: probably this is no more needed. seenIDs = [] for d in data: ...
17,341
[ 0.01745215430855751, 0.043711286038160324, 0.07119554281234741, -0.046531371772289276, -0.004981376230716705, 0.015972765162587166, 0.020457159727811813, -0.016643112525343895, -0.05496850609779358, -0.019047118723392487, -0.034280192106962204, 0.0024950222577899694, 0.015209956094622612, ...
14
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "List", "_fields": {"ctx": {"_type": "Load", "_fields": {}}, "elts": [{"_type": "Tuple", "_fields": {"ctx": {"_type": "Load", "_fields": {}}, "elts": [{"_type": "Constant", "_fields": {...
class Migration(migrations.Migration): dependencies = [ ('openfonacide', '0050_auto_20150530_0547'), ] operations = [ migrations.CreateModel( name='HistorialEstado', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=Tr...
17,342
[ -0.023771680891513824, 0.013957786373794079, 0.030722726136446, -0.02314786985516548, -0.030366262421011925, 0.0027013274375349283, 0.00199257698841393, 0.029185475781559944, 0.029965240508317947, -0.016742659732699394, -0.0006419133860617876, -0.007608274929225445, 0.008471585810184479, -...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []}}, "body": [{"_type": "Expr", "_fields": {"value": {"_type": "Call", "_fields": {"arg...
def main(): print('starting D-Bus service at %s' % BUS_NAME) DBusGMainLoop(set_as_default=True) bus = dbus.SessionBus() name = dbus.service.BusName(BUS_NAME, bus) service = DBusService(bus=bus) print('call with: "dbus-send --session --print-reply --dest=%(busname)s %(object_path)s ' '%(busname)s.crash int32:1...
17,343
[ -0.014498439617455006, -0.005268762819468975, -0.0016948655247688293, -0.016655055806040764, 0.01521375309675932, -0.012427234090864658, 0.013057136908173561, 0.02476905845105648, 0.0055570234544575214, 0.007932504639029503, 0.0023608007468283176, -0.03279764950275421, 0.03657706454396248, ...
9
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "bus", "annotation": nu...
class DBusService(dbus.service.Object): def __init__(self, bus, object_path=OBJECT_PATH): super(DBusService, self).__init__(bus, object_path) @logex.log(view_source=True) @dbus.service.method(dbus_interface=BUS_NAME, in_signature='isb', out_signature='') def crash(self, arg1, arg2, lazy=True): a = 1 pr...
17,344
[ -0.012015469372272491, 0.053413305431604385, -0.024624139070510864, -0.014691183343529701, 0.025343552231788635, 0.001880572410300374, -0.016331950202584267, 0.0017922234255820513, -0.012715950608253479, 0.0759296864271164, 0.04823857545852661, -0.0035939128138124943, 0.061087049543857574, ...
11
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "pathFilter", "annotation": null, "type_comment": null}}], "kwarg":...
def create( cls, pathFilter ) : visible = True with IECore.IgnoredExceptions( KeyError ) : visible = pathFilter.userData()["UI"]["visible"].value if not visible : return None c = pathFilter.__class__ while c is not None : creator = cls.__typesToCreators.get( c, None ) if creator is not None : ...
17,345
[ -0.039740707725286484, 0.046230707317590714, -0.0012563837226480246, -0.027519281953573227, -0.008107230998575687, 0.025496425107121468, -0.022209282964468002, 0.0005132867954671383, 0.024548212066292763, 0.06692285090684891, 0.004282767418771982, -0.008497052825987339, 0.021398033946752548,...
12
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "topLevelWidget", "anno...
class PathFilterWidget( GafferUI.Widget ) : def __init__( self, topLevelWidget, pathFilter, **kw ) : GafferUI.Widget.__init__( self, topLevelWidget, **kw ) self.__pathFilter = pathFilter self.__pathFilterChangedConnection = self.__pathFilter.changedSignal().connect( Gaffer.WeakMethod( self.__pathFilterChanged...
17,346
[ -0.03810598701238632, 0.02875191532075405, -0.011380068026483059, 0.014128096401691437, -0.006983223836869001, -0.005657704547047615, -0.012802576646208763, -0.0049437559209764, 0.000052620016504079103, 0.07741894572973251, 0.01580924168229103, -0.013977224007248878, 0.010668814182281494, ...
14
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "pathFilter", "annotati...
class BasicPathFilterWidget( PathFilterWidget ) : def __init__( self, pathFilter ) : self.__checkBox = GafferUI.BoolWidget( str( pathFilter ) ) PathFilterWidget.__init__( self, self.__checkBox, pathFilter ) self.__stateChangedConnection = self.__checkBox.stateChangedSignal().connect( Gaffer.WeakMethod( self....
17,347
[ -0.028187328949570656, 0.04289773479104042, -0.016572048887610435, 0.027113744989037514, -0.007229570299386978, 0.008491604588925838, -0.0012591787381097674, -0.0001708706986391917, 0.03689022362232208, 0.08867359161376953, 0.03586232289671898, -0.0014226435450837016, 0.02585742063820362, ...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "pathFilter", "annotation": null, "type_comment": null}}], "kwarg"...
def __init__( self, pathFilter ) : self.__checkBox = GafferUI.BoolWidget( str( pathFilter ) ) PathFilterWidget.__init__( self, self.__checkBox, pathFilter ) self.__stateChangedConnection = self.__checkBox.stateChangedSignal().connect( Gaffer.WeakMethod( self.__stateChanged ) ) self._updateFromPathFilter()
17,348
[ -0.02512311190366745, 0.0450972281396389, -0.03057059831917286, 0.019426880404353142, 0.033431150019168854, -0.005366644822061062, 0.027212558314204216, 0.0016323804156854749, -0.0000645664767944254, 0.08730903267860413, 0.03149094805121422, -0.003367367433384061, -0.002616472542285919, -0...
13
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def _updateFromPathFilter( self ) : label = str( self.pathFilter() ) with IECore.IgnoredExceptions( KeyError ) : label = self.pathFilter().userData()["UI"]["label"].value self.__checkBox.setText( label ) invertEnabled = False with IECore.IgnoredExceptions( KeyError ) : invertEnabled = self.pathFilter(...
17,349
[ -0.00040883812471292913, -0.0031087123788893223, 0.014181283302605152, 0.01899477280676365, -0.024795645847916603, -0.0070412722416222095, -0.04233403131365776, 0.012582956813275814, 0.005143646150827408, 0.03411407023668289, 0.008170590735971928, -0.013761645182967186, 0.002238581422716379,...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "state", "annotation": null, "type_comment": null}}, {"_type": "ar...
def initSequence(self, state, params): # Invoke base class super(HorizontalPictureExplorer, self).initSequence(state, params) # Force vertical velocity to be zero state['velocityY'] = 0 # Make sure we don't allow stationary (no velocity) if state['velocityX'] == 0: state['velocityX'] = sel...
17,350
[ 0.031674228608608246, 0.010426775552332401, 0.00973165687173605, -0.021722448989748955, -0.0022750645875930786, 0.006951183546334505, -0.00731032807379961, -0.0019159200601279736, 0.004932444076985121, 0.00042793224565684795, 0.052504606544971466, -0.011701159179210663, 0.0003095449064858258...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "fd", "annotation": null, "type_comment": null}}, {"_type": "arg",...
def _invoke_callback(self, fd, events): if fd not in self._fds: return (reader, writer) = self._fds[fd] if reader: err = None if reader.fileno() == -1: err = error.ConnectionLost() elif events & IOLoop.READ: err = lo...
17,351
[ 0.025163425132632256, 0.024975111708045006, -0.009639310650527477, -0.007785596884787083, -0.014347153715789318, -0.002634921343997121, -0.0017419022042304277, -0.015794815495610237, -0.017524948343634605, -0.006579211913049221, -0.03912218287587166, -0.0026246230117976665, -0.01579481549561...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "io_loop", "annotation": null, "type_comment": null}}], "kwarg": n...
def __init__(self, io_loop=None): if not io_loop: io_loop = tornado.ioloop.IOLoop.current() self._io_loop = io_loop self._readers = {} # map of reader objects to fd self._writers = {} # map of writer objects to fd self._fds = {} # a map of fd to a (reader, writer) ...
17,352
[ -0.03816889598965645, -0.015389589592814445, 0.018372593447566032, 0.007915130816400051, 0.004581849090754986, -0.03369439020752907, -0.06878988444805145, -0.02867751754820347, -0.018903659656643867, 0.021457292139530182, 0.0037315802183002234, 0.036067232489585876, 0.0003368591424077749, ...
13
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "host", "annotation": null, "type_comment": null}}, {"_type": "arg...
def resolve(self, host, port, family=0): # getHostByName doesn't accept IP addresses, so if the input # looks like an IP address just return it immediately. if twisted.internet.abstract.isIPAddress(host): resolved = host resolved_family = socket.AF_INET elif twist...
17,353
[ 0.02565176412463188, 0.02020692452788353, 0.008671845309436321, -0.0026050738524645567, 0.013107511214911938, -0.02865581214427948, -0.0012974030105397105, -0.028022145852446556, -0.04170465096831322, 0.0036289149429649115, -0.005342161748558283, 0.01419882569462061, 0.010619782842695713, ...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "io_loop", "annotation": null, "type_comment": null}}], "kwarg": n...
def initialize(self, io_loop=None): self.io_loop = io_loop or IOLoop.current() # partial copy of twisted.names.client.createResolver, which doesn't # allow for a reactor to be passed in. self.reactor = tornado.platform.twisted.TornadoReactor(io_loop) host_resolver = twisted.name...
17,354
[ -0.010750462301075459, 0.01842448115348816, 0.024885013699531555, 0.0032843889202922583, 0.006716902833431959, 0.017786404117941856, -0.013604719191789627, -0.045007236301898956, 0.0526413768529892, 0.04603271931409836, 0.023153088986873627, -0.04940541088581085, 0.039538003504276276, -0.0...
9
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "health_check_id", "ann...
class HealthCheck(object): def __init__(self, health_check_id, health_check_args): self.id = health_check_id self.ip_address = health_check_args.get("ip_address") self.port = health_check_args.get("port", 80) self._type = health_check_args.get("type") self.resource_path = hea...
17,355
[ -0.0026413106825202703, -0.029934855177998543, 0.023989316076040268, 0.014325226657092571, -0.005179040599614382, 0.000886910711415112, 0.004596398677676916, -0.03490673378109932, 0.027366051450371742, 0.04802006483078003, 0.0456169918179512, -0.03940214216709137, 0.038863521069288254, -0....
7
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "health_check_id", "annotation": null, "type_comment": null}}, {"_...
def __init__(self, health_check_id, health_check_args): self.id = health_check_id self.ip_address = health_check_args.get("ip_address") self.port = health_check_args.get("port", 80) self._type = health_check_args.get("type") self.resource_path = health_check_args.get("resource_pa...
17,356
[ -0.008702658116817474, 0.015384320169687271, 0.044131964445114136, -0.0033047418110072613, -0.02023058757185936, 0.0018676173640415072, 0.014992494136095047, -0.012239402160048485, 0.057330310344696045, 0.024231335148215294, 0.028830133378505707, -0.02264340966939926, 0.036914121359586716, ...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "resource_name", "annotation": null, "type_comment": null}}, {"_typ...
def create_from_cloudformation_json(cls, resource_name, cloudformation_json, region_name): properties = cloudformation_json['Properties']['HealthCheckConfig'] health_check_args = { "ip_address": properties.get('IPAddress'), "port": properties.get('Port'), "type": prop...
17,357
[ 0.02824701927602291, 0.013221777975559235, 0.031267277896404266, -0.003370629856362939, 0.011874612420797348, 0.02696503885090351, 0.03889397159218788, -0.020794151350855827, 0.007306200452148914, 0.001127164694480598, 0.002607417292892933, -0.051800686866045, 0.015014377422630787, -0.0316...
8
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "kwargs", "annotation":...
class RecordSet(object): def __init__(self, kwargs): self.name = kwargs.get('Name') self._type = kwargs.get('Type') self.ttl = kwargs.get('TTL') self.records = kwargs.get('ResourceRecords', []) self.set_identifier = kwargs.get('SetIdentifier') self.weight = kwargs.get...
17,358
[ 0.04449857771396637, 0.017484987154603004, -0.03635162115097046, 0.015388693660497665, 0.04911994934082031, 0.005985153838992119, 0.011249707080423832, -0.009725130163133144, 0.0012930611846968532, -0.02334507741034031, 0.030324779450893402, -0.03358832746744156, 0.020355477929115295, -0.0...
11
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "name", "annotation": n...
class FakeZone(object): def __init__(self, name, id_, comment=None): self.name = name self.id = id_ self.comment = comment self.rrsets = [] def add_rrset(self, record_set): record_set = RecordSet(record_set) self.rrsets.append(record_set) return record_s...
17,359
[ 0.02187369391322136, 0.012459838762879372, 0.027126912027597427, -0.006147148087620735, 0.009430409409105778, -0.011753523722290993, -0.008398527279496193, 0.012526055797934532, -0.016465969383716583, 0.004958000499755144, 0.0040364800952374935, -0.00795156229287386, -0.011576944962143898, ...
7
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "kwargs", "annotation": null, "type_comment": null}}], "kwarg": nu...
def __init__(self, kwargs): self.name = kwargs.get('Name') self._type = kwargs.get('Type') self.ttl = kwargs.get('TTL') self.records = kwargs.get('ResourceRecords', []) self.set_identifier = kwargs.get('SetIdentifier') self.weight = kwargs.get('Weight') self.regio...
17,360
[ 0.01571371592581272, 0.012546781450510025, -0.02603924460709095, -0.057972509413957596, -0.014515119604766369, -0.012634752318263054, 0.05603715777397156, -0.00878604594618082, -0.05872025713324547, -0.0045442222617566586, -0.023839984089136124, -0.06826505064964294, 0.04750402644276619, -...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "type_filter", "annotation": null, "type_comment": null}}, {"_type...
def get_record_sets(self, type_filter, name_filter): record_sets = list(self.rrsets) # Copy the list if type_filter: record_sets = [record_set for record_set in record_sets if record_set._type == type_filter] if name_filter: record_sets = [record_set for record_set in re...
17,361
[ 0.035596586763858795, 0.007427550386637449, 0.027163000777363777, 0.008701150305569172, 0.016128700226545334, 0.024037864059209824, 0.059420403093099594, -0.022603726014494896, -0.04353785887360573, -0.015475846827030182, 0.010103181004524231, -0.02046322263777256, 0.018772223964333534, -0...
9
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "hosted_zone_id", "anno...
class RecordSetGroup(object): def __init__(self, hosted_zone_id, record_sets): self.hosted_zone_id = hosted_zone_id self.record_sets = record_sets @property def physical_resource_id(self): return "arn:aws:route53:::hostedzone/{0}".format(self.hosted_zone_id) @classmethod de...
17,362
[ 0.03725725784897804, 0.014058955013751984, 0.045449741184711456, -0.00202624942176044, 0.0015939829172566533, -0.005110008176416159, 0.035878121852874756, -0.028509007766842842, 0.009762019850313663, -0.02562723122537136, 0.023959916085004807, -0.015705684199929237, 0.0270269513130188, -0....
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "resource_name", "annotation": null, "type_comment": null}}, {"_typ...
def create_from_cloudformation_json(cls, resource_name, cloudformation_json, region_name): properties = cloudformation_json['Properties'] zone_name = properties["HostedZoneName"] hosted_zone = route53_backend.get_hosted_zone_by_name(zone_name) record_sets = properties["RecordSets"] ...
17,363
[ 0.01727967895567417, 0.026012420654296875, 0.025129856541752815, 0.022865381091833115, 0.015804868191480637, 0.006172143388539553, -0.007060513831675053, 0.0030686527024954557, -0.007298573851585388, 0.005626346915960312, 0.04570753872394562, -0.02091445028781891, -0.008152106776833534, -0...
9
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs...
class Route53Backend(BaseBackend): def __init__(self): self.zones = {} self.health_checks = {} def create_hosted_zone(self, name, comment=None): new_id = get_random_hex() new_zone = FakeZone(name, new_id, comment=comment) self.zones[new_id] = new_zone return new...
17,364
[ 0.01468239538371563, 0.014966717921197414, 0.027112960815429688, -0.024474451318383217, -0.004876124672591686, -0.015967531129717827, -0.03839486464858055, -0.04449072852730751, 0.0009283118415623903, -0.020493939518928528, -0.0017954943468794227, -0.07119426876306534, 0.047811612486839294, ...
11
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "request", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "md5", "annotation":...
class FilesApi: @api_get def view(request, md5=None, sha256=None, sample_id=None): data = {} if md5: sample = db.find_sample(md5=md5) elif sha256: sample = db.find_sample(sha256=sha256) elif sample_id: sample = db.view_sample(sample_id) ...
17,365
[ 0.015635231509804726, -0.0008955186349339783, 0.032421521842479706, 0.018872587010264397, 0.005434561520814896, -0.016942163929343224, -0.008339189924299717, -0.0200356375426054, -0.011294775642454624, 0.008351179771125317, 0.038200803101062775, -0.04340455308556557, 0.05414777994155884, -...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "request", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "md5", "annotation": null, "type_comment": null}}, {"_type": "a...
def view(request, md5=None, sha256=None, sample_id=None): data = {} if md5: sample = db.find_sample(md5=md5) elif sha256: sample = db.find_sample(sha256=sha256) elif sample_id: sample = db.view_sample(sample_id) else: return json_f...
17,366
[ 0.004221245646476746, -0.020062679424881935, 0.0031583220697939396, 0.0011639565927907825, 0.025532307103276253, -0.025111567229032516, 0.003537542186677456, 0.01293223537504673, -0.009522022679448128, -0.03489932045340538, 0.00942790973931551, -0.03115694411098957, 0.02562088333070278, -0...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "request", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "sha256", "annotation": null, "type_comment": null}}], "kwarg":...
def get(request, sha256): filepath = cwd("storage", "binaries", sha256) if os.path.exists(filepath): return json_error_response("File not found") return HttpResponse( FileWrapper(open(filepath, "rb")), content_type="application/octet-stream; charset=UTF-8" ...
17,367
[ -0.017429543659090996, -0.002113204449415207, 0.03340236470103264, -0.014976117759943008, -0.014247757382690907, -0.010388723574578762, 0.04303717240691185, 0.04592505842447281, 0.0024518282152712345, 0.007833071984350681, 0.013596066273748875, -0.023154202848672867, 0.0018991685938090086, ...
11
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs...
class GaussianMixturePairTest(jax.test_util.JaxTestCase): def setUp(self): super().setUp() self.n_components = 3 self.n_dimensions = 2 self.epsilon = 1.e-3 self.rho = 0.1 self.tau = self.rho / (self.rho + self.epsilon) key = jax.random.PRNGKey(seed=0) self.key, subkey0, subkey1 = jax....
17,368
[ 0.003284195438027382, -0.030037757009267807, 0.04921240359544754, -0.016648344695568085, -0.01997043378651142, -0.04112823307514191, 0.0374903529882431, 0.03195774927735329, -0.017052553594112396, -0.0030836700461804867, 0.00028144606039859354, -0.04019349813461304, -0.018277810886502266, ...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def setUp(self): super().setUp() self.n_components = 3 self.n_dimensions = 2 self.epsilon = 1.e-3 self.rho = 0.1 self.tau = self.rho / (self.rho + self.epsilon) key = jax.random.PRNGKey(seed=0) self.key, subkey0, subkey1 = jax.random.split(key, num=3) self.gmm0 = gaussian_mixture.Gau...
17,369
[ -0.031547803431749344, -0.00546832662075758, 0.009281963109970093, -0.005359624046832323, -0.012029713951051235, -0.018600160256028175, 0.055172424763441086, 0.035291992127895355, 0.0522736981511116, 0.00034063810016959906, -0.013696481473743916, -0.004296757746487856, -0.026402564719319344,...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def test_get_sinkhorn_to_same_gmm_is_almost_zero(self): gmm = self.gmm0 pair = gaussian_mixture_pair.GaussianMixturePair( gmm0=gmm, gmm1=gmm, # use same GMM for both gmm0 and gmm1 epsilon=self.epsilon, tau=1.) cost_matrix = pair.get_cost_matrix() sinkhorn_output = pair.g...
17,370
[ -0.04073336720466614, -0.007068723905831575, 0.029686206951737404, 0.0032484496477991343, -0.03141384571790695, -0.0008394870092161, 0.04878757894039154, 0.02289731241762638, 0.03340914845466614, -0.003862856887280941, -0.0006927288486622274, -0.017288565635681152, -0.00804812554270029, 0....
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def test_get_coupling_between_same_gmm(self): gmm = self.gmm0 pair = gaussian_mixture_pair.GaussianMixturePair( gmm0=gmm, gmm1=gmm, # use same GMM for both gmm0 and gmm1 epsilon=self.epsilon, tau=1.) cost_matrix = pair.get_cost_matrix() sinkhorn_output = pair.get_sinkhor...
17,371
[ -0.025337057188153267, 0.008182021789252758, 0.02137576788663864, -0.01721198670566082, -0.012586264871060848, -0.008447795175015926, 0.02642546221613884, 0.053407780826091766, -0.025817979127168655, -0.000565163791179657, 0.008257957175374031, 0.027513867244124413, -0.029386935755610466, ...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def test_get_sinkhorn_to_shifted_is_almost_shift(self): loc_shift = jnp.stack( [2. * jnp.ones(self.n_components), jnp.zeros(self.n_components)], axis=-1) gmm1 = gaussian_mixture.GaussianMixture( loc=self.gmm0.loc + loc_shift, scale_params=self.gmm0.scale_params, componen...
17,372
[ -0.044534120708703995, 0.013192983344197273, 0.020507164299488068, -0.001992365112528205, -0.03412451967597008, -0.0047710672952234745, 0.03804372251033783, 0.039741210639476776, -0.01974578946828842, -0.0072892168536782265, 0.013904430903494358, 0.009791765362024307, -0.018385302275419235, ...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def test_get_coupling_to_shifted(self): loc_shift = jnp.stack( [2. * jnp.ones(self.n_components), jnp.zeros(self.n_components)], axis=-1) gmm1 = gaussian_mixture.GaussianMixture( loc=self.gmm0.loc + loc_shift, scale_params=self.gmm0.scale_params, component_weight_ob=self...
17,373
[ -0.0024986618664115667, -0.0024911987129598856, 0.019272832199931145, 0.004059952218085527, -0.021314749494194984, -0.03570369631052017, 0.03181092068552971, 0.01681297831237316, 0.029327183961868286, 0.008502017706632614, 0.01692044734954834, -0.024550769478082657, 0.019081775099039078, 0...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "epsilon", "annotation": null, "type_comment": null}}, {"_type": "...
def test_flatten_unflatten(self, epsilon, tau, lock_gmm1): pair = gaussian_mixture_pair.GaussianMixturePair( gmm0=self.gmm0, gmm1=self.gmm1, epsilon=epsilon, tau=tau, lock_gmm1=lock_gmm1) children, aux_data = jax.tree_util.tree_flatten(pair) pair_new = jax.tree_util.tree_unflatten(aux_data, ...
17,374
[ -0.02446078509092331, -0.05038685351610184, 0.00537073751911521, -0.03124362975358963, -0.004138835705816746, 0.03906635567545891, -0.02807672694325447, 0.006392891053110361, 0.0017311618430539966, 0.026446007192134857, -0.03403239697217941, -0.04953604191541672, 0.04915790632367134, 0.017...
11
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Constant", "_fields": {"kind": null, "value": ""}}, "targets": [{"_type": "Name", "_fields": {"id": "interface_separator", "ctx": {"_type": "Store", "_fields": {}}}}], "type_comment": ...
class ConfigCommandProcessor(AristaBaseCommandProcessor): interface_separator = "" def __init__(self, display_class, config_vlan, config_interface): super(ConfigCommandProcessor, self).__init__(display_class) self.config_vlan_processor = config_vlan self.config_interface_processor = con...
17,375
[ -0.008511957712471485, -0.0046716248616576195, 0.04531124606728554, -0.001964072696864605, -0.038637496531009674, -0.02156674861907959, 0.06491099298000336, 0.006948895286768675, -0.004695041570812464, 0.0025831509847193956, 0.005456082988530397, -0.030324582010507584, 0.004086208064109087, ...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "epsilon", "annotation": null, "type_comment": null}}, {"_type": "...
def test_pytree_mapping(self, epsilon, tau, lock_gmm1): pair = gaussian_mixture_pair.GaussianMixturePair( gmm0=self.gmm0, gmm1=self.gmm1, epsilon=epsilon, tau=tau, lock_gmm1=lock_gmm1) expected_gmm1_loc = 2. * self.gmm1.loc if not lock_gmm1 else self.gmm1.loc pair_x_2 = jax.tree_map(lambda ...
17,376
[ 0.010068429633975029, -0.025009626522660255, -0.027710197493433952, -0.01706055738031864, 0.0028106477111577988, 0.021111413836479187, -0.041353948414325714, 0.0076848831959068775, 0.006008768454194069, 0.03186672553420067, -0.002976497868075967, -0.01251655537635088, 0.0030909786000847816, ...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": {"_type": "arg", "_fields": {"arg": "args", "annotation": null, "type_commen...
def do_interface(self, *args): try: interface_name = self.read_interface_name(args) except NameIsIncomplete: self.display.invalid_command(self, "Incomplete command") return except InvalidVlanNumber: self.display.invalid_command(self, "Invalid input...
17,377
[ 0.00013681572454515845, -0.006795000750571489, 0.0004755202680826187, -0.015470451675355434, 0.04603064805269241, 0.000009091756510315463, -0.04102380573749542, 0.03006412833929062, -0.002473138039931655, 0.021930893883109093, -0.012228693813085556, 0.007187241688370705, 0.011432674713432789...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "raw_number", "annotation": null, "type_comment": null}}], "kwarg"...
def do_vlan(self, raw_number, *_): try: number = self.read_vlan_number(raw_number) except VlanNumberIsZero: self.display.invalid_command(self, "Incomplete command") return except InvalidVlanNumber: self.display.invalid_command(self, "Invalid input"...
17,378
[ -0.001914104213938117, 0.0022356961853802204, 0.04547788202762604, -0.018132731318473816, 0.008431607857346535, -0.01885174959897995, 0.04051216319203377, 0.057386614382267, 0.033614084124565125, 0.057386614382267, -0.019975215196609497, 0.0077968500554561615, 0.0017174978274852037, 0.0027...
11
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "network", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "data_pair", "annotation": null, "type_comment": null}}, {"_typ...
def train(network, data_pair, num_epoch, learning_rate, optimizer='sgd', opt_args=None, ctx=[mx.gpu(0)]): np.random.seed(123) # Fix random seed for consistent demos mx.random.seed(123) # Fix random seed for consistent demos if not opt_args: opt_args = {} if optimizer=='sgd' and (not opt_args):...
17,379
[ -0.0034934154246002436, 0.021055910736322403, 0.005134101491421461, 0.008598360233008862, -0.01281802449375391, 0.04758254438638687, 0.02279466763138771, -0.028265388682484627, -0.03392694890499115, 0.07107695192098618, -0.02262503281235695, -0.033418044447898865, -0.043002404272556305, 0....
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "label", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "pred", "annotation": null, "type_comment": null}}], "kwarg": nul...
def RMSE(label, pred): ret = 0.0 n = 0.0 pred = pred.flatten() for i in range(len(label)): ret += (label[i] - pred[i]) * (label[i] - pred[i]) n += 1.0 return math.sqrt(ret / n)
17,380
[ 0.0031028822995722294, 0.023226682096719742, -0.038434918969869614, -0.0209113247692585, -0.021691234782338142, 0.02451840601861477, -0.022824540734291077, 0.02559078298509121, 0.08159803599119186, 0.025298316031694412, 0.024018777534365654, -0.0069277905859053135, 0.03748440369963646, 0.0...
11
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "topic", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "payload", "annotation": null, "type_comment": null}}], "kwarg": ...
def event(topic, payload): if topic['commandClass'] == 'info': return eval('info.' + topic['action'])(topic, payload) elif topic['subFunction']: if topic['subFunction'] == 'sup': return info.sup(topic, payload) elif topic['subFunction'] == 'evtsup': return info.ev...
17,381
[ 0.03636904060840607, 0.025164201855659485, -0.046266648918390274, -0.018196191638708115, -0.015593401156365871, 0.02943604625761509, -0.0002613368269521743, -0.02602790854871273, 0.06876970082521439, 0.036579132080078125, 0.02899252250790596, 0.03433816507458687, -0.002219083486124873, -0....
11
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "func", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def verify_sensor_and_class(func): @wraps(func) def wrapper(topic, payload): if not NodeDefender.db.sensor.get(topic['mac_address'], topic['node']): NodeDefender.db.sensor.create(topic['mac_address'], topic['node']) if not NodeDefender.db.commandclass.get(topic['mac_address'], topic[...
17,382
[ -0.01497469749301672, 0.03305971622467041, 0.1144799292087555, -0.00129257095977664, -0.01531332079321146, -0.03406304493546486, -0.006628247443586588, -0.012209269218146801, -0.050266824662685394, 0.012265706434845924, 0.005377220455557108, 0.039857275784015656, 0.0008300986373797059, -0....
14
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "p", "annotation": null, "type_comment": null}}], "kwarg": null, "...
def paint(self, p, *args): pen = self.region.lines[0].pen rgn = self.getLevels() p1 = self.vb.mapFromViewToItem(self, Point(self.vb.viewRect().center().x(), rgn[0])) p2 = self.vb.mapFromViewToItem(self, Point(self.vb.viewRect().center().x(), rgn[1])) gradRect = self.gradient.mapR...
17,383
[ 0.0000846871334942989, 0.01031490322202444, -0.002254723571240902, -0.028950849547982216, 0.001288532163016498, -0.003416147083044052, 0.030492767691612244, -0.0005105112795718014, -0.02564104087650776, -0.013850681483745575, 0.004891603719443083, 0.011843529529869556, 0.008321043103933334, ...
11
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def gradientChanged(self): if self.imageItem() is not None: if self.gradient.isLookupTrivial(): self.imageItem().setLookupTable(None) #lambda x: x.astype(np.uint8)) else: self.imageItem().setLookupTable(self.getLookupTable) ## send function pointer, not t...
17,384
[ -0.004653388634324074, -0.0015439778799191117, 0.021321674808859825, -0.019389118999242783, -0.05304354429244995, -0.026979483664035797, 0.03643883019685745, 0.0032707219943404198, -0.0028352614026516676, 0.02350851334631443, 0.042338207364082336, 0.03186172619462013, 0.015460439026355743, ...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "autoLevel", "annotation": null, "type_comment": null}}, {"_type":...
def imageChanged(self, autoLevel=False, autoRange=False): profiler = debug.Profiler() h = self.imageItem().getHistogram() profiler('get histogram') if h[0] is None: return self.plot.setData(*h) profiler('set plot') if autoLevel: mn = h[0][0...
17,385
[ -0.05003957822918892, -0.010721107944846153, 0.014147680252790451, -0.028388284146785736, -0.009588596411049366, -0.007178379688411951, 0.006760221440345049, 0.001511467038653791, -0.03421926498413086, -0.02562379464507103, 0.0035862859804183245, -0.0036530750803649426, 0.015715772286057472,...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "img", "annotation": null, "type_comment": null}}, {"_type": "arg"...
def getLookupTable(self, img=None, n=None, alpha=None): if n is None: if img.dtype == np.uint8: n = 256 else: n = 512 if self.lut is None: self.lut = self.gradient.getLookupTable(n, alpha=alpha) return self.lut
17,386
[ 0.025787431746721268, -0.011156179942190647, 0.03424743562936783, -0.042060352861881256, -0.0027515979018062353, 0.0047003342770040035, 0.043546248227357864, -0.01023348793387413, 0.03872907906770706, 0.06058608368039131, 0.0168121587485075, -0.0116474824026227, -0.01158157642930746, 0.028...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def test_filename(self): self.assertFilename('with space', 'with-space') self.assertFilename('with more \t\n\r space', 'with-more-space') self.assertFilename('UpperCase', 'uppercase') self.assertFilename('with/path', 'path') self.assertFilename('../path', 'path') self.as...
17,387
[ 0.014995862729847431, 0.0014357150066643953, 0.017061959952116013, -0.047942329198122025, 0.025992829352617264, -0.014695946127176285, 0.004807007033377886, 0.005395733751356602, 0.032613225281238556, 0.008325480856001377, 0.01770622655749321, -0.003193563548848033, 0.012829793617129326, 0...
10
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs...
class TestFileUpload(unittest.TestCase): def test_name(self): self.assertEqual(FileUpload(None, 'abc', None).name, 'abc') def test_raw_filename(self): self.assertEqual(FileUpload(None, None, 'x/x').raw_filename, 'x/x') def assertFilename(self, bad, good): fu = FileUpload(None, None...
17,388
[ 0.0038586449809372425, -0.002692928072065115, 0.015467073768377304, -0.045404743403196335, 0.04297853633761406, -0.017059272155165672, 0.0041808756068348885, 0.026146719232201576, 0.03552661091089249, 0.03905761241912842, 0.0015055484836921096, -0.0028946606907993555, 0.007630639709532261, ...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def test_save_dir(self): fu = FileUpload(open(__file__, 'rb'), 'testfile', __file__) dirpath = tempfile.mkdtemp() filepath = os.path.join(dirpath, fu.filename) fu.save(dirpath) self.assertEqual(fu.file.read(), open(filepath, 'rb').read()) os.unlink(filepath) os.rm...
17,389
[ 0.01929084211587906, 0.04782192409038544, -0.04020240902900696, -0.024689752608537674, -0.024037253111600876, -0.015502133406698704, 0.019743382930755615, -0.03323539346456528, -0.0014970662305131555, 0.033277492970228195, -0.004617488943040371, -0.05565192177891731, -0.04769563302397728, ...
10
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Constant", "_fields": {"kind": null, "value": ""}}, "targets": [{"_type": "Name", "_fields": {"id": "label", "ctx": {"_type": "Store", "_fields": {}}}}], "type_comment": null}}, {"_typ...
class MibNode(object): label = '' def __init__(self, name): self.name = name def __repr__(self): return '%s(%r)' % (self.__class__.__name__, self.name) def getName(self): return self.name def getLabel(self): return self.label def setLabel(self, label): ...
17,390
[ 0.04396023973822594, 0.037524137645959854, 0.01238534040749073, -0.007112961728125811, 0.0021270604338496923, 0.011631295084953308, 0.010378511622548103, -0.0002881476830225438, 0.015259024687111378, 0.03365297615528107, -0.00674484483897686, -0.042440276592969894, -0.05433875322341919, -0...
13
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Constant", "_fields": {"kind": null, "value": "current"}}, "targets": [{"_type": "Name", "_fields": {"id": "status", "ctx": {"_type": "Store", "_fields": {}}}}], "type_comment": null}}...
class ModuleIdentity(MibNode): status = 'current' lastUpdated = '' organization = '' contactInfo = '' description = '' revisions = () revisionsDescriptions = () def getStatus(self): return self.status def setStatus(self, v): self.status = v return self ...
17,391
[ 0.047301292419433594, 0.0388520173728466, 0.0387054979801178, 0.00042391373426653445, -0.0016880236798897386, 0.019108550623059273, -0.011330820620059967, 0.002388568827882409, -0.027203738689422607, 0.03430991992354393, -0.010976732708513737, -0.04266151785850525, -0.03511577844619751, -0...
12
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def asn1Print(self): return """\ MODULE-IDENTITY LAST-UPDATED %s ORGANIZATION "%s" CONTACT-INFO "%s" DESCRIPTION "%s" %s""" % (self.getLastUpdated(), self.getOrganization(), self.getContactInfo(), self.getDescription(), ''.join(['REVISION "%s"\n' % x for x i...
17,392
[ 0.04593252018094063, 0.02275298535823822, -0.013952620327472687, 0.0006436810363084078, 0.007161521818488836, 0.010865757241845131, -0.017510930076241493, -0.00960294995456934, 0.016893558204174042, -0.02449285425245762, -0.031250275671482086, -0.031205376610159874, -0.031676825135946274, ...
10
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Constant", "_fields": {"kind": null, "value": "current"}}, "targets": [{"_type": "Name", "_fields": {"id": "status", "ctx": {"_type": "Store", "_fields": {}}}}], "type_comment": null}}...
class ObjectIdentity(MibNode): status = 'current' description = '' reference = '' def getStatus(self): return self.status def setStatus(self, v): self.status = v return self def getDescription(self): return self.description def setDescription(self, v): ...
17,393
[ 0.04670257493853569, 0.041306838393211365, 0.017434116452932358, 0.02013198286294937, 0.017003364861011505, 0.0055941068567335606, -0.021775642409920692, 0.0022189391311258078, 0.005129348021000624, -0.021628279238939285, -0.015869807451963425, -0.0439593642950058, -0.001198737183585763, -...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def asn1Print(self): return """\ OBJECT-IDENTITY STATUS %s DESCRIPTION "%s" REFERENCE "%s" """ % (self.getStatus(), self.getDescription(), self.getReference())
17,394
[ 0.010022797621786594, 0.029906360432505608, -0.02490653656423092, -0.019559500738978386, -0.009739242494106293, 0.0018836146919056773, 0.0070657250471413136, -0.04094764217734337, 0.011157017201185226, -0.0008709186222404242, -0.0681457668542862, -0.044998425990343094, -0.0019241224508732557...
12
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def asn1Print(self): return """\ NOTIFICATION-TYPE OBJECTS { %s } STATUS %s DESCRIPTION "%s" REFERENCE "%s" """ % (', '.join([x for x in self.getObjects()]), self.getStatus(), self.getDescription(), self.getReference())
17,395
[ 0.011804711073637009, 0.035193875432014465, -0.04059915617108345, -0.031336359679698944, 0.002083534374833107, 0.002227893564850092, 0.035574864596128464, -0.05467194318771362, 0.021406829357147217, 0.018454162403941154, -0.040337227284908295, -0.03878945857286453, -0.0028931363485753536, ...
13
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Tuple", "_fields": {"ctx": {"_type": "Load", "_fields": {}}, "elts": []}}, "targets": [{"_type": "Name", "_fields": {"id": "objects", "ctx": {"_type": "Store", "_fields": {}}}}], "type...
class NotificationType(MibNode): objects = () status = 'current' description = '' reference = '' # retained for compatibility revisions = () def getObjects(self): return self.objects def setObjects(self, *args, **kwargs): if kwargs.get('append'): self.object...
17,396
[ -0.017752040177583694, 0.009608003310859203, -0.02372318133711815, -0.029187120497226715, 0.006265086587518454, 0.010680042207241058, -0.01699123904109001, -0.028287990018725395, 0.009930768050253391, -0.011089261621236801, -0.013440830633044243, -0.039700016379356384, -0.0183629859238863, ...
12
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Constant", "_fields": {"kind": null, "value": ""}}, "targets": [{"_type": "Name", "_fields": {"id": "units", "ctx": {"_type": "Store", "_fields": {}}}}], "type_comment": null}}, {"_typ...
class ObjectType(MibNode): units = '' maxAccess = 'not-accessible' status = 'current' description = '' reference = '' def __init__(self, name, syntax=None): MibNode.__init__(self, name) self.syntax = syntax # XXX def __eq__(self, other): return self.syntax == ot...
17,397
[ -0.004469981882721186, 0.04006686806678772, -0.003960706293582916, -0.00019134199828840792, 0.03222111985087395, 0.016750790178775787, -0.042814042419195175, -0.027588168159127235, -0.01879953220486641, -0.030894093215465546, -0.026214580982923508, -0.03655141219496727, 0.009847928769886494,...
11
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def asn1Print(self): return """ OBJECT-TYPE SYNTAX %s UNITS "%s" MAX-ACCESS %s STATUS %s DESCRIPTION "%s" REFERENCE "%s" """ % (self.getSyntax().__class__.__name__, self.getUnits(), self.getMaxAccess(), self.getStatus(), ...
17,398
[ 0.01812147907912731, 0.03653348237276077, 0.045491330325603485, -0.04372397065162659, -0.03764716163277626, 0.02605038322508335, 0.010434679687023163, 0.017794638872146606, -0.01425992138683796, 0.021341461688280106, 0.01800042763352394, -0.008413111791014671, -0.008286007679998875, -0.000...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": {"_type": "arg", "_fields": {"arg": "names", "annotation": null, "type_comme...
def unregisterSubtrees(self, *names): self.branchVersionId += 1 for name in names: # This may fail if you fill a table by exporting MibScalarInstances # but later drop them through SNMP. if name not in self._vars: raise error.SmiError( ...
17,399
[ 0.017955688759684563, 0.045170336961746216, 0.029714809730648994, -0.02667633816599846, -0.03485867753624916, 0.04557706415653229, 0.04088776931166649, -0.0043992032296955585, -0.02408047951757908, 0.029308084398508072, 0.005078074522316456, -0.013996105641126633, -0.0024523092433810234, -...
11
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": {"_type": "arg", "_fields": {"arg": "subTrees", "annotation": null, "type_co...
def registerSubtrees(self, *subTrees): self.branchVersionId += 1 for subTree in subTrees: if subTree.name in self._vars: raise error.SmiError( 'MIB subtree %s already registered at %s' % (subTree.name, self) ) self._vars[subTree...
17,400
[ 0.017604241147637367, 0.03607099875807762, 0.006717698648571968, -0.03080742061138153, 0.0032620923593640327, 0.016951821744441986, 0.01903071440756321, 0.04314808174967766, -0.017172981053590775, -0.006944386288523674, 0.016620082780718803, -0.017405197024345398, 0.01092524453997612, -0.0...
11
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "name", "annotation": null, "type_comment": null}}, {"_type": "arg...
def getNextBranch(self, name, idx=None): # Start from the beginning if self._vars: first = list(self._vars.keys())[0] else: first = () if self._vars and name < first: return self._vars[first] else: try: return self._...