text
stringlengths
25
2.19k
embedding
listlengths
768
768
def begin _ deploy _ environment _ action ( self, project _ name : str, environment _ name : str, body : io, user _ id : str = " me ", *, content _ type : str = " application / json ", * * kwargs : any ) - > lropoller [ none ] :
[ -0.4090306758880615, -0.5478281378746033, 0.6106171011924744, 0.14401742815971375, 0.1789172738790512, 0.6844097971916199, 0.27612584829330444, -0.7239627242088318, -0.1346651017665863, 1.1955747604370117, -0.29225683212280273, 1.613783836364746, -0.1972452998161316, 0.67438805103302, -0...
def getei ( self, * args ) : return _ snap. tnegraph _ getei ( self, * args )
[ -0.40734830498695374, 1.6267744302749634, 0.28555044531822205, 0.7101646065711975, 1.5189028978347778, -0.8998808264732361, 1.1213246583938599, -0.4564267098903656, -1.2980177402496338, 0.3719494044780731, -0.8490859270095825, -1.6497735977172852, -0.45485225319862366, -0.30571627616882324...
def set _ archive _ layout _ url ( self, archive _ id ) : url = self. api _ url +'/ v2 / project /'+ self. api _ key +'/ archive /'+ archive _ id +'/ layout'return url
[ -0.33457183837890625, -0.30202746391296387, 0.24555285274982452, -0.8575439453125, -0.09088818728923798, 0.536980926990509, 0.014809059910476208, 0.640800952911377, 0.38008007407188416, -0.3206541836261749, -0.11612644791603088, 0.683664083480835, 0.2808821201324463, 0.16720575094223022, ...
def get _ track _ info ( self, track _ id ) : track _ info _ data = self. _ make _ request ( f " https : / / api. spotify. com / v1 / tracks / { track _ id } " ) if track _ info _ data : track _ info _ json = track _ info _ data. json ( ) name = track _ info _ json [ " album " ] [ " artists " ] [ 0 ] [ " name " ] artis...
[ -0.49109429121017456, -0.31153854727745056, 0.6434516906738281, -0.6156677603721619, -0.15571582317352295, -0.18044398725032806, -1.1353766918182373, -0.568435788154602, -0.9643025994300842, -0.03272510692477226, -1.407379150390625, 0.11137506365776062, 0.1424080729484558, 0.27258345484733...
def turn _ on ( self ) : hub. my _ pages. smartplug. set ( self. _ id,'on') hub. my _ pages. smartplug. wait _ while _ updating ( self. _ id,'on') self. update ( )
[ -0.2567979693412781, -0.9534571170806885, 0.5391432642936707, 0.7863308191299438, 0.5800595879554749, 0.011576652526855469, -1.1866650581359863, 1.8357959985733032, 0.5795938372612, -0.3554791212081909, -1.036313533782959, 0.12577272951602936, -1.0352264642715454, 0.06616996973752975, 0....
def rotate _ counter _ c ( self ) : if not self. can _ rotate _ counter _ c ( ) : return none # exit the function for block in self. tetris _ o : a = block. pos [ 0 ] b = block. pos [ 1 ] block. pos [ 0 ] = b block. pos [ 1 ] = - a
[ 0.6066918969154358, -0.18569126725196838, 0.64115971326828, -0.24779124557971954, 0.21783725917339325, -0.08078902959823608, 1.1216976642608643, -0.7915948629379272, -0.4823935031890869, 0.21060821413993835, -0.33487668633461, -0.3326612710952759, -0.8168891668319702, -0.3155272901058197, ...
def drawtext ( string, location, color, font ) : " " " this is just to display one string quickly, there are other functions to handle more in depth text blocks. " " " # note that this sample takes 4 args because im not importing config, usually color and font are default args. textsurface = font. render ( string, true...
[ 0.8042616844177246, -0.3964161276817322, 0.593562662601471, -0.6142793297767639, -0.5380949378013611, 0.5835345983505249, 0.4337976276874542, 0.14118564128875732, 0.14887258410453796, -0.28565552830696106, -0.1252744346857071, 0.6676157712936401, -0.7066545486450195, 0.01221498567610979, ...
def setupclass ( cls ) : cls. binsize = 10000 with open ( ref _ files [ " 100transcripts _ bed " ] ) as fh : cls. transcripts = list ( bed _ reader ( commentreader ( fh ), return _ type = transcript ) ) with open ( ref _ files [ " 100cds _ bed " ] ) as fh : cls. coding _ regions = list ( bed _ reader ( commentreader ( ...
[ -0.054053790867328644, -0.13152772188186646, 0.6672202348709106, -0.5611264109611511, -0.2106757014989853, 0.19493414461612701, 0.1597684919834137, -0.2666330933570862, -0.33604905009269714, -0.2019577920436859, -0.2287270426750183, 0.15027599036693573, 0.4743344187736511, 0.41992378234863...
def set _ button _ command ( self, deck _ id : str, page : int, button : int, command : str ) - > none : if self. get _ button _ command ( deck _ id, page, button )! = command : self. _ button _ state ( deck _ id, page, button ) [ " command " ] = command self. _ save _ state ( )
[ -0.25114336609840393, -0.63862544298172, 0.4674399197101593, -0.035365667194128036, 1.1185377836227417, 0.17600536346435547, -0.8675438761711121, -0.13907837867736816, 0.680325984954834, -0.11651461571455002, -0.8792834281921387, 0.5988065004348755, 0.5385019183158875, 0.86529541015625, ...
def project ( self, * args ) : return _ snap. ptable _ project ( self, * args )
[ -1.057401418685913, 1.3341618776321411, 0.38803374767303467, 1.5385187864303589, 0.1790807694196701, 0.6173365712165833, 0.7789886593818665, -0.36349350214004517, -1.424782156944275, 0.2880382537841797, 0.01216587983071804, -1.5375174283981323, -0.7779992818832397, -0.12240466475486755, ...
def process _ post ( request, form = none, obj _ to _ update = none ) : log. info ('processing post...') if not form : return none if request. method = ='post': # set post data into the form postdata = request. post. copy ( ) form = form ( postdata ) if form. is _ valid ( ) : log. info ('form is valid') form. save ( ob...
[ -0.28126707673072815, -0.3197195827960968, 0.6199477910995483, 0.30908915400505066, -0.21565353870391846, 0.26251429319381714, -0.6287014484405518, 0.3241848349571228, 0.47213611006736755, -0.8467428088188171, 0.5550603270530701, -0.7591180801391602, -0.12909357249736786, -0.68485683202743...
def get _ wordclouds _ for _ companies ( df = none, fields = ['summary _ cleaned ','pros _ cleaned ','cons _ cleaned'], company _ filter = none, width = 1000, height = 1000 ) : # if no dataframe is provided, generate from employee _ reviews. csv if df is none : df = get _ cleaned _ dataframe ( ) companies = list ( comp...
[ -0.4822258949279785, 1.6766266822814941, 0.5556155443191528, -0.3986024260520935, -0.7150714993476868, 0.2675032913684845, -0.40957480669021606, -0.21482224762439728, -0.6820127367973328, 0.7319694757461548, 0.040147408843040466, 0.3551608920097351, -0.022280991077423096, 0.131125450134277...
def prepare _ scores ( scores ) : # prevent self - loops, set up the root location np. fill _ diagonal ( scores, - float ('inf') ) # prevent self - loops scores [ 0 ] = - float ('inf') scores [ 0, 0 ] = 0
[ -0.2119837999343872, 0.13833540678024292, 0.3788485825061798, 0.4285055100917816, 0.8442109823226929, 0.04266326501965523, 1.0450176000595093, -0.42102164030075073, 0.9804287552833557, 0.6035487055778503, 0.294952392578125, -0.0008611640660092235, 0.0022764725144952536, 0.5166428089141846,...
def normalize _ image _ for _ display ( img, uint8 = true, bgr2rgb = true, display = false, title ='' ) : # make a copy img _ out = copy. copy ( np. array ( img ) ) # if channels are transposed as in torch tensor chw - rearrange them to hwc if img. shape [ 0 ] = = 3 : # chw img _ out = np. transpose ( img _ out, [ 1, 2...
[ 0.4554580748081207, -0.37215670943260193, 0.5464960336685181, -0.07102371752262115, -0.7786405086517334, 0.15279115736484528, 0.7339611649513245, -0.13312411308288574, 0.7980097532272339, 0.3905892074108124, 1.602475643157959, 0.2845456600189209, 0.16205404698848724, 0.16124314069747925, ...
def _ set _ masks ( self ) : i _ fc = 0 for p in self. model. modules ( ) : if isinstance ( p, maskedlinear ) : p. set _ mask ( self. masks [ i _ fc ] ) i _ fc + = 1 return ( )
[ -0.5656017661094666, -0.6131612062454224, 0.5517870783805847, 0.25997820496559143, 1.0451034307479858, 0.3297075927257538, 0.6354777812957764, -0.8785571455955505, -0.5528503656387329, 0.04129435494542122, -1.1578271389007568, -0.23173460364341736, -0.3431141972541809, 0.24320265650749207,...
async def gwheeze ( self, ctx, member : discord. member = none ) : if member is none : member = ctx. message. author async with ctx. channel. typing ( ) : wheeze _ img = await self. make _ wheeze ( member, true ) if wheeze _ img is none : await ctx. send ( " sorry something went wrong! " ) return file = discord. file (...
[ -0.11715415120124817, 1.135504961013794, 0.7414389848709106, 0.2937140166759491, -0.3011992573738098, 1.17692232131958, 0.04470803961157799, 0.17810314893722534, -0.43713343143463135, -0.4199634790420532, -0.29277586936950684, 1.4151744842529297, -0.0818709209561348, 0.8135219812393188, ...
def sortcolors ( self, nums : list [ int ] ) - > none : n = 0 cnt = 0 while n < len ( nums ) : if nums [ n ] = = 0 : nums. insert ( 0, nums. pop ( n ) ) n = n + 1 cnt = cnt + 1 elif nums [ n ] = = 1 : n = n + 1 cnt = cnt + 1 elif nums [ n ] = = 2 : nums. append ( nums. pop ( n ) ) cnt = cnt + 1 if cnt = = len ( nums ) ...
[ -0.7546643614768982, 0.3692176938056946, 0.8263497948646545, -0.13837909698486328, 0.2233235239982605, 0.2245672196149826, 0.9932308197021484, -0.23945985734462738, 0.19423310458660126, -0.04756031185388565, -0.10908850282430649, 0.4144947826862335, -0.41550183296203613, 1.2851181030273438...
def test _ atomic _ qname _ pattern _ 3 _ nistxml _ sv _ iv _ atomic _ qname _ pattern _ 4 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - pattern - 4. xsd ", instance = " nistdata / atomic / qname / sc...
[ -0.19304277002811432, -0.07352545112371445, 0.5133340954780579, 0.04996366798877716, -0.3832896947860718, 0.46948546171188354, -0.4487023651599884, -0.5676702260971069, 0.49413353204727173, 0.2955562174320221, -0.23436328768730164, -0.5750232934951782, -0.17929454147815704, -0.688764214515...
def set _ button _ switch _ page ( self, deck _ id : str, page : int, button : int, switch _ page : int ) - > none : if self. get _ button _ switch _ page ( deck _ id, page, button )! = switch _ page : self. _ button _ state ( deck _ id, page, button ) [ " switch _ page " ] = switch _ page self. _ save _ state ( )
[ -0.4134782552719116, -0.5622889995574951, 0.563973069190979, 0.0836869552731514, 0.7408528923988342, 0.5851681232452393, -1.0046050548553467, 0.1605563759803772, 0.6001948714256287, 0.5637043118476868, -0.7242803573608398, -0.1668694168329239, 0.1983431726694107, 0.10791812837123871, 0.2...
def ck _ yr ( y, p ) : if len ( y )! = 4 : raise validationexception ('year must be in four digit format ( e. g., 2005 ) for parameter " { } ". value entered was " { } ". exiting... '. format ( p, y ) ) else : return int ( y )
[ 0.2413494735956192, -0.14389076828956604, 0.7361772656440735, 0.19803985953330994, -0.9910276532173157, 0.5623443722724915, 0.35394221544265747, -0.45142656564712524, -0.539283275604248, 0.6941673755645752, 0.39374566078186035, 0.13172629475593567, -0.6702282428741455, 0.8792113065719604, ...
def test _ atomic _ qname _ max _ length _ 2 _ nistxml _ sv _ iv _ atomic _ qname _ max _ length _ 3 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - maxlength - 3. xsd ", instance = " nistdata / atomic ...
[ 0.4228556156158447, -0.08500505238771439, 0.38402655720710754, 0.16048263013362885, -0.421050101518631, 0.68413907289505, -0.9672731757164001, -0.2833738327026367, 0.8349184393882751, 0.5723081231117249, -0.48052161931991577, -0.17143526673316956, 0.06839284300804138, -0.6138294339179993, ...
def hasunointerface ( oobject, cinterfacename ) : # get the introspection service. ointrospection = createunoservice ( " com. sun. star. beans. introspection " ) # now inspect the object to learn about it. oobjinfo = ointrospection. inspect ( oobject ) # obtain an array describing all methods of the object. omethods = ...
[ -0.24884966015815735, 0.37413159012794495, 0.747681736946106, 0.31035155057907104, -0.3083861172199249, -0.5414989590644836, 0.6088960766792297, -0.3425236940383911, 0.8696032762527466, -0.1612517386674881, -0.2544604241847992, -0.2563610374927521, -1.3687443733215332, 0.3601643443107605, ...
def center _ line ( roi _ kreuzung ) : cv2. line ( roi _ kreuzung, ( int ( ( pixel _ breite - 1 ) / 2 ), 0 ), ( int ( ( pixel _ breite - 1 ) / 2 ), pixel _ hoehe - 1 ), gelb, 1 )
[ 0.48397529125213623, -1.1995060443878174, 0.7731149196624756, 1.08609139919281, 0.4630196988582611, 0.9315081238746643, -0.14419779181480408, -0.3784392476081848, 0.5293623208999634, 0.9850723743438721, 0.3686661720275879, 0.3405815660953522, -0.7887451648712158, 0.7572576403617859, 0.58...
def progress ( ) : n _ tasks = 100 console. log ( f'performing { n _ tasks } tasks : rocket : ', style ='bold magenta') for n in track ( range ( n _ tasks ), description ='doing stuff') : # fake processing time time. sleep ( 1. 2 / n _ tasks ) console. log ( f'[ blue underline ] finished doing stuff! : pile _ of _ poo ...
[ -0.0662580281496048, 0.5270788669586182, 0.5796758532524109, 0.1417783796787262, 0.3302696943283081, 0.1309785544872284, 0.7411757111549377, -0.253738671541214, -1.3649760484695435, -0.17569467425346375, -0.31945332884788513, 0.13640272617340088, 0.0853392481803894, 1.064890742301941, 0....
def populate _ db ( self ) : with self. con : cur = self. con. cursor ( mdb. cursors. dictcursor ) for subdir, dirs, files in os. walk ( self. song _ dir ) : for song _ file in files : try : path = os. path. join ( subdir, song _ file ) path _ db = self. escape ( path ) print path if not self. get _ entry ( path ) : id...
[ -0.603912889957428, 0.5603969097137451, 0.9656604528427124, -0.11197143793106079, 0.8952144384384155, 0.7744467258453369, 0.5993544459342957, -0.3254263997077942, -0.2572273910045624, 0.6827030181884766, -0.09169463813304901, -0.7745394706726074, -0.7525104880332947, 0.10502750426530838, ...
def get _ bodymass ( self, bodyid = 1, bodyid2 = 1 ) : return self. get _ matrix ( 11, bodyid, bodyid2 )
[ -1.027598261833191, -0.3790282607078552, 0.4501397907733917, -0.5775247812271118, 0.3974953889846802, -0.18284334242343903, -1.3053439855575562, -1.2585140466690063, 0.42730748653411865, -0.5569097995758057, -0.23591932654380798, 1.040476679801941, -0.7012078762054443, 0.5538544654846191, ...
def _ _ ne _ _ ( self, * args ) : return _ snap. tinthsi _ _ _ ne _ _ ( self, * args )
[ -1.0866132974624634, 0.5198230743408203, 0.07680006325244904, 0.27427199482917786, 0.34876129031181335, -0.2804189622402191, -0.49789708852767944, -1.1353821754455566, -0.9974504113197327, -0.30657970905303955, -0.36428025364875793, -0.04859766736626625, -0.33647245168685913, -0.0084915123...
def reserve _ next _ ids ( self, collection : str, amount : int ) - > list [ id ] :
[ -0.47185182571411133, 0.480642169713974, 0.28745225071907043, 0.2114851325750351, 0.03775664046406746, 0.08552178740501404, -0.6223816275596619, -0.314106822013855, 0.34169772267341614, 0.7901591658592224, -0.9570229053497314, 0.15443836152553558, -0.9133228659629822, -0.5787768363952637, ...
def writesetup ( self, name, * path ) : outdir = self. basedir. descendant ( path ) outdir. makedirs ( ) setup = outdir. child ( " setup. py " ) setup. setcontent ( self. setuptemplate % ( name, ) )
[ -0.8577593564987183, -0.3694106340408325, 0.48082566261291504, -0.04063056409358978, -0.024770287796854973, -0.23916906118392944, 1.1356621980667114, -0.4584316909313202, -0.1150735393166542, 0.2987110912799835, -0.9762887358665466, -0.7367770671844482, -0.10618835687637329, -0.38427072763...
def onlnfmt ( self, * args ) : return _ snap. tnotify _ onlnfmt ( self, * args )
[ 1.4276249408721924, 0.019014952704310417, 0.04278211668133736, -0.6639549136161804, 0.06491289287805557, -1.114032506942749, -1.0968748331069946, -0.1322813630104065, -0.5483088493347168, 0.28537946939468384, -0.9762238264083862, -1.2632718086242676, -0.2558860778808594, 1.3395711183547974...
def display _ by _ user ( userlist, all _ nodes, all _ jobs ) : print " " print header _ format. format ( " running ", " pending " ) print header _ format. format ( " - " * 23, " - " * 15 ) print line _ format. format ( " username ", " cpus ", " nodes ", " jobs ", " cpus ", " jobs " ) total _ procs _ request = 0 total ...
[ 0.04648025706410408, 0.08420093357563019, 0.7023085951805115, -0.11123330891132355, -0.16236993670463562, -0.5211662650108337, 0.7874779105186462, -0.0466231033205986, -0.47531312704086304, -0.024169860407710075, 0.11443635821342468, 0.6224724054336548, 0.20245254039764404, 0.7868399620056...
def _ apply _ regional _ scalars ( df : pd. dataframe, parent _ dir : str, gbd _ round _ id : int, location _ set _ id : int ) - > pd. dataframe : # fetch list of regions and read regional scalars for those regions. regions = set ( get _ location _ metadata ( gbd _ round _ id = gbd _ round _ id, location _ set _ id = l...
[ 0.15269942581653595, 0.04711043834686279, 0.4028642475605011, -0.6253893971443176, 0.17297925055027008, -0.2946385443210602, -0.3982926905155182, -0.2447199672460556, -0.19655989110469818, 0.3643101155757904, 0.8829228281974792, 0.9669755101203918, 0.6575653553009033, -0.1755240261554718, ...
def test _ download ( self, mockhttpdownloader ) : http _ downloader = mockhttpdownloader ( ) fortytwo = fortytwomatterslookup ('token ', http _ downloader ) opts = {'app':'com. rovio. angrybirds ', } fortytwo. download ( opts, { } ) http _ downloader. download. assert _ called _ once _ with ( {'url':'https : / / 42mat...
[ -0.05631290376186371, -0.46500471234321594, 0.5866727232933044, 0.01638089492917061, 0.6061326861381531, 0.09458225965499878, -0.330244243144989, -0.35253337025642395, 0.1507171094417572, -0.6716617345809937, -0.5752367973327637, -0.13449501991271973, 0.9147518873214722, 0.5240060091018677...
def test _ atomic _ base64 _ binary _ min _ length _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ min _ length _ 1 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - minlength - 1. xsd ", i...
[ 0.31068143248558044, -0.4476519823074341, 0.37536749243736267, 1.0332900285720825, -0.2704918682575226, 0.058020032942295074, 0.3691808581352234, -0.5258694291114807, 0.13561514019966125, 0.535740852355957, -0.5749762058258057, 0.15139198303222656, -0.9731304049491882, 0.2962890565395355, ...
def test _ negative _ difference ( self, dtype ) : x = np. array ( [ 3 ], dtype = dtype ) result = np. pad ( x, 3, mode = " linear _ ramp ", end _ values = 0 ) expected = np. array ( [ 0, 1, 2, 3, 2, 1, 0 ], dtype = dtype ) assert _ equal ( result, expected ) x = np. array ( [ 0 ], dtype = dtype ) result = np. pad ( x,...
[ -0.06207927316427231, 0.47518181800842285, 0.9077966213226318, 0.5374197959899902, 0.29672902822494507, 1.9669517278671265, -0.25136375427246094, -0.20908038318157196, 0.24151082336902618, -0.40479448437690735, -0.8918839693069458, -0.00007988322613527998, -0.17281506955623627, 0.718147814...
def get _ random _ string ( length : int ) - > str : # choose from all lowercase letter letters = string. ascii _ lowercase result _ str = " ". join ( random. choice ( letters ) for _ in range ( length ) ) return result _ str
[ -0.04584844782948494, -0.3593764007091522, 0.15464085340499878, -0.9468766450881958, 0.12273012846708298, 0.5578786730766296, -0.49296870827674866, -0.856660008430481, 0.806320071220398, -0.27855733036994934, 0.5415348410606384, 0.3909991681575775, -1.3083428144454956, -1.1421836614608765,...
def format _ table ( columns : list, table _ data : list, mode ='org') - > str : spec _ chars = {'org': {'sep':'| ','eol':'| \ n ','sol':'|'},'csv': {'sep': ', ','eol':'\ n'},'tsv': {'sep':'\ t ','eol':'\ n'},'tex': {'sep':'& ','eol':'\ \ \ \ n'}, } sep = spec _ chars [ mode ]. get ('sep ','' ) # separator eol = spec _...
[ 0.31726497411727905, -0.5422641634941101, 0.7470284700393677, -0.040991682559251785, -0.5311500430107117, 0.3567531406879425, -0.7125087380409241, -0.2164890021085739, -1.0984787940979004, 0.3531303405761719, 0.48484379053115845, -0.3471742272377014, 0.5570078492164612, -0.2598640918731689...
def _ jacobian _ sgl ( self, tcp _ jntid ) : j = np. zeros ( ( 6, len ( self. jlc _ object. tgtjnts ) ) ) counter = 0 for jid in self. jlc _ object. tgtjnts : grax = self. jlc _ object. jnts [ jid ] [ " gl _ motionax " ] if self. jlc _ object. jnts [ jid ] [ " type " ] = ='revolute': diffq = self. jlc _ object. jnts [ ...
[ 0.22857001423835754, -0.413964182138443, 0.6643378734588623, -1.3118906021118164, -0.5978947281837463, -0.061139896512031555, 0.5133064389228821, -1.168442726135254, -0.033314310014247894, 0.7756631374359131, -0.12493839859962463, 0.05380946025252342, -0.31667307019233704, 0.04055290296673...
def corners _ unwarp ( pfile, img, checkerboard = 0, hood _ pixels = 0, offset = 0 ) : # use the opencv undistort ( ) function to remove distortion undist = undistortimage ( img, pfile ['mtx'], pfile ['dist'] ) # geometric transformations for checkerboard image if checkerboard = = 0 : ht _ window = np. uint ( img. shap...
[ 0.31616491079330444, 0.25226473808288574, 1.1089422702789307, -0.6142435669898987, -0.22390075027942657, 0.12451156973838806, 0.27333274483680725, 0.5532787442207336, 0.05084843188524246, 1.1246694326400757, 0.21855707466602325, 0.5132166147232056, 0.06510329246520996, 0.5528846383094788, ...
def start _ agent _ service ( self, agent _ run _ method, quiet, fork = true ) : pass
[ -0.33759257197380066, -0.572655975818634, 0.1798822432756424, 0.7190548181533813, 0.06146800145506859, -0.6823707818984985, -0.02720368467271328, -0.7010031342506409, 0.3425102233886719, 0.05164763331413269, 0.04522126540541649, 1.7050197124481201, -0.2862468361854553, 0.608488142490387, ...
def admin _ get _ device ( devicekey = none, userpoolid = none, username = none ) : pass
[ -0.6414900422096252, 1.5714106559753418, 0.15773934125900269, 1.5517786741256714, 0.061868008226156235, -0.390835165977478, 0.9876526594161987, -0.9536426067352295, -0.039619721472263336, -0.2376028597354889, 0.2887765169143677, 2.1995697021484375, -1.105089545249939, -0.13832175731658936,...
def is _ complete ( rundir, prefix ) : genome _ path = os. path. join ( rundir, prefix + '. complete. fasta') if os. path. exists ( genome _ path ) : cons = list ( seqio. parse ( open ( genome _ path ), " fasta " ) ) [ 0 ] cons = list ( cons. seq. upper ( ) ) assert len ( cons ) = = 29903 ambig = cons. count ('n') retu...
[ -0.14357934892177582, -0.787400484085083, 0.7034487724304199, 0.02165462076663971, -0.2227439135313034, 0.04827967286109924, 0.009495817124843597, 0.5310096144676208, 0.21120870113372803, 0.14947301149368286, -0.5998527407646179, -0.0880199447274208, -0.23039644956588745, 0.838490664958953...
def _ parse ( msg ) : holding = msg dic = { } if not isinstance ( holding, bytes ) : if isinstance ( holding, bytearray ) : holding = bytes ( holding ) else : holding = holding. encode ( ) pairs = holding. split ( b';') for pair in pairs : print ( pair ) print ( type ( pair ) ) try : dic [ pair. split ( b'=') [ 0 ] ] =...
[ 0.6025857925415039, -0.056387610733509064, 0.6369733810424805, -0.5354554653167725, -0.8687333464622498, -0.6459797024726868, 0.322478711605072, -0.16559255123138428, -0.09049759805202484, -0.5080586671829224, 0.1554679572582245, 0.2618793547153473, -1.0283498764038086, 0.4504316449165344,...
def sortbydat ( self, asc = true ) : return _ snap. tinth _ sortbydat ( self, asc )
[ -0.35404470562934875, -0.28600239753723145, 0.08079443871974945, -0.9896354079246521, -0.026672346517443657, 0.820999026298523, 0.2127738744020462, -1.3052072525024414, -0.6218792796134949, -0.4406583309173584, -0.9066870808601379, 0.8487393260002136, -0.446211040019989, 0.2435099631547927...
def flat _ chart ( widget ) : raise typeerror ( f'can not flat widget type : { widget. _ _ class _ _. _ _ name _ _ }')
[ -0.7587056756019592, -0.22421956062316895, 0.4089256823062897, -0.5179864168167114, 0.037770725786685944, 1.3311514854431152, 0.6805959343910217, -0.49149975180625916, 0.6267005801200867, -0.40383753180503845, -0.011045202612876892, 0.5348271131515503, -0.6172295808792114, 0.81430351734161...
def _ filter ( self, key ) : return ( not key. startswith ( '.') )
[ -1.1496391296386719, 0.05960727855563164, 0.4735960066318512, -0.12906183302402496, -1.4722708463668823, 0.7900934219360352, -0.08755285292863846, -0.7439193725585938, 0.1261337250471115, 0.8227606415748596, 0.04337243735790253, 0.13302777707576752, -0.7455682754516602, -0.0754602476954460...
def shortnameof ( node ) : return node. split ('|') [ - 1 ]
[ 0.27372536063194275, 0.4128975570201874, 0.7687054872512817, -0.4344767928123474, -0.4947592318058014, -0.23657366633415222, -0.720483124256134, -0.1871645152568817, -0.2805032730102539, 0.33363214135169983, 0.7128732800483704, -0.38982927799224854, 0.5498019456863403, -0.6695653200149536,...
def tgstatvec _ new ( * args ) : return _ snap. tgstatvec _ new ( * args )
[ -0.9078205227851868, -0.8388643264770508, 0.271982878446579, -0.47578713297843933, -0.005042580887675285, 0.6057960987091064, 1.7301971912384033, -0.8676478266716003, -1.738120436668396, -0.27539393305778503, 0.2198849618434906, 0.6978340148925781, 1.710053563117981, 0.6277320384979248, ...
def process _ directory ( working _ dir : path, is _ export _ frames : bool = false ) : # look for suitable files, with existing image directory csv _ fnames = [ csv _ fname for csv _ fname in working _ dir. rglob ('* _ sel. csv') if csvfname2imgdir ( csv _ fname ). exists ( ) ] print ( f'found { len ( csv _ fnames ) }...
[ -1.1426405906677246, 0.19156718254089355, 0.6996053457260132, 0.7992948293685913, 0.6337178945541382, -0.466040700674057, 0.7005361318588257, -0.108396016061306, 1.0122663974761963, 0.5265953540802002, 0.0470050573348999, 1.0281195640563965, 0.6636302471160889, 1.156875491142273, -0.8051...
def play _ against _ player _ ( computer ) : board = np. zeros ( ( 2, 3, 3 ) ) player = 0 # return 0. 5 if tie, 1 if computer player won, 0 if we lost while true : print _ board ( board ) if has _ won ( board, 0 ) : return 1, board if has _ won ( board, 1 ) : return 0, board if is _ board _ full ( board ) : return 0. 5...
[ -0.13018427789211273, 0.11897574365139008, 0.6890662312507629, 0.32210323214530945, -0.2713455855846405, 0.04784984514117241, 0.7866681814193726, -0.346650630235672, -0.18701733648777008, 0.8051389455795288, -0.2760641872882843, -0.4071770906448364, -0.7557132840156555, 0.5122872591018677,...
def addindexlink ( self, page, index _ link, index _ name, author, location ='top') : # = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = # nothing to do if a link exists. # = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = ...
[ -0.29806143045425415, -0.7787193655967712, 0.5969073176383972, -0.08202334493398666, 0.5525391697883606, -0.2745322585105896, 0.2081456184387207, 0.8775001168251038, 0.18612881004810333, -0.07811524718999863, -0.45214009284973145, 0.13531318306922913, -0.8452179431915283, 0.154806777834892...
def write _ replication _ file ( ) : clique _ patterns = list ( map ( lambda i : clique _ pattern ( i ), range ( 3, 6 ) ) ) path _ patterns = list ( map ( lambda i : path _ patterns ( i ), range ( 2, 6 ) ) ) patterns = clique _ patterns + path _ patterns + [ diamond _ pattern ( ) ] + [ house _ pattern ( ) ] field _ nam...
[ -0.027703259140253067, 0.4884597361087799, 0.5139190554618835, 0.12864691019058228, 0.12113086879253387, -0.10121162980794907, 1.1469073295593262, 0.8239812254905701, -0.6785536408424377, 0.39301612973213196, -0.6345852613449097, 0.08202648907899857, 0.3841893672943115, -0.6312249302864075...
def getunidevint ( self, * args ) : return _ snap. trnd _ getunidevint ( self, * args )
[ -0.33035820722579956, 0.7705060839653015, 0.46295401453971863, -0.30079159140586853, 1.095616340637207, -0.012569825164973736, 0.5230281949043274, -0.32811596989631653, -0.7374089956283569, -1.7488986253738403, -0.32370778918266296, -0.4634493589401245, -0.5351393818855286, 0.2750422656536...
def _ _ init _ _ ( self, master, movie _ title, old _ frame ) : super ( ). _ _ init _ _ ( master,'movie details ', 5, 8, true, true ) self. master = master self. master. title ( movie _ title ) self. master. geometry ('1000x550 + 25 + 25') self. v _ title. set ( movie _ title ) self. open _ dataset ( ) self. searched _...
[ -0.38811495900154114, -0.08676372468471527, 0.8182725310325623, 0.07764320820569992, -0.6605450510978699, 0.021572154015302658, -0.200640007853508, 0.16758497059345245, -0.41837769746780396, 0.28693756461143494, 0.46938690543174744, 0.7679101824760437, 0.3165283203125, 1.022284984588623, ...
def recordterminalproposition ( self ) : for proposition in propositions : if isinstance (, ( gdlproposition, ) ) : if constant. getvalue ( ) = = " terminal " : return proposition return none
[ 0.15367227792739868, -0.9559811949729919, 0.5983801484107971, -0.34717315435409546, 0.09045152366161346, -0.0343434102833271, -0.7647159099578857, -0.47736436128616333, -0.5166242718696594, 1.2067852020263672, 0.9964103698730469, -0.22632735967636108, -1.0906809568405151, -1.03143000602722...
def addmappingstodevicetype ( self, typeid, logicalinterfaceid, mappingsobject, notificationstrategy = " never " ) : req = apiclient. alldevicetypemappingsurl % ( self. host, " / draft ", typeid ) try : mappings = json. dumps ( { " logicalinterfaceid " : logicalinterfaceid, " notificationstrategy " : notificationstrate...
[ -1.889380693435669, -0.008176871575415134, 0.5929922461509705, -0.39042773842811584, -0.2541526257991791, -0.14571742713451385, 0.14194780588150024, -1.1303439140319824, 0.7094346880912781, 0.47938963770866394, -0.419070839881897, -0.18048323690891266, -0.816218912601471, 0.467838197946548...
def retrieve ( * * kwargs ) - > none : if ( err : = _ sendrequest ( requests. get, * * kwargs ) ) is not none : printhtmlerror ( err )
[ 0.4799794852733612, 0.6322329640388489, 0.5388899445533752, 0.5053027272224426, 0.93499755859375, -0.41796550154685974, -1.047971487045288, -0.9799030423164368, -0.10640523582696915, -0.7373794317245483, 0.41597235202789307, 0.5652381181716919, -1.1352136135101318, 0.10646355152130127, 0...
def _ _ init _ _ ( self ) : self. _ alert = none # the original alert # list of pub _ alerts generated from this alert. self. pub _ alerts = none # text string describing the alert. usually comes from the alert. self. search = none self. exclude = false return none
[ 0.7781848311424255, -0.8330274820327759, 0.3746214210987091, 0.13326217234134674, -0.547490656375885, -0.3668575882911682, 0.01199609600007534, 0.4172532558441162, 0.08643994480371475, -0.6468477249145508, -0.4337529242038727, 0.7242509126663208, -0.6562284231185913, 0.2574397027492523, ...
def fltattrvalueei ( self, * args ) : return _ snap. tneanetmp _ fltattrvalueei ( self, * args )
[ -0.0944904014468193, 0.2521534860134125, 0.015311609953641891, -0.08120681345462799, 1.4241130352020264, 0.24120856821537018, 0.4523829519748688, 0.0633261501789093, -1.5677236318588257, -0.2149772197008133, -0.3987865149974823, -0.5091286897659302, 0.28150829672813416, 0.991487443447113, ...
def _ check _ datatype _ to _ list ( prediction ) : if isinstance ( prediction, np. ndarray ) : _ check _ datatype _ to _ list ( prediction. tolist ( ) ) elif isinstance ( prediction, pd. core. frame. dataframe ) : _ check _ datatype _ to _ list ( prediction. values ) elif isinstance ( prediction, list ) : return predi...
[ -0.470497727394104, 0.1443757563829422, 0.7162441611289978, 0.5783460736274719, 0.12025421112775803, -0.015922410413622856, -0.3945387303829193, -0.041559185832738876, 0.5133959650993347, 0.7487965822219849, 0.26203012466430664, 0.6941388249397278, -0.07746202498674393, 1.0609315633773804,...
async def purplepill ( self, ctx ) : msg = copy ( ctx. message ) msg. content = ctx. prefix + " pill # 800080 " ctx. bot. dispatch ( " message ", msg )
[ 0.20065553486347198, -0.17724616825580597, 0.6078003644943237, -1.0506982803344727, 0.7240893244743347, 1.2695695161819458, -1.0002506971359253, 0.29736050963401794, 0.8098432421684265, 0.0844845250248909, -0.2220231294631958, 1.7596951723098755, -0.6053250432014465, -0.5241894721984863, ...
def browse ( ) : global infile _ loc infile _ loc = askopenfilename ( parent = win, initialdir = os. getcwd ( ), title ='select file to decode ', filetypes = [ ('text files ', '. txt') ], defaultextension = '. txt') es. delete ( 0, end ) es. insert ( 0, infile _ loc ) size _ label. config ( text ='selected file :')
[ 0.3128727078437805, -0.39302173256874084, 0.6274047493934631, -0.06124849244952202, 0.3336228132247925, 0.06174487993121147, 1.2640303373336792, 0.735325813293457, -0.23164896667003632, -0.9265952706336975, -0.11344457417726517, 0.9092847108840942, -0.08376350998878479, -0.9331634044647217...
def reservenidindeg ( self, * args ) : return _ snap. tdirnet _ reservenidindeg ( self, * args )
[ -0.37852656841278076, 0.8082703948020935, 0.18086139857769012, -0.46685752272605896, 1.0509315729141235, 0.3638949394226074, 0.28068092465400696, -0.7549147605895996, -0.9228751063346863, -0.07765914499759674, -1.0386013984680176, -1.2382699251174927, -1.0743792057037354, -0.04324233159422...
def mail _ user _ confirm ( self, cr, uid, ids, context = none ) : return self. mail _ user ( cr, uid, ids, confirm = true, context = context )
[ -0.42906007170677185, -0.3984413146972656, 0.20080876350402832, 0.7919708490371704, -0.25176194310188293, 0.06238790228962898, -0.4863710105419159, -0.05849244445562363, 0.09129907935857773, 1.0110843181610107, -0.6597595810890198, 1.296696662902832, -0.1972162425518036, -0.529798686504364...
def bsort ( self, * args ) : return _ snap. schema _ bsort ( self, * args )
[ -0.6535407900810242, 0.9590705037117004, 0.6628113985061646, 1.3506919145584106, 0.2766890525817871, 0.15211333334445953, 0.7528988718986511, -0.3143550157546997, -0.9875426292419434, -0.6281445026397705, -0.8277081847190857, 0.878976583480835, -2.0298149585723877, 0.4546869993209839, 0....
def created _ at ( self ) : return util. str _ to _ time ( self. _ h5file. attrs [ " created _ at " ] )
[ 0.45320820808410645, -0.678082287311554, 0.18482518196105957, -0.5228362679481506, 0.617305338382721, 0.37837502360343933, 0.44003817439079285, -1.0112121105194092, -1.4945577383041382, -0.4291524291038513, -0.23131726682186127, -0.1645549088716507, 0.9576235413551331, -0.7049578428268433,...
def addruletologicalinterface ( self, logicalinterfaceid, name, condition, description = none, alias = none ) : req = apiclient. allrulesforlogicalinterfaceurl % ( self. host, " / draft ", logicalinterfaceid ) body = { " name " : name, " condition " : condition } if description : body [ " description " ] = description ...
[ -0.09514237940311432, 0.07637329399585724, 0.47922053933143616, -0.7392421364784241, 0.24857285618782043, 1.1113266944885254, -0.9256906509399414, 0.15784527361392975, -0.020996952429413795, 0.5478059649467468, -0.3070732057094574, 0.019609544426202774, -1.802752137184143, 0.82405561208724...
def getdevicemanagementextensionpkg ( self, bundleid ) : dmereq = apiclient. dmesinglerequest % ( self. host, bundleid ) r = requests. get ( dmereq, auth = self. credentials, verify = self. verify ) status = r. status _ code if status = = 200 : self. logger. debug ( " device management extension package retrieved " ) r...
[ -1.4131910800933838, 0.9197208285331726, 0.28280505537986755, 0.40471047163009644, -0.7485107779502869, -0.28450915217399597, -0.14313329756259918, -0.6790740489959717, 1.1465330123901367, 0.42294663190841675, -0.3738829791545868, 0.4674666225910187, -0.9692390561103821, 0.7306005358695984...
def begnainti ( self, * args ) : return _ snap. tneanetmp _ begnainti ( self, * args )
[ 0.6190940141677856, -0.35190504789352417, 0.1145792007446289, -0.1747608482837677, 2.1535768508911133, 0.15687191486358643, -0.2723205089569092, -0.12598896026611328, -0.9104575514793396, -0.011290322989225388, -0.2926240861415863, -1.0642069578170776, -1.0313994884490967, 1.02677726745605...
def get _ package _ level ( self, codepath ) : package _ level = - 1 check _ dir = os. path. dirname ( os. path. abspath ( codepath ) ) while check _ dir : has _ init = false for ext in code _ exts : init _ file = os. path. join ( check _ dir, " _ _ init _ _ " + ext ) if os. path. exists ( init _ file ) : has _ init = ...
[ -0.9044280648231506, -0.17416885495185852, 1.05637526512146, 0.0025764843448996544, -0.059250131249427795, 0.1373233050107956, 0.9884442090988159, -0.22332638502120972, -0.3004549443721771, -0.03374022990465164, -0.5030140280723572, -0.18220166862010956, -0.36819836497306824, 1.45339930057...
def erase _ interval _ intersections ( self, interval ) : x = self. get _ intersections _ with _ interval ( interval ) x. fill ( 0 )
[ -0.20290310680866241, 0.5223727822303772, 0.5988826751708984, 0.4439542889595032, 0.752440869808197, 0.8889861702919006, 0.5743913054466248, 0.11235290765762329, 0.3798092007637024, 0.3198608160018921, 0.03657136857509613, 0.15180841088294983, -0.7024761438369751, -0.592829704284668, 0.0...
def addvmerged ( self, * args ) : return _ snap. tcncomv _ addvmerged ( self, * args )
[ -0.2517540454864502, 0.5983729362487793, 0.23515227437019348, -0.11919644474983215, 1.4150625467300415, 0.04035431891679764, 0.5186459422111511, 0.3321321904659271, 0.18197384476661682, -0.37155675888061523, -1.0998650789260864, -0.8850451111793518, -0.702924370765686, 1.5282231569290161, ...
def tonetwork ( self, * args ) : return _ snap. tmmnet _ tonetwork ( self, * args )
[ -1.5503772497177124, 1.1143302917480469, 0.45418283343315125, -0.24910804629325867, 1.0196887254714966, -0.029336905106902122, 0.5453989505767822, -0.2280416041612625, -0.5951815247535706, 0.5736703276634216, -0.8748003840446472, -1.486852765083313, -0.9726397395133972, 0.47795915603637695...
def as _ json ( self ) : return {'id': self. soundcloud _ user _ id,'soundcloud _ id': self. soundcloud _ id,'access _ token': self. access _ token,'permalink': self. permalink,'username': self. username,'permalink _ url': self. permalink _ url,'avatar _ url': self. avatar _ url,'country': self. country,'city': self. c...
[ -0.447197824716568, -1.0559189319610596, 0.8097248077392578, -0.38109633326530457, -0.6218827366828918, -0.46922537684440613, -0.4897260069847107, -0.8840612769126892, 0.8938300609588623, -0.6792634725570679, -0.7565367817878723, 0.7371446490287781, -0.053615402430295944, 0.009654967114329...
def post ( self, request, slug ) : content _ data = request. data. get ('comment ', none ) try : instance = article. objects. get ( slug = slug ) author = request. user content _ data ['article'] = instance. id content _ data ['author'] = author. id serializer = commentserializer ( data = content _ data ) serializer. i...
[ -0.16856595873832703, -0.7974125742912292, 0.9985530972480774, 0.020639056339859962, 0.8456717729568481, 0.18048423528671265, 0.45534342527389526, 0.461510568857193, -0.34435802698135376, -0.029916992411017418, -0.15059688687324524, -0.16899845004081726, -0.5586209297180176, -0.39570468664...
def get _ games _ yest ( ) : yesterday = str ( date. today ( ) - timedelta ( 1 ) ) url ='https : / / statsapi. web. nhl. com / api / v1 / schedule? startdate = { } & enddate = { } '. format ( yesterday, yesterday ) resp = requests. get ( url = url ) gamesched = json. loads ( resp. text ) games = gamesched ['dates'] [ 0...
[ -0.7925264835357666, 0.42094847559928894, 0.8184056282043457, 0.11926472187042236, 0.4598509967327118, 0.21540813148021698, -1.6813726425170898, -0.2598062753677368, -0.9708856344223022, 1.0223498344421387, -0.6360458135604858, 0.3186259865760803, -0.48733776807785034, -0.0647825300693512,...
def get ( self ) : return self. _ data [ self. _ buffer _ count ]
[ -0.02348690666258335, -0.25832274556159973, 0.5832903385162354, -0.5751423239707947, 0.4064953327178955, 0.8878333568572998, -0.1498088389635086, -1.4170467853546143, -0.21518802642822266, -1.7283084392547607, -0.41193172335624695, 1.486254096031189, -0.7684734463691711, -0.833805799484252...
def get _ files _ to _ copy _ to _ genconf _ dir ( ctx : click. core. context, param : union [ click. core. option, click. core. parameter ], value : optional [ path ], ) - > list [ tuple [ path, path ] ] : # we " use " variables to satisfy linting tools. for _ in ( ctx, param ) : pass local _ genconf _ dir = value fil...
[ -1.3482639789581299, -0.19697867333889008, 0.618072509765625, 0.6865338087081909, 0.3927755653858185, 0.3234691917896271, 1.1540828943252563, -0.06466742604970932, -0.8115050196647644, 1.0915453433990479, -0.08034463971853256, 0.5921704769134521, 0.5657888054847717, 0.5434291362762451, -...
def iskeygetdat ( self, * args ) : return _ snap. tintflth _ iskeygetdat ( self, * args )
[ -0.019188102334737778, 0.15577156841754913, 0.2697620987892151, 0.1936664581298828, 1.2539567947387695, -0.07653540372848511, -0.7880933284759521, -0.20113392174243927, -0.5851211547851562, -1.24542236328125, -0.13464492559432983, 0.06884001195430756, -0.9465822577476501, 0.221841216087341...
def test _ invalid _ auth _ url _ v1 ( self ) : def fake _ do _ request ( * args, * * kwargs ) : resp = webob. response ( ) resp. status = http. bad _ request return fakeresponse ( resp ), " " self. mock _ object ( auth. keystonestrategy,'_ do _ request ', fake _ do _ request ) bad _ creds = {'username':'user1 ','auth ...
[ -0.6463475227355957, -0.2963107228279114, 0.5394441485404968, 1.2498667240142822, 0.15385028719902039, 0.12870728969573975, -0.7647765278816223, -0.07671231031417847, 0.24522259831428528, -0.05285756662487984, -0.11748287826776505, 0.3979050815105438, 0.21297144889831543, -0.11657443642616...
def _ _ init _ _ ( self, * args ) : _ snap. tngraphmpedgei _ swiginit ( self, _ snap. new _ tngraphmpedgei ( * args ) )
[ -0.47965142130851746, 0.1627986580133438, -0.18161584436893463, 0.08352712541818619, -0.06185136362910271, -0.03641919046640396, 0.4009803533554077, 0.003105970099568367, -0.8815386891365051, 0.6141298413276672, -0.4042726755142212, -0.7007340788841248, -0.7315096855163574, 1.2374868392944...
def split _ bill ( items _ list, persons _ list ) : try : not items _ list [ 0 ] except : items _ list = [ [ ] ] pass if not items _ list [ 0 ] or not persons _ list : if not items _ list [ 0 ] : return " lista de itens vazia " elif not persons _ list : return " lista de e - mails vazia " else : array _ items _ list = ...
[ -0.20907288789749146, 0.466301292181015, 0.7303515076637268, -0.0967891737818718, -0.12140607833862305, 0.07727827876806259, 0.8557080626487732, 1.069697380065918, 0.2803971469402313, 0.0449112169444561, -0.23190394043922424, -0.05199303850531578, -0.26658928394317627, 0.6167846918106079, ...
def get _ text _ vertical _ align ( self, serial _ number : str, page : int, button : int ) - > str : return self. _ button _ state ( serial _ number, page, button ). get ( " text _ vertical _ align ", " " )
[ 0.369928777217865, -1.1995126008987427, 0.49676087498664856, 0.22516581416130066, -0.34871649742126465, -0.34830835461616516, -0.45507749915122986, 0.17161783576011658, 0.3028866946697235, 0.28945106267929077, -0.2467164397239685, 0.3550334572792053, -0.4996547996997833, -0.502538025379180...
def edit _ nurse _ account ( nurse _ id ) : if request. method = = " post " : last _ name = request. form ['last _ name'] first _ name = request. form ['first _ name'] email = request. form ['email'] phone = request. form ['phone _ number'] password = request. form ['password'] address = request. form ['address'] care ...
[ -0.13741154968738556, -0.4856624901294708, 0.7199600338935852, -0.21858806908130646, 0.20179328322410583, 0.32424646615982056, 0.47421208024024963, -0.12113387882709503, -0.13899588584899902, -0.4124630093574524, 0.04600105434656143, -0.03145744279026985, 0.28019875288009644, 0.69658535718...
def is _ free _ mail ( email ) : parts = email. split ('@') if len ( parts ) < 2 : # looks like an invalid email address, we'll say it's not free email server return false mail _ server = parts [ - 1 ]. strip ( ). lower ( ) return mail _ server in free _ mail _ servers
[ -0.8568301796913147, 0.32460784912109375, 0.42826151847839355, -0.6320801377296448, -1.5079728364944458, 0.05211929976940155, -0.27764245867729187, -0.588362455368042, 1.3570307493209839, 0.32347142696380615, -0.6322025656700134, 1.3011014461517334, -1.3911746740341187, -0.1556184738874435...
def process ( reddit, submission, last _ switcharoo, action ) : # verify it is a link post ( not a self post ) if submission. is _ self : # if meta, determine if it was incorrectly submitted as meta if not parse. is _ meta _ title ( submission. title ) : if parse. only _ reddit _ url ( submission. selftext ) : action. ...
[ 0.11435272544622421, -0.15766647458076477, 0.7860565781593323, 0.7038132548332214, 0.9702568054199219, -0.14815743267536163, -0.30654972791671753, 0.3173544704914093, 0.8267328143119812, -0.0346110537648201, 0.4517976641654968, 0.2978917062282562, -0.3457127511501312, 0.9665879011154175, ...
def crypt _ path _ name ( self, path _ item _ name : str ) - > optional [ str ] : pass
[ -0.3287642300128937, -0.7761151790618896, 0.43287092447280884, 1.4116657972335815, -0.01682744175195694, 0.7245175242424011, 0.3788025379180908, -0.9461989402770996, 0.33640629053115845, 1.0830520391464233, -0.869309663772583, -0.22450189292430878, -0.9566473960876465, -1.20121431350708, ...
def do _ pack ( ) : execute = local ( " mkdir - p versions " ) timestr = time. strftime ( " % y % m % d % h % m % s " ) filename = " web _ static _ { }. tgz ". format ( timestr ) execute = local ( " tar - cvzf versions / { } web _ static ". format ( filename ) ) if execute. failed : return none else : return " versions...
[ 0.23861663043498993, -0.022708183154463768, 0.522726833820343, 0.4040531516075134, -0.15811216831207275, 0.4408998191356659, 0.5028221011161804, -0.04691566899418831, -0.38092127442359924, 0.7224766612052917, -0.6217285394668579, -0.7151140570640564, -0.044743623584508896, 0.26303339004516...
def get _ next _ link ( header ) : # very basic regex for url url _ pattern = re. compile ( r'< ( [ a - za - z0 - 9 _ : /.? = + & % ] + ) >') rel _ pattern = re. compile ( r'rel = " ( [ a - z ] + ) "') if header is not none : for item in header. split ( ',') : url, rel = item. split (';') m = re. match ( rel _ pattern,...
[ 0.04993979632854462, -0.2925586998462677, 0.9715548157691956, 0.324411004781723, -0.8514341711997986, -0.6822006106376648, -0.21052239835262299, 0.5817840099334717, -0.29768064618110657, -0.4930083453655243, -0.14656482636928558, 0.41385528445243835, -1.023084282875061, -0.2764909863471985...
def gettime ( self, * args ) : return _ snap. tgstat _ gettime ( self, * args )
[ 0.18362189829349518, 0.987347424030304, 0.41144558787345886, 0.45651179552078247, 1.0190359354019165, 0.16895948350429535, 0.7863145470619202, -1.3294984102249146, -0.8650498986244202, 0.23608067631721497, -0.7445508241653442, -1.9014875888824463, -0.3145589232444763, 1.0643616914749146, ...
def index ( self, * * kwargs ) : return self. api _ list _ request ( self. _ get _ method _ fullname ( " index " ), kwargs )
[ -1.22081458568573, 0.5413141846656799, 0.1992235630750656, 0.35793209075927734, 0.7210095524787903, -0.5338777303695679, -0.5717529058456421, -0.26772159337997437, 0.3865787386894226, 0.10244958102703094, -0.4487183690071106, 1.072435975074768, -0.7221873998641968, -0.2601814866065979, -...
def convert _ adj ( adj ) : if adj = ='i': return'\ xe3 \ x81 \ x84'elif adj = ='na': return'\ xe3 \ x81 \ xaa'elif adj = ='no': return'\ xe3 \ x81 \ xae'else : return adj
[ -0.6757650971412659, -0.09571057558059692, 0.5119543671607971, -1.004848599433899, -1.025254726409912, 0.8286664485931396, -0.9002944827079773, -0.49731674790382385, 0.9435223340988159, 1.101799726486206, 0.0875205472111702, 0.09393313527107239, -0.2736440598964691, -0.38694947957992554, ...
def gethits _ pngraph ( * args ) : return _ snap. gethits _ pngraph ( * args )
[ -1.0147793292999268, 1.3374221324920654, 0.3271861970424652, 0.14965422451496124, 0.22328360378742218, -0.666504979133606, 0.557013213634491, -1.1474387645721436, -0.3504706621170044, -0.3579273819923401, -0.2891770005226135, 0.6189472079277039, -0.0836019366979599, -0.8677269220352173, ...
def test _ minimize _ quad2d _ no _ bound ( self ) : # test a simple function without any bound opt _ params = {'eta': 1,'eta _ min': 1,'eps': 1e - 12,'discrete': true } # both the starting point and eta are integer, # therefore we expect an integer solution self. _ test _ minimize ( coptimizerpgdls,'quad - 2 ', opt _ ...
[ -0.3194383978843689, -0.9106845855712891, 0.47954702377319336, -0.15814219415187836, 0.38213807344436646, 0.03874199837446213, -0.20024092495441437, -1.4187500476837158, 0.1315690279006958, -1.2149872779846191, -0.3515118360519409, -0.10630664974451065, -0.2028244584798813, 0.1794848293066...
def new ( * args ) : return _ snap. tstrpool _ new ( * args )
[ -0.6538475751876831, -0.3501356840133667, 0.21798940002918243, -1.0437092781066895, -0.003568272804841399, 0.33106955885887146, 1.0100246667861938, 0.13415196537971497, -1.4975075721740723, -0.4094419479370117, -0.8912950158119202, -0.38869377970695496, 0.5944128632545471, 0.30273154377937...
def as _ graph ( tracks _ manager : pymap. tracksmanager ) - > nx. graph : tracks = tracks _ manager. get _ track _ ids ( ) images = tracks _ manager. get _ shot _ ids ( ) graph = nx. graph ( ) for track _ id in tracks : graph. add _ node ( track _ id, bipartite = 1 ) for shot _ id in images : graph. add _ node ( shot ...
[ -0.34513819217681885, 0.22361862659454346, 0.7171798944473267, -0.34050947427749634, -0.6580802202224731, 0.1967347413301468, -0.42416882514953613, -0.3789500296115875, 0.2460014969110489, 0.6886155605316162, 0.18965384364128113, 0.3398396074771881, 0.5078476667404175, 0.11865989118814468,...
def geti ( self, * args ) : return _ snap. tintset _ geti ( self, * args )
[ -0.05105279013514519, 0.1931041032075882, 0.2981967031955719, 1.1001691818237305, 0.4165343642234802, -0.3557030260562897, 0.9614477157592773, -0.8119997382164001, -1.0567357540130615, -0.27825790643692017, -0.6259020566940308, -0.4592997133731842, -0.8021733164787292, -0.5879202485084534,...
def addmode ( self, * args ) : return _ snap. tmmnet _ addmode ( self, * args )
[ -0.3904653489589691, 0.9140954613685608, 0.47411811351776123, 0.45193901658058167, 0.9036393761634827, 0.7029795050621033, -0.02326931618154049, -0.07508209347724915, -0.030902069061994553, -0.5659719705581665, 0.16530606150627136, -1.2373288869857788, -1.205426573753357, 1.331204533576965...
def unified _ communications ( self, unified _ communications ) : self. _ unified _ communications = unified _ communications
[ -0.8087508678436279, -0.3130475580692291, 0.3924400508403778, -0.4513809382915497, 0.14623074233531952, 0.39967602491378784, 0.5783073902130127, 0.6843973994255066, 0.916910707950592, -0.5960842370986938, -0.7343866229057312, 0.15944653749465942, -0.1615973860025406, 0.14784017205238342, ...
def load ( fname, print = mute, start _ at = none, end _ at = none ) : start _ at = 0 if start _ at is none else start _ at end _ at = 1573163452 * 4 if end _ at is none else end _ at data = [ ] rr = [ ] false = false true = true t = - 1 anyt = - 1 def hrmsample ( ts1000, bpm, status, hummm, has _ hrm, intrarr ) : nonl...
[ 0.11780564486980438, -0.5789042115211487, 1.047784686088562, -0.7683305740356445, -0.269094854593277, -0.0858004242181778, 0.142887681722641, 0.2213965505361557, -0.9992959499359131, -0.024492166936397552, -0.13808132708072662, -0.022113747894763947, -0.3358767330646515, -0.001233667484484...