text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def test _ nz _ dealias ( arr _ nz, arr _ kl, arr _ n _ layers, arr _ r _ i ) : l = sbp. calc _ layer _ thickness ( arr _ kl, sbp. k ) z _ i, z0 _ str, zf _ str, z _ t, zf _ dis, lz _ dis = sbp. calc _ structure _ depths ( sbp. z0 _ dis, sbp. lam _ z, l, arr _ n _ layers, arr _ r _ i ) z0, zf, lz = sbp. calc _ sim _ do... | [
0.46073678135871887,
-0.11843547224998474,
0.4742741584777832,
0.33245086669921875,
0.2018691897392273,
0.4563407003879547,
0.9233189821243286,
-0.2775673270225525,
1.542554259300232,
-0.6957771182060242,
-0.28349798917770386,
-0.5379607677459717,
-0.22162912786006927,
1.0700277090072632,
... |
def makeapirequest2 ( data, referer = none ) : h = api _ headers if not referer is none : h ['referer'] = referer h ['cookie'] = http. getcookiesforurl ( base _ url ) req = http. request ( " https " + api _ url, data = data, cachetime = 0, immediate = true, headers = h ) response = re. sub ( r'\ n \ * / $ ','', re. sub... | [
-0.798494815826416,
-0.3963627815246582,
0.8062911629676819,
0.5982051491737366,
-0.6056034564971924,
-0.5029658079147339,
-0.9064731001853943,
-0.20640747249126434,
0.14068259298801422,
0.2669995427131653,
-0.23147334158420563,
0.6299245357513428,
-0.11188368499279022,
0.33621546626091003... |
def test _ find _ by _ customer _ id ( self ) : date = datetime. now ( ) order = order ( customer _ id = 1, date = date, shipped = true ) order. save ( ) order1 = order. find _ by _ customer _ id ( order. customer _ id ) self. assertequal ( order1 [ 0 ]. customer _ id, order. customer _ id ) self. assertequal ( order1 ... | [
0.8093644976615906,
-0.1491062343120575,
0.2824137210845947,
0.8776813745498657,
0.5383511185646057,
-0.2461601346731186,
0.32419368624687195,
-0.0032573973294347525,
-0.8173444867134094,
0.3270973861217499,
-0.201729416847229,
-0.024105029180645943,
0.042760469019412994,
1.217123508453369... |
async def clean ( message : types. message ) : await hand _ btn. send _ message ( message = message, data = reminders. delete _ done _ reminders ( ), markup = r _ btn. mainmenu ) | [
-0.004599968437105417,
0.8210757374763489,
0.3442158102989197,
-0.21129043400287628,
0.5832543969154358,
0.16981974244117737,
0.6220646500587463,
-0.22507375478744507,
-0.03177497908473015,
0.4209741950035095,
-0.4434635639190674,
1.0225467681884766,
-1.25339674949646,
1.0000081062316895,
... |
def get _ parents ( self ) : return [ _ inboxlink ( ) ] | [
-0.35794857144355774,
0.09490122646093369,
0.3575507700443268,
0.8629083633422852,
0.26643726229667664,
-0.10741028934717178,
-0.5295507907867432,
-0.4305945932865143,
0.06600575149059296,
-1.5928735733032227,
-0.9603515863418579,
0.5018595457077026,
-1.4394041299819946,
0.0653536543250083... |
def _ _ init _ _ ( self, event _ mgr, core _ proxy, device _ id, logical _ device _ id, serial _ number, grouped = false, freq _ override = false, support _ onu _ statistics = false, support _ gem _ port _ statistic = false, * * kwargs ) : super ( ). _ _ init _ _ ( event _ mgr, core _ proxy, device _ id, logical _ devi... | [
0.2191382348537445,
0.5112467408180237,
0.797940731048584,
0.06700991094112396,
-0.44579723477363586,
-0.28182488679885864,
-0.15053336322307587,
-0.28351348638534546,
0.8805186748504639,
-0.5077045559883118,
-0.05863162875175476,
-0.19199371337890625,
-0.6291849613189697,
0.44000196456909... |
def addmp ( self, * args ) : return _ snap. tfltv _ addmp ( self, * args ) | [
-0.31562885642051697,
0.5727170705795288,
0.25937753915786743,
0.34100455045700073,
0.4653608798980713,
0.12283902615308762,
0.33044013381004333,
0.8314341306686401,
-0.38784435391426086,
-0.9590216875076294,
0.9449253082275391,
-0.8158362507820129,
-0.901874840259552,
1.9093437194824219,
... |
def getrndei ( self, * args ) : return _ snap. pneanetmp _ getrndei ( self, * args ) | [
-0.3258955478668213,
-0.04792023077607155,
0.33513781428337097,
1.0978171825408936,
0.6967812180519104,
0.7781481742858887,
-0.2225777506828308,
-0.8881411552429199,
-0.9906132817268372,
-1.4072755575180054,
-0.7842349410057068,
-1.3485819101333618,
-1.3555612564086914,
1.339355230331421,
... |
def main ( argv = none ) : if not argv : argv = sys. argv # setup command line parser parser = e. optionparser ( version = " % prog version : $ id $ ", usage = globals ( ) [ " _ _ doc _ _ " ] ) parser. add _ option ( " - m ", " - - method ", dest = " method ", type = " choice ", choices = ('reconcile ', ), help = " met... | [
0.4473172128200531,
-0.28447699546813965,
1.343785047531128,
0.2407841682434082,
0.15299385786056519,
-0.8166112303733826,
0.7518545389175415,
0.14605604112148285,
-0.3483119010925293,
-0.14092087745666504,
0.3713162839412689,
-0.5425039529800415,
-0.08355087786912918,
-0.00675011007115244... |
def _ _ init _ _ ( self, * args ) : _ snap. tbpgraph _ swiginit ( self, _ snap. new _ tbpgraph ( * args ) ) | [
0.13981331884860992,
0.8266966938972473,
0.07537326961755753,
-0.03133019804954529,
0.21236516535282135,
-0.3313530683517456,
0.6335271000862122,
0.0899796113371849,
-1.2280327081680298,
0.9006745219230652,
-0.6751209497451782,
0.13225434720516205,
-0.851865291595459,
0.32254481315612793,
... |
def sum ( input _ tensor, dim, keepdims = false ) : | [
0.013257637619972229,
0.30178403854370117,
0.5179500579833984,
1.3052483797073364,
-0.09042827785015106,
0.9356199502944946,
1.0870609283447266,
0.01261972263455391,
-0.21706457436084747,
0.8958088159561157,
-0.6658214330673218,
0.38009822368621826,
0.3680446743965149,
-1.0534863471984863,... |
def cntnonznodes _ pngraph ( * args ) : return _ snap. cntnonznodes _ pngraph ( * args ) | [
-0.8288101553916931,
1.3116811513900757,
-0.12305690348148346,
-0.39739134907722473,
-0.5018351078033447,
-0.03722281754016876,
0.6581276655197144,
-0.7300031185150146,
-0.3660770654678345,
0.5185937881469727,
-0.6889241337776184,
0.3565296232700348,
-0.20327156782150269,
0.539691269397735... |
def update _ screen ( self ) : if self. draw _ screen! = none : self. draw _ screen ( ) else : self. draw _ actions ( ) self. lcd _ display. show ( ) self. draw _ header ( ) | [
-0.3581066131591797,
-0.036240797489881516,
0.3682902455329895,
0.4732573628425598,
0.4580572545528412,
0.042273346334695816,
-0.18198052048683167,
-0.5799778699874878,
0.8690447211265564,
-0.25255823135375977,
0.9418090581893921,
0.3242987096309662,
-0.3237866461277008,
0.884473443031311,... |
def issameset ( self, * args ) : return _ snap. tunionfind _ issameset ( self, * args ) | [
-1.5391908884048462,
-0.1055954247713089,
0.23103825747966766,
0.446266233921051,
0.4713316261768341,
-0.2133423388004303,
1.5307871103286743,
-1.2963083982467651,
0.24953174591064453,
0.6467018127441406,
0.08143489807844162,
-0.020809216424822807,
-1.0668526887893677,
-0.5493346452713013,... |
def add _ module ( self, name, model ) : self. insert _ child _ to _ cell ( name, model ) self. children _ ms = list ( self. _ cells. values ( ) ) | [
-0.6054726243019104,
0.4022625684738159,
0.4490404725074768,
0.1280870884656906,
0.21483008563518524,
0.9584023952484131,
-0.06951262801885605,
-0.497289776802063,
-0.13298431038856506,
0.21962624788284302,
-1.3811951875686646,
0.04685822129249573,
0.1367981731891632,
0.502744197845459,
... |
def get _ title _ from _ soup ( self, soup ) : title = find _ target _ text ( soup = soup, name = " h1 ", default = self. default _ title ) return title | [
-1.1416499614715576,
0.17910312116146088,
0.4455978572368622,
0.4492132067680359,
0.2771746516227722,
-0.6065182089805603,
-0.4146057367324829,
-0.5230206251144409,
-0.0008649382507428527,
0.3672455847263336,
0.05115160718560219,
-0.6510109305381775,
-0.6298372745513916,
-0.656498372554779... |
def test _ sign _ up _ renders ( self ) : c = client ( ) response = c. get ( reverse ('account _ signup') ) self. assertequal ( response. status _ code, 200 ) self. asserthasgoogleanalytics ( response ) | [
0.274814635515213,
0.8450096845626831,
0.3971659243106842,
0.26970767974853516,
1.162421703338623,
1.0471731424331665,
0.7105915546417236,
0.5059556365013123,
-0.14142875373363495,
-0.6314347982406616,
0.4518683850765228,
-0.12883774936199188,
0.740793764591217,
-0.2100968360900879,
-0.1... |
def _ _ lt _ _ ( self, * args ) : return _ snap. tintfltvhi _ _ _ lt _ _ ( self, * args ) | [
0.7099236845970154,
-0.23643165826797485,
0.0055965762585401535,
-0.3698364794254303,
0.22995100915431976,
-0.3423760235309601,
-0.43942227959632874,
-1.1744955778121948,
-1.4108363389968872,
-0.5823222398757935,
-0.13504311442375183,
-0.026245955377817154,
-0.8334360122680664,
1.505659580... |
def set _ column ( grid, column _ index, new ) : for i, row in enumerate ( grid ) : row [ column _ index ] = new [ i ] | [
-0.2930457592010498,
-0.7128435373306274,
0.4548736810684204,
-0.18820542097091675,
0.9665504693984985,
-0.5586416125297546,
-0.5053197741508484,
-0.0888124480843544,
-1.0407215356826782,
1.1705952882766724,
-1.1871328353881836,
1.171358585357666,
0.4708898365497589,
-0.05353022739291191,
... |
def plan _ range ( * args ) : return _ ida _ auto. plan _ range ( * args ) | [
-1.4626163244247437,
0.7167589068412781,
-0.059764087200164795,
1.1996734142303467,
0.03763258457183838,
0.7135769724845886,
0.7755794525146484,
-0.2780259847640991,
-0.7012927532196045,
0.0056042918004095554,
-1.1390234231948853,
-0.04881744459271431,
-0.7181534767150879,
-0.2878328859806... |
def homelink _ device _ count ( self ) - > int : return self. _ vehicle _ data. get ( " vehicle _ state ", { } ). get ( " homelink _ device _ count " ) | [
-0.11161725968122482,
-0.4366804361343384,
0.36887603998184204,
0.2835918366909027,
1.0588576793670654,
-0.1482774168252945,
0.6883403062820435,
0.5416605472564697,
1.021350622177124,
-0.8196067214012146,
-0.08678582310676575,
0.4290924072265625,
-0.22536763548851013,
0.0457472950220108,
... |
def _ resolve _ pipeline _ job _ inputs ( self, job : pipelinejob, base _ path : str ) : inputs = [ ] # flatten inputs for pipeline job for key, item in job. inputs. items ( ) : if isinstance ( item, _ groupattrdict ) : inputs. extend ( item. flatten ( group _ parameter _ name = key ) ) else : # skip resolving inferred... | [
-0.6829776167869568,
-0.49669522047042847,
0.5060012936592102,
0.0810011774301529,
0.13210570812225342,
-0.13722576200962067,
0.11325517296791077,
-0.06337336450815201,
-1.418740153312683,
-0.30525651574134827,
0.4227369427680969,
-0.18809334933757782,
-0.2478562742471695,
0.32825809717178... |
def endeaintvi ( self, * args ) : return _ snap. pneanet _ endeaintvi ( self, * args ) | [
-1.2929513454437256,
0.6072680950164795,
0.344108521938324,
-0.9590821266174316,
0.7894907593727112,
0.47493237257003784,
0.15248866379261017,
-0.7773473262786865,
-0.7365806102752686,
0.2725132703781128,
-0.7271789312362671,
-1.2687227725982666,
-0.9430805444717407,
0.5270383358001709,
... |
def isedge ( self, * args ) : return _ snap. tneanet _ isedge ( self, * args ) | [
-0.9302628636360168,
0.6123018264770508,
0.35843929648399353,
0.5316609740257263,
1.5420533418655396,
-0.16084833443164825,
0.38862520456314087,
0.07137716561555862,
-0.09511082619428635,
0.21401770412921906,
0.6254085898399353,
-1.2907054424285889,
-1.1807000637054443,
0.6937750577926636,... |
def begei ( self, * args ) : return _ snap. pneanet _ begei ( self, * args ) | [
-0.1403675228357315,
1.2284015417099,
0.2099503129720688,
1.2165849208831787,
2.0614237785339355,
0.5341734886169434,
-0.20303091406822205,
-0.49037981033325195,
-1.616896629333496,
-0.46735748648643494,
-0.7716711759567261,
-0.680428683757782,
-1.1385858058929443,
0.6984204053878784,
-0... |
def isboxinside ( bbox1, bbox2 ) : cutoff = 0. 8 g _ xmin, g _ ymin, g _ xmax, g _ ymax = tuple ( bbox1 ) d _ xmin, d _ ymin, d _ xmax, d _ ymax = tuple ( bbox2 ) flag = false xa = max ( g _ xmin, d _ xmin ) ya = max ( g _ ymin, d _ ymin ) xb = min ( g _ xmax, d _ xmax ) yb = min ( g _ ymax, d _ ymax ) intersection = m... | [
0.0717894434928894,
0.3190463185310364,
1.1983779668807983,
-0.5229418873786926,
-0.7634727358818054,
1.0934308767318726,
-0.39056435227394104,
-0.49460676312446594,
-0.02589951828122139,
-0.20020684599876404,
0.07108630239963531,
0.8085740804672241,
-0.6239146590232849,
-0.087764553725719... |
def get _ drop ( self, imputed = false ) : return " drop table if exists % s " % self. get _ table _ name ( imputed = imputed ) | [
-0.6209061145782471,
0.1728360652923584,
0.5309708714485168,
0.18163813650608063,
0.6450868844985962,
-0.04016592726111412,
-0.001019866089336574,
0.06482929736375809,
-0.9639772772789001,
0.7929455041885376,
0.3923019766807556,
0.5297362804412842,
0.3375314772129059,
0.34168368577957153,
... |
def test _ skip ( ) : pytest. skip ('for a reason!') | [
0.6528136134147644,
0.7999027967453003,
0.4421568810939789,
0.28283175826072693,
1.0631577968597412,
1.0963735580444336,
0.8029993176460266,
0.05915382504463196,
0.5728290677070618,
-0.34476375579833984,
-0.12845711410045624,
0.3995252251625061,
0.05922809988260269,
-1.1535427570343018,
... |
def sepdeviso ( self ) : eps = 1e - 5 ; iso = self. getiso ( ) norm = sqrt ( 3 * ( iso * * 2 ) ) if ( norm < eps ) : mtiso = symmt ( np. array ( [ 0, 0, 0, 0, 0, 0 ] ), 0. 0, self. c, self. h ) else : mtiso = symmt ( np. array ( [ iso, iso, iso, 0, 0, 0 ] ) / norm, norm, self. c, self. h ) mdev = self. getmvec ( ) - np... | [
0.6685181260108948,
-0.2357274442911148,
0.661441445350647,
0.24919046461582184,
-0.5980101823806763,
0.06596840173006058,
0.3039489984512329,
-0.03719674050807953,
0.3211740553379059,
0.20664098858833313,
-0.6610027551651001,
-0.7097681760787964,
0.24719251692295074,
0.27456051111221313,
... |
def add ( self, * args ) : return _ snap. pneanetv _ add ( self, * args ) | [
-1.8955976963043213,
0.49613019824028015,
0.5055881142616272,
0.5304301977157593,
0.6307669281959534,
1.320277452468872,
-0.5814658999443054,
-0.3757321536540985,
-0.12051021307706833,
-0.765455961227417,
0.1416473090648651,
-1.0024118423461914,
-0.05514358729124069,
1.1861664056777954,
... |
def test _ week _ ceiling _ start ( unit, weekday, anchor, exp ) : pytest. debug _ func ( ) tz _ orig = nldt. moment. default _ tz ('utc') base = nldt. moment ( anchor, itz ='utc') if isinstance ( exp, exception ) : with pytest. raises ( type ( exp ) ) : assert base. ceiling ( unit, start = weekday ) = = exp else : ass... | [
0.28356677293777466,
0.42060771584510803,
0.2448597550392151,
0.07043835520744324,
0.42445898056030273,
0.7373046875,
0.3785923421382904,
-0.17735843360424042,
1.0316827297210693,
-0.23201577365398407,
-0.28805553913116455,
-0.25053077936172485,
-0.7527045011520386,
0.28685563802719116,
... |
def _ _ eq _ _ ( self, * args ) : return _ snap. tintuint64hi _ _ _ eq _ _ ( self, * args ) | [
-0.7323082089424133,
-0.17889681458473206,
-0.0015124991768971086,
0.6126035451889038,
-0.0008590880315750837,
0.9271219968795776,
-0.08356604725122452,
-0.3664478659629822,
-1.084572434425354,
0.5751693248748779,
-0.9267403483390808,
-0.1953105628490448,
-0.9360120892524719,
0.38729476928... |
def _ _ lt _ _ ( self, * args ) : return _ snap. tneanetmpedgei _ _ _ lt _ _ ( self, * args ) | [
0.06362317502498627,
-0.7224065661430359,
0.25713911652565,
-1.2352168560028076,
0.5905901193618774,
-0.18980088829994202,
-0.7701994180679321,
-0.7575244307518005,
-0.37796109914779663,
0.24362239241600037,
-0.22812257707118988,
-1.724849820137024,
-0.26003313064575195,
1.3238921165466309... |
def main ( ) : # initialize global logging level to info. parser = argparse. argumentparser ( ) parser. add _ argument ( " - l ", type = int, choices = [ 128, 512, 1152, 2048 ], default = 128, help = " size of chimera graph. default is 128 ( c4 ). " ) parser. add _ argument ( " - ins ", type = int, choices = range ( 1,... | [
0.41934266686439514,
0.21582351624965668,
1.0542418956756592,
0.048667777329683304,
0.056182533502578735,
-0.36502641439437866,
0.8649343848228455,
0.3021782338619232,
-0.774941086769104,
0.1323346048593521,
-0.16308727860450745,
0.033403120934963226,
-0.32385703921318054,
-0.8529379367828... |
def years ( ) : sql = f " " " select extract ( year from rdate ) year, convert ( sum ( suma ), unsigned ) as suma, count ( * ) as cnt from ` mybudj ` where 1 = 1 { um _ not _ my _ expspense } group by extract ( year from rdate ) order by 1 desc " " " # print ( sql ) return jsonify ( [ dict ( row ) for row in do _ sql _... | [
-0.010366735979914665,
0.11369562149047852,
0.675942599773407,
-0.02549890987575054,
-1.087698221206665,
-0.5249601006507874,
0.07674349099397659,
-0.39938387274742126,
0.20305109024047852,
0.9281654953956604,
-0.8516795039176941,
-0.33542612195014954,
0.09436286240816116,
0.07267230004072... |
def test _ atomic _ hex _ binary _ enumeration _ 1 _ nistxml _ sv _ iv _ atomic _ hex _ binary _ enumeration _ 2 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - enumeration - 2. xsd ", instance ... | [
-0.708416759967804,
-1.0135194063186646,
0.6395236849784851,
0.8795780539512634,
-0.22324508428573608,
0.2310192584991455,
-0.16241489350795746,
0.05733746290206909,
-0.6742721199989319,
0.32435381412506104,
-0.6506777405738831,
-0.02194124646484852,
0.5102021098136902,
0.727656364440918,
... |
def main ( ) : con. fetch _ and _ populate ( ) print ( " \ 033 [ 1 ; 34m " + " welcome to python covid - 19 dataset program " + " \ 033 [ 0m " ) print ( " \ 033 [ 1 ; 43 ; 30m " + " program by amanjot singh " + " \ 033 [ 0m " ) print ( " enter'show ','reload ','get by id ','create ','update ','delete ','save ', " "'gen... | [
0.18187667429447174,
0.024198077619075775,
1.004193663597107,
0.23210395872592926,
-0.1497640311717987,
0.5821852684020996,
0.9710603356361389,
-0.7105466723442078,
-0.2798553705215454,
-0.11897018551826477,
0.07653970271348953,
0.7295160293579102,
-0.330270379781723,
-0.34810012578964233,... |
def _ _ lt _ _ ( self, * args ) : return _ snap. tstrvstrhi _ _ _ lt _ _ ( self, * args ) | [
0.9163291454315186,
-0.5453534126281738,
0.045906152576208115,
-0.9784815907478333,
0.6626397371292114,
-0.3460516929626465,
-0.11277554929256439,
-0.448614239692688,
-1.4245332479476929,
-0.2896178066730499,
-0.678763747215271,
-0.941069483757019,
-0.19225859642028809,
0.47814831137657166... |
def getprofilebackgroundtile ( self ) : return self. _ profile _ background _ tile | [
1.2163898944854736,
-0.025039076805114746,
0.25315847992897034,
1.1210390329360962,
0.49780628085136414,
0.5414611101150513,
1.2776063680648804,
-1.0841182470321655,
0.04440712183713913,
-0.30586838722229004,
0.0612000897526741,
0.960066020488739,
-1.4518182277679443,
-0.5809144973754883,
... |
def _ iscachemalformed ( cache ) : if ('last _ check'not in cache or'current _ version'not in cache or'last _ checked _ version'not in cache ) : return true if not isinstance ( cache ['last _ check'], float ) : return true try : versionchecker. _ parseversionstring ( cache ['current _ version'] ) versionchecker. _ pars... | [
-1.4178427457809448,
-0.6541790962219238,
0.4477584660053253,
0.21334540843963623,
0.024626661092042923,
0.275471568107605,
-0.18040251731872559,
-0.34713298082351685,
0.3594822287559509,
0.7301986813545227,
0.25556644797325134,
-0.6361585855484009,
-0.17341238260269165,
1.3585890531539917... |
def addatm ( self, * args ) : return _ snap. tcncomv _ addatm ( self, * args ) | [
-0.6361840963363647,
0.10383330285549164,
0.10152190923690796,
-0.5455634593963623,
1.1161218881607056,
0.3428119421005249,
0.46355172991752625,
-0.1722773313522339,
-0.1603471338748932,
-0.6853397488594055,
0.14229901134967804,
-0.5986722111701965,
0.4178866446018219,
0.655079185962677,
... |
def propagate _ attribute ( self, attr, val ) : setattr ( self. activity, attr, val ) | [
0.32102295756340027,
-0.41465505957603455,
0.4935569763183594,
0.22082005441188812,
-0.9130431413650513,
0.17814286053180695,
1.0787577629089355,
0.021779997274279594,
0.7917159199714661,
0.33317312598228455,
0.9181145429611206,
1.2149770259857178,
0.22165369987487793,
-0.2976173460483551,... |
def brute _ force _ cow _ transport ( cows, limit = 10 ) : # transform the dictionary to sorted list cow _ list = [ k for k in cows ] list _ of _ combos = [ ] for partition in get _ partitions ( cow _ list ) : list _ of _ combos. append ( partition ) list _ of _ combos. sort ( key = len ) for combo in list _ of _ combo... | [
-0.9345555305480957,
0.6320427656173706,
0.7050250172615051,
0.46532291173934937,
0.23510025441646576,
-0.919268012046814,
-0.09270364046096802,
-0.30987298488616943,
-0.47235819697380066,
0.6158469915390015,
-0.9783154726028442,
-0.9161026477813721,
-0.36323681473731995,
-0.09095536917448... |
def getinterfaceinfo ( device ) : resp = device. send _ command ( " show interfaces " ) intdata = resp. genie _ parse _ output ( ) interfacestats = {'total': 0,'intup': 0,'intdown': 0,'intdisabled': 0,'intop10m': 0,'intop100m': 0,'intop1g': 0,'intop10g': 0,'intmedcop': 0,'intmedsfp': 0, } for iface in intdata : # skip ... | [
-0.5184450149536133,
0.34107133746147156,
0.9458578824996948,
-0.8594934940338135,
0.0802975669503212,
-0.5097734332084656,
0.9566264748573303,
-0.48895877599716187,
0.030154211446642876,
0.39148247241973877,
-0.2724660634994507,
-0.14690721035003662,
-0.6398781538009644,
1.171069502830505... |
def confidence ( self ) : return self. _ confidence | [
0.3652401864528656,
-1.2718819379806519,
0.030889801681041718,
1.236473798751831,
0.4521661102771759,
1.299681544303894,
0.7626352906227112,
-0.8912792801856995,
-0.7803114056587219,
-0.36368587613105774,
-0.3511412441730499,
0.3960805833339691,
-0.5410646796226501,
-0.6118988394737244,
... |
def compose ( self, bucket _ name : str, source _ objects : list [ str ], destination _ object : str ) - > none : if not source _ objects : raise valueerror ( " source _ objects cannot be empty. " ) if not bucket _ name or not destination _ object : raise valueerror ( " bucket _ name and destination _ object cannot be ... | [
-1.066038727760315,
-0.3886364996433258,
0.4943406581878662,
0.31353965401649475,
0.9372456073760986,
-0.17659015953540802,
0.20530840754508972,
0.16436336934566498,
-1.500244140625,
0.7912617921829224,
-1.034898042678833,
-0.060930896550416946,
0.4225057065486908,
-0.19670312106609344,
... |
def xlsxtocsv ( self ) : xfile = os. path. join ( self. path, f'{ self. ticker }. xlsx') # path to original xlsx file cfile = os. path. join ( self. path, f'{ self. ticker }. csv') # path to save csv file print ( f'converting { xfile } to csv file') # output read _ file = pd. read _ excel ( xfile ) # read xlsx file # r... | [
0.4869386851787567,
-0.2395954132080078,
0.7215856313705444,
-0.3287493586540222,
-0.09032811969518661,
0.4917951226234436,
0.03732188418507576,
-0.19868554174900055,
-0.6232665777206421,
0.15545064210891724,
-0.13206623494625092,
0.868638277053833,
0.8872395157814026,
-0.7212784290313721,... |
def getbf ( self, * args ) : return _ snap. tsin _ getbf ( self, * args ) | [
-0.23246726393699646,
1.2703455686569214,
0.7723016142845154,
1.6976244449615479,
1.4820749759674072,
-0.12793253362178802,
0.6917148232460022,
0.5357323288917542,
-0.7425369024276733,
-1.2135770320892334,
-0.5794100761413574,
0.14908035099506378,
-0.9471787810325623,
0.41586586833000183,
... |
def get _ run _ data _ from _ cmd ( line ) : words = line. split ( " " ) [ 3 : ] word _ dict = { } for ( i, word ) in enumerate ( words ) : if word. startswith ( " - " ) : word _ dict [ word ] = words [ i + 1 ] return { " runname " : word _ dict [ " - i " ], " runid " : word _ dict [ " - r " ], " runtype " : word _ dic... | [
0.16626033186912537,
-0.21459753811359406,
0.5983038544654846,
-0.18965637683868408,
-0.5368133187294006,
0.13592569530010223,
-0.4631423354148865,
-0.11968071758747101,
-0.8701568245887756,
-0.003201848128810525,
-0.7346742153167725,
1.0755422115325928,
-0.6622270345687866,
0.324175506830... |
def lastlast ( self, * args ) : return _ snap. tintprv _ lastlast ( self, * args ) | [
-0.48620373010635376,
0.07340077310800552,
0.7212146520614624,
-1.0092980861663818,
0.6752638816833496,
0.3631010055541992,
-0.4595218896865845,
0.0760360062122345,
0.24050016701221466,
-0.09472957998514175,
-0.26473310589790344,
-0.399029016494751,
-2.2887985706329346,
-0.119114950299263,... |
def action _ space ( self ) : return gym. spaces. discrete ( 3 ) | [
0.6304552555084229,
0.5813687443733215,
0.25057676434516907,
1.670108675956726,
0.8503286838531494,
1.007739782333374,
0.5888058543205261,
0.2352103292942047,
1.5527514219284058,
-0.6044363379478455,
0.026934131979942322,
0.47061315178871155,
0.13934914767742157,
-0.2075403928756714,
-1.... |
def _ generategraph ( self ) : # node coordinates... processx = [ ] processy = [ ] hostx = [ ] hosty = [ ] ipx = [ ] ipy = [ ] socketx = [ ] sockety = [ ] tcpconnectx = [ ] tcpconnecty = [ ] filex = [ ] filey = [ ] filecreatex = [ ] filecreatey = [ ] filewritex = [ ] filewritey = [ ] filecopyx = [ ] filecopyy = [ ] fil... | [
-0.5167105793952942,
0.6480125188827515,
0.9523587226867676,
-0.6120032072067261,
0.18333330750465393,
-0.31826308369636536,
0.6105403900146484,
-0.16470564901828766,
-0.2048739790916443,
0.10887438803911209,
-0.2575099468231201,
-0.24186626076698303,
0.02099800854921341,
-0.01338366046547... |
def sign _ rsa _ sha1 ( base _ string, rsa _ private _ key ) : # todo : finish rsa documentation from crypto. publickey import rsa from crypto. signature import pkcs1 _ v1 _ 5 from crypto. hash import sha key = rsa. importkey ( rsa _ private _ key ) if isinstance ( base _ string, unicode _ type ) : base _ string = base... | [
-0.8365529179573059,
-1.056882619857788,
0.5567635893821716,
0.8474803566932678,
-0.2743173837661743,
-0.34404370188713074,
-0.3223828971385956,
0.1669825315475464,
0.015965664759278297,
0.5471439957618713,
-0.006404790561646223,
-0.02440156228840351,
-0.7000290155410767,
-0.14989045262336... |
def export ( issue _ count, issue _ generator, directory ) : # todo : how do we make a ` with ` block conditional in order to respect quiet mode? logging. info ('writing { } text files to disk '. format ( issue _ count ) ) with progressbar ( max _ value = issue _ count ) as progressbar : for index, issue in enumerate (... | [
-0.40273165702819824,
-0.3608262836933136,
0.6656771302223206,
0.10323575139045715,
-0.08089397847652435,
0.2947828471660614,
0.21704475581645966,
0.4959167540073395,
-0.37028706073760986,
0.08288643509149551,
0.4334453344345093,
-0.8329447507858276,
0.1489907056093216,
0.294277548789978,
... |
def test _ atomic _ language _ pattern _ 1 _ nistxml _ sv _ iv _ atomic _ language _ pattern _ 2 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - pattern - 2. xsd ", instance = " nistdata / atomic ... | [
0.0175364688038826,
-0.2662760019302368,
0.5295170545578003,
0.7102252244949341,
-0.3959789276123047,
0.49295082688331604,
-0.402667373418808,
0.1954740583896637,
0.0021841914858669043,
0.6667566895484924,
-0.3093361258506775,
-0.0017311767442151904,
0.15641643106937408,
-0.154057383537292... |
def begin _ delete _ dev _ box ( self, project _ name : str, dev _ box _ name : str, user _ id : str = " me ", * * kwargs : any ) - > lropoller [ none ] : _ headers = kwargs. pop ( " headers ", { } ) or { } _ params = kwargs. pop ( " params ", { } ) or { } cls : clstype [ none ] = kwargs. pop ( " cls ", none ) polling ... | [
-0.2239539623260498,
0.3038116991519928,
0.9820635914802551,
-0.0570911169052124,
-0.8573176860809326,
-0.08383537828922272,
-0.12858152389526367,
-0.7661409378051758,
0.04077295958995819,
-0.35250046849250793,
0.21621078252792358,
0.7325104475021362,
-0.061339233070611954,
-0.076465599238... |
def chain _ head ( self ) : if " chain _ head _ id " not in self. _ block _ store : return none if self. _ block _ store [ " chain _ head _ id " ] in self. _ block _ store : return self. _ _ getitem _ _ ( self. _ block _ store [ " chain _ head _ id " ] ) return none | [
0.1825222671031952,
-0.6138778924942017,
0.6460580229759216,
0.6330788731575012,
0.4481324255466461,
-0.11406681686639786,
-0.06421465426683426,
-1.2979120016098022,
0.7780195474624634,
-0.14486239850521088,
-0.21700239181518555,
1.5170058012008667,
-1.2062385082244873,
-0.4036168456077575... |
def from _ docker _ dict ( cls, docker _ dict ) : self = cls ( ) self. docker _ id = docker _ dict [ " id " ] try : self. name = docker _ dict [ " repotags " ] [ 0 ] except ( keyerror, indexerror ) : self. name ='' labels = ( docker _ dict. get ( " labels " ) or docker _ dict. get ( " config ", { } ). get ( " labels " ... | [
-0.14290964603424072,
0.004527060780674219,
0.37414470314979553,
-0.45197659730911255,
-0.7955543398857117,
-0.17304103076457977,
-0.6068418025970459,
-0.41544950008392334,
0.47502705454826355,
0.29224273562431335,
-0.2990624010562897,
-0.5538209080696106,
0.7396661043167114,
0.53840667009... |
def delete _ one ( self, tenant _ id ) : request = pecan. request response = pecan. response context = request. environ ['context'] context. all _ tenants = true self. central _ api. reset _ quotas ( context, tenant _ id ) response. status _ int = 204 return'' | [
0.09745132923126221,
0.28474244475364685,
0.4067644476890564,
0.3296745717525482,
0.3821519613265991,
-0.4085143208503723,
-0.26589128375053406,
0.35610172152519226,
0.41299334168434143,
0.9731389284133911,
0.06727515906095505,
1.0058668851852417,
-0.44742780923843384,
0.28619498014450073,... |
def dict ( self ) : return self. _ _ dict _ _ | [
-0.8447171449661255,
-1.5916389226913452,
0.4082030653953552,
-0.9921594262123108,
-1.1338207721710205,
0.1896941065788269,
1.0452702045440674,
-0.5642484426498413,
0.6105619668960571,
-1.425974726676941,
0.18182630836963654,
0.23623263835906982,
0.06346271932125092,
0.10697411000728607,
... |
def _ is _ connected ( self ) : try : # connect to the host - - tells us if the host is actually # reachable socket. create _ connection ( ( " 1. 1. 1. 1 ", 53 ) ) return true except oserror : pass return false | [
-1.2210564613342285,
0.33293238282203674,
0.5755257606506348,
0.6090844869613647,
-0.10257197916507721,
-0.17128540575504303,
-0.8556806445121765,
0.17180538177490234,
-1.4980312585830688,
0.6868451237678528,
-0.2458827644586563,
-0.5903111100196838,
-0.5379267930984497,
-0.763204514980316... |
def sample _ with _ replacement ( population, k, n = none ) : size = k if n is none else ( n, k ) ids = np. random. randint ( len ( population ), size = size ) return np. asarray ( population ) [ ids ] | [
-0.20376965403556824,
-0.43972209095954895,
0.41056016087532043,
-0.04233953729271889,
-1.067655324935913,
-0.3655414581298828,
-0.7871572971343994,
0.14493663609027863,
1.2484720945358276,
0.9351732730865479,
-0.20870321989059448,
0.03866209834814072,
-0.32284900546073914,
0.0070319995284... |
def format _ elements ( story _ soup, title, subtitle, authors, publish _ date, modify _ date, image _ url ) : elements = [ title. upper ( ), f'* * { subtitle } * * ', f'by { parse _ authors ( authors ) } ', parse _ date ( publish _ date ). strftime ('% b. % d, % y'), f " updated { parse _ date ( modify _ date ). strft... | [
0.35274505615234375,
-0.5945616960525513,
0.659197211265564,
0.08571251481771469,
0.5510385632514954,
-0.07669544219970703,
-0.032857585698366165,
0.08584658801555634,
-0.018650222569704056,
0.19044475257396698,
1.1278932094573975,
-0.3036881685256958,
0.2981528341770172,
0.683178424835205... |
def manual _ tag ( datapath, time _ str, kp = " " ) : frames = get _ frames ( time _ str ) ; cap = cv2. videocapture ( datapath ) ; _, frame0 = cap. read ( ) ; def frame _ gen ( ) : for i, f in enumerate ( frames ) : cap. set ( cv2. cap _ prop _ pos _ frames, f ) ; _, frame = cap. read ( ) ; ut. highlightpoint ( frame,... | [
0.08151140064001083,
-0.08576149493455887,
0.4587440490722656,
0.5243490934371948,
-0.7211117744445801,
-0.532167911529541,
-0.6646101474761963,
-0.609592080116272,
0.04612581059336662,
0.26689907908439636,
-0.23210389912128448,
0.22919464111328125,
0.5443321466445923,
0.5669078230857849,
... |
def notify _ new _ game ( whowon _, training ) : # whowon _ should be 1 if computer, 0 if person, 0. 5 if tie global boardgames, whowon, current _ game _ boards boardgames = current _ game _ boards whowon = ( np. ones ( len ( current _ game _ boards ) ) * whowon _ ). tolist ( ) current _ game _ boards = [ ] # if the ia... | [
-0.3427842855453491,
0.8632329106330872,
0.5274709463119507,
0.6651236414909363,
0.5082849860191345,
0.19486163556575775,
0.6981317400932312,
-0.04390902817249298,
-0.2866629958152771,
1.2503904104232788,
-0.3011213541030884,
0.06395824998617172,
-0.29728010296821594,
0.08409909904003143,
... |
def getdegseqv _ pungraph ( * args ) : return _ snap. getdegseqv _ pungraph ( * args ) | [
-1.0962696075439453,
0.8766005039215088,
0.2241978645324707,
0.89508056640625,
-0.18822604417800903,
-0.7260352969169617,
0.5654772520065308,
0.5273537635803223,
0.41695326566696167,
-0.2617518901824951,
-0.5720226168632507,
-0.3954126834869385,
-0.10800766944885254,
0.13825811445713043,
... |
def quotedata ( data ) : return re. sub ( r'(? m ) ^ \. ', '.. ', re. sub ( r'(? : \ r \ n | \ n | \ r (?! \ n ) ) ', crlf, data ) ) | [
1.1301063299179077,
-1.6701958179473877,
0.542890727519989,
-0.2456178367137909,
-0.2515565752983093,
-0.28539541363716125,
-0.8422812819480896,
0.6147516369819641,
0.35655537247657776,
0.24536889791488647,
-0.1469874233007431,
0.5082137584686279,
-0.21767757833003998,
-0.24230852723121643... |
def linsys ( thetahat, thetaa, dthetahat, dthetaa, etap _ lysc ) : n = thetahat. shape [ 0 ] + 1 r = np. hstack ( ( np. arange ( n ), ( n - 1 ) * np. ones ( n - 1 ) ) ) c = np. hstack ( ( np. arange ( n ), np. arange ( n - 1 ) ) ) v = np. hstack ( ( thetahat. t, np. ones ( 1 ) * thetaa, - thetahat. t * etap _ lysc ) ) ... | [
0.26160043478012085,
-0.6054477095603943,
0.7173829674720764,
-1.1968317031860352,
0.531057596206665,
-0.7193283438682556,
0.33033549785614014,
-0.011985916644334793,
-0.3601320683956146,
0.6526682376861572,
-0.04825076833367348,
0.08156221359968185,
0.6169807314872742,
0.5034456849098206,... |
def test _ register _ username _ taken ( self ) : c = client ( ) register _ info = { " username " : " test _ user ", " email " :'register @ register. com ', " firstname " : " reginald ", " lastname " :'register ', " password " : " secret " } response = c. post ( " / register ", register _ info, follow = true ) self. as... | [
-0.39767584204673767,
0.9941432476043701,
0.4046616554260254,
0.3283943235874176,
1.461058259010315,
-0.20042471587657928,
0.66471266746521,
-0.25027358531951904,
-0.33883240818977356,
-0.3847378194332123,
-1.6982383728027344,
-0.27619075775146484,
-0.6829643845558167,
0.5111209154129028,
... |
def get _ global _ link _ quaternion _ function ( self, link : str, n : int = 1, numpy _ output : bool = false ) - > cs. function : return self. make _ function ( " quat ", link, self. get _ global _ link _ quaternion, n = n, numpy _ output = numpy _ output, ) | [
-0.4417278468608856,
-0.03979786857962608,
0.31593313813209534,
-0.1601324826478958,
-0.19765758514404297,
-0.7138127088546753,
0.9090996384620667,
-1.0491398572921753,
0.21647454798221588,
-0.6408373713493347,
-0.6495141983032227,
1.128990650177002,
-0.18725576996803284,
-0.86449378728866... |
def cast ( * args ) : return _ itksubtractconstantfromimagefilterpython. itksubtractconstantfromimagefilteriuc2diuc2 _ superclass _ cast ( * args ) | [
0.5389118790626526,
-0.41940149664878845,
0.36351150274276733,
0.18060480058193207,
-0.5004368424415588,
0.6891749501228333,
0.5832232236862183,
0.39419984817504883,
-0.2848149240016937,
-0.5888115167617798,
-0.3889647424221039,
0.3990476429462433,
0.3227936923503876,
0.027263956144452095,... |
def _ outputlocation ( self, line _ num ) : return''. join ( [ " output line ", str ( line _ num ), " : " ] ) | [
-0.41096168756484985,
-1.356143832206726,
0.6171727776527405,
-0.948347270488739,
-0.3481874465942383,
0.10039906203746796,
0.43654099106788635,
-0.15390019118785858,
-0.731539785861969,
-0.006079080514609814,
0.7312031984329224,
-0.560840904712677,
0.7201099991798401,
-0.9965053796768188,... |
def strategy ( * args ) : t2 _ idx = { } for symbol in insids : t2 _ idx [ symbol ] = 0 while len ( endflag ) = = 0 and len ( symklns [ insids [ 0 ] ] ) < models [ insids [ 0 ] ]. pdobserve : # try : for symbol in insids : sym _ = symklns [ symbol ]. copy ( ) if len ( sym _ ) > t2 _ idx [ symbol ] : if models [ symbol ... | [
-0.8154327869415283,
-0.24412015080451965,
0.7816381454467773,
0.011128772981464863,
0.6631324291229248,
0.11982487887144089,
0.0725008100271225,
-0.41483500599861145,
-0.6543651819229126,
0.4252738654613495,
-0.9108836054801941,
0.10199815034866333,
0.8536146879196167,
0.28136298060417175... |
def get _ context _ from _ db _ entry ( db _ entry ) : try : logger. info ('analysis is already done. fetching data from the db...') context = {'title':'static analysis ','version': settings. kensa _ ver,'file _ name': db _ entry [ 0 ]. file _ name,'app _ name': db _ entry [ 0 ]. app _ name,'publisher _ name': db _ ent... | [
0.4785422384738922,
-0.29528576135635376,
0.6354107856750488,
-0.05420758202672005,
-0.8043240904808044,
-0.04682200402021408,
-0.5818108320236206,
-0.8880488276481628,
0.303390234708786,
0.9397937655448914,
0.3759555518627167,
-0.026362093165516853,
-0.099686399102211,
0.4269822835922241,... |
def board _ pos ( pos ) : return board _ x ( pos [ 0 ] ), board _ y ( pos [ 1 ] ) | [
-0.5185178518295288,
-0.3362444341182709,
0.3731684684753418,
-0.05462263524532318,
-0.09996162354946136,
-0.569133460521698,
-0.6364738941192627,
0.6313668489456177,
-0.11985518038272858,
0.46397820115089417,
-1.050692081451416,
-0.7245575189590454,
0.035585738718509674,
-0.51426064968109... |
def add _ model ( self, model _ type : str, model _ uuid : str, meta : dict, template _ model : template, update _ default : bool = false ) : if update _ default or model _ type not in self. meta : self. meta [ model _ type ] = meta [ " default " ] model _ meta = meta [ " model " ] self. models. setdefault ( model _ ty... | [
-0.9138091802597046,
0.1412668228149414,
0.6637221574783325,
-0.034355923533439636,
0.887561023235321,
0.868480920791626,
-0.23290926218032837,
0.9986274838447571,
-0.14430277049541473,
0.41535505652427673,
-0.15204551815986633,
-0.15767525136470795,
0.04925636202096939,
0.2285090237855911... |
def device _ enabled ( target ) : assert isinstance ( target, str ), " device _ enabled requires a target as a string " # only check if device name is found, sometime there are extra flags target _ kind = target. split ( " " ) [ 0 ] return any ( target _ kind = = t [ " target _ kind " ] for t in _ get _ targets ( ) if ... | [
-0.9227831959724426,
0.3896992802619934,
0.4298338294029236,
0.5287888050079346,
-0.12549325823783875,
-0.0750015452504158,
-0.41057634353637695,
0.43694743514060974,
0.17775949835777283,
0.41497787833213806,
0.11574146896600723,
0.5826709866523743,
-0.7576866745948792,
0.4863492250442505,... |
def intvattrnameni ( self, * args ) : return _ snap. pneanet _ intvattrnameni ( self, * args ) | [
-0.8631126880645752,
0.33976617455482483,
0.33846449851989746,
0.1374201476573944,
-0.044747401028871536,
0.3584080934524536,
-0.9797017574310303,
-1.5312615633010864,
-0.7508066296577454,
0.84170001745224,
-0.3984912931919098,
-1.0991688966751099,
-0.5577329993247986,
-0.24511712789535522... |
def getdat ( self, * args ) : return _ snap. tstrintprinthi _ getdat ( self, * args ) | [
1.2028210163116455,
-0.3926547169685364,
0.44205254316329956,
-0.9741442799568176,
1.5088486671447754,
0.3047484755516052,
-0.0603213906288147,
-0.558042049407959,
-1.4387470483779907,
-0.600699245929718,
0.14912442862987518,
0.32772934436798096,
-0.6510365009307861,
-0.12168928980827332,
... |
def test _ init ( sample _ labels, sample _ predictions, population _ size, population _ flagged _ count, confidence _ level, exact _ precision, ) : classificationconfidenceintervals ( sample _ labels = sample _ labels, sample _ predictions = sample _ predictions, population _ size = population _ size, population _ fla... | [
0.6876039505004883,
-0.28673720359802246,
0.5104743242263794,
0.5684921741485596,
0.5256432294845581,
1.3033595085144043,
0.3536020517349243,
0.1968156397342682,
-0.7667044997215271,
-0.2762050926685333,
0.08931741863489151,
0.7470472455024719,
0.020151665434241295,
0.21515138447284698,
... |
def _ _ init _ _ ( self, * args ) : _ snap. tstrintprhi _ swiginit ( self, _ snap. new _ tstrintprhi ( * args ) ) | [
0.6590235233306885,
-0.24473325908184052,
0.1862325817346573,
-0.7215705513954163,
-0.2848609387874603,
0.3794091045856476,
-0.13620641827583313,
0.8084723949432373,
-1.9311776161193848,
0.46954718232154846,
-0.1275530457496643,
-0.7983802556991577,
-0.7591731548309326,
0.11490154266357422... |
def getnodeecc _ pngraph ( * args ) : return _ snap. getnodeecc _ pngraph ( * args ) | [
-0.6530945897102356,
1.0937891006469727,
0.28200769424438477,
-0.25849583745002747,
-0.30817273259162903,
-0.439016729593277,
0.4451705515384674,
-1.1149346828460693,
-0.5775680541992188,
-0.14113768935203552,
0.3697323501110077,
0.47500675916671753,
0.5882291793823242,
0.3847759962081909,... |
def test _ all _ constraints ( self ) : self. assertin ('noconstraint ', self. class _ map ) self. assertin ('activehostsconstraint ', self. class _ map ) self. assertin ('differenthostconstraint ', self. class _ map ) | [
-0.44945213198661804,
-0.8042398691177368,
0.31958746910095215,
0.5061392784118652,
0.6925873756408691,
0.8967375159263611,
0.39248934388160706,
-0.07248470932245255,
-0.11337615549564362,
-0.519902229309082,
-0.6865200400352478,
-0.4179297387599945,
0.009339914657175541,
0.472818046808242... |
def value2colour ( value ) : # we scale to a specific colour range ( in hsv, 0 to 1 ). try : hue = ( ( value - self. min ) / ( self. max - self. min ) ) except zerodivisionerror : hue = 0 # convert the hue into something in the given range. value = hue * ( colour _ range [ 1 ] - colour _ range [ 0 ] ) + \ colour _ rang... | [
-1.220930814743042,
-0.35706064105033875,
0.6103103756904602,
0.3223764896392822,
0.5563002824783325,
-0.4550776779651642,
-0.6031059622764587,
-0.10814287513494492,
0.38011831045150757,
0.6147773861885071,
-1.0486606359481812,
0.20385731756687164,
0.16911283135414124,
0.6638293266296387,
... |
def clip ( ) - > sw. copytoclip : return sw. copytoclip ( v _ model = " value " ) | [
-0.3431248962879181,
-0.25725120306015015,
0.2315964549779892,
0.8400043845176697,
-0.9777122139930725,
0.32432180643081665,
-0.01743270643055439,
-0.6406423449516296,
0.22879962623119354,
0.6491650938987732,
0.5113895535469055,
0.7450413107872009,
0.8656022548675537,
-1.2928338050842285,
... |
def wake _ on _ lan ( macaddress ) : # check mac address format and try to compensate. if len ( macaddress ) = = 12 : pass elif len ( macaddress ) = = 12 + 5 : sep = macaddress [ 2 ] macaddress = macaddress. replace ( sep,'' ) else : logger. error ('wol : incorrect mac address format'+ macaddress ) # pad the synchroniz... | [
0.4255105257034302,
0.8131780624389648,
0.7869994640350342,
-0.7881168723106384,
-0.05259854346513748,
-0.5366969108581543,
0.19637468457221985,
0.1398819088935852,
0.8539735078811646,
-0.033738937228918076,
-0.27086612582206726,
1.1320881843566895,
-0.3121250867843628,
0.6972255110740662,... |
def get _ logits ( self, batch _ samples ) : return self. model _ obj. predict _ proba ( batch _ samples ) [ :, - 1 ] | [
-0.6021566390991211,
-0.8405615091323853,
0.372880756855011,
0.7963886857032776,
0.6501191258430481,
0.6502854228019714,
-0.8155425190925598,
0.04133578762412071,
-0.6124880313873291,
0.043925896286964417,
0.1240745410323143,
0.9139626622200012,
-0.5076172947883606,
-0.7116270065307617,
... |
def cntoutdegnodes _ pungraph ( * args ) : return _ snap. cntoutdegnodes _ pungraph ( * args ) | [
-0.9788680076599121,
1.2035313844680786,
-0.05375346913933754,
-0.3958929181098938,
-0.10064304620027542,
-0.06597006320953369,
0.38580095767974854,
1.0234642028808594,
-0.2802492678165436,
0.3430964946746826,
-1.0891855955123901,
-0.46250268816947937,
0.07298892736434937,
0.23074966669082... |
def get _ global _ link _ angular _ analytical _ jacobian _ function ( self, link : str, n : int = 1, numpy _ output : bool = false, ) - > cs. function : return self. make _ function ( " ja ", link, self. get _ global _ link _ angular _ analytical _ jacobian, n = n, numpy _ output = numpy _ output, ) | [
-0.26736193895339966,
0.13063538074493408,
0.32973042130470276,
0.4306611716747284,
-0.08089471608400345,
-0.48131468892097473,
1.1904618740081787,
-0.9709681868553162,
0.0018767481669783592,
-0.10156241804361343,
-0.14204141497612,
1.2167329788208008,
0.48635005950927734,
-0.4951081573963... |
def credential _ source ( self, credential _ source ) : self. _ credential _ source = credential _ source | [
-0.024260131642222404,
-0.054426439106464386,
-0.42280471324920654,
0.38251373171806335,
-0.18657249212265015,
1.1176966428756714,
0.189202219247818,
1.6635842323303223,
-0.4917945861816406,
0.03735028952360153,
-1.446557641029358,
0.1474492996931076,
-0.1503859907388687,
0.351694226264953... |
def texcept _ new ( * args ) : return _ snap. texcept _ new ( * args ) | [
0.10896528512239456,
-1.0515233278274536,
0.3269805908203125,
-0.46767961978912354,
-0.3781946003437042,
-0.2199644297361374,
-0.4226813018321991,
-0.34149450063705444,
-1.1153366565704346,
0.641647458076477,
-0.3223326802253723,
-1.283842921257019,
0.9673659205436707,
0.4948447644710541,
... |
def ehlo _ or _ helo _ if _ needed ( self ) : if self. helo _ resp is none and self. ehlo _ resp is none : if not ( 200 < = self. ehlo ( ) [ 0 ] < = 299 ) : ( code, resp ) = self. helo ( ) if not ( 200 < = code < = 299 ) : raise smtpheloerror ( code, resp ) | [
0.30654656887054443,
-0.17471353709697723,
0.7587398290634155,
0.06384950131177902,
0.41545483469963074,
0.1979571133852005,
-0.48137167096138,
-0.42322567105293274,
0.31722575426101685,
0.3717077970504761,
0.4756280481815338,
-0.2539498507976532,
0.05893545597791672,
1.0916751623153687,
... |
def calc _ z _ prob ( self, parameters = none, observations = none, tqdm = none, * * kwargs ) : if parameters is none : parameters = self. parameters if observations is none : observations = self. observations z _ prob = self. message _ helper. latent _ var _ distr ( observations = observations, parameters = parameters... | [
0.1269289255142212,
0.11771128326654434,
0.3932555019855499,
-0.30216309428215027,
-0.15597987174987793,
0.3005181849002838,
0.07851659506559372,
0.04147741198539734,
0.2220490723848343,
0.3708532750606537,
0.44113224744796753,
0.9723758101463318,
-0.9509199857711792,
-0.1759251207113266,
... |
def read _ marbles ( board _ state : list ) : black _ marbles = [ ] white _ marbles = [ ] for marble in board _ state : if marble [ 2 ] = ='b': black _ marbles. append ( marble [ 0 : 2 ] ) else : white _ marbles. append ( marble [ 0 : 2 ] ) return black _ marbles, white _ marbles | [
-0.4694021940231323,
-0.24942052364349365,
0.5298358201980591,
-0.7234417796134949,
0.64178466796875,
0.26789429783821106,
-0.3202638626098633,
1.0320297479629517,
0.1433427780866623,
1.652204155921936,
-0.2597012519836426,
0.59876948595047,
-0.2736758589744568,
0.8410081267356873,
0.145... |
def _ _ lt _ _ ( self, * args ) : return _ snap. tstrintvhi _ _ _ lt _ _ ( self, * args ) | [
1.3857868909835815,
-0.4306478798389435,
0.18351417779922485,
-1.5699025392532349,
0.5231403708457947,
-0.3165372610092163,
-0.5815856456756592,
-0.897772490978241,
-1.7195181846618652,
0.35701194405555725,
-0.16591699421405792,
-0.6762202382087708,
-0.4888593852519989,
0.07000226527452469... |
def generate _ step ( self, client ) : status = client. get _ status ( ) for name, cur _ action in self. list _ arbitrary _ actions ( ) : try : return name, cur _ action, cur _ action. generate _ parameters ( client, status ) except invalidactionerror : pass else : raise novalidactionserror ('no valid actions for model... | [
-0.9573766589164734,
0.09376951307058334,
0.27933913469314575,
0.9261087775230408,
-0.0955347940325737,
0.3431410491466522,
-0.5005001425743103,
-0.06405027955770493,
-1.5900815725326538,
0.3555598258972168,
-0.6065902709960938,
-0.15445350110530853,
0.33772116899490356,
1.156862735748291,... |
def popen ( self, args ) : if use _ vcmd _ module : if not self. cmdchnl. connected ( ) : raise valueerror ( " self. cmdchnl not connected " ) return self. cmdchnl. popen ( args ) else : cmd = [ vcmd, " - c ", self. ctrlchnlname, " - - " ] cmd. extend ( args ) tmp = subprocess. popen ( cmd, stdin = subprocess. pipe, st... | [
0.3672358989715576,
-0.4575802981853485,
0.7443712949752808,
0.4654895067214966,
0.3123306632041931,
-0.10846541076898575,
-0.36933189630508423,
0.46384724974632263,
-0.5586032271385193,
0.12651020288467407,
-0.10350174456834793,
-0.9786660075187683,
-0.3312443196773529,
0.1044166535139083... |
def getkcore _ pungraph ( * args ) : return _ snap. getkcore _ pungraph ( * args ) | [
-0.03290972486138344,
0.8781411051750183,
0.49285513162612915,
1.2210254669189453,
-0.7446568608283997,
-0.9926850199699402,
-0.4162841737270355,
0.42589879035949707,
0.30764040350914,
0.7499104142189026,
-0.5562700033187866,
-0.22472192347049713,
-1.3561445474624634,
-0.03853525593876839,... |
def start ( self ) : self. localsocket = socket. socket ( socket. af _ inet, socket. sock _ stream ) print ('# socket created') try : self. localsocket. bind ( ( self. host, self. port ) ) print ('# bind successful') except exception : print ('# bind failed') self. shutdown ( ) sys. exit ( 1 ) try : self. inputs. appen... | [
0.2557613253593445,
-0.5070446729660034,
0.5191774964332581,
0.19857946038246155,
-0.07257871329784393,
0.5184373259544373,
0.19106076657772064,
0.17783866822719574,
-0.0829070508480072,
-0.5278162956237793,
0.5735601782798767,
1.0616334676742554,
-0.846488356590271,
1.1484957933425903,
... |
def test _ allow _ empty _ file ( self ) : field = omnifilefield. _ meta. get _ field ('allow _ empty _ file') self. assertisinstance ( field, models. booleanfield ) self. assertfalse ( field. default ) | [
0.8604656457901001,
0.5820581316947937,
0.5727173686027527,
0.35134273767471313,
0.6242833137512207,
1.5879124402999878,
0.11844564974308014,
0.5867251753807068,
-0.5634424090385437,
-0.008541878312826157,
-0.08139351010322571,
-0.5386287569999695,
-0.8723195791244507,
-0.16395561397075653... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.