text
stringlengths
25
2.19k
embedding
listlengths
768
768
def new ( * args ) : return _ snap. tngraphmp _ new ( * args )
[ -0.2544856369495392, -0.7977315783500671, 0.2147831916809082, -0.6254726648330688, 0.7937240600585938, -0.054774586111307144, 0.4261557459831238, -0.804186224937439, -1.5246707201004028, -0.20197822153568268, 0.12001323699951172, -0.9799733757972717, -0.23168116807937622, 0.041583668440580...
def new ( * args, * * kargs ) : obj = itksubtractconstantfromimagefilteriul3diul3. _ _ new _ orig _ _ ( ) import itktemplate itktemplate. new ( obj, * args, * * kargs ) return obj
[ 0.8068888187408447, 0.33430272340774536, 0.6669405102729797, -0.6175095438957214, -1.179834246635437, 0.9688940644264221, 0.13810500502586365, 0.8205038905143738, 0.4084639847278595, -0.17268818616867065, -0.8501887917518616, 0.07012777030467987, 0.5232319831848145, -1.13892662525177, -0...
def set _ gender ( self, value ) : self. gender = value logging. debug ( " user's gender received " )
[ -0.5908583402633667, 1.084562063217163, 0.3025023341178894, 0.2799380123615265, 0.34556257724761963, 1.2212661504745483, 0.18111594021320343, -0.11009476333856583, -0.9495822191238403, -0.581762969493866, -1.6941264867782593, 0.6614325046539307, 0.13712161779403687, 1.680274486541748, 1....
def _ _ checkfractaldimension ( self, particle : np. array ) - > bool : # todo : extend / correct description aggregatesize = self. _ _ aggregate. getsize ( ) if aggregatesize = = 1 : return true virtualaggregate = ag. aggregate ( self. _ _ aggregate. getparticles ( ) ) virtualaggregate. add ( particle ) rgratio = virt...
[ 0.18455295264720917, 0.9977012872695923, 0.961979329586029, -0.06358756870031357, -0.39214959740638733, 0.301801860332489, 0.13846731185913086, -0.8248218297958374, -0.3001102805137634, 0.2546401023864746, 0.3195497691631317, -0.1419658362865448, -1.17842698097229, 0.6361822485923767, -0...
def isort ( self, * args ) : return _ snap. tintfltkdv _ isort ( self, * args )
[ -0.32598957419395447, -0.20089542865753174, 0.22259970009326935, -0.33762118220329285, -0.20482605695724487, -0.3103264272212982, -0.1583860218524933, -0.4858947992324829, -0.5580164790153503, -0.28145885467529297, 0.6224379539489746, -0.027472928166389465, -1.1277992725372314, 1.339304685...
def file _ upload ( self, source, upload _ as ) : upload _ as = urllib. parse. quote ( upload _ as, safe ='' ) file _ upload _ api = self. _ start _ url +'/ upload /'+ upload _ as data = {'source': source } return api _ util. post _ url ( file _ upload _ api, self. _ user, self. _ password, data, self. _ header )
[ -1.483700156211853, 0.4515032470226288, 0.5749726891517639, -0.11091157048940659, -0.1569773554801941, -0.7109858393669128, -0.49640023708343506, 0.11568645387887955, -0.7708557844161987, 0.01649007759988308, -0.5765569806098938, -0.04286583513021469, 0.10958262532949448, 0.298087418079376...
def transform _ unknown _ filename ( unknown _ fn, directory, extension ) : fn = os. path. splitext ( os. path. basename ( unknown _ fn ) ) [ 0 ] if not extension. startswith ( ". " ) : extension = ". " + extension fn + = extension if os. path. isdir ( directory ) : return os. path. join ( directory, fn ) return fn
[ 0.2779245376586914, -0.5415711998939514, 0.6590098142623901, 0.3978382647037506, 0.251983642578125, -0.199928417801857, 0.060030434280633926, 1.5395183563232422, 0.5396208167076111, -0.09891333431005478, 0.4637700021266937, 1.0365972518920898, 0.6215338110923767, -0.338531494140625, 0.43...
def isin ( self, * args ) : return _ snap. tstrv _ isin ( self, * args )
[ -1.1999725103378296, -0.11179424822330475, 0.3584682047367096, -0.3921224772930145, -0.09816709905862808, -0.003920214716345072, 0.8866336941719055, 0.8819983601570129, -1.0083597898483276, -0.5572893023490906, -0.8389336466789246, 0.6310070157051086, -0.11474794894456863, -0.0031457713339...
def ins ( self, * args ) : return _ snap. tfltprv _ ins ( self, * args )
[ -1.7759674787521362, 0.648591160774231, 0.313860684633255, -1.6671502590179443, 0.1466747224330902, 0.26823824644088745, 0.38509994745254517, 0.7780571579933167, -1.3028144836425781, -0.20785999298095703, 0.33910056948661804, -0.6432984471321106, -1.3201879262924194, 0.4453030228614807, ...
def trstr _ cmpi ( * args ) : return _ snap. trstr _ cmpi ( * args )
[ -0.3813207447528839, -1.1498775482177734, 0.06799053400754929, -0.20956376194953918, -0.07721427828073502, 1.0566515922546387, 0.24212028086185455, -0.4709460437297821, -1.1763049364089966, 0.6693868041038513, -0.572834312915802, -1.5978368520736694, -0.6658036112785339, -1.144269585609436...
def isinnid ( self, * args ) : return _ snap. tmodenetnodei _ isinnid ( self, * args )
[ -0.6455344557762146, -0.1946030557155609, 0.4279401898384094, 0.030515162274241447, -0.2638843059539795, 0.5843517184257507, 0.37164124846458435, -0.49324238300323486, -0.5842717885971069, 0.5694549679756165, -0.007137312553822994, 0.7456675171852112, -1.2890081405639648, -0.00497831497341...
def get _ list _ portfolios _ cards ( url ) : response = requests. get ( url ) soup = beautifulsoup ( response. text, " html. parser " ) list _ cards _ portfolio = [ ] # append the div of 30 portfolio cards into a list for i in range ( 30 ) : try : url _ portfolio = soup. findall ( " div ", class _ = " shared - item _ ...
[ -1.0984992980957031, 0.33542129397392273, 0.5787053108215332, -0.05837647616863251, 0.5177972316741943, 0.025682944804430008, -0.6763784289360046, 0.46282845735549927, 0.9738955497741699, 0.39847055077552795, -0.6995547413825989, 0.12774893641471863, 0.39984330534935, 0.02404767833650112, ...
def replace ( arr, rep _ dict ) : # removing the explicit " list " rep _ keys, rep _ vals = np. array ( list ( zip ( * sorted ( rep _ dict. items ( ) ) ) ) ) idces = np. digitize ( arr, rep _ keys, right = true ) return rep _ vals [ idces ]
[ -0.24170206487178802, -0.24684886634349823, 0.4199608862400055, -0.6396411061286926, -1.0785974264144897, -0.15179498493671417, -0.5090477466583252, 1.6477994918823242, 1.0363117456436157, 1.345274567604065, 0.0617046058177948, 0.7121138572692871, -0.6015702486038208, 0.18458986282348633, ...
def _ validate _ page _ number ( self, *, number : int ) - > int : assert self. _ records _ count is not none or self. _ pages _ count is not none try : number = int ( number ) except valueerror : number = 1 if number > self. _ pages _ count : # type : ignore number = self. _ pages _ count # type : ignore if number < 1...
[ -0.051029231399297714, -0.03130185231566429, 0.782250165939331, -0.10476800799369812, 0.1658644825220108, 0.41138461232185364, 0.5110155344009399, 0.049783941358327866, -0.05495336651802063, -0.323973685503006, 1.45730721950531, -0.5593034625053406, -0.22833651304244995, 0.4556112885475158...
def make _ dict _ from _ lists ( key _ list : list, value _ list : list ) - > dict : return dict ( zip ( key _ list, value _ list ) )
[ 0.0025924600195139647, 0.24790659546852112, 0.23843438923358917, 0.01628926210105419, -1.168243169784546, 0.6722866296768188, -1.0825979709625244, 0.9127578735351562, -0.5126403570175171, 0.2926757037639618, -0.6445200443267822, -0.28193220496177673, 0.5986517071723938, 0.9919434785842896,...
def getoutnid ( self, * args ) : return _ snap. tngraphnodei _ getoutnid ( self, * args )
[ 0.24493348598480225, 0.9700487852096558, 0.3613603413105011, -0.12342964857816696, -0.04080977290868759, -0.38191330432891846, 0.7351283431053162, -0.31689441204071045, -1.3062340021133423, 0.7112337946891785, 0.3039785921573639, -0.4284176230430603, -0.5658488869667053, -0.465547382831573...
def plotkcoreedges _ pungraph ( * args ) : return _ snap. plotkcoreedges _ pungraph ( * args )
[ 0.08934994041919708, 1.2191870212554932, 0.23389147222042084, 0.5363240242004395, -1.1720623970031738, -0.41495174169540405, 0.4520312249660492, 0.5657227635383606, 0.6470382809638977, 0.9203426837921143, -0.26744431257247925, -0.1467161476612091, -0.9637048840522766, -0.28463175892829895,...
def _ _ init _ _ ( self, protocol, confradio ) : self. spsym = spsym = confradio ['samplespersym'] # samples per symbol wavephase = np. ones ( spsym ) / spsym * np. pi # # prepare the lut bw = 1 # for gaussian filter - - default gain = 1 # filter gain, unity ntaps = 4 * spsym # span 4 symbols gausfilt = gaussianfilter ...
[ -0.1053941622376442, 0.12846407294273376, 0.9389020204544067, -0.19819512963294983, -0.5029414296150208, -0.31844228506088257, 0.6168071627616882, 0.26342251896858215, 0.23554767668247223, -0.0077231707982718945, 0.010500608943402767, 0.2287493795156479, -0.11310452222824097, 0.43587517738...
def handle _ invalid _ usage ( error ) : response = jsonify ( error. to _ dict ( ) ) response. status _ code = error. status _ code return response
[ -0.9283520579338074, -1.1428710222244263, 0.6963868141174316, 0.2993186116218567, -0.6916950345039368, -1.0496244430541992, -0.3705379068851471, 0.7779671549797058, 0.6781818270683289, 0.3207875192165375, 0.09019328653812408, -0.19473707675933838, -0.16235476732254028, -0.21136675775051117...
def read _ value ( self, typdesc ) : try : prefix = self. _ read _ int ( ) except unexpectedeoferror : raise eoferror type = prefix & 0xf tag = prefix > > 4 # if the lsb of the wiretype is 1, it is length - delimited. # if not, it is a primitive type with known size. if type & 0x01 : length = self. _ read _ int ( ) if ...
[ -0.24033766984939575, -0.2162494957447052, 0.9531848430633545, -0.5712925791740417, -0.12742333114147186, -0.5827694535255432, -0.06370348483324051, -0.9142764806747437, -0.2734317481517792, 0.00426145177334547, 0.39882948994636536, 0.8702178597450256, -0.5050849318504333, 0.42288032174110...
def load ( * args ) : return _ snap. tbpgraph _ load ( * args )
[ -0.5060169696807861, 1.280556559562683, 0.5061044692993164, -0.43344324827194214, -0.024844497442245483, 0.3507978916168213, 0.829760730266571, -0.6829931735992432, -0.8436164259910583, 1.1063506603240967, -0.9169930815696716, -0.4932858645915985, -1.2555819749832153, -0.9363048076629639, ...
def ordering _ sampler ( self ) : logger. debug ( '.') self. _ inv _ count _ stat = np. zeros ( self. _ k - 1 ) bg _ total = 0 for video _ idx, video in enumerate ( self. _ videos ) : video. iter = self. iter video. ordering _ sampler ( mallow _ model = self. _ mallow ) self. _ inv _ count _ stat + = video. inv _ count...
[ -0.39766424894332886, -0.1944073736667633, 0.7582749724388123, 0.4579068422317505, 0.10235022753477097, -0.14259225130081177, 1.0108040571212769, -0.46041175723075867, -0.11563335359096527, 0.7373551726341248, 0.0881628468632698, 0.23492158949375153, 0.035911064594984055, 1.457512974739074...
def trunc ( self, * args ) : return _ snap. pneanetv _ trunc ( self, * args )
[ -0.23861491680145264, 0.7480327486991882, 0.47959136962890625, -0.10545308887958527, 0.8493808507919312, 1.0795437097549438, 0.0791589543223381, -0.5724959373474121, -0.4051007330417633, -0.5199379920959473, -0.10872456431388855, 0.3406340777873993, 0.6142008304595947, 0.4006868302822113, ...
def getstatechangeevent ( self ) : if self. _ event is none : self. _ event = asyncio. event ( ) return self. _ event
[ 0.14932815730571747, 0.4838322103023529, 0.3925284147262573, -0.21387478709220886, -0.07057005912065506, -0.28684306144714355, -0.0166399497538805, -0.016402188688516617, 0.14624227583408356, -0.4690626859664917, -0.23998582363128662, 1.0820833444595337, 0.2459387630224228, -0.260303348302...
def test _ run _ summarize _ taxa _ through _ plots ( self ) : run _ summarize _ taxa _ through _ plots ( self. test _ data ['biom'] [ 0 ], self. test _ data ['map'] [ 0 ], self. test _ out, mapping _ cat = none, sort = false, command _ handler = call _ commands _ serially, params = self. params, qiime _ config = self....
[ 0.708005428314209, 0.29424816370010376, 0.6695969700813293, 0.1348181962966919, 0.05056392773985863, 0.9345895648002625, 1.3238192796707153, -0.14270009100437164, -0.14619922637939453, -0.4034081995487213, 0.03931742161512375, -0.15732409060001373, 0.1579999178647995, 0.1251707524061203, ...
def plot _ predict _ series ( sim _ names, ref _ sim, fname = none ) : print'predict series : ', ref _ sim, sim _ names # settings fig _ sz = ( 10, 5 ) xlbl ='metric'ylbl ='' axis _ pad _ x = 0. 4 miny = 0. 0 maxy = 1. 0 bar _ x = [ - 0. 1, 0. 1 ] bar _ width = 0. 15 bar _ w _ col ='r'bar _ b _ col ='g'mrk _ sz = 7 mea...
[ 0.5880849957466125, 0.3472037613391876, 0.8301685452461243, -0.35692888498306274, -0.49651944637298584, 0.4631350636482239, 1.1107118129730225, -0.3845173716545105, -0.2807900309562683, 0.572528064250946, 0.7781278491020203, 1.0348478555679321, 0.13212653994560242, 0.7082732319831848, 0....
def max _ avail _ temp ( self ) - > float : return self. _ vehicle _ data. get ( " climate _ state ", { } ). get ( " max _ avail _ temp " )
[ 0.203550785779953, -0.6311062574386597, 0.18467330932617188, -0.1604015976190567, -0.07735508680343628, 0.6594435572624207, -0.7876514196395874, 0.8784683346748352, 0.1883535534143448, 0.9581686854362488, -0.413766473531723, -0.6008784174919128, 0.1870264858007431, 0.22044885158538818, 0...
def _ _ init _ _ ( self ) : self. word _ list = word _ list. words self. max _ index = len ( self. word _ list ) - 1
[ 0.11224053800106049, 0.05682653561234474, 0.19110651314258575, -0.1606779396533966, 0.2528960406780243, -0.1746830940246582, -0.27244481444358826, 1.9360647201538086, 0.13774093985557556, 0.3763144016265869, -0.9375145435333252, 0.2486705780029297, -0.31593000888824463, 1.152327537536621, ...
def countwords ( * args ) : return _ snap. tstrutil _ countwords ( * args )
[ -0.3162897825241089, 0.8099656105041504, 0.4112897515296936, -0.3107651472091675, 0.6054990291595459, 0.43961501121520996, 1.33642578125, 0.08363901078701019, -0.9807568192481995, 0.43225306272506714, -0.6919471621513367, -0.32851555943489075, 0.3058091104030609, 0.8989750742912292, -0.1...
def _ _ eq _ _ ( self, other : any ) - > bool : return self is other or ( isinstance ( other, graphqlnonnull ) and self. gql _ type = = other. gql _ type )
[ 0.6230981945991516, -0.6737374067306519, 0.360830157995224, 0.4211745858192444, 0.6528438925743103, -0.2910502552986145, -0.26320821046829224, -1.5720083713531494, 1.191793441772461, 0.16884057223796844, -0.8074919581413269, 0.6906318664550781, -0.32877883315086365, 0.5067030191421509, -...
def getcrossnetbyname ( self, * args ) : return _ snap. pmmnet _ getcrossnetbyname ( self, * args )
[ 0.27548718452453613, 0.5497866272926331, 0.5357227921485901, 1.4075965881347656, -0.199916809797287, -0.7279723882675171, 0.09658917039632797, -0.9481310844421387, -0.06602594256401062, -0.11668490618467331, -0.9466439485549927, -0.8414766788482666, -2.0434303283691406, 1.1609163284301758,...
def parse _ text ( val ) : return val. replace ( " \ n ", " " ). strip ( )
[ 0.8719479441642761, -0.3755166232585907, 0.36885085701942444, -0.5845490097999573, -1.425342321395874, -0.12782663106918335, -1.3471611738204956, 0.24288097023963928, 0.6514773964881897, 0.029491152614355087, -0.2603479027748108, -0.057148419320583344, 0.2528655230998993, -0.10319053381681...
def _ _ build _ query ( self, users : str ) - > none : self. _ _ query = {'ids': users, " user. fields " : " id, name, username, location, entities, " " public _ metrics " }
[ -0.30352312326431274, 0.26316195726394653, -0.06088600307703018, -0.36261364817619324, -0.3460250198841095, 0.5732237100601196, 0.017210541293025017, 0.2867307960987091, -0.7469999194145203, 0.023830313235521317, 0.3613876700401306, -0.17017659544944763, -0.25148871541023254, -0.0045913867...
def test _ sla _ put _ sla ( self ) : pass
[ -0.12221720069646835, -0.3994751572608948, 0.20458176732063293, -0.4794110953807831, 0.1371133178472519, 0.43324196338653564, 1.3465499877929688, 0.2960842549800873, 1.3103680610656738, 0.0632636547088623, -0.7431727051734924, 0.6106993556022644, -1.0938416719436646, -0.24230284988880157, ...
def _ _ init _ _ ( self, path, packet ) : self. expires _ at = time. time ( ) + path _ setup _ time self. path = path self. first _ switch = path [ 0 ] [ 0 ]. dpid self. xids = set ( ) self. packet = packet if len ( waiting _ paths ) > 1000 : waitingpath. expire _ waiting _ paths ( )
[ -0.7154620885848999, 0.5159603357315063, 0.45625269412994385, 0.21861982345581055, -0.1738007813692093, -0.5903504490852356, -0.6571384072303772, 0.8999642133712769, -0.05254165083169937, 0.04176397994160652, -0.24868373572826385, -0.797141969203949, 0.00968385860323906, -0.122908279299736...
def tch _ getnum ( * args ) : return _ snap. tch _ getnum ( * args )
[ 0.6149638891220093, 0.5273465514183044, 0.2945418357849121, 0.5778353214263916, 1.2643884420394897, -0.5402873158454895, 1.122918963432312, -0.4189801514148712, -0.9304907321929932, -0.256434828042984, -1.0935224294662476, -0.39403894543647766, 0.5237331986427307, -0.528380274772644, 0.7...
async def handle _ edit _ command ( self, message : message ) : target, args = await self. _ get _ target _ message _ and _ args ( message ) if target is none : print ( " edit requested but no proxied message found within 5 messages! ", file = sys. stderr ) return new _ content = args try : await target. edit ( content...
[ -0.36707058548927307, 0.12241650372743607, 0.6597316265106201, -0.5868094563484192, 0.8066489100456238, -0.6006909608840942, 0.9283877611160278, -0.24876613914966583, -0.7576271295547485, -0.1514238715171814, 1.1316468715667725, 0.6078191995620728, -0.7441852688789368, 0.13828496634960175,...
def compare _ to ( self, other _ bundle ) : residuals = [ ] for cama, camb in zip ( self. cameras, other _ bundle. cameras ) : if cama. initialized ( ) and camb. initialized ( ) : xa = cama. location ( ) xb = camb. location ( ) residuals. append ( np. sqrt ( np. sum ( np. square ( xb - xa ) ) ) ) return np. array ( res...
[ -0.05467907711863518, -0.997309148311615, 0.8315119743347168, 0.1456376165151596, 0.2671980857849121, -0.3148460388183594, 0.3485691249370575, -0.8393003940582275, 1.249525547027588, 0.7474544048309326, -0.8594261407852173, -0.4967705011367798, -1.068320631980896, 0.9628308415412903, -0....
def prompt ( self, player, start = 0, string = " " ) : os. system ('cls') print string self. show ( start ) raw _ input ( " \ nit's your turn now, % s! hit enter to continue. " % player. name ) os. system ('cls')
[ -0.499053955078125, -0.8645285964012146, 0.6286116242408752, 0.31469810009002686, -0.3635229766368866, 0.5579452514648438, 1.2002544403076172, -0.7634701728820801, -0.15309086441993713, -0.012904570437967777, -0.38700807094573975, 1.3788808584213257, -0.3179285228252411, -1.120134115219116...
def load _ settings ( ) : settings. load ( ) logging. getlogger ( ). setlevel ( logging. debug if settings ['debug _ logging'] else logging. info )
[ -0.11616364866495132, 0.36660924553871155, 0.2917785942554474, 0.22379784286022186, 0.6979583501815796, -0.8919857740402222, -0.6468840837478638, -1.02498459815979, -0.28910747170448303, 0.39426782727241516, -0.41339942812919617, -0.13329195976257324, -0.06286847591400146, 0.87192755937576...
def test _ template _ field ( self ) : field = omniformemailconfirmationhandler. _ meta. get _ field ('template') self. assertisinstance ( field, models. textfield ) self. assertfalse ( field. blank ) self. assertfalse ( field. null )
[ 0.3363974988460541, 0.7980952262878418, 0.3194657564163208, -0.49345964193344116, 0.09532146155834198, 0.05310866981744766, -0.5529006719589233, 0.8998365998268127, 0.08450061082839966, -0.19082064926624298, -0.9448605179786682, -0.7162642478942871, -0.10079729557037354, 0.3956638872623443...
def ibm _ hmc _ get _ all ( context ) : return impl. ibm _ hmc _ get _ all ( context )
[ 0.013125394470989704, -0.31681767106056213, 0.5423746109008789, 0.9443439245223999, 0.32851243019104004, -0.5839399695396423, -0.15295565128326416, -0.9212774634361267, 0.19663245975971222, -0.6122575998306274, 0.17182326316833496, 1.0783843994140625, -0.6020440459251404, 0.943247497081756...
def test _ atomic _ qname _ enumeration _ nistxml _ sv _ iv _ atomic _ qname _ enumeration _ 1 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - enumeration - 1. xsd ", instance = " nistdata / atomic / qn...
[ -0.5812503099441528, -1.225662350654602, 0.46980395913124084, 0.2159886360168457, -0.4953363537788391, 0.1460840255022049, -0.09848800301551819, -0.6577985882759094, 0.02522287145256996, 0.7225205898284912, -0.25873804092407227, 0.12230371683835983, 0.3170231282711029, 0.0969390869140625, ...
def generate _ scalyr _ client _ status ( self ) : # type : ( ) - > scalyrclientsessionstatus pass
[ -0.03399725258350372, -1.0149177312850952, 0.1961149126291275, -0.2429099828004837, -0.003289001528173685, 0.7791026830673218, 0.47898566722869873, -0.1901131123304367, 0.28441154956817627, -0.551328718662262, -0.9088820815086365, 0.45339491963386536, 0.518930196762085, -0.2054707556962967...
def listen _ speech _ from _ mic ( recognizer : speech _ recognition. recognizer, microphone : speech _ recognition. microphone ) - > speech _ recognition. audiodata : # check that recognizer and microphone arguments are appropriate type if not isinstance ( recognizer, speech _ recognition. recognizer ) : raise typeerr...
[ 0.5815460681915283, -0.7785102725028992, 0.32501983642578125, 0.4864386022090912, -0.9220946431159973, 0.30049729347229004, -1.144331932067871, -0.008453365415334702, -0.3278103470802307, 0.43274563550949097, 0.020347677171230316, 0.5972484946250916, -0.4353236258029938, 0.3553126454353332...
def calceffdiam ( * args ) : return _ snap. calceffdiam ( * args )
[ -0.18842564523220062, -0.013783440925180912, 0.32814180850982666, 0.9320955276489258, 0.19528920948505402, 0.24510246515274048, 1.3125065565109253, 0.009047902189195156, 0.16433368623256683, -0.4433498680591583, -0.44844239950180054, -0.821873128414154, -0.022335786372423172, 1.39806509017...
def test _ form _ widgets ( self ) : self. assertin ('django. forms. widgets. timeinput ', omnitimefield. form _ widgets )
[ 0.07400825619697571, 0.4859704077243805, 0.1824003905057907, 0.046283602714538574, 0.542665958404541, 0.7424896359443665, -0.3261496424674988, 0.5156130194664001, 0.24291443824768066, -0.42536935210227966, -1.1920076608657837, -0.880876898765564, -0.3655467927455902, 1.3503996133804321, ...
def addunique ( self, * args ) : return _ snap. tstrintprv _ addunique ( self, * args )
[ -1.032214641571045, 0.26128554344177246, 0.39054644107818604, -1.0280674695968628, 0.24612337350845337, -0.04338008165359497, -0.012870479375123978, 1.0332127809524536, -1.3805136680603027, -0.03835335001349449, -0.17780989408493042, 0.29083096981048584, -0.8339823484420776, -0.62716913223...
def get _ centred _ coords ( length, window _ size ) : assert 2 * window _ size < = length,'invalid window size'start = ( length / / 2 ) - window _ size end = start + 2 * window _ size return start, end
[ 0.3053719699382782, -1.2378089427947998, 0.46060916781425476, -0.058710020035505295, -0.3188806176185608, -0.18614815175533295, 0.6970130801200867, -0.042604416608810425, 0.7646465301513672, 0.2544853985309601, -0.652088463306427, 0.9154214262962341, -1.3417149782180786, 0.3501725792884826...
async def _ get _ target _ message _ and _ args ( self, message : message, command _ terminator ='' ) : # if the command replied to a message, then that's the target. if message. reference is not none : target = message. reference. resolved # and the rest of the arguments to the command are the message content after th...
[ -0.11768399178981781, 0.26201263070106506, 0.7738066911697388, -0.839638888835907, 0.32195788621902466, -1.1550650596618652, 0.031052088364958763, -0.8635455965995789, -0.21338339149951935, -0.8744692206382751, 1.0570006370544434, 0.6918034553527832, -1.0111862421035767, 0.6374783515930176...
def retrieve ( self ) : self. connect ( ) if log : log. info ('retrieving % s...'% self. masked _ url ) try : return self. proxy. document _ src ( ) except : exc _ type, exc, tb = sys. exc _ info ( ) if log : message = str ( exc ). replace ( self. url, self. masked _ url ) log. error ('failed to download content at % s...
[ 0.1093047633767128, 0.3249512016773224, 0.5435202121734619, 0.007064801175147295, 0.08066268265247345, -0.8092175722122192, 0.6517781615257263, -0.5063949227333069, 0.05924266204237938, -0.5707424879074097, 0.6156993508338928, -0.0036728037521243095, -1.32430899143219, -0.41739851236343384...
def create _ wallet ( self, line ) : if self. args. account _ file : if os. path. exists ( self. args. account _ file ) : logger. error ( " wallet file exists, could not overwrite " ) return print ( " generating new wallet... " ) seed = crypto. random _ bytes ( 32 ) wl = bip32. wallet. from _ master _ secret ( seed ) s...
[ 0.287983775138855, 0.19907301664352417, 0.9202867746353149, -0.07775474339723587, 0.7895509600639343, -0.05566157400608063, 0.3773888349533081, -0.45168542861938477, -0.21974511444568634, 0.23481479287147522, -0.31623703241348267, 0.756665050983429, -0.17319084703922272, 0.3985444903373718...
def make _ model ( ) : global model, callbacks if model! = none : return inputs = keras. layers. input ( shape = ( 2, 3, 3 ) ) output = flatten ( ) ( inputs ) output = dense ( 512, kernel _ initializer ='glorot _ uniform ', activation ='relu') ( output ) output = dense ( 512, kernel _ initializer ='glorot _ uniform ', ...
[ 0.08991970866918564, 0.15176714956760406, 0.6264272928237915, 0.4932326674461365, -0.5155147910118103, 0.30812734365463257, 0.529965341091156, 0.060866132378578186, 0.9661872982978821, -0.25565123558044434, -0.7046303749084473, 0.039455436170101166, 0.3262893855571747, 0.5363056659698486, ...
def get _ group _ by _ group _ id ( self, group _ id ) : group _ id _ base64 = base64. b64encode ( group _ id ). decode ('ascii') groups = self. m [ " groups " ] for g in groups : if ( g [ " group _ id " ] = = group _ id _ base64 ) : return g return none
[ 0.20291918516159058, -0.05747990310192108, -0.007491490337997675, 0.24213923513889313, 0.009664257988333702, -0.9895780682563782, -0.13458901643753052, -0.8109443187713623, -0.1256536841392517, 0.37929514050483704, 0.8025505542755127, 0.7214935421943665, -0.6653515100479126, 0.204723313450...
def clr ( self, dodel = false ) : return _ snap. tbigstrpool _ clr ( self, dodel )
[ -0.11318428814411163, 0.5390795469284058, 0.11541259288787842, -0.27680328488349915, 0.13025537133216858, 1.4365252256393433, 1.5334248542785645, -0.31398501992225647, -0.9794564843177795, -0.31335514783859253, 0.15391013026237488, 0.15865977108478546, -1.6079351902008057, 0.55420327186584...
def tnegraph _ load ( * args ) : return _ snap. tnegraph _ load ( * args )
[ -1.3384391069412231, 1.2086701393127441, 0.24942800402641296, -0.8396782279014587, -0.7489141225814819, 0.021912336349487305, 0.5048046708106995, -0.9195055365562439, -0.3817189335823059, 1.7985305786132812, -1.3334414958953857, -1.3406040668487549, -0.4644449055194855, -0.7689722776412964...
def importruns ( ) : for each in cablerunsimport : path = folder + each cablerun. import _ cablerun _ data ( db, path )
[ 0.44960927963256836, 0.2028249353170395, 0.5974984765052795, 0.4571405351161957, 0.5490689873695374, 0.8846554756164551, 0.620694637298584, -0.7412494421005249, -0.31437239050865173, 0.40234997868537903, -0.683946967124939, 0.2683149576187134, -0.4454433023929596, 0.5830742716789246, -0....
def run ( ctx, user, function, wamr = false, data = none, sgx = false ) : args = [ user, function ] if data : args. append ( data ) if sgx : args. append ( " - - sgx " ) wasm _ vm = " wamr " if wamr else " wavm " extra _ env = { " wasm _ vm " : wasm _ vm } if ( wasm _ vm! = " wamr " ) and sgx : print ( " can't run sgx ...
[ 0.42643702030181885, 1.16614830493927, 0.6246383190155029, 0.7636401653289795, -0.6805646419525146, 0.6149906516075134, -0.41461095213890076, 0.564472496509552, 0.5920163989067078, -0.3142975866794586, -0.0940750315785408, 1.0006539821624756, -0.5102814435958862, 0.300078421831131, 0.326...
def _ get _ empoloyees ( db _ group, key _ name ='name') - > list : try : empoloyees _ by _ key = ( [ employee [ " name " ] for project in db _ group [ " data " ] [ " projects " ] for employee in project [ " employees " ] ] ) return empoloyees _ by _ key except : attributeerror
[ -0.9785388112068176, 0.28704479336738586, 0.2208177000284195, -0.4134635329246521, -0.5862300395965576, 0.35078537464141846, -1.2962092161178589, 0.3690734803676605, -0.883371889591217, 1.8827756643295288, 0.03338123857975006, -0.31590428948402405, -0.11172421276569366, 0.43056729435920715...
def _ onmodeladded ( self, dmgr, model _ name ) : if dmgr and model _ name : # self. updateallmenus ( ) update _ all = true if dmgr. getdatamodelcount ( ) > 1 and'self'not in self. modelsubmenus : dmodel = dmgr. getdatamodel ( model _ name ) ds _ menu = datamodelmenu ( self. state, self. binder, data _ model = dmodel, ...
[ -0.4689423739910126, -0.15057465434074402, 0.9337747693061829, 0.022088414058089256, -0.5907849073410034, 0.40214183926582336, -0.4750787615776062, 0.6090543866157532, 0.11488263309001923, -0.28504234552383423, -0.9396991729736328, 0.007163845468312502, 0.578097403049469, 1.759834408760070...
def create _ signature ( request, bank _ name, auth = false ) : digest = request _ digest ( request, bank _ name, auth = auth ) key _ binary = get _ pkey ( bank _ name ). sign ( sha. new ( digest ) ) return b64encode ( key _ binary )
[ -0.5992180109024048, 0.191877081990242, 0.45929884910583496, 0.8516247272491455, 0.7083861827850342, 0.14302173256874084, -0.774624228477478, -0.08388600498437881, -0.4863702058792114, 0.3039843738079071, -0.3205293118953705, -1.1438816785812378, -0.7835912108421326, 0.33774933218955994, ...
def isstrattre ( self, * args ) : return _ snap. tneanet _ isstrattre ( self, * args )
[ -0.29095008969306946, 0.39399397373199463, 0.4005979895591736, -0.5941846966743469, 1.3055131435394287, -1.0156089067459106, 0.0008915737271308899, -1.0571682453155518, 0.18158268928527832, 0.1346355825662613, -0.14655235409736633, -0.9253782629966736, -1.330711841583252, -0.05173886567354...
def element _ should _ not _ be _ invisible ( self, name ) : selector = self. wait _ for _ element _ found ( name,'button / input / a / img ','this') self. element _ should _ be _ visible ( selector )
[ -0.32713618874549866, 0.33414438366889954, 0.5230386853218079, 0.6501414179801941, -0.08712740242481232, 1.1487833261489868, -0.0345153845846653, -0.13321472704410553, -0.029459303244948387, 0.5472432374954224, -0.9879449009895325, -0.6864875555038452, -0.01738014817237854, 0.8963585495948...
def _ create _ examples ( self, lines, set _ type ) : examples = [ ] for ( i, line ) in enumerate ( lines ) : if i = = 0 : continue guid = " % s - % s " % ( set _ type, line [ 0 ] ) text _ a = line [ 1 ] text _ b = line [ 2 ] label = line [ - 1 ] examples. append ( inputexample ( guid = guid, text _ a = text _ a, text ...
[ 0.02829984948039055, -0.06354004889726639, 0.28549033403396606, -0.22077296674251556, 0.18494710326194763, 0.16629089415073395, -0.7713559865951538, -0.4644831120967865, -0.42990273237228394, 0.5419092178344727, 0.12079355865716934, 0.04220808297395706, -0.28344595432281494, 0.424453765153...
def listify _ output ( fun : callable ) - > callable : @ functools. wraps ( fun ) def listify ( * args, * * kwargs ) : args = list ( args ) # makes concatenation easier later # handle cases where a list is required output = none if len ( args ) > 1 : q = args [ 2 ] # joint states are always given at index 2 # check if ...
[ -0.2717864215373993, -0.11763759702444077, 0.7980433106422424, -0.07869768142700195, 0.1352415382862091, -0.8904868364334106, -0.34887024760246277, -0.13072115182876587, 0.37872225046157837, 0.1642463505268097, -0.07999749481678009, -0.39806893467903137, 0.5136893391609192, 0.4477567672729...
def webdriver ( self ) : options = webdriver. chromeoptions ( ) # configure options for chrome. options. add _ extension ( self. extension _ path ) # add extension. options. add _ argument ('- - lang = en') # set webdriver language to english. # options. add _ argument ( " headless " ) # headless chromedriver. options....
[ 0.2618180215358734, -0.6285095810890198, 0.5077341198921204, 0.4592338800430298, 0.2664366364479065, 0.08662746846675873, -0.28278011083602905, -0.12466329336166382, 0.4943823218345642, -0.06492838263511658, 0.1589621603488922, 0.696860671043396, -0.946498692035675, 0.5604063272476196, 0...
def extract _ data ( event = none ) : dat = image _. decrypt _ image ( img _ path = ex _ file ) suc _ lb = label ( ex _ win, text ='hidden message is : ', font = cas, fg ='# f50c81 ', bg ='# edaa82'). place ( x = 6, y = 130 ) sh = st. scrolledtext ( ex _ win, width = 60, height = 7, font = cas ) sh. place ( x = 8, y = ...
[ 0.5473510026931763, 1.08487868309021, 0.8770347833633423, -0.6868053078651428, -0.473219633102417, 0.3583168089389801, 0.6605068445205688, 0.33958011865615845, 0.22382432222366333, 0.11815094947814941, -0.9203758835792542, 0.2710723578929901, -0.38937172293663025, 0.8748918771743774, 0.6...
def addfltattrdatn ( self, * args ) : return _ snap. pneanetmp _ addfltattrdatn ( self, * args )
[ -0.32753509283065796, 0.3212932050228119, 0.4690295457839966, -0.7039050459861755, 0.7508145570755005, 0.17018233239650726, 0.032230194658041, 0.0788649320602417, -0.3387717604637146, -1.8999391794204712, -0.6700010299682617, -0.44046974182128906, 0.7673379182815552, 0.8739612102508545, ...
def loadconnliststr _ pngraph ( * args ) : return _ snap. loadconnliststr _ pngraph ( * args )
[ -0.7155894041061401, 0.5151761174201965, 0.06504461169242859, 0.1206512451171875, -0.9755610227584839, -0.4560372531414032, -0.7335295081138611, -0.7177044749259949, 0.030367286875844002, 0.06799906492233276, -0.2495928406715393, 0.04502211511135101, -0.48414096236228943, -0.24087031185626...
def update _ storage _ account ( self ) : # switch the active key for the storage account print ('updating storage account active key') self. keyvault _ sp _ client. update _ storage _ account ( vault _ base _ url = self. sample _ vault _ url, storage _ account _ name = self. config. storage _ account _ name, active _ ...
[ -0.24937328696250916, -1.2369384765625, 0.3653850555419922, 0.9048682451248169, -0.19571849703788757, -0.07630383968353271, 0.7145081758499146, -0.006589325610548258, -0.0905890017747879, 0.5046544075012207, -0.5938045382499695, 0.6564580798149109, -0.5072973370552063, -0.6412730813026428,...
def blocks ( self ) : if self. _ blocks is none : self. _ blocks = container ( " data ", self, block ) return self. _ blocks
[ 0.36341366171836853, 0.4032415449619293, 0.44082459807395935, -0.27595385909080505, 0.4658266305923462, -0.17560771107673645, -0.010407987982034683, -1.339775800704956, 0.28464996814727783, -1.574677586555481, -0.8895315527915955, 0.4519304633140564, -0.3230326175689697, 0.5095142126083374...
def _ check _ for _ parent _ attribute ( attribute _ list ) : # make sure all attributes are unique, so [ outputx, outputx, outputz ] doesn't match to output ) log. debug ( " _ check _ for _ parent _ attribute for { } ". format ( attribute _ list ) ) if len ( set ( attribute _ list ) )! = len ( attribute _ list ) : ret...
[ 0.021937381476163864, -0.6979772448539734, 0.6972375512123108, 0.15471860766410828, -0.5804266929626465, -0.7365158200263977, 0.8140513896942139, -0.3453749716281891, -0.004202700685709715, -0.03245957940816879, 0.8184146285057068, -0.3081846833229065, -0.9865759015083313, 0.08304753154516...
def gengraph ( self, * args ) : return _ snap. tffggen _ gengraph ( self, * args )
[ -1.5228540897369385, 1.8315471410751343, 0.23772181570529938, 0.3658309876918793, 0.6337489485740662, 0.0726940855383873, 0.3512571454048157, 0.45132574439048767, -1.5035218000411987, -0.3337230682373047, -0.7827532291412354, -0.777573823928833, -0.3872222304344177, 0.8648558259010315, 0...
def binary _ search ( data, target, low, high ) : if low > high : return false # interval is empty ; no match else : mid = ( low + high ) / / 2 if target = = data [ mid ] : # found a match return true elif target < data [ mid ] : # recur on the portion left of the middle return binary _ search ( data, target, low, mid ...
[ -0.33204612135887146, -0.06952504813671112, 0.6923589110374451, -0.2864854335784912, -0.16387520730495453, -0.06164419278502464, -0.5199831128120422, -0.7126597762107849, 0.009026794694364071, -0.45573702454566956, -0.12797138094902039, 0.46816569566726685, -0.955869197845459, -0.485130846...
def _ identify _ any _ value _ among _ keys ( tags _ dict, keys, values, false _ values = none, true _ value = true, false _ value = false, none _ value = none, keys _ regex = false, * * unused ) : findings = [ ] for key, value in tags _ dict. items ( ) : if _ key _ in _ set ( key, keys, keys _ regex = keys _ regex ) :...
[ -0.13833294808864594, -0.2713938057422638, 0.5162453651428223, -0.5915138721466064, 0.1308683604001999, -0.5943928956985474, -1.031793475151062, 0.2921096980571747, -1.6553926467895508, -0.09572111815214157, 0.329779714345932, -0.018839335069060326, -0.2639143764972687, 0.8981913924217224,...
def tgstat _ load ( * args ) : return _ snap. tgstat _ load ( * args )
[ -0.22619491815567017, 0.5795225501060486, 0.1753992885351181, -0.6907538771629333, -0.5895925760269165, 1.0015144348144531, 0.6056797504425049, -1.1232671737670898, -1.1911234855651855, 0.6114105582237244, -0.5992884039878845, -1.042624592781067, -0.09919635951519012, -0.09412398934364319,...
def _ _ eq _ _ ( self, * args ) : return _ snap. tintinthhi _ _ _ eq _ _ ( self, * args )
[ -0.37661921977996826, -0.8137236833572388, 0.05939769744873047, -0.036580849438905716, 0.8270529508590698, 0.25365743041038513, 0.2679591178894043, -0.34062132239341736, -1.1225628852844238, 0.18470396101474762, -1.4679571390151978, -0.08145546168088913, -1.0365495681762695, 0.103854201734...
def geti ( self, * args ) : return _ snap. tintstrh _ geti ( self, * args )
[ 0.6736734509468079, -0.6957718133926392, 0.21744924783706665, 1.2619000673294067, 0.18615755438804626, -0.2849462330341339, 0.6892532110214233, -0.5419005155563354, -1.2429466247558594, -0.36190617084503174, -0.8405267000198364, -0.4480324983596802, -0.7002559900283813, -1.000601053237915,...
def lastlast ( self, * args ) : return _ snap. tcncomv _ lastlast ( self, * args )
[ 0.4355993866920471, 0.895484209060669, 0.35819947719573975, -1.3158100843429565, 1.4331411123275757, -0.04534384235739708, 0.47766607999801636, -0.05646548792719841, 0.14858479797840118, -0.07569380104541779, -0.2221253663301468, -0.9541895389556885, -1.2507035732269287, 0.6159334778785706...
def parse _ vector _ const ( lexer, module, token, type _ id ) : if type _ id. inst. op _ name! ='optypevector': raise parseerror ('type must be optypevector') elements = [ ] while true : token, tag = lexer. get _ next _ token ( ) elements. append ( get _ scalar _ value ( token, tag, type _ id. inst. operands [ 0 ] ) )...
[ -0.017378179356455803, -0.44602900743484497, 0.6268455386161804, -0.21136732399463654, -0.2066238820552826, -0.23957358300685883, -0.1451130509376526, -0.09982004761695862, -0.2602868974208832, 0.8722630739212036, -0.2909223139286041, 0.41694968938827515, -0.40911975502967834, -0.120625413...
def cntindegnodes _ pungraph ( * args ) : return _ snap. cntindegnodes _ pungraph ( * args )
[ -0.38032668828964233, 1.2493236064910889, -0.10861742496490479, 0.007133558392524719, 0.025452159345149994, -0.4226070046424866, 0.27715834975242615, 0.7718538045883179, -0.13961109519004822, 0.4425239562988281, -1.0752500295639038, -0.5951021909713745, -0.5766557455062866, 0.1667228043079...
def searchch ( self, * args ) : return _ snap. tstr _ searchch ( self, * args )
[ -0.02371497079730034, 0.5678568482398987, 0.34893906116485596, 0.37460950016975403, 0.6119858622550964, 0.47303804755210876, 1.0902183055877686, -0.42710453271865845, -1.372942566871643, -0.456277996301651, -0.6457253694534302, -0.44978898763656616, 0.05217919126152992, 0.14529691636562347...
def ambari _ version ( self, ambari _ version ) : self. _ ambari _ version = ambari _ version
[ 0.2954920530319214, -1.1118403673171997, -0.5516235828399658, 0.7196400165557861, 0.24170750379562378, 1.5815459489822388, 0.5184119939804077, 0.43246185779571533, -0.27912089228630066, 0.7330542206764221, -1.225888729095459, -0.5765232443809509, -0.2820253074169159, 0.28358620405197144, ...
def getrndnid ( self, * args ) : return _ snap. pungraph _ getrndnid ( self, * args )
[ 0.23405137658119202, 0.5158584117889404, 0.47618839144706726, 0.9005807638168335, -0.03305164724588394, 0.18362030386924744, -0.3337155282497406, 0.2507625222206116, -0.16536743938922882, -0.6670990586280823, -1.0953880548477173, 0.12961332499980927, -1.1580926179885864, 0.5743041634559631...
def run _ lookup ( cur, sql, params = none, * * kwargs ) : params = params or kwargs sql = querybuilder ( sql, params ). get _ sql ( 0 ) cur. execute ( sql ) row = cur. fetchone ( ) if row is none : return none return row [ 0 ]
[ 0.3473566770553589, -0.18359097838401794, 0.6901203393936157, 0.393750935792923, -0.5614002346992493, -0.4916646480560303, -0.6911535859107971, -0.11302776634693146, 0.31615695357322693, 0.061573415994644165, 0.9722554683685303, 0.13394221663475037, -0.21345052123069763, -0.281814694404602...
def check _ internet _ on ( secrets _ file _ path ) : while true : if internet _ on ( ) is true and not os. path. exists ( secrets _ file _ path ) : break else : print ( " turn on your internet and unplug your usb to continue... " ) time. sleep ( 10 ) return true
[ 0.059685248881578445, -0.7418073415756226, 0.44056326150894165, 0.9150075912475586, 0.5498508810997009, 0.9630824327468872, -0.3524482548236847, 0.8578624129295349, -0.7546508312225342, 0.4102807343006134, -0.617608904838562, -0.47199583053588867, -1.1792826652526855, -0.45356300473213196,...
def clamp ( x, min = float ( " - inf " ), max = float ( " inf " ) ) : pass
[ 0.350907564163208, -0.023188944905996323, 0.46334484219551086, 1.089562177658081, -1.1485915184020996, 0.5378220081329346, -1.5822960138320923, -0.5803360342979431, -0.3097575604915619, -0.05317673087120056, -0.9306780099868774, 0.6100216507911682, -0.17138777673244476, -0.8429493308067322...
def guess _ categories ( msg ) : return self. _ categoryclassifier. predictproba ( msg )
[ -0.715495765209198, 0.3546791970729828, 0.24680332839488983, 0.10968375205993652, 0.2609020471572876, -0.28564146161079407, 0.6409317851066589, 0.06479855626821518, -0.4682234823703766, -1.2492163181304932, 0.4323391020298004, -0.10232023149728775, 0.1027536690235138, 1.1499266624450684, ...
def endnaintvi ( self, * args ) : return _ snap. tneanet _ endnaintvi ( self, * args )
[ -0.5867379307746887, 0.21046222746372223, 0.06479915976524353, -0.7948328256607056, 0.3966067135334015, 0.3662372827529907, 0.12889651954174042, -1.1327965259552002, -0.838892936706543, -0.014782283455133438, -0.21393203735351562, -0.8012863397598267, -1.2404439449310303, 0.932283401489257...
def _ set _ rpm ( self, rpm ) : self. _ rpm = rpm # t is the amount of time to stop between signals self. _ t = ( 60. 0 / rpm ) / self. steps _ per _ rev
[ 0.08010838180780411, 0.12899485230445862, 0.36429333686828613, -0.42459121346473694, -0.2542647421360016, 0.28873035311698914, -0.04535423219203949, 0.24007384479045868, -0.5969271063804626, 0.028165681287646294, -0.8210862278938293, -0.690723717212677, -0.5134283900260925, 0.1270161420106...
def send _ ned _ velocity ( x, y, z ) : msg = vehicle. message _ factory. set _ position _ target _ local _ ned _ encode ( 0, 0, 0, mavutil. mavlink. mav _ frame _ body _ offset _ ned, 0b0000111111000111, 0, 0, 0, x, y, z, 0, 0, 0, 0, 0 ) vehicle. send _ mavlink ( msg )
[ -0.0700630322098732, -0.4717155694961548, 0.54869544506073, -0.5184327363967896, 0.7043100595474243, 0.44109436869621277, -1.0221328735351562, -0.28992900252342224, 0.18481384217739105, 0.21087102591991425, -0.8237183690071106, 0.4401129484176636, -0.6944483518600464, 0.4223495125770569, ...
def selfsimjoinpergroup ( self, * args ) : return _ snap. ttable _ selfsimjoinpergroup ( self, * args )
[ -0.8068030476570129, 0.8434697985649109, 0.44470858573913574, 1.2514238357543945, -1.0660609006881714, -0.21211791038513184, 1.3999425172805786, -0.4820161759853363, -1.013986587524414, -0.0491279661655426, -0.16654948890209198, -2.0558459758758545, -1.266775131225586, 1.1368812322616577, ...
def convert _ to _ dictionary ( input _ data, keys ) : if isinstance ( input _ data, dict ) : return input _ data elif isinstance ( input _ data, list ) : # creating a dictionary from the list if len ( input _ data )! = len ( keys ) : raise valueerror ( " invalid input length. " ) my _ dict = { } for i in range ( len (...
[ -0.8582311868667603, 0.12712912261486053, 0.3429412245750427, -0.40387481451034546, -0.7541730403900146, -0.47536879777908325, -1.1217927932739258, 0.29463323950767517, -0.21883328258991241, -0.010108419694006443, -0.40844860672950745, 0.49883124232292175, -0.9901894330978394, 0.6601339578...
def test _ tabulate ( self ) : from cogent3. util. table import table _ data = { " human " : " atgcggctcgcggaggccgcgctcgcggag ", " mouse " : " atgcccggcgccaaggcagcgctggcggag ", " opossum " : " atgccagtgaaagtggcggcggtggctgag ", } aln = make _ aligned _ seqs ( data = _ data, moltype = " dna " ) mod = evo _ app. model ( "...
[ 0.9050219058990479, 0.7734801769256592, 0.4325700104236603, -0.7956743836402893, 0.2523217797279358, 0.44020313024520874, -0.5704384446144104, -0.6368521451950073, -0.2756188213825226, -0.38472527265548706, -0.20250490307807922, 0.16450880467891693, 0.5443000793457031, -0.10763881355524063...
def test _ model _ save _ unexpected ( self ) : question. title, question. body = " question title ", " question body " question. user _ id = self. user _ id result _ payload = question. save ( ) self. data ['question _ id'] = result _ payload. get ('question _ id') answer. question _ id = self. data. get ('question _ ...
[ -0.2871392071247101, -0.5301448106765747, 0.4351101815700531, 0.19694721698760986, 0.4509292244911194, 1.1008490324020386, -0.8431760668754578, -0.9094004034996033, -0.2149273306131363, 0.22897376120090485, -1.4265739917755127, -0.5178621411323547, -0.3899898827075958, 0.23530778288841248,...
def getintattrindn ( self, * args ) : return _ snap. pneanetmp _ getintattrindn ( self, * args )
[ -0.8947750926017761, -0.4202846884727478, 0.6415117383003235, 0.7079416513442993, 0.4223179221153259, 0.0006015284452587366, 0.4467434287071228, -0.4425894618034363, -0.7398269176483154, -1.2043251991271973, -0.38431110978126526, -0.3478676676750183, -1.587950587272644, 0.06078733131289482...
def data _ laden _ profiles ( ) : connection = connect ( ) cur = connection. cursor ( ) try : # data is being loaded from de mongo db for profile in profiles. find ( { }, { " _ id ", " buids ", " recommendations ", " previously _ recommended ", " latest _ activity " } ) : if ( len ( profile. keys ( ) ) ) = = 5 : id1 = ...
[ -0.18996396660804749, 0.209360733628273, 0.9011438488960266, 0.04723336920142174, 0.815899670124054, 0.324633926153183, 0.49436983466148376, -0.6419624090194702, -0.5274104475975037, 0.9039973616600037, -0.5705857276916504, -0.03236827999353409, -0.9086476564407349, 0.061309076845645905, ...
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...
def presenttooltip ( self, obj ) : # the tooltip is generally the accessible description. if # the description is not set, present the text that is # spoken when the object receives keyboard focus. # speechresult = brailleresult = none text = " " if obj. description : speechresult = brailleresult = obj. description els...
[ 0.515095591545105, -0.3040635585784912, 0.6520460247993469, -0.27556732296943665, 0.31728747487068176, -0.05217679589986801, 0.016068393364548683, 0.0575123094022274, 0.2637602984905243, 1.0772910118103027, 0.9098151326179504, -0.1397189050912857, 0.1510675698518753, 0.2787656784057617, ...
def load _ vgg ( sess, vgg _ path ) : # todo : implement function # use tf. saved _ model. loader. load to load the model and weights vgg _ tag ='vgg16'vgg _ input _ tensor _ name ='image _ input : 0'vgg _ keep _ prob _ tensor _ name ='keep _ prob : 0'vgg _ layer3 _ out _ tensor _ name ='layer3 _ out : 0'vgg _ layer4 _...
[ 0.3476593494415283, 0.10617932677268982, 0.7597820162773132, 0.21995726227760315, -0.08259527385234833, -0.1807790994644165, 0.3648134171962738, -0.3317194879055023, -0.7626553177833557, 1.0674800872802734, -0.6202772855758667, -0.3598862290382385, 0.33378589153289795, -0.00084260717267170...