text
stringlengths
25
2.19k
embedding
listlengths
768
768
def where ( currid ) : send _ string = " where { } ". format ( currid ) server _ socket. send ( send _ string. encode ('utf - 8') ) recv _ string = server _ socket. recv ( 1024 ) data = recv _ string. decode ('utf - 8'). split ( ) return ( data [ 1 ], int ( data [ 2 ] ), int ( data [ 3 ] ) )
[ -0.34144511818885803, -0.5467963814735413, 0.561726987361908, -0.7578805685043335, -0.8363021016120911, -0.6476001739501953, -0.12332162261009216, -0.1950436383485794, -0.9649072289466858, 0.4261559844017029, -0.8361098766326904, 0.44093042612075806, -1.2210307121276855, -0.468342572450637...
def _ run _ search ( self, query _ results, old _ items ) : # scan search results object to produce a dataframe of all item details that match criteria items = self. _ get _ all _ item _ details ( query _ results ) # filter only new rows new _ items = self. _ filter _ new _ rows _ only ( items, old _ items ) # print it...
[ -1.1980124711990356, -0.21583274006843567, 0.43472519516944885, 0.47791239619255066, 0.4264650046825409, -0.446290522813797, -0.22192098200321198, -0.6258509159088135, -0.35130253434181213, 0.0742831900715828, 0.4027687907218933, -0.10236383974552155, 0.21343329548835754, 0.151683613657951...
def getdatwithdefault ( self, * args ) : return _ snap. tinth _ getdatwithdefault ( self, * args )
[ 0.6035123467445374, 0.06442991644144058, 0.30145731568336487, 0.8358929753303528, 1.5369479656219482, 0.41112399101257324, -0.6908488273620605, -0.9404523968696594, -0.28497031331062317, -1.0315953493118286, -0.981227695941925, 0.7014895081520081, -0.8695462942123413, 0.13426890969276428, ...
def concat _ df _ from _ list ( dir _ list ) : return map ( concat _ df, dir _ list )
[ -1.304259181022644, 0.267137736082077, 0.3525438904762268, 1.5592052936553955, 0.20422253012657166, -0.5445590615272522, -0.3654250502586365, 0.7982235550880432, 0.5364935398101807, -0.2560853362083435, 0.029520921409130096, -0.3297325372695923, 0.3759753704071045, 0.9536362886428833, -0...
def test _ model _ backup _ loading ( shapes _ image _ size, shapes _ sample _ config, shapes _ temp _ dir ) : config = read _ config ( shapes _ sample _ config ) label _ ids = [ x [ " id " ] for x in config [ " labels " ] if x [ " is _ evaluate " ] ] cnn = featuredetectionnetwork ( " test ", image _ size = shapes _ im...
[ 0.4204150140285492, -0.047322336584329605, 0.7794804573059082, 0.43104588985443115, 1.1477376222610474, 0.19401171803474426, 0.54278963804245, -0.28560540080070496, -0.19306519627571106, 0.08908791840076447, -0.8505816459655762, -0.8190489411354065, -0.09053122252225876, 0.4665821492671966...
def pick ( imagefile, labels ) : pygame. init ( ) # load the image. img = pygame. image. load ( imagefile ) imgsize = img. get _ size ( ) # determine the largest integer scale factor so that the image will still # fit the screen. info = pygame. display. info ( ) scalefactor = min ( info. current _ w / imgsize [ 0 ], \ ...
[ -0.3993028998374939, -0.8411702513694763, 0.7919691205024719, -0.5338333249092102, 0.010655229911208153, 0.2629251480102539, 0.9541603922843933, -0.3130831718444824, -0.4388037919998169, 0.5326647162437439, 0.3513159453868866, -0.21108083426952362, 0.07735884189605713, -0.20440079271793365...
def bokeh _ pr _ curve _ raw ( precision : iterable [ float ], recall : iterable [ float ], threshold : list [ float ], fig : figure = none, color : str ='blue ', legend = none ) - > layoutdom : if fig is none : hover = hovertool ( tooltips = [ ('recall ', " $ x { % 0. 2f } " ), ('precision ', " $ y { % 0. 2f } " ), ('...
[ 0.9435325860977173, 0.33166030049324036, 1.0479156970977783, -0.7373113632202148, -0.9796125888824463, -0.1417851597070694, -0.009565573185682297, 0.08462079614400864, 0.10416755825281143, -0.49287888407707214, 0.4719124734401703, 0.5623798966407776, 0.6886100172996521, -1.093329906463623,...
def _ _ eq _ _ ( self, * args ) : return _ snap. tintstrvhi _ _ _ eq _ _ ( self, * args )
[ 0.1126241683959961, -0.6014160513877869, 0.18601711094379425, 0.4736654758453369, 0.00015805583097971976, -0.23904576897621155, 0.7243578433990479, -0.302603155374527, -0.16250702738761902, 0.7790415287017822, -1.0439934730529785, 0.03161727637052536, -0.8991453051567078, -0.21916291117668...
def test _ julian _ date _ matches _ vallado ( ) : # test using example in vallado pp. 194 y, mo, d, h, m, s = 1992, 8, 20, 12, 14, 0 jd _ ut1 = astrodynamics2. ymdhms2jd ( y, mo, d, h, m, s ) expected _ jd = 2448855. 009722 # should be 2448855. 009722 " % ( jd _ ut1 ) assert abs ( jd _ ut1 - expected _ jd ) <. 000001
[ 0.9898411631584167, -0.6568926572799683, 0.6389421820640564, 0.5209484100341797, -0.5537875294685364, 0.9135556221008301, 0.16703985631465912, -0.07658617943525314, -0.12377402931451797, -0.8820177912712097, 0.21530093252658844, 0.26327136158943176, 0.6150862574577332, 0.07730969041585922,...
def adddata ( self, other, index ) : # check that it is a legal assignment # aligned and within bounds assert self. xdim % other. xdim = = 0 assert self. ydim % other. ydim = = 0 assert self. zdim % other. zdim = = 0 assert ( index [ 0 ] + 1 ) * other. xdim < = self. xdim assert ( index [ 1 ] + 1 ) * other. ydim < = se...
[ -0.22050757706165314, -0.6448366045951843, 0.8823606967926025, -0.5608346462249756, -0.2566683292388916, 1.3073586225509644, 0.14393359422683716, -0.38099581003189087, 0.6070482134819031, -0.08837835490703583, -0.23846246302127838, 0.788176953792572, -0.41352343559265137, -0.47581395506858...
def getintrowidxbyval ( self, * args ) : return _ snap. ptable _ getintrowidxbyval ( self, * args )
[ -0.6557919383049011, 0.8713664412498474, 0.37717634439468384, 1.151424765586853, -0.008362460881471634, -0.2331640124320984, 1.225199580192566, -1.3190655708312988, -0.19117693603038788, 0.3960186541080475, 0.25068408250808716, -0.0589330829679966, -1.6290791034698486, -0.424674391746521, ...
def _ _ eq _ _ ( self, * args ) : return _ snap. tintflttrhi _ _ _ eq _ _ ( self, * args )
[ 0.035439249128103256, -0.062012653797864914, -0.06247308477759361, 0.12174143642187119, 0.6312375068664551, 0.24759724736213684, 0.7451043128967285, -0.06108008697628975, -1.1748769283294678, 0.0767863318324089, -1.3889760971069336, -0.5748910903930664, -0.331287682056427, 0.75092035531997...
def safebridgedestroy ( bridge ) : try : bridge. destroy ( ) except requests. httperror as e : if e. response. status _ code! = requests. codes. not _ found : raise e
[ -0.2688312232494354, 0.43506884574890137, 0.5650321245193481, 0.7240794897079468, 0.5101891160011292, 0.8212133646011353, -0.08162329345941544, -0.02055187150835991, 1.3440018892288208, -0.05841517448425293, 0.16345886886119843, -0.4265874922275543, -0.8368803858757019, 0.8551694750785828,...
def writer ( self, textwriter ) : return self. _ writer ( textwriter, self. delimwrite )
[ -0.4161584675312042, 0.03468780592083931, 0.15443435311317444, -0.4749341309070587, -0.5611968040466309, -1.0829434394836426, -0.1864214986562729, 0.7812623381614685, 0.3055365979671478, -0.05685865506529808, 0.5200324654579163, -1.050707221031189, -0.04470803961157799, -0.3870546817779541...
def readdata ( filename ) : # define column names colnames = ['agency _ cd ','site _ no ','date ','discharge ','quality'] # open and read the file datadf = pd. read _ csv ( filename, header = 1, names = colnames, delimiter = r " \ s + ", parse _ dates = [ 2 ], comment ='# ', na _ values = ['eqp'] ) datadf = datadf. set...
[ 0.23570309579372406, -0.3230796754360199, 0.5707688331604004, -1.0449190139770508, 0.30766940116882324, 0.9150353074073792, 0.24462200701236725, 1.1606431007385254, -0.9174580574035645, -0.19278433918952942, 0.23735938966274261, 0.8100224137306213, 0.5590529441833496, 0.6239759922027588, ...
def replace _ driver ( self, obj : hlsnetnodeout ) : assert self. replaced _ by is none, ( self, self. replaced _ by ) # replace original hlsnetnodeoutlazy to a resolved value self. original _ lazy _ out. replace _ driver ( obj ) # replace self to a final value for k in self. keys _ of _ self _ in _ cache : self. op _ ...
[ -0.13814063370227814, -0.14985235035419464, 0.5947856903076172, 0.22640298306941986, -0.07197784632444382, -0.7436656951904297, 0.77818363904953, 0.9060235023498535, -0.04323896765708923, -0.6100770235061646, -0.9132496118545532, -0.1361951380968094, 0.40572652220726013, 0.4327924847602844...
def word _ play ( self ) : print ( " user input was : " + self. the _ words )
[ 0.699251115322113, 0.2149149477481842, 0.3152916133403778, -0.15006649494171143, 0.08104004710912704, 0.9124422669410706, 1.0780913829803467, -0.15854871273040771, -0.05471883714199066, 0.30721813440322876, 0.5327016711235046, 1.6369469165802002, -0.6922560930252075, 0.4268503487110138, ...
def example _ 4 ( ) : x : list [ int ] = [ 1, 3, 4, 5 ] x0 = 10 minus = lambda a, b : a - b minus. _ _ name _ _ = " - " res1 = fold ( x, minus, x0, foldr = false, debug = true ) print ( f " fold ( { x }, { minus. _ _ name _ _ }, { x0 }, foldr = { false } ) = { res1 } " ) res2 = fold ( x, minus, x0, foldr = true, debug ...
[ 0.3472636044025421, 0.15041518211364746, 0.7844343185424805, 0.2139587253332138, -1.2650349140167236, 0.5901750326156616, 0.29060372710227966, 0.5619588494300842, 0.21828196942806244, -0.07126715779304504, -1.3146499395370483, 0.06684339791536331, 0.8189980983734131, 1.0920326709747314, ...
def strtobool ( val ) : true _ vals = ['yes ','y ','' ] false _ vals = ['no ','n'] try : val = val. lower ( ) except attributeerror : val = str ( val ). lower ( ) if val in true _ vals : return true elif val in false _ vals : return false else : raise valueerror ( " invalid input value : % s " % val )
[ -0.10945454239845276, -0.007101010996848345, 0.6451669931411743, -0.16369199752807617, -0.4473935663700104, 0.7947729825973511, -0.3989261984825134, -0.7223602533340454, -0.8243370652198792, -0.19580885767936707, 0.2419646680355072, 0.3213571310043335, -0.2552292048931122, 0.18310473859310...
def simulate _ psd _ cython _ 2 ( ) : # input # norm = sim _ input ['norm'] dt = sim _ input ['dt'] psdpar = sim _ input ['psdpar'] inorm = 0 if norm = ='var'else 1 if norm = ='leahy'else 2 sims = [ ] for isim in range ( 1, args. nsim + 1 ) : az. misc. print _ progress ( isim, args. nsim + 1, isim = = args. nsim ) # si...
[ 0.595160722732544, 0.21131540834903717, 1.0020893812179565, -0.2829558253288269, -0.23234017193317413, 0.1350814253091812, 0.048230577260255814, -0.821268618106842, -0.5458847880363464, -0.3310615122318268, 0.20224277675151825, 0.25114205479621887, -0.2244015783071518, 0.4715617597103119, ...
def run _ pipeline ( self, pipln ) : assert pipln in ['incl _ outl ','excl _ sse _ outl ','excl _ outl ','excl _ outl _ tothemax'] self. pipeline _ run = pipln # record for later object introspection # define colours to print headings and clear terminal screen header _ style ='\ x1b [ 0 ; 30 ; 46m'bold _ style ='\ x1b ...
[ -0.20515888929367065, -0.09413737803697586, 0.6684039831161499, -0.16014829277992249, -0.4013051986694336, 0.13898329436779022, 0.6602134704589844, -0.05464267358183861, -0.6990292072296143, -0.44829264283180237, 0.31136396527290344, 0.6975635290145874, 0.1655137538909912, -0.0737906098365...
def get _ loss ( self, batch _ samples, batch _ labels = none, per _ point = true ) : pass
[ -0.3501904308795929, -0.5425623059272766, 0.34846383333206177, 1.3935760259628296, 0.8268029093742371, 0.32485008239746094, -0.1912866234779358, 0.37993553280830383, -0.5324406623840332, -0.38858553767204285, 0.4205854833126068, 0.17076343297958374, -0.1335458904504776, -0.1732640862464904...
def test _ stack _ miscabling ( self ) : stack _ port = self. valve. dp. ports [ 1 ] other _ dp = self. valves _ manager. valves [ 2 ]. dp other _ port = other _ dp. ports [ 1 ] wrong _ port = other _ dp. ports [ 2 ] wrong _ dp = self. valves _ manager. valves [ 3 ]. dp other _ valves = self. valves _ manager. _ other ...
[ 0.13268853724002838, 0.3430800437927246, 0.6351319551467896, -0.38751736283302307, 0.7373603582382202, 0.5971947312355042, 0.07589732110500336, -0.7150368094444275, -0.3182622790336609, -0.07693102955818176, -0.5572895407676697, -0.09530451893806458, -0.36962753534317017, -0.39937895536422...
def is _ auto _ steering _ wheel _ heat ( self ) - > bool : return self. _ vehicle _ data. get ( " climate _ state ", { } ). get ( " auto _ steering _ wheel _ heat " )
[ -0.4171160161495209, -0.14950664341449738, 0.3231655955314636, 0.6851629614830017, 0.5170830488204956, -0.06193256378173828, -0.8503263592720032, 0.009713821113109589, -0.366935133934021, 0.46972137689590454, -0.8717120289802551, 0.4927746653556824, 0.11055196076631546, 0.43854087591171265...
def parse _ args ( self, * args, * * kwargs ) - > optionstype : namespace = super ( ). parse _ args ( * args, * * kwargs ) ns _ dict = vars ( namespace ) self. _ handle _ empty _ posarg ( ns _ dict ) self. _ handle _ missing ( ns _ dict ) self. _ handle _ dicts ( ns _ dict ) return self. _ options _ type ( * * ns _ dic...
[ -0.44145673513412476, 0.384168803691864, 0.3926815986633301, -0.7468786835670471, 0.6842743754386902, -0.9772645831108093, -0.8336463570594788, -0.7095651626586914, 0.34191885590553284, -0.4977186918258667, 0.15899613499641418, -0.2957519292831421, -0.05725248530507088, 0.9091622829437256,...
def reverse ( self, * args ) : return _ snap. tstrintprv _ reverse ( self, * args )
[ -0.7914057970046997, 0.1518298238515854, 0.2683524191379547, -1.5573011636734009, 0.607483983039856, 0.6883858442306519, 0.23109793663024902, 1.0246927738189697, -2.0194506645202637, -0.03105907142162323, 0.006300143897533417, 0.270979106426239, -1.3015906810760498, -1.0385980606079102, ...
def infer ( self ) : raise exception ('needs to be implemented')
[ -0.43338677287101746, -0.4413258731365204, 0.5579882264137268, 1.1704384088516235, 0.3868315517902374, 1.0477564334869385, 0.4411441683769226, 0.38668137788772583, -0.2690693140029907, -1.22273588180542, -0.5124198198318481, 0.2845541536808014, -0.40941160917282104, 0.7646583318710327, -...
def test _ tagged _ entries ( self ) : response = self. client. get ('/ tag / tests /') self. assertcontains ( response, self. text _ entry. rendered _ content, status _ code = 200 ) response = self. client. get ('/ tag / programming /') self. assertnotcontains ( response, self. text _ entry. rendered _ content, status...
[ 0.5494982600212097, 0.3437393009662628, 0.24988900125026703, -0.17447279393672943, 1.201579213142395, 0.9376201033592224, -0.25405001640319824, 0.27658745646476746, -0.5549496412277222, -0.45581045746803284, -0.165040984749794, 0.05391765013337135, -0.03628917783498764, 1.0987542867660522,...
def _ _ init _ _ ( self, * args ) : _ snap. tuch _ swiginit ( self, _ snap. new _ tuch ( * args ) )
[ -0.4238841235637665, 0.6087729334831238, 0.2374638170003891, 0.4928501546382904, 0.4101080894470215, 0.17256028950214386, 0.8994690775871277, 0.09213536232709885, -0.5341293811798096, -0.6238446831703186, -0.6294789910316467, -0.5551968812942505, 0.637420117855072, -0.0830940380692482, 0...
def create _ dialog _ buttons ( self ) : self. save _ button = qtwidgets. qpushbutton ( " save ", self ) self. save _ button. setobjectname ( " save _ button " ) self. cancel _ button = qtwidgets. qpushbutton ( " cancel ", self ) self. cancel _ button. setobjectname ( " cancel _ button " ) self. set _ dialog _ buttons ...
[ 0.3397187888622284, 0.13033996522426605, 0.5980358719825745, 0.08995278924703598, 0.4915507137775421, 0.3934982717037201, -0.37450772523880005, 0.6112486720085144, 0.363766610622406, 0.6151998043060303, -1.243683099746704, -0.9127335548400879, 0.773422122001648, 0.0019288271432742476, -0...
def test _ companies _ company _ id _ connections _ connection _ id _ data _ commerce _ orders _ get ( self ) : pass
[ -0.049586936831474304, 0.6014286279678345, 0.22124283015727997, -0.5628977417945862, 1.42570960521698, -0.4823055863380432, -0.7123585939407349, -0.07157528400421143, -0.10496815294027328, -0.38065868616104126, 0.2688930928707123, 0.35944294929504395, -0.5818696022033691, -0.28989070653915...
def write _ header ( self, number _ simulations : int, output _ ids : list [ str ], projection _ dates : list [ datetime ], annualisation _ factor : float ) : self. _ writer. seek ( self. _ header _ start _ position ) number _ outputs = len ( output _ ids ) number _ projection _ dates = len ( projection _ dates ) self....
[ -0.7954069972038269, -0.14466658234596252, 0.5962628722190857, 0.03953186050057411, 0.38125771284103394, 0.28655561804771423, 0.06428080797195435, -0.30698496103286743, -0.8438780903816223, 0.026916753500699997, 0.23379595577716827, -0.20685291290283203, 0.035251688212156296, -0.2788162231...
def hasflag ( self, * args ) : return _ snap. tungraph _ hasflag ( self, * args )
[ 0.24324683845043182, 0.4825316369533539, 0.5643296241760254, 0.49051639437675476, 0.9317968487739563, 0.7370705604553223, 0.17574092745780945, 1.179482340812683, -0.41841787099838257, -1.2005178928375244, -0.7820300459861755, -0.47577041387557983, -0.5970566868782043, 0.727752149105072, ...
def read _ from _ serial ( ) : # let's first initialise the connect with serial library serial _ connection _ to _ esp8266 = serial. serial ( get _ esp8266 _ serial _ port ( ), esp8266 _ brad _ rate ) weather _ readings _ array = [ ] # this function must run a while loop and break in the'] ]'character is found while tr...
[ 0.020820681005716324, -1.2208658456802368, 0.6496456861495972, -0.2971850335597992, 0.2937716543674469, -0.3523407280445099, -0.8180296421051025, -0.48543781042099, -0.3201259970664978, -0.2442280352115631, 0.6350221037864685, 1.1848740577697754, -0.5746132731437683, -0.3056468963623047, ...
def get _ form ( self, model, * args, * * kwargs ) : form = modelform _ factory ( model, exclude = ['owner ','order ','created ','updated'] ) return form ( * args, * * kwargs )
[ 0.12691999971866608, 0.21507848799228668, 0.30798259377479553, 0.2858019173145294, -0.23994754254817963, -0.08607658743858337, -0.11466161906719208, -0.9720409512519836, -0.19766534864902496, -1.2423455715179443, -0.5541199445724487, -0.2056662142276764, 0.43618911504745483, -0.02539310604...
def partial _ fit _ transform ( self, array : np. ndarray ) - > np. ndarray : self. partial _ fit ( array ) return self. transform ( array )
[ -0.09862592071294785, -1.6616061925888062, 0.27569133043289185, -0.10856993496417999, -0.40148550271987915, 0.10791325569152832, 0.22306647896766663, -0.6155210733413696, 1.27323579788208, -0.4848332405090332, -0.21674568951129913, 0.6329315900802612, -0.9944561123847961, 0.244142323732376...
def getpivotvaln ( self, * args ) : return _ snap. tfltv _ getpivotvaln ( self, * args )
[ -0.966799795627594, 0.1772724837064743, 0.1781354546546936, 0.9078763723373413, 0.09666557610034943, -0.6955300569534302, -0.043889109045267105, 1.3220739364624023, -0.9350000023841858, -1.3548589944839478, -0.6974063515663147, -0.5829867124557495, 0.6013345122337341, 1.4249732494354248, ...
def summary ( self, raw ) : return {'meme _ generators': raw ['meme _ generators'],'meme _ instances': raw ['meme _ instances'] }
[ -1.5485053062438965, 0.5531125664710999, 0.31979992985725403, -2.0353012084960938, -1.5678489208221436, 0.082467220723629, -0.2485004961490631, 0.2890525460243225, -0.45576971769332886, -0.1162131056189537, -0.7569828629493713, -0.11291074007749557, 0.2850581109523773, 0.20951756834983826,...
def loop _ gif ( self, image ) : file _ start _ time = time. time ( ) # determine how to size and center image on the matrix, # maintaining the aspect ratio ( approximately, due to resolution ). matrix _ aspect = float ( self. matrix. width ) / float ( self. matrix. height ) image _ aspect = float ( image. width ) / fl...
[ -0.2277073860168457, 0.46559786796569824, 0.8301569819450378, -0.1610928475856781, 0.3474358022212982, 0.07425336539745331, 1.1188204288482666, -0.5814808011054993, -0.22025717794895172, 1.0493677854537964, 0.3080165982246399, 0.30028781294822693, -0.3062799870967865, 0.6839808225631714, ...
def sample _ demerit ( self, stage : int, epsilons : np. ndarray, weights : np. ndarray ) - > float : return self. _ demerit _ fct ( stage, epsilons, weights )
[ 0.21026253700256348, 0.037333231419324875, 0.49063384532928467, -0.49095138907432556, -0.6983090043067932, -0.499573677778244, 0.13744817674160004, 0.29360097646713257, 0.15440796315670013, 0.7005433440208435, 0.09691286087036133, 0.3016325831413269, 0.15170368552207947, 0.4629845917224884...
def _ _ isub _ _ ( self, * args ) : return _ snap. tuint64 _ _ _ isub _ _ ( self, * args )
[ -1.4808404445648193, 1.0690428018569946, 0.1490575671195984, 0.8214291930198669, -0.29415518045425415, 0.08535265922546387, 0.1570974886417389, 0.7055414915084839, -0.6049970388412476, -0.4401332139968872, 0.2701023817062378, -0.199525848031044, -0.23025138676166534, -0.3521246314048767, ...
def _ _ init _ _ ( self, id, s3 _ data _ dir = none, s3 _ log _ dir = none, s3 _ source _ dir = none, schedule = none, resource = none, worker _ group = none, input _ node = none, input _ path = none, required _ steps = none, max _ retries = max _ retries, sns _ object = none, sns _ success _ object = none, sns _ onlat...
[ -0.0964568480849266, -0.1126595214009285, 0.6580386757850647, -0.2813250422477722, -0.4381081461906433, 0.6039958000183105, -0.22606275975704193, 0.26793062686920166, 0.7154239416122437, 0.36830809712409973, -0.3055499494075775, 0.23658517003059387, 0.7069144248962402, -0.5976802110671997,...
def month _ timestamp ( ts ) : k = list ( ) for t in ts : k. append ( t. month ) return np. array ( k )
[ -0.10083013027906418, -0.4652290344238281, 0.7181198596954346, 0.4799456000328064, 0.21496473252773285, 0.366039514541626, -0.3924838900566101, 0.4969831109046936, 1.0045194625854492, 0.48734554648399353, -0.3659106492996216, 0.14452500641345978, 0.44139134883880615, -0.11349812150001526, ...
def defrag ( self, onlynodelinks = false ) : return _ snap. pngraphmp _ defrag ( self, onlynodelinks )
[ -0.40288254618644714, 0.9203667640686035, 0.19391123950481415, 0.1138826459646225, 0.8741433024406433, -0.08469004929065704, 1.2534703016281128, 0.057260021567344666, -0.38507577776908875, -1.649681568145752, 0.33772900700569153, 0.011261546984314919, -0.8536297678947449, 1.168451309204101...
def _ _ init _ _ ( self, status = none, expiration _ date = none, lockout _ reset = none, first _ login _ failure = none, login _ failures _ reset = none, login _ failures = none, credential _ type = none, user _ id = none, credential _ key = none, type = none, optlock = none, entity _ attributes = none, entity _ prope...
[ 0.48018679022789, -0.31904757022857666, 0.5658864974975586, -0.11486297100782394, -0.08757451176643372, -0.2470356673002243, 0.21132829785346985, -0.05701838433742523, 1.216389775276184, 0.1818132996559143, -0.35047265887260437, 0.7945798635482788, 0.5675516724586487, -0.20072215795516968,...
def test _ atomic _ base64 _ binary _ length _ 1 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ length _ 2 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - length - 2. xsd ", instance = "...
[ 0.17911048233509064, -0.41275250911712646, 0.43964117765426636, 1.018655776977539, 0.24671581387519836, 0.1483551561832428, 0.07365132868289948, 0.025313641875982285, -0.11663174629211426, 0.3250766396522522, -0.5510452389717102, 0.09012045711278915, -0.21884369850158691, 0.379276931285858...
def parse _ arguments ( ) : parser = argparse. argumentparser ( description = " distributed slsh " ) # general arguments. parser. add _ argument ( " role ", type = str, choices = ['node ','orchestrator'], help = " specifies whether to run the orchestrator or a node " ) parser. add _ argument ( " - - task ", type = str,...
[ 0.5184279680252075, 0.4255962073802948, 0.9897698163986206, -0.9414947628974915, 0.361444890499115, 0.6044842600822449, -0.43554672598838806, 0.6427027583122253, -1.124032735824585, -0.19924041628837585, -0.04769539460539818, 1.0619786977767944, 0.17451007664203644, 0.9699926376342773, 1...
def name ( self ) : return self. config. get ('name') or f " { self. id. replace ('_ ','' ). title ( ) } "
[ -0.7968769073486328, -0.5030519962310791, 0.5731438994407654, -0.5389204621315002, -0.7486532926559448, 0.10988210141658783, -1.360790491104126, -0.5018981099128723, 0.4188172519207001, 0.6143724918365479, -0.4047069549560547, -0.18046477437019348, 0.41590410470962524, 0.2830524146556854, ...
def isstrattrdeletedn ( self, * args ) : return _ snap. tneanet _ isstrattrdeletedn ( self, * args )
[ -0.45935696363449097, 0.20539431273937225, 0.37944337725639343, -0.6931979060173035, 0.7479684948921204, -1.0971474647521973, -0.4887770116329193, -0.03398854658007622, 0.5297127962112427, -0.20845377445220947, -0.8699153065681458, -0.48151931166648865, -0.3716970384120941, 0.2660291492938...
def register ( name, description, artefact, endpoint ) : # we need the endpoint name and class in order to re - create an endpoint endpoint _ name = endpoint. _ endpoint _ config _ name endpoint _ class = endpoint. _ _ class _ _. _ _ name _ _ temp = { " name " : name, " description " : description, " artefact " : artef...
[ -0.9956141710281372, 0.06987399607896805, 0.6087073683738708, 0.3180179297924042, 1.1051477193832397, -0.1756901741027832, -0.7311221957206726, 0.6942501664161682, -0.7107296586036682, 0.7436632513999939, -1.426069974899292, 0.03836135193705559, -0.5566117763519287, -0.41746145486831665, ...
def is _ hpo _ enabled ( ) : hpo _ enabled = false if " job _ level " in config and \ " run _ hyperparameter _ opt " in config [ " job _ level " ] : run _ hpo _ config = config [ " job _ level " ] [ " run _ hyperparameter _ opt " ] if run _ hpo _ config. lower ( ) = = " yes " : hpo _ enabled = true return hpo _ enabled
[ 0.6579678058624268, 0.1174219623208046, 0.6263469457626343, 1.2492890357971191, 0.4603901505470276, 0.8340854644775391, -0.4039495587348938, 1.110656499862671, -1.0676169395446777, 0.6045404672622681, -0.6821013689041138, 0.5302171111106873, -0.4403266906738281, 0.35439735651016235, 0.35...
def calibrate _ click ( rgb1, depth1, rgb2, depth2 ) : points1 = get _ click _ points ( rgb1, depth1 ) points2 = get _ click _ points ( rgb2, depth2 ) return find _ rigid _ tfm ( points1, points2 )
[ 0.10358930379152298, -0.5759802460670471, 0.5145336389541626, 0.5386598706245422, -0.32382431626319885, -0.4846329391002655, -0.08952701836824417, -1.1307950019836426, -1.0370855331420898, 0.36663565039634705, 0.6238403916358948, 0.368532657623291, -0.12819276750087738, -0.1979443877935409...
def check _ bool _ expr _ is _ true ( bool _ expr, vranges, cond = none ) : if cond is not none : bool _ expr = tvm. te. any ( tvm. tir. not ( cond ), bool _ expr ) def _ run _ expr ( expr, vranges ) : " " " evaluate expr for every value of free variables given by vranges and return the tensor of results. " " " def _ c...
[ 0.2506892681121826, -0.1486813724040985, 0.7699509859085083, 0.4277484118938446, -0.4569835066795349, 0.21582980453968048, 0.28712084889411926, 0.1945357322692871, -0.2155153900384903, 0.973161518573761, -0.4213721752166748, 0.4008272886276245, -0.5059531331062317, 0.14104187488555908, -...
def get _ config _ root ( ) : home = os. getenv ( " home " ) config _ root = home +'/. dbmarshal'if not os. path. isdir ( config _ root ) : os. makedirs ( config _ root ) return config _ root
[ 0.08278027921915054, 0.9326921701431274, 0.7023317813873291, 0.7549589276313782, 0.6557943820953369, 0.19434155523777008, 0.6233938336372375, -0.15012238919734955, 0.05635131523013115, -0.06416647881269455, 0.1705275923013687, 0.6212629079818726, -0.34758666157722473, 0.7024496793746948, ...
def test _ sync _ ahead ( synced _ repo _ and _ workspace ) : data = synced _ repo _ and _ workspace # commit file in workspace helpers. write _ and _ commit ( data [ " dest _ repo " ], " output. txt " ) result = clirunner ( ). invoke ( metarepo. cli. cli, [ " sync " ] ) assert result. exit _ code = = 1
[ 0.25563690066337585, 0.3816300332546234, 0.4818783700466156, 0.36586347222328186, 0.09681030362844467, 1.1627998352050781, 0.6157352328300476, -0.3317863941192627, -0.20784564316272736, 0.09749302268028259, 0.2996388375759125, 0.957135021686554, 0.6285563707351685, 0.4849635362625122, -0...
def _ generatename ( self, n = 8 ) : return u''. join ( itertools. islice ( self. _ chain, n ) )
[ -1.1728073358535767, 0.7502410411834717, 0.5802245140075684, -0.4131894111633301, -0.10643497109413147, -0.07132979482412338, -1.1678485870361328, -0.8714008927345276, 0.12460005283355713, 0.10823744535446167, -0.9771211743354797, -0.25825557112693787, -0.30266106128692627, -0.015668705105...
def wx _ 3 _ klikniecie _ w _ poj _ kom ( self, evt ) : # wykrywa ze kliknalem jedno cells = self. grid. getselectedcells ( ) if not cells : if self. grid. getselectionblocktopleft ( ) : top _ left = self. grid. getselectionblocktopleft ( ) [ 0 ] bottom _ right = self. grid. getselectionblockbottomright ( ) [ 0 ] self....
[ 0.40107643604278564, -0.5857606530189514, 0.6012437343597412, 0.781524121761322, -0.5449325442314148, 0.1372615396976471, 0.7133238315582275, -0.1605142056941986, -0.5886002779006958, 0.4971804618835449, -0.7800792455673218, -0.3041442334651947, 0.09917891025543213, 0.1685154139995575, -...
def load ( self ) : # logger. info ('loading data from { } '. format ( self. path ) ) self. data = [ inst for inst in self. parser. parse ( self. path ) ]
[ -0.7521066665649414, -0.9283784031867981, 0.2589971721172333, -1.3537968397140503, 0.2918570041656494, 0.8454011082649231, -0.6113765835762024, 0.5535827875137329, -0.5033373832702637, -0.7685462236404419, -0.6848461627960205, 0.42054852843284607, -0.2582539916038513, 0.30979421734809875, ...
def stop ( self ) : self. _ process. terminate ( ) if os. name = ='nt': return t = threading. thread ( target = self. _ process. wait ) t. start ( ) t. join ( 1 ) if self. _ process. returncode is none : self. _ process. kill ( ) self. _ process. wait ( )
[ -0.10206159949302673, -0.6969633102416992, 0.6046888828277588, 0.3070829510688782, 0.7375391721725464, 0.45204880833625793, -0.5839254856109619, -0.019017882645130157, -0.5044458508491516, 0.19399245083332062, -0.3714120388031006, -0.3870876729488373, -0.4541394114494324, 0.007012262940406...
def is _ successful ( self ) - > bool : return self. execution _ status = = edwqueryexecutionstatus. successful
[ -0.4472465217113495, 0.4315260052680969, 0.49799415469169617, 0.6277548670768738, -0.24319884181022644, 0.720769464969635, -1.1607791185379028, -0.33070001006126404, -0.14627611637115479, 0.9741309881210327, 0.054825734347105026, 0.09737346321344376, 0.49291667342185974, 0.5295249223709106...
def _ _ lt _ _ ( self, * args ) : return _ snap. tngraphmpnodei _ _ _ lt _ _ ( self, * args )
[ -0.17940959334373474, -0.12120646238327026, 0.16623659431934357, -1.0071995258331299, 0.34379762411117554, -0.3082360327243805, 0.2416715919971466, -1.4576717615127563, -1.4512875080108643, -0.5122594237327576, -0.21183301508426666, -0.734346866607666, -1.0382572412490845, 0.61643588542938...
def merge ( self, test _ case _ container : testcaseinteractioncontainer ) : self. http _ interactions + = test _ case _ container. http _ interactions
[ -0.2353101223707199, 0.21481335163116455, 0.4278795123100281, 0.2676944136619568, 1.971004843711853, 0.6119797229766846, 0.7181583046913147, -1.146477222442627, 1.3988888263702393, -1.0036324262619019, 0.1893187016248703, -0.04402082785964012, -1.0492885112762451, 0.2769124209880829, -0....
def brokertech _ fob _ download ( self, download = true ) : if download : self. download _ data ('nexbrokertecfob')
[ 0.6911754012107849, 0.09039179980754852, 0.31226760149002075, 1.718711018562317, 0.0004211016930639744, 0.3866809010505676, 0.2245124876499176, -0.9462652802467346, 0.446866512298584, -0.07122189551591873, -0.21884408593177795, -0.9988523125648499, -0.7733705043792725, 0.8586973547935486, ...
def maxcpgreedybetter ( * args ) : return _ snap. maxcpgreedybetter ( * args )
[ -1.25706946849823, -0.2740524709224701, 0.4392250180244446, 1.1639527082443237, 0.6464781761169434, 1.414979100227356, 0.07173436880111694, -0.45025548338890076, -1.3785629272460938, -1.0499989986419678, -0.801028311252594, -0.3584752678871155, -1.24716317653656, 1.6244115829467773, 0.78...
def getrndni ( self, * args ) : return _ snap. tdirnet _ getrndni ( self, * args )
[ -0.4883959889411926, 0.935150146484375, 0.35069918632507324, 0.8516270518302917, 0.12188788503408432, -0.11574548482894897, -0.1714579164981842, -1.0658520460128784, -1.0368778705596924, -1.146467924118042, -1.3299479484558105, -0.628679633140564, -0.4258013367652893, 0.36360302567481995, ...
def draw _ racing _ line ( self ) : for j in range ( len ( self. race _ line _ points ) ) : pygame. draw. line ( screen,'blue ', self. race _ line _ points [ j - 1 ], self. race _ line _ points [ j ], 1 )
[ -0.8550083637237549, 0.2807525098323822, 0.5122294425964355, -0.0016491127898916602, 1.7054816484451294, 0.9148730635643005, -0.6177928447723389, 0.1352117657661438, -0.8605449199676514, 0.1461622267961502, 0.20915038883686066, 0.6452087759971619, -0.11933986097574234, 0.5380496382713318, ...
def remove _ intersecting _ edges ( g ) : edges _ to _ rem = [ ] edges = g. edges ( ) for i in xrange ( len ( edges ) ) : u1, v1 = edges [ i ] u1 _ x = g. node [ u1 ] ['x'] u1 _ y = g. node [ u1 ] ['y'] v1 _ x = g. node [ v1 ] ['x'] v1 _ y = g. node [ v1 ] ['y'] u1 _ vec = [ u1 _ x, u1 _ y ] v1 _ vec = [ v1 _ x, v1 _ y...
[ -0.7026485204696655, 0.4435623288154602, 1.0295567512512207, 0.10069127380847931, -0.6728551387786865, -0.36139774322509766, 0.7394041419029236, 0.3356378376483917, -0.04384307190775871, 0.9109207391738892, -0.13882027566432953, -0.3075653314590454, -0.4013025760650635, -0.2762931287288666...
def event _ type ( self, event _ type ) : allowed _ values = [ " job _ aborted ", " unmasked _ data ", " masking _ fallback " ] # noqa : e501 if event _ type not in allowed _ values : raise valueerror ( " invalid value for ` event _ type ` ( { 0 } ), must be one of { 1 } " # noqa : e501. format ( event _ type, allowed ...
[ 0.8241046667098999, 0.2857898771762848, -0.12345996499061584, 1.2239736318588257, 0.7403576374053955, 0.5250526070594788, 0.8139012455940247, 0.03726312890648842, 0.11488663405179977, 0.34050020575523376, -0.27724188566207886, 0.4035704731941223, -0.05108828470110893, 0.7450234889984131, ...
def test _ signal _ processor _ creates _ entry _ db ( self ) : # check action _ type after created object ( loaded fixtures ) is 0 note = notemodel. objects. get ( model ='contact') self. assertequal ( note. action _ type, 0 ) # check action _ type after change object is 1 person = contact. objects. first ( ) person. ...
[ 0.32588300108909607, 0.11150993406772614, 0.5207323431968689, 0.37522879242897034, 1.3909180164337158, 0.8460636138916016, 1.1668827533721924, -0.3465330898761749, 0.1774640828371048, 0.0534362830221653, -0.9429473876953125, -0.04365338012576103, -0.0450841523706913, 0.9156315326690674, ...
def quantize _ model ( output _ graph _ file, test _ data, input _ holder, output ) : batch = load _ image ( test _ data, input _ holder. shape ) input _ name = input _ holder. name output _ name = output. name with tf. io. gfile. gfile ( output _ graph _ file, mode ='rb') as model : graph _ def = tf. compat. v1. graph...
[ 0.49900302290916443, -0.21695590019226074, 0.8744680285453796, 0.32742738723754883, -0.23584267497062683, 0.5786972045898438, 0.4052961766719818, -0.5458582043647766, -0.5006855726242065, 0.872711718082428, -0.8080862164497375, 0.06303644925355911, 0.13452622294425964, -0.7770628333091736,...
def recovery _ amount ( self, recovery _ amount ) : self. _ recovery _ amount = recovery _ amount
[ -0.19404608011245728, -1.0378024578094482, -0.13267304003238678, 0.4332740902900696, -0.268579363822937, 0.5247417092323303, 1.035946011543274, 1.0795989036560059, -0.6120113730430603, -0.4859248995780945, -1.102097749710083, -0.9456872344017029, 0.11938706040382385, -0.35069140791893005, ...
def update ( self, currentobservation ) : # update the current estimate based on the gain self. estimate = self. estimate + self. gain * ( currentobservation - self. c * self. estimate ) # update the gain based on results from hte previous attempt at estimating invval = self. c * self. errorprediction * np. transpose (...
[ 0.43983882665634155, -1.4476521015167236, 0.5548070669174194, -0.1750289350748062, -0.35297468304634094, 0.1832991987466812, 0.3182242810726166, -0.23874060809612274, -0.6241728663444519, 0.2952490448951721, 0.3592311441898346, 0.6675552725791931, -0.3981506824493408, 0.4424096345901489, ...
def new ( * args ) : return _ snap. tmem _ new ( * args )
[ -0.6460275053977966, -0.6526265740394592, 0.23048149049282074, -0.09492921084165573, 0.09789640456438065, 0.3023926913738251, 0.4758642315864563, -0.04430781677365303, -1.420416235923767, -0.4962038993835449, -0.7233676910400391, -1.0162032842636108, 0.6596129536628723, 0.8721539974212646,...
def syn _ cnn _ 2 _ z _ x ( z, x ) : cnn = x [ 2 ] chooser = x [ 1 ] [ 0 ] + x [ 1 ] [ 1 ] y1 = x [ 0 ] [ 0 ] y2 = x [ 0 ] [ 1 ] y3 = ( x [ 3 ] - 10. 0 ) / 4 y4 = x [ 4 ] / 100 # compute individual functions a = syn _ func1 _ common ( cnn ) * z [ 0 ] b = _ chooser _ park ( chooser, y1, y2, y3, y4 ) c = _ park ( z [ 0 ]...
[ 0.22793985903263092, -0.37628817558288574, 0.54734867811203, 0.9042976498603821, -0.5082523226737976, -0.8586145043373108, 0.9751766920089722, -0.04473607987165451, -0.11374606192111969, 0.021459385752677917, -1.166387677192688, 0.21783623099327087, 0.4919837415218353, -0.42030590772628784...
def getdescription ( self ) : return self. _ description
[ 0.32967409491539, -0.15005779266357422, 0.2368088960647583, 0.4068160057067871, 0.17693045735359192, 0.5100319981575012, 0.10562830418348312, -0.22922489047050476, 0.27569323778152466, -0.33142322301864624, 0.3002599775791168, 0.8731449842453003, -0.819739043712616, -0.08819661289453506, ...
def bls _ clean _ allocation _ fba _ w _ sec ( df _ w _ sec, * * kwargs ) : from flowsa. flowbyfunctions import estimate _ suppressed _ data, sector _ disaggregation, sector _ aggregation, \ flow _ by _ activity _ wsec _ mapped _ fields, add _ missing _ flow _ by _ fields, replace _ strings _ with _ nonetype sector _ c...
[ 0.45844241976737976, -0.3668629825115204, 0.571225106716156, 0.10122412443161011, -0.07480917870998383, -0.5014292597770691, 1.705741286277771, -1.0254507064819336, 0.3694067597389221, 0.32013726234436035, 0.9575012922286987, 0.5786160230636597, 0.6019735932350159, 0.2879270911216736, 0....
def save _ figures _ as _ pdf ( figures, file _ path ) : if type ( figures ). _ _ name _ _ in [ " list ", " series " ] : pdf = matplotlib. backends. backend _ pdf. pdfpages ( file _ path ) for fig in figures : if not fig. get _ axes ( ) : continue fig. tight _ layout ( ) pdf. savefig ( fig ) pdf. close ( ) return true ...
[ -0.051004186272621155, -0.016700968146324158, 0.6895197629928589, 0.418426513671875, 0.3797672688961029, 0.22431644797325134, 0.6369744539260864, -0.314610093832016, 0.33146747946739197, -0.3097219169139862, -0.1785106658935547, -0.5810984969139099, -0.19050396978855133, 0.5971311330795288...
def _ _ init _ _ ( self, master, system, solid, solid _ database, editflag ) : self. master = master self. fonttype = system. fonttype self. version = system. version self. superfont = get _ superfont ( self. fonttype ) # superscript font self. tframe = frame ( master. tframe ) self. frame = frame ( master. frame ) sel...
[ 0.7658640146255493, -0.7260419130325317, 0.6730858683586121, -0.22490829229354858, 0.057118386030197144, 0.20160521566867828, 0.05755653977394104, -0.21135348081588745, 0.013833305798470974, -0.6600852012634277, -0.42155706882476807, 0.020738007500767708, -0.3952774703502655, 1.13971889019...
def format _ json ( data ) : return json. dumps ( data, indent = 4 )
[ 0.269048810005188, -1.263676643371582, 0.4538891017436981, -0.8230645656585693, -0.5691068172454834, -0.06700271368026733, -0.45664340257644653, -1.1118369102478027, 0.44887518882751465, -0.4942912757396698, 0.5505995154380798, 0.3450416624546051, -0.3794291019439697, 0.7276427149772644, ...
def provision ( self, count ) : raise notimplementederror ( self. provision )
[ -0.49968191981315613, -0.37979617714881897, 0.40917906165122986, 0.026567945256829262, 0.3135133385658264, 0.6979314684867859, -0.020917143672704697, -0.1978139877319336, 0.22996507585048676, 0.46114686131477356, -0.4076935052871704, -0.6727847456932068, 0.025105293840169907, 0.35380360484...
def checkaxislimits ( vmin : float, vmax : float, islog : bool = false, name : str = " " ) : min _ = float32 _ minpos if islog else float32 _ safe _ min vmax = numpy. clip ( vmax, min _, float32 _ safe _ max ) vmin = numpy. clip ( vmin, min _, float32 _ safe _ max ) if vmax < vmin : _ logger. debug ('% s axis : max < m...
[ 0.26152315735816956, -0.09418492764234543, 0.7523887157440186, 0.20081458985805511, -0.7048801183700562, 0.08515996485948563, -0.9724015593528748, -0.7463505864143372, 0.49258941411972046, 0.7095804214477539, 0.12924058735370636, 0.9945369958877563, -0.10011662542819977, -0.779560208320617...
def open _ name _ popup ( self ) : self. dialog = mddialog ( title = " changer de nom : ", type = " custom ", content _ cls = namedialog ( ), buttons = [ mdflatbutton ( text = " annuler ", on _ release = self. dialog _ close ), mdflatbutton ( text = " ok ", on _ release = self. set _ name ), ], size _ hint _ x = 0. 8 )...
[ 0.4344002902507782, -0.04157951846718788, 0.5235202312469482, -0.9290618896484375, -1.7788633108139038, -0.30387943983078003, 0.10921948403120041, 0.47944891452789307, -0.2521980404853821, 0.592690110206604, -0.4082445502281189, 0.9474952220916748, 0.43000510334968567, 0.14342060685157776,...
def getindenter ( indentername, qpart ) : indentername = indentername. lower ( ) if indentername in ('haskell ','lilypond') : # not supported yet logger = logging. getlogger ('qutepart') logger. warning ('smart indentation for % s not supported yet. but you could be a hero who implemented it'% indentername ) from qutep...
[ 0.017580199986696243, -1.2395039796829224, 0.8246182799339294, -0.6950287222862244, -0.7201699614524841, 0.17231465876102448, -0.8488122820854187, -0.4976845979690552, 0.677875280380249, -0.4584173262119293, 0.15195977687835693, -0.012615031562745571, -0.6518774032592773, -0.14430265128612...
def combine _ multiple _ cores ( multiple _ core _ info ) : rad _ mean = np. nanmean ( [ c ['radius'] for c in multiple _ core _ info ], axis = 0 ) flux _ mean = np. nanmean ( [ c ['flux'] for c in multiple _ core _ info ], axis = 0 ) rad _ err = np. nanstd ( [ c ['radius'] for c in multiple _ core _ info ], axis = 0 )...
[ -0.47831571102142334, 0.10673293471336365, 0.5257431864738464, -0.3578178584575653, 0.37425991892814636, 0.47056064009666443, 0.7276735901832581, -0.18030375242233276, -0.5171010494232178, 0.535262405872345, 0.2416452020406723, 0.39132314920425415, -0.5415137410163879, 0.17370404303073883,...
def sample _ magnitude ( low = 0. 0, high = none, b = 1. 0, size = 1 ) : beta = 2. 30258509 * b # np. log ( 10 * * b ) u = np. random. rand ( size ) if size > 1 else np. random. rand ( ) u * = 1. 0 - np. exp ( - beta * ( high - low ) ) if high is not none else 1. 0 return low - np. log ( 1. 0 - u ) / beta
[ 0.26478880643844604, -1.127632975578308, 0.7506086826324463, -0.23542430996894836, -0.23898956179618835, -0.15592972934246063, -0.2938792109489441, 0.22027844190597534, 0.6148417592048645, 0.08161424845457077, -0.00806041806936264, 1.0207316875457764, -0.8839568495750427, -0.23969823122024...
def test _ view _ url _ edit _ user _ settings _ accessible _ by _ name ( self, client, proto _ user ) : client. login ( username = f " { proto _ user. username } ", password = " m = 9uak ^ c, tbq9n = t ", ) response = client. get ( reverse ( " edit _ user _ settings " ) ) assert response. status _ code = = 200
[ -0.8754866123199463, 0.5391558408737183, 0.3474213480949402, 0.07350936532020569, -0.46472400426864624, 0.10028430819511414, 1.2362830638885498, -0.23845015466213226, -0.44812068343162537, -0.16202475130558014, -0.6723237633705139, 0.48443248867988586, 0.17353102564811707, -0.3873693346977...
def addstr ( self, * args ) : return _ snap. tstrpool _ addstr ( self, * args )
[ -0.9404939413070679, 0.39008596539497375, 0.17355632781982422, 0.14614388346672058, 0.40653663873672485, 0.5106505155563354, 0.9132656455039978, -0.24519845843315125, -0.8462639451026917, -0.8279987573623657, -0.6948134303092957, -0.05469968542456627, -0.8302765488624573, 0.535277068614959...
def addbacksorted ( self, * args ) : return _ snap. tcncomv _ addbacksorted ( self, * args )
[ -0.02141493931412697, 0.9997020959854126, 0.4721631407737732, -0.34563976526260376, 1.2154802083969116, -0.6244560480117798, 0.8496590852737427, -0.656414270401001, -0.4049876928329468, -0.7082107067108154, -0.49562588334083557, -0.2584363520145416, -1.3359293937683105, 0.8598130941390991,...
def volume _ restricted _ metadata _ get ( context, volume _ id ) : return impl. volume _ restricted _ metadata _ get ( context, volume _ id )
[ -0.23281100392341614, -0.14489838480949402, 0.5165931582450867, 0.17980824410915375, 0.337444931268692, -0.6591237783432007, -0.71531081199646, -1.0574711561203003, -0.17584623396396637, 0.5807760953903198, 0.7355046272277832, 1.5467621088027954, -0.2378017157316208, -0.8100204467773438, ...
def _ _ eq _ _ ( self, * args ) : return _ snap. tungraphnodei _ _ _ eq _ _ ( self, * args )
[ -1.075911045074463, 0.673714280128479, 0.0358971431851387, -0.2883111536502838, 0.5526604652404785, 0.06731734424829483, 0.2634686529636383, -0.16261805593967438, -0.39654889702796936, 0.4243169128894806, -0.5852180123329163, -0.6335933208465576, -0.1775093525648117, -0.35434794425964355, ...
def lemmatize ( string ) : wnl = nltk. stem. wordnetlemmatizer ( ) lemmas = [ wnl. lemmatize ( word ) for word in string. split ( ) ] return " ". join ( lemmas )
[ 0.0976211428642273, -0.31791219115257263, 0.3203905522823334, -0.5900107026100159, -0.3099958896636963, -0.44076332449913025, -1.1587920188903809, 0.4216090142726898, -0.003680033143609762, 0.40997710824012756, -0.6121008396148682, 0.03133726492524147, -1.4083174467086792, 0.45071598887443...
def getneighborsbycrossnet ( self, * args ) : return _ snap. tmodenet _ getneighborsbycrossnet ( self, * args )
[ 0.11350681632757187, 0.909936249256134, 0.3211193084716797, 0.5498549342155457, 1.1938226222991943, 0.03273506462574005, 0.6309491395950317, -0.9089472889900208, -1.2164030075073242, 0.7772738933563232, -0.6302535533905029, -0.9385616779327393, -0.8265385031700134, 0.3349442183971405, 0....
def _ _ gt _ _ ( self, other ) : return self. area ( ) > other. area ( )
[ 0.256927490234375, -0.4239751398563385, 0.8311691284179688, 0.38912805914878845, -0.4880661964416504, 1.050815224647522, -0.7376711964607239, -1.311000943183899, -0.2623901069164276, -0.3839414119720459, 0.2967945635318756, 0.1263146698474884, 1.0798081159591675, 0.7936890721321106, -0.6...
def getdegreecentr ( * args ) : return _ snap. getdegreecentr ( * args )
[ -0.005096946842968464, 0.35112521052360535, 0.8313330411911011, 0.5061630606651306, 0.5301116108894348, 0.5526711344718933, 0.6270109415054321, -0.19777104258537292, -0.5637297034263611, -0.6341409087181091, 0.17336629331111908, 0.04958386719226837, 0.24044077098369598, 1.327955722808838, ...
def sent _ count ( self ) : # work here!!
[ -0.01784440688788891, -0.7176449298858643, 0.46940934658050537, -0.1290973573923111, 0.08659747987985611, -0.22885432839393616, 1.5259108543395996, -0.012493186630308628, -0.9375559687614441, -0.23685485124588013, -1.3763142824172974, -0.03472880274057388, -0.6021178960800171, 0.7417418360...
def check _ repeated _ values ( roman _ string ) : can _ never _ be _ repeated = ('d ','l ','v') can _ be _ repeated = ('i ','x ','c ','m') max _ repeat _ count _ i = 3 max _ repeat _ count _ x = 4 # this can only be repeated for 4 times while it's'xxxix'max _ repeat _ count _ c = 4 # this can only be repeated for 4 ti...
[ -0.18073004484176636, 0.27061954140663147, 0.6016483306884766, -0.09400535374879837, -0.573039710521698, 0.6945980191230774, 0.08581610023975372, -0.7293251156806946, 0.19462275505065918, -0.595289409160614, -0.48815006017684937, 0.3791218101978302, -0.7956067323684692, -0.2471361756324768...
def can _ use _ addon ( event, user, addon ) : addons = get _ available _ addons ( event, user ) return addons. filter ( pk = addon. pk ). exists ( )
[ 0.3413841724395752, -0.7746496200561523, 0.5203729867935181, 1.1079405546188354, -0.6081106662750244, 0.093646340072155, -0.9069312214851379, 0.568419337272644, 0.4453465938568115, 1.1071549654006958, -0.6296485066413879, 0.7648358345031738, 0.09006461501121521, -0.14513033628463745, -0....
def classic _ trainval ( path _ data, df _ type ='spectrogram') : # set and test path to competition data files try : if path _ data = ='insert here': print ('please enter path to competition data files :') path _ data = input ( ) file _ path ='mafat radar challenge - training set v1. csv'with open ( f'{ path _ data } ...
[ -0.43457749485969543, 0.14809288084506989, 0.8234773278236389, -0.1896212100982666, 0.07194980978965759, -0.044738661497831345, 0.03384781256318092, 0.4151047468185425, -0.611334502696991, -0.006335497368127108, 0.3014061450958252, 0.20517899096012115, 0.30869221687316895, -0.1470874398946...
def default _ if _ empty ( source, default _ value = none ) - > observablebase : def subscribe ( observer, scheduler = none ) : found = [ false ] def on _ next ( x ) : found [ 0 ] = true observer. on _ next ( x ) def on _ completed ( ) : if not found [ 0 ] : observer. on _ next ( default _ value ) observer. on _ comple...
[ -0.12906663119792938, 0.9892849922180176, 0.4165377914905548, 0.3834763467311859, -0.12789331376552582, -0.5609791278839111, -0.5755363702774048, -0.5648506879806519, -0.11243606358766556, -0.15947607159614563, -0.9601255059242249, -0.4666891396045685, -0.1467774510383606, 0.46173778176307...
def setup ( self ) : self. submitter = domain. user ( 1234, email ='j. user @ somewhere. edu ', forename ='jane ', surname ='user ', endorsements = ['cs. dl'] ) # create and finalize a new submission. cc0 ='http : / / creativecommons. org / publicdomain / zero / 1. 0 /'with self. app. app _ context ( ) : classic. creat...
[ 0.44463396072387695, -0.2500429153442383, 0.6554287672042847, 0.16194027662277222, 0.7557668685913086, 0.17977970838546753, -0.0876733586192131, -0.2812754809856415, -0.45209091901779175, -0.17205263674259186, -0.33638834953308105, 0.09749910980463028, 0.524803102016449, 0.8500496745109558...