text
stringlengths
25
2.19k
embedding
listlengths
768
768
def get _ image ( self, image _ path ) : image = cv2. imread ( image _ path ) image = cv2. cvtcolor ( image, cv2. color _ bgr2rgb ) return image
[ 0.03322582691907883, -0.6765784621238708, 0.3705308437347412, 0.2977006733417511, 1.3266966342926025, 0.15600448846817017, -0.39568692445755005, -0.15186738967895508, -0.11588975787162781, 1.0681369304656982, 1.3087748289108276, 0.9606863260269165, 0.04295891895890236, -0.29771795868873596...
def build _ limiter ( queue _ name = none, exchange _ name = none ) : if queue _ name is none : queue _ name = " sample _ queue " if exchange _ name is none : exchange _ name = " sample _ exchange " # apply the message _ threshold and the time _ cycle # as per the requirement of the application rl = ratelimiter ( messa...
[ 0.55185467004776, -0.39542457461357117, 0.7497776746749878, -0.21825622022151947, -0.33150404691696167, -0.01731795445084572, -0.2584831118583679, 0.12489154189825058, 0.36581793427467346, 0.6529711484909058, -0.08576375991106033, 0.7740347981452942, -0.5551634430885315, 0.4503764510154724...
def delattrdate ( self, * args ) : return _ snap. tcrossnet _ delattrdate ( self, * args )
[ 1.1557948589324951, 0.9358431696891785, 0.2927338480949402, -0.5887143611907959, -0.2391863465309143, 0.2766110897064209, 0.11178159713745117, 0.31736138463020325, -0.441787987947464, -0.9894721508026123, 0.17352178692817688, -0.6567177772521973, -0.504252016544342, 1.599532127380371, -0...
def ui _ output ( sorted _ list : list ) - > none : print ('sorted list : ', sorted _ list )
[ 0.33591893315315247, -0.42096441984176636, 0.13916367292404175, 0.6120457649230957, -0.2976425290107727, 0.33614927530288696, 0.9202797412872314, 0.03038753755390644, 0.043210189789533615, -0.5104283094406128, -0.5745360851287842, 0.38651105761528015, 0.028768133372068405, 1.11902475357055...
def gotoprevbookmark ( self, inputevent ) : bookmarks = self. getbookmarks ( ) bookmarks. gotoprevbookmark ( inputevent )
[ -0.89549320936203, 0.028769074007868767, 0.6131052374839783, 1.077478051185608, 0.26267343759536743, 0.2561925947666168, 1.3123247623443604, 0.09303677082061768, -0.5622879862785339, 0.3076035976409912, -0.014761686325073242, 0.5418713092803955, -0.07226761430501938, -0.3229804039001465, ...
def _ proxy _ user ( environ, username ) : store = environ ['tiddlyweb. store'] try : user = user ( username ) user = store. get ( user ) return {'name': user. usersign,'roles': user. list _ roles ( ) } except storeerror, exc : raise http400 ('invalid mapping : % s'% exc )
[ -1.1212458610534668, -0.047189608216285706, 0.4707702398300171, -0.5561137199401855, -1.0866587162017822, -0.4996335506439209, -0.3649625778198242, -0.11471668630838394, 0.11660990864038467, 0.46612998843193054, -0.9175484776496887, -0.7176945805549622, 0.319069504737854, 0.073169812560081...
def getmxdegnid _ pngraph ( * args ) : return _ snap. getmxdegnid _ pngraph ( * args )
[ -0.12662354111671448, 0.6737265586853027, 0.40530821681022644, -0.02708129584789276, -0.9525900483131409, 0.7891451716423035, -1.2320657968521118, -0.23559634387493134, 0.14079037308692932, -0.27259859442710876, -0.4438374936580658, 0.42653194069862366, -0.42474237084388733, 0.923340559005...
def tstr _ loadtxt ( * args ) : return _ snap. tstr _ loadtxt ( * args )
[ -0.41589048504829407, 0.8513292670249939, 0.26186397671699524, -0.7298427224159241, -0.7884750366210938, -0.29255980253219604, -0.21261563897132874, -0.3540214002132416, -0.8448526263237, 0.2555299401283264, -0.9861306548118591, -1.3668553829193115, -0.6816186904907227, -0.0467473678290843...
def get _ last _ scannr ( ssl _ filename ) : with open ( ssl _ filename,'rt') as ssl : for line in ssl : last _ line = line last _ scannr = int ( last _ line. split ('\ t') [ 1 ] ) return last _ scannr
[ -0.751828670501709, -0.6020384430885315, 0.840816080570221, -0.2342994213104248, -0.376268595457077, 0.09373243898153305, 0.6994546055793762, 0.26055604219436646, -0.6823366284370422, -0.5924476385116577, -0.3676088750362396, -0.7019565105438232, 0.07157202810049057, 0.5212001204490662, ...
def _ _ get _ new _ directory _ name ( self, conn ) : gws _ dir _ prefix = " gws - " + conn. jdma _ workspace + " - " try : # get a list of the directories in the top - level directory dir _ list = conn. mlsd ( " / " ) batch _ id = 0 for d in dir _ list : # check if directory and groupworkspace name is in directory if ...
[ -0.04541531205177307, -0.20344500243663788, 0.7847673296928406, -0.14127318561077118, -0.3482339382171631, -0.05343673750758171, -0.024274397641420364, -0.5859960317611694, 0.20242416858673096, -0.4684009850025177, 0.24425055086612701, 0.549238920211792, -0.23023520410060883, 1.03548073768...
def begeastri ( self, * args ) : return _ snap. pneanet _ begeastri ( self, * args )
[ -0.3756445050239563, 0.5523393154144287, 0.28218546509742737, -0.11138422042131424, 1.3150196075439453, 0.642076313495636, -0.16627323627471924, -0.38378462195396423, -0.8522937297821045, -0.2718425393104553, -0.4445644021034241, -0.5021181106567383, -1.0854564905166626, 0.5809022188186646...
def testtruncateattachments ( self ) : file _ string ='hello world!'with file _ utils. unopenedtemporaryfile ( ) as path : with open ( path,'w') as f : f. write ( file _ string ) event = datatypes. event ( { }, {'a': path } ) self. sf. produce ( [ event ] ) self. assertequal ( 1, self. _ countattachmentsinbuffer ( self...
[ 1.07331383228302, 0.04741094633936882, 0.6621691584587097, -0.40692341327667236, 0.39093834161758423, 0.553238570690155, 1.566019892692566, 0.2716331481933594, 0.2973833382129669, -0.9956542253494263, -0.5816175937652588, 0.005448468495160341, 0.027063051238656044, -0.11705949902534485, ...
def ingest _ info ( self, info ) : for key, val in info. items ( ) : setattr ( self, key, val )
[ -0.49135512113571167, -0.6144410967826843, 0.4201352000236511, -0.7610334753990173, 0.5163803100585938, -0.03778011351823807, -1.1918045282363892, -0.1549476981163025, -0.5806459188461304, 0.5674851536750793, -0.3162154257297516, -0.9705488681793213, 0.4696063995361328, 0.9827919006347656,...
def getcstr ( self, * args ) : return _ snap. tstrpool _ getcstr ( self, * args )
[ -0.15500997006893158, 0.3698301911354065, 0.12327086180448532, 0.22356921434402466, 1.01168954372406, 0.28734418749809265, 0.5512279868125916, -0.11569260060787201, -1.2746752500534058, -0.7694404125213623, -0.49651846289634705, -0.37411078810691833, -1.5346219539642334, 0.7123386263847351...
def test _ atomic _ qname _ length _ 4 _ nistxml _ sv _ iv _ atomic _ qname _ length _ 5 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - length - 5. xsd ", instance = " nistdata / atomic / qname / schem...
[ 0.25725021958351135, -0.4128795862197876, 0.2643705904483795, -0.34459665417671204, -0.42459702491760254, -0.10884896665811539, -0.0062332432717084885, -0.9848949313163757, -0.09892162680625916, 0.44617578387260437, -0.8276510834693909, -0.44637641310691833, -0.4626511335372925, 0.09641645...
async def update _ states ( self ) - > none : await self. _ api. get _ states ( )
[ -0.9756864309310913, 0.05498013645410538, 0.1343282163143158, 0.49334457516670227, 0.6253792643547058, -0.37869903445243835, -0.6089717745780945, -0.2705579102039337, 0.23025868833065033, 0.1433766931295395, 0.034569479525089264, 0.3854835629463196, -0.12327957153320312, -0.247715383768081...
def global _ prestage _ validate ( payload ) : if is _ system _ controller _ upgrading ( ) : raise exceptions. prestageprecheckfailedexception ( subcloud = dccommon _ consts. system _ controller _ name, details ='prestage operations not allowed while system'' controller upgrade is in progress.') if ('sysadmin _ passwor...
[ -0.101889468729496, 0.3217507302761078, 0.8175283074378967, 0.5701811909675598, -0.2670350968837738, 0.17105147242546082, 0.3600335717201233, 0.1794285774230957, 0.0787598043680191, 0.6916121244430542, -0.1866050660610199, 0.470653772354126, -0.5311250686645508, 1.1391127109527588, 1.160...
def get _ gradient ( self ) : if self. gradient _ value is none : self. gradient _ value = sum ( weight * child. get _ gradient ( ) for weight, child in self. children ) return self. gradient _ value
[ -0.07631248980760574, 0.8523593544960022, 0.6869848370552063, 0.11486480385065079, -0.09421134740114212, -0.29679277539253235, 0.49174702167510986, 0.21703727543354034, -0.9730052351951599, -0.38541117310523987, -0.8338910937309265, -0.3073107600212097, -0.6912986636161804, 1.2736248970031...
def get _ d ( run, adu _ per _ photon = 190, minx = 140, maxx = 240, miny = 100, maxy = 380 ) : print ( " run = { } ". format ( run ) ) d = get _ data ( run ) d _ clean = clean _ data ( d, selectkey ='adu ', minkey = 170, maxkey = 1000, minx = minx, maxx = maxx, miny = miny, maxy = maxy ) return d _ clean
[ -1.483359932899475, 0.6884591579437256, 0.3728320300579071, -0.23744483292102814, -1.3558269739151, -0.12308939546346664, -0.5566278696060181, -0.3924230635166168, 0.12199535220861435, 0.12044655531644821, 0.2767575681209564, 1.5007600784301758, 0.1295483559370041, 0.03278498724102974, 0...
def cleardiagnosticlog ( self, typeid, deviceid, logid ) : devicediagnostics = apiclient. devicediaglogslogid % ( self. host, typeid, deviceid, logid ) r = requests. delete ( devicediagnostics, auth = self. credentials, verify = self. verify ) status = r. status _ code if status = = 204 : self. logger. debug ( " diagno...
[ -0.7508454918861389, 0.22346653044223785, 0.6956355571746826, 0.2083270102739334, -0.7436302304267883, 0.4520289897918701, -0.1239176094532013, -0.7179366946220398, 0.3492603003978729, 0.7950588464736938, 0.5903574824333191, 1.083916187286377, -0.22583940625190735, -0.30877453088760376, ...
def prompt ( self ) : return'> '
[ -0.4378555715084076, -0.03042064979672432, 0.3190133571624756, 0.48699885606765747, 0.18460114300251007, 1.6974380016326904, -0.5602098703384399, -0.4319829046726227, 0.0721072107553482, -1.0054762363433838, -0.15232498943805695, 0.4478304386138916, 0.2586894631385803, -0.9453426599502563,...
def run _ mypy ( self, paths = ( ), code = none ) : if self. mypy : set _ mypy _ path ( ) from coconut. command. mypy import mypy _ run args = list ( paths ) + self. mypy _ args if code is not none : args + = [ " - c ", code ] for line, is _ err in mypy _ run ( args ) : if line. startswith ( mypy _ non _ err _ prefixes...
[ -0.3889233469963074, -0.1524171680212021, 0.5245415568351746, 0.09619852155447006, 0.4778038561344147, -0.014653626829385757, 0.11323193460702896, -0.028062907978892326, -0.00002513817344151903, -0.3384217619895935, 0.042969729751348495, 0.49364593625068665, -0.5628360509872437, 0.74132603...
def setprofilebackgroundtile ( self, profile _ background _ tile ) : self. _ profile _ background _ tile = profile _ background _ tile
[ 0.9403532147407532, -0.32032787799835205, 0.17599797248840332, 1.108535885810852, 0.6495466828346252, 0.8493739366531372, 0.8207898736000061, -0.641455352306366, -0.2606980800628662, 0.06009182706475258, -0.8542828559875488, 0.6856969594955444, -0.7652759552001953, -0.3622129559516907, -...
def cntuniqundiredges _ pngraph ( * args ) : return _ snap. cntuniqundiredges _ pngraph ( * args )
[ -0.6356212496757507, 0.9382442831993103, 0.17770902812480927, -0.9014665484428406, -0.2668485641479492, 0.3779163360595703, -0.08745216578245163, 0.06063064932823181, -0.306903600692749, -0.12670212984085083, -0.6185243725776672, 0.6035741567611694, 0.24675524234771729, -0.2478955239057541...
def get _ welcome _ response ( ) : session _ attributes = { } card _ title = " welcome " speech _ output = " welcome to product advisor! " \ # " i have information on four products - " \ # " echo dot, echo show, kind bars and super mario odyssey nintendo switch. " \ # " what product would you like to learn about? " # i...
[ 0.04669535160064697, -0.5072029829025269, 0.5846328735351562, -0.06599759310483932, 0.23727071285247803, -0.7674145698547363, -0.17542186379432678, -1.0576156377792358, 0.8567818999290466, 0.14098653197288513, -0.49998530745506287, 0.2684337794780731, -0.32029300928115845, -0.6717098355293...
def test _ example _ input _ two _ help _ text _ entity ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) input _ page. create _ new _ input. select ( " example input two " ) input _ page. entity2. examp...
[ 0.1639440953731537, -0.5098057389259338, 0.7866771221160889, 0.284511536359787, 0.4490123391151428, 0.8680236339569092, -0.2740967571735382, -0.5938305258750916, -0.10799914598464966, -0.020626312121748924, -0.46073633432388306, 0.048813458532094955, 0.8489036560058594, 0.07368752360343933...
def cursor _ forward ( self ) : self. _ write _ command ( [ lcdbackpack. cursor _ forward ] )
[ 0.45018327236175537, 0.46180370450019836, 0.18617531657218933, -0.06998025625944138, 0.5977426171302795, 0.5635138750076294, 1.0949389934539795, 0.5102827548980713, -0.2960638701915741, -1.0299171209335327, 0.17272423207759857, 1.0530235767364502, -0.5883203744888306, -0.06337978690862656,...
def get _ success _ response ( self ) : mark _ step _ as _ complete ( self. request ) return httpresponseredirect ( reverse ( get _ next _ step ( self. request ) ) )
[ -0.9124976396560669, -0.32406458258628845, 0.5583077073097229, 1.0464164018630981, 0.42916786670684814, 0.3226329982280731, 0.7546001672744751, -0.3179759681224823, -0.3721495270729065, -0.5835181474685669, -0.503369927406311, -0.48100313544273376, 0.6555492281913757, 0.010944695211946964,...
def lookup _ needs _ distinct ( opts, lookup _ path ) : field _ name = lookup _ path. split ('_ _ ', 1 ) [ 0 ] field = opts. get _ field _ by _ name ( field _ name ) [ 0 ] if ( ( hasattr ( field,'rel') and isinstance ( field. rel, models. manytomanyrel ) ) or ( isinstance ( field, models. related. relatedobject ) and n...
[ -0.7768061757087708, -0.1488824039697647, 0.7181276679039001, -0.6246182918548584, 0.059617623686790466, 0.7262102961540222, 0.47428062558174133, 0.21440503001213074, 0.5231761932373047, -0.1365402489900589, -0.34164509177207947, -0.2509000599384308, -0.8680656552314758, -0.558425188064575...
def isnum ( self, * args ) : return _ snap. tflt _ isnum ( self, * args )
[ -0.2501204311847687, 0.28250953555107117, 0.3751818537712097, 0.84214848279953, 0.8263797163963318, 0.19833476841449738, 1.2227439880371094, 0.05262191966176033, -0.32096806168556213, -0.178543359041214, -1.0805176496505737, -1.1122177839279175, -0.3178221881389618, 0.48051220178604126, ...
def globalusage ( self, total = none ) : return self. site. globalusage ( self, total = total )
[ -0.5545033812522888, 0.5704703330993652, 0.5733503103256226, 0.017374908551573753, 0.03960029408335686, -0.04658849909901619, 1.1960355043411255, -0.1389891505241394, 0.4380008578300476, 0.46115967631340027, -0.23151472210884094, 0.22117914259433746, -0.94314044713974, 0.6897243857383728, ...
def set _ covers _ pattern ( ps, p ) : for header, value in p : match = false if value = = pattern. wild : for p1 in ps : if p1 [ header ] = = pattern. wild : match = true break else : for p1 in ps : if p1 [ header ] = = value : match = true elif p1 [ header ]! = value : match = false break if not match : return false ...
[ -0.031205201521515846, -0.4729604721069336, 0.8598117828369141, 0.5264332294464111, -0.580399215221405, 1.3582791090011597, -0.5625644326210022, 0.055566638708114624, -0.24430857598781586, -0.12596486508846283, 0.47784423828125, -0.0023060000967234373, -0.9825314879417419, -0.0937475785613...
def floor ( x, name = none ) : return gen _ math _ ops. floor ( x, name )
[ 0.19577710330486298, 0.6472421884536743, 0.3292710781097412, 0.3703530728816986, -1.2143610715866089, 0.13242760300636292, 0.46982142329216003, -1.448867678642273, -0.13103528320789337, -0.3779618740081787, -0.3612801134586334, -0.26960092782974243, 0.2908860445022583, 0.40808919072151184,...
def attempt ( challenge, request ) : return false, " תשובתך נשלחה לבדיקה "
[ -0.4517984986305237, -0.17440876364707947, 0.17080865800380707, -0.2276032418012619, -0.1375706046819687, 0.7332325577735901, -0.8254334926605225, -0.5279361605644226, -0.15255966782569885, -0.14539070427417755, 0.28052833676338196, -1.245076298713684, -0.4857529401779175, 1.23147523403167...
def test _ list _ decimal _ max _ length _ 4 _ nistxml _ sv _ iv _ list _ decimal _ max _ length _ 5 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - maxlength - 5. xsd ", instance = " nistdata / list / ...
[ -0.34076014161109924, -0.11211372911930084, 0.2898003160953522, 0.43599438667297363, -0.3707568049430847, -0.31277328729629517, -0.19589388370513916, -0.07744167000055313, 0.5746117830276489, 0.17440877854824066, -1.350549578666687, -0.4829851984977722, -0.2746373116970062, 0.5204210877418...
def percentdegree _ pngraph ( * args ) : return _ snap. percentdegree _ pngraph ( * args )
[ -1.1248779296875, 0.9101249575614929, 0.22669973969459534, -0.11831920593976974, -0.8349897861480713, 0.7265482544898987, -0.02085808478295803, -0.5305618047714233, -0.2957744598388672, -0.13366664946079254, -0.22329477965831757, -0.0687776654958725, -0.7105341553688049, 0.1867667883634567...
def select ( self, names ) : if isinstance ( names, str ) : raise valueerror ( " names must be an iterator of string " ) for name in names : if not name in self. _ column : raise valueerror ( " column does not exist : " + repr ( name ) ) new _ instance = self. _ _ class _ _ ( [ ] ) for name in names : if name in new _ ...
[ -1.0011358261108398, -0.1587672084569931, 0.41557663679122925, -0.19689704477787018, 0.41300058364868164, -0.5483545660972595, -0.3896496295928955, -1.340505838394165, -0.18483442068099976, 0.1935756504535675, -0.752853274345398, 0.1717960238456726, -0.5134868025779724, -0.1814104765653610...
def searchback ( self, * args ) : return _ snap. tintfltkdv _ searchback ( self, * args )
[ -0.45475971698760986, 0.806021511554718, 0.6246899962425232, 0.7050482034683228, 0.4446764886379242, -0.5158472657203674, 0.5964880585670471, -0.3994176387786865, -1.0397528409957886, 0.053166382014751434, 0.24957814812660217, -0.23988300561904907, -1.1488691568374634, 0.3936043977737427, ...
def strattrnameni ( self, * args ) : return _ snap. pneanetmp _ strattrnameni ( self, * args )
[ -0.5067116022109985, -0.3124401271343231, 0.26650890707969666, -0.0113427909091115, -0.3454047739505768, 0.07134802639484406, -0.5332287549972534, -1.9308035373687744, -1.2197792530059814, 0.6692197918891907, -0.5631188750267029, -1.1619243621826172, -0.979002833366394, -0.5050988793373108...
def setrequestendcallback ( callback ) : req _ id = getrequestid ( ) if req _ id : _ callback _ storage. setdefault ( req _ id, [ ] ). append ( callback )
[ -0.7654833793640137, -0.01022265013307333, 0.38622215390205383, 0.5132473111152649, 0.5610552430152893, 0.2728329598903656, -0.5377092957496643, 0.06791491061449051, 0.761577308177948, -0.1536579579114914, -0.8060011267662048, -0.0503326915204525, -0.7711306214332581, 1.3726806640625, 0....
def get _ hk _ model ( model : " str | dict " ) : # if the model is a string, get a model from the _ adsorbent _ models if isinstance ( model, str ) : if model not in _ adsorbent _ models : raise parametererror ( f " model ( { model } ) is not an option for pore size distribution. ", f " available models are { _ adsorb...
[ -0.32371339201927185, 0.23063553869724274, 0.5881925225257874, 0.5940775275230408, -0.4298523962497711, 0.9471266865730286, -0.119622141122818, 0.05206464231014252, -0.2839631140232086, 0.19358672201633453, 0.9355273246765137, 0.000931284565012902, -0.7664963006973267, 0.4001273512840271, ...
def _ _ call _ _ ( self, * args ) : return _ snap. tintinth _ _ _ call _ _ ( self, * args )
[ -0.8228647708892822, 0.18660961091518402, 0.10619761049747467, 0.030793610960245132, -0.18578407168388367, 0.5510003566741943, -0.7717803716659546, -1.2218856811523438, -0.5012869834899902, -0.0071093617007136345, -0.9302082657814026, -0.358839750289917, -1.0405250787734985, -0.32171860337...
def _ _ eq _ _ ( self, * args ) : return _ snap. tstrintprhi _ _ _ eq _ _ ( self, * args )
[ 0.0619334802031517, -0.664413571357727, 0.187064528465271, -1.2834564447402954, 0.14151425659656525, 0.6188482046127319, -0.19606642425060272, 0.5132686495780945, -1.588646650314331, 0.8239237070083618, -0.6094584465026855, -0.8284587860107422, -0.3840116560459137, -0.11333337426185608, ...
def tpms _ pressure _ fr ( self ) - > float : return self. _ vehicle _ data. get ( " vehicle _ state ", { } ). get ( " tpms _ pressure _ fr " )
[ 0.21450652182102203, -0.23095908761024475, 0.20028488337993622, -0.9231899380683899, 0.5545231699943542, -0.5412344336509705, -0.6580410599708557, -0.4689166843891144, -0.17686671018600464, 0.3189559280872345, 0.25888240337371826, -1.0015748739242554, -0.9183688759803772, -0.51126873493194...
def gengrid _ pngraph ( * args ) : return _ snap. gengrid _ pngraph ( * args )
[ -1.462107539176941, 1.5358965396881104, 0.34604448080062866, -0.0759453997015953, 0.015685325488448143, 0.07257076352834702, 0.01573089323937893, -0.5623406171798706, -1.0722291469573975, 0.05627337470650673, -0.6781095862388611, 0.033417411148548126, -0.14310495555400848, 0.44553941488265...
def is _ success ( exit _ code ) : return exit _ code = = 0
[ -0.9784446954727173, 0.7807086706161499, 0.3508906364440918, 1.2420001029968262, 0.5935957431793213, 0.5600292086601257, -0.7259691953659058, 1.1169880628585815, 0.43743643164634705, 0.2952536344528198, -0.030763451009988785, -0.4576394557952881, 0.4890277087688446, 0.4367437958717346, -...
def groupbyintcolmp ( self, * args ) : return _ snap. ttable _ groupbyintcolmp ( self, * args )
[ -0.1928333044052124, -0.12879051268100739, 0.24976840615272522, 0.12947408854961395, 1.4401758909225464, 0.10320409387350082, 1.0208169221878052, -1.807875156402588, -1.5504120588302612, 0.7767704725265503, -0.1505984514951706, -1.193772554397583, -1.4807242155075073, 0.2954106330871582, ...
def combine ( self ) : if self. num _ parts = = 1 : if self. check is none or self. check ( ) : self. combinations. append ( ( self. ll, ) ) return self. results [ 1 ]. append ( ( [ self. ll [ - 1 ] ], self. ll [ : - 1 ] ) ) self. make _ new _ pattern ( 0, [ self. ll [ - 1 ] ], [ ], self. ll [ : - 1 ], 1 ) i = 2 while ...
[ -0.4918309152126312, 0.6120809316635132, 0.8995769619941711, 0.5748667120933533, 0.3536525368690491, -0.2289774864912033, 0.720930814743042, 0.047635748982429504, 0.2414284497499466, -0.3513423800468445, 0.1783754974603653, -0.7157753705978394, -0.7884084582328796, -0.06325426697731018, ...
def test _ abundance _ of _ fodder _ herbivores ( self ) : self. cell. fodder _ in _ cell = 0 assert self. cell. abundance _ of _ fodder _ herbivores = = 0
[ -0.1203111857175827, -0.21895164251327515, 0.5210073590278625, 1.0254937410354614, 1.6298425197601318, -0.4940889775753021, 0.1905657947063446, -0.1299746185541153, -0.25411465764045715, 0.3259797692298889, -0.24114158749580383, 0.2955891788005829, 0.32801535725593567, 1.2857253551483154, ...
def track ( self, number ) : if pd. isnull ( number ) or ( not isinstance ( number, numbers. real ) ) or isinstance ( number, bool ) : # xxx : this type checking may still be fragile in python. return self. variance. update ( number ) self. theta _ sketch. update ( number ) self. frequent _ numbers. update ( number ) #...
[ -0.5236914157867432, 0.9569410681724548, 0.5896114706993103, -0.20094555616378784, 0.6189269423484802, -0.11066623777151108, 1.0428911447525024, -0.7610233426094055, -0.09757042676210403, -0.8986737132072449, -0.1229800209403038, 0.23890601098537445, 0.07953345775604248, 0.7650889158248901...
def plotsngvec ( * args ) : return _ snap. plotsngvec ( * args )
[ -0.3489389419555664, 0.9744980931282043, 0.34889188408851624, 0.3863808214664459, -0.12952682375907898, 0.8510165810585022, 1.305618405342102, -0.5003972053527832, -0.7646563649177551, -0.006354062352329493, -0.944513738155365, 1.484470009803772, 0.32231250405311584, 0.8229255676269531, ...
def create _ role ( ) : try : print ( " 1. 1 creating a new iam role " ) _ dwhrole = iam. create _ role ( path ='/ ', rolename = dwh _ iam _ role _ name, description = " allows redshift clusters to call aws services on your behalf. ", assumerolepolicydocument = json. dumps ( {'statement': [ {'action':'sts : assumerole ...
[ 0.4573192894458771, 0.17634274065494537, 0.7208877801895142, -0.9531766176223755, 0.6319382190704346, 1.3891619443893433, -0.4733041822910309, -0.3708495497703552, 0.6951693296432495, 0.3394363224506378, 0.14442746341228485, 0.48469921946525574, -0.7184156775474548, 0.43429234623908997, ...
def test _ atomic _ any _ uri _ length _ 4 _ nistxml _ sv _ iv _ atomic _ any _ uri _ length _ 5 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - length - 5. xsd ", instance = " nistdata / atomic / any...
[ -0.014685343950986862, -0.5140652656555176, 0.333634614944458, 0.6963316202163696, -0.6004027128219604, -0.6221675872802734, 0.07836713641881943, -0.5972094535827637, -0.6487653851509094, 0.1240004301071167, -0.2795526087284088, -0.37211471796035767, -0.39662694931030273, 0.547203183174133...
def isort ( self, * args ) : return _ snap. schema _ isort ( self, * args )
[ -1.0024679899215698, -0.1340479701757431, 0.48693716526031494, 0.0007869225810281932, 0.006196076050400734, 0.46673721075057983, 0.34743788838386536, 0.03942539915442467, 0.30120640993118286, -0.015009899623692036, -0.21341504156589508, -0.03616529703140259, -1.9026342630386353, 0.12059325...
def valid _ utility _ climate _ zone _ combos ( utility, year ) : utility _ cz = get _ all _ valid _ utility _ climate _ zone _ combinations ( year, utility ) click. echo ( json. dumps ( utility _ cz. groupby ( " utility " ) [ " climate _ zone " ]. agg ( lambda x : ", ". join ( x ) ). to _ dict ( ), indent = 2, ) )
[ -0.4934491813182831, -0.01079208217561245, 0.3516383767127991, 0.31106188893318176, -0.3741917014122009, 0.3451709747314453, 0.12248823046684265, -0.07293572276830673, 0.0031341027934104204, 0.30814018845558167, -0.12210581451654434, 0.7509193420410156, 0.7848922610282898, -0.0462500713765...
def parse _ field _ names ( field _ names, *, underscore = false, rename = false ) : # validate the field names. at the user's option, either generate an error # message or automatically replace the field name with a valid name. if isinstance ( field _ names, str ) : field _ names = field _ names. replace ( ', ','' ). ...
[ -0.7622978687286377, 0.19568441808223724, 0.539557695388794, -0.46034204959869385, -0.028775349259376526, -0.4560956656932831, -0.9558723568916321, 0.323070228099823, 0.3122052550315857, 0.40290072560310364, -1.0118358135223389, -0.04686332121491432, 0.21944306790828705, -0.136840969324111...
def _ _ init _ _ ( self, context, name, parent, numberofobjects, lspconfig ) : numlsp = lspconfig. numberofregularloudspeakers super ( ). _ _ init _ _ ( context, name, parent ) self. audioin = visr. audioinputfloat ( " in ", self, numberofobjects ) self. audioout = visr. audiooutputfloat ( " out ", self, numlsp ) self....
[ 0.6986129283905029, -0.35368144512176514, 0.860503077507019, 0.6928463578224182, 0.24346524477005005, -0.0997188612818718, 0.5062417387962341, -0.6945051550865173, 0.3705385625362396, -0.03865884989500046, -0.3704754710197449, 0.24678921699523926, 0.08245544135570526, 0.7502971291542053, ...
def request ( self, host, path, bearer _ token, url _ params = none ) : url _ params = url _ params or { } url ='{ 0 } { 1 } '. format ( host, quote ( path. encode ('utf8') ) ) headers = {'authorization':'bearer % s'% bearer _ token, } response = requests. request ('get ', url, headers = headers, params = url _ params ...
[ -0.3258340656757355, -0.299490362405777, 0.7611290812492371, 0.7716187834739685, 0.3424818217754364, -0.8750384449958801, -0.9559693932533264, 0.5192124843597412, -0.6789217591285706, 0.13314367830753326, -0.42179909348487854, 0.8516781330108643, -0.10819713771343231, -0.31137728691101074,...
def count ( self, * args ) : return _ snap. tinttrv _ count ( self, * args )
[ -1.0652590990066528, -0.832881510257721, 0.18247206509113312, -0.33630889654159546, 0.12776592373847961, 0.22214022278785706, 0.9873321056365967, -0.4045524001121521, -1.0841798782348633, -0.14575308561325073, -0.5627996325492859, -0.1729440689086914, -0.34536150097846985, 0.39905190467834...
def find _ min _ key ( keys, mstset, num _ vertices ) : # initialize min value min _ key = float ('inf') for vertex in range ( num _ vertices ) : if keys [ vertex ] < min _ key and vertex not in mstset : min _ key = keys [ vertex ] min _ index = vertex return min _ index
[ 0.3443399965763092, -0.5558514595031738, 0.2330344170331955, 0.019815916195511818, -1.6909065246582031, -0.29427605867385864, 0.02710990607738495, -0.6946314573287964, -0.481130987405777, 0.3522868752479553, 0.02541787549853325, 0.764625072479248, -0.8329554796218872, 0.6748784184455872, ...
def clone ( self, alias, talk = true, config _ root = none ) : if config _ root = = none : config _ root = dbmarshal. get _ config _ root ( ) path = config _ root +'/'+ alias if not os. path. isdir ( config _ root ) : os. makedirs ( config _ root ) f = open ( path,'w') config = {'hostname': self. _ _ hostname,'username...
[ -0.2069711685180664, -0.01270576287060976, 0.9458650946617126, 0.35164883732795715, -0.021155480295419693, 0.7972792983055115, -0.055681001394987106, 0.3989936113357544, 0.11090606451034546, 0.8228124976158142, -0.7159762978553772, 0.0038285970222204924, -0.042967539280653, 0.2486667037010...
def tokenize ( document ) : ignore _ words = nltk. corpus. stopwords. words ( " english " ) words = nltk. word _ tokenize ( document ) words = [ word. lower ( ) for word in words if word. lower ( ) not in ignore _ words and not all ( char in list ( string. punctuation ) for char in word ) ] return words
[ -0.3005470633506775, -0.5536284446716309, 0.5020486116409302, 0.1465122550725937, -0.5825604796409607, 0.5089418292045593, -0.37416794896125793, 0.9856728911399841, -0.2320263534784317, 0.8046471476554871, -0.6167512536048889, -0.33053159713745117, -0.9064039587974548, 1.0112236738204956, ...
def _ get _ command _ counters ( self, conn ) : sql = ('select sum ( total _ time _ us ) as query _ sum _ time _ us,'' sum ( total _ cnt ) as query _ count'' from stats. stats _ mysql _ commands _ counters') try : with closing ( conn. cursor ( ) ) as cursor : cursor. execute ( sql ) if cursor. rowcount < 1 : self. warn...
[ 0.43938466906547546, 0.5664719939231873, 0.5360421538352966, -0.8680658936500549, 0.1639588624238968, -0.62165766954422, 0.22374820709228516, -0.761572003364563, 0.03759997338056564, -0.6143335700035095, -0.020893121138215065, -0.5122621655464172, 0.13902275264263153, 0.3264752924442291, ...
def recursive _ mv ( self, engine _ path, from _ path, to _ path ) : if not from _ path. endswith ( " / " ) : from _ path = from _ path + " / " if not to _ path. endswith ( " / " ) : to _ path = to _ path + " / " for secret in self. recursive _ list ( engine _ path, from _ path ) : if secret. endswith ( " / " ) : conti...
[ -0.4192218482494354, 0.0020167308393865824, 0.6819511651992798, 0.6111907958984375, -0.3503014147281647, -0.3567039370536804, -0.31927844882011414, 0.7478358149528503, -0.3241691589355469, 0.3126218914985657, -0.2847156822681427, 0.2809433043003082, 0.353823721408844, 0.21479123830795288, ...
def _ _ lt _ _ ( self, * args ) : return _ snap. tstrboolhi _ _ _ lt _ _ ( self, * args )
[ 0.9269379377365112, -0.4702647030353546, 0.07362566888332367, -1.3079487085342407, 0.6816984415054321, 0.46206098794937134, -0.10077743977308273, -0.7033658623695374, -2.306612253189087, -0.17240799963474274, -0.9056746959686279, -1.275775671005249, -0.32438981533050537, 0.2955909967422485...
def _ events _ list _ compare ( items _ src, items _ dst, key ='icaluid') : def get _ key ( item ) : return item [ key ] keys _ src = set ( map ( get _ key, items _ src ) ) keys _ dst = set ( map ( get _ key, items _ dst ) ) keys _ to _ insert = keys _ src - keys _ dst keys _ to _ update = keys _ src & keys _ dst keys ...
[ -0.8199482560157776, -0.4332871437072754, 0.8132918477058411, -0.8498925566673279, -0.40220212936401367, -0.273786336183548, -0.21811139583587646, 0.784781277179718, -0.007727018091827631, 1.2201727628707886, -1.1275050640106201, -0.356050968170166, 0.1086110845208168, -0.3235967457294464,...
def query _ new _ doc ( content, title = none, date = none ) : df. append ( {'content': content,'title': title,'date': date }, ignore _ index = true ) fea _ vec, fea _ names = tfidf _ fit ( df ) print _ close _ docs ( fea _ vec. iloc [ - 1 ], fea _ vec, df )
[ -0.30951279401779175, 0.3270597457885742, 0.28356003761291504, 0.0882050022482872, -0.19143815338611603, -0.016137855127453804, 0.228990837931633, -0.5246198177337646, -1.2647815942764282, -0.44015899300575256, 1.0172529220581055, 0.3454149067401886, -0.5589675307273865, -0.090716712176799...
def _ _ eq _ _ ( self, * args ) : return _ snap. tintflthi _ _ _ eq _ _ ( self, * args )
[ -0.6379531621932983, -0.07975055277347565, -0.07605592161417007, 0.06037396937608719, 0.9133154153823853, -0.009726336225867271, 0.43970417976379395, -1.243770956993103, -0.8101000189781189, -0.08203455060720444, -0.09933985769748688, -1.0694996118545532, -0.37087440490722656, 0.8830666542...
def test _ atomic _ hex _ binary _ enumeration _ 3 _ nistxml _ sv _ iv _ atomic _ hex _ binary _ enumeration _ 4 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - enumeration - 4. xsd ", instance ...
[ -0.5829187035560608, -0.33708906173706055, 0.6213306784629822, 0.5497209429740906, 0.08767828345298767, 0.2456664741039276, -0.07168391346931458, -0.13455262780189514, -0.06248295307159424, 0.18799030780792236, -0.48355191946029663, -1.014849305152893, -0.33790403604507446, 0.0287362057715...
def billing _ country _ name ( self ) : return self. _ billing _ country _ name
[ 0.37480729818344116, 0.09457050263881683, 0.3339637815952301, 0.43106451630592346, -0.4674997925758362, 2.0230000019073486, 0.7449325919151306, 0.11659862101078033, -0.011406484059989452, -0.3253563940525055, 0.24086329340934753, 0.028953179717063904, -0.05184999853372574, 1.05833339691162...
def get _ 0 ( self, org, sddc, page _ size = none, start _ index = none, prev _ sddc _ network _ id = none, sort _ order _ ascending = none, ) : return self. _ invoke ('get _ 0 ', {'org': org,'sddc': sddc,'page _ size': page _ size,'start _ index': start _ index,'prev _ sddc _ network _ id': prev _ sddc _ network _ id,...
[ -0.28237563371658325, 1.171228289604187, 0.6845905184745789, 0.159939706325531, 0.6431770324707031, -0.9507416486740112, -0.06107182055711746, -0.7045713663101196, 0.35745859146118164, -0.5632750391960144, 0.46676746010780334, 1.1272103786468506, 0.12014199793338776, -0.07750856876373291, ...
def prestage _ subcloud ( context, payload ) : subcloud _ name = payload ['subcloud _ name'] log. info ( " prestaging subcloud : % s, force = % s " % ( subcloud _ name, payload ['force'] ) ) try : subcloud = db _ api. subcloud _ get _ by _ name ( context, subcloud _ name ) except exceptions. subcloudnamenotfound : log....
[ 0.04609416052699089, 1.0722757577896118, 0.8461729884147644, 0.17211464047431946, 0.018698494881391525, 0.16711872816085815, -0.07051068544387817, -0.03095473349094391, 0.06428391486406326, 0.3474489748477936, -0.6297692656517029, 0.18131127953529358, -0.5717828869819641, 0.441104054450988...
def getdat ( self, * args ) : return _ snap. tcncomv _ getdat ( self, * args )
[ 0.2648467719554901, 0.6485538482666016, 0.3716999292373657, -0.8669695258140564, 1.9166452884674072, 0.12729346752166748, 0.795046329498291, -0.7360091805458069, -0.28886741399765015, -1.0280449390411377, -0.12130989879369736, -0.6538927555084229, -0.17756837606430054, 0.7588831782341003, ...
def _ _ eq _ _ ( self, * args ) : return _ snap. tstrstrintprvhi _ _ _ eq _ _ ( self, * args )
[ -0.4383533298969269, -0.7966335415840149, 0.16168387234210968, -0.41115808486938477, 0.2643250823020935, 0.8341172337532043, -0.20505353808403015, 0.40483906865119934, -1.1140333414077759, 0.6413027048110962, -0.0540526919066906, -0.36409157514572144, -1.2619500160217285, 0.580982863903045...
def process _ frame ( frame ) : med _ task _ set = [ ] large _ task _ set = [ ] cluster _ boxes _ data = get _ cluster _ box _ info ( frame, box _ info ) task _ batches = [ ] known _ boxes = [ ] avg _ box = [ ] # student's code here for cluster in cluster _ boxes _ data : tmp _ coord = [ ] tmp _ coord. append ( cluster...
[ 0.07491770386695862, 0.184336319565773, 1.1713632345199585, 0.05241316556930542, 0.01880737394094467, -0.46688058972358704, 1.013950228691101, -0.1472437083721161, 0.18539656698703766, 0.1881529837846756, -0.8483999371528625, -0.43605905771255493, 0.6952226161956787, 0.5768950581550598, ...
def getdat ( self, * args ) : return _ snap. tfltv _ getdat ( self, * args )
[ 0.1960800737142563, 0.5584195256233215, 0.30458006262779236, -0.491473525762558, 1.2394756078720093, -0.008404253050684929, 0.5970077514648438, -0.10760332643985748, -1.0927605628967285, -1.3306342363357544, -0.11215619742870331, -0.7014881372451782, -0.09389137476682663, 0.976456582546234...
def testaddremoveconsumer ( self ) : self. assertequal ( { }, self. sf. listconsumers ( ) ) self. sf. addconsumer ('a') self. assertequal ( ['a'], list ( self. sf. listconsumers ( ) ) ) self. sf. removeconsumer ('a') self. assertequal ( { }, self. sf. listconsumers ( ) )
[ 0.1700744926929474, -0.42176929116249084, 0.4187788963317871, -0.23668339848518372, 0.6701319217681885, -1.1044877767562866, -0.581737756729126, 0.3088681995868683, 0.6402202844619751, 0.3540661633014679, -0.4625973403453827, 0.1562352329492569, -0.780967652797699, 1.147693395614624, 0.8...
def test _ price _ in _ range ( self ) : c = calculator ( ) c. prod _ mode = false c. spot _ prices = [ 49300 / 3, 49200 / 3, 49100 / 3 ] c. last _ sigma = 150 c. last _ mean = 49000 c. past _ price = [ 49200, 49800, 49900, 49000, 48000 ] result = c. calculate ( ) self. assertequal ( result [ 0 ], 49199. 99999999999 ) ...
[ -0.9972238540649414, -0.21481402218341827, 0.6109660863876343, 0.3159278333187103, 0.10263456404209137, 0.4328523576259613, 0.5429078936576843, -0.2784760892391205, -0.32754451036453247, 0.1981314867734909, -0.3444187641143799, -0.3999538719654083, -0.7405411601066589, -0.23287144303321838...
def leave _ simplestatementline ( self, original _ node : cst. simplestatementline, updated _ node : cst. simplestatementline, ) - > union [ cst. simplestatementline, cst. flattensentinel ] : # determine whether to apply an annotation assign = updated _ node. body [ - 1 ] if not isinstance ( assign, cst. assign ) : # o...
[ 0.08998336642980576, -0.7580307722091675, 0.8238665461540222, -0.2391066551208496, -0.7572407126426697, -0.04630882292985916, -0.4148055613040924, 0.1215776652097702, 0.5174230337142944, 0.5656259655952454, 0.16887494921684265, 0.3325466513633728, -0.43264520168304443, 0.1018163189291954, ...
def geojson _ s3 ( mp _ s3 _ tmpdir ) : with processfixture ( testdata _ dir / " geojson. mapchete ", output _ tempdir = mp _ s3 _ tmpdir, ) as example : yield example
[ 0.45086240768432617, -0.9606857895851135, 0.4783577620983124, -0.7835338711738586, -0.6668261289596558, 1.102403163909912, -0.3172098398208618, -0.08925669640302658, 0.7670091986656189, 0.27449268102645874, -0.17196166515350342, 0.1652817726135254, 0.7543998956680298, -0.09739778935909271,...
def itksubtractconstantfromimagefilteriuc2diuc2 _ cast ( * args ) : return _ itksubtractconstantfromimagefilterpython. itksubtractconstantfromimagefilteriuc2diuc2 _ cast ( * args )
[ -0.04497380182147026, -0.261202871799469, 0.21403762698173523, -0.5638415217399597, -0.6569381952285767, 0.10739940404891968, 0.9952003955841064, 0.5422062873840332, -1.142749309539795, -0.4344896674156189, -0.3428025543689728, 0.5407466888427734, 1.1865828037261963, -0.23190511763095856, ...
def main ( ) : df = return _ processed _ diamonds _ data _ set ( ) if df. isnull ( ). sum ( ). sum ( )! = 0 : raise valueerror ('your data has unintended nulls.') df. describe ( ) # split into training and testing sets input _ variables = df [ ['cut ','color ','clarity ','mass'] ] output _ variable = df. price _ expens...
[ 0.021556846797466278, 0.365017294883728, 0.8635384440422058, -0.2694762051105499, -0.35385948419570923, 0.02488896995782852, 0.7116433382034302, 0.2810834050178528, -0.012253490276634693, 0.25511184334754944, -0.49354493618011475, 1.2883316278457642, 0.7389889359474182, -0.4077081978321075...
def inline _ truncate ( value, size ) : if len ( value ) > size and size > 3 : start = ( size - 3 ) / 2 end = ( size - 3 ) - start return value [ 0 : start ] + '...'+ value [ - end : ] else : return value [ 0 : size ]
[ 1.2995567321777344, -0.08837443590164185, 0.7417871356010437, -0.24409912526607513, -0.5069327354431152, -0.07274094223976135, -0.2644817531108856, 0.04479505494236946, 0.504189133644104, 0.2801055312156677, -0.27419620752334595, 0.6831446290016174, -0.8461118936538696, -1.9851512908935547...
def get _ magnitude _ along ( self, * args, unit = " si ", is _ norm = false, axis _ data = [ ], is _ squeeze = true, is _ sum = true, corr _ unit = none ) : if len ( args ) = = 1 and type ( args [ 0 ] ) = = tuple : args = args [ 0 ] # if called from another script with * args # fix axes order args = fix _ axes _ order...
[ -0.2047712653875351, -0.06914657354354858, 1.036494255065918, 0.33450207114219666, 0.48741477727890015, -0.5776829719543457, 0.3093075752258301, -0.10546903312206268, -0.06830693036317825, -0.09539695829153061, 0.6809356212615967, 0.305633544921875, -0.593320369720459, 0.5373479127883911, ...
def printgraphstattable _ pneanetmp ( * args ) : return _ snap. printgraphstattable _ pneanetmp ( * args )
[ 0.1826363205909729, 0.1891535520553589, 0.17922639846801758, 0.39026808738708496, -0.26399746537208557, 0.6929529309272766, 0.6572151184082031, -1.5307583808898926, -0.9431822299957275, 0.18790094554424286, 0.07715422660112381, 0.24802401661872864, -1.0824791193008423, 0.35592949390411377,...
def environ ( self ) : return self. _ environ
[ 0.3496328592300415, -0.7879657745361328, 0.19366297125816345, -0.2887677252292633, 0.037328656762838364, 1.199328064918518, 1.366668701171875, 0.2287488877773285, -0.21739597618579865, -0.39098772406578064, -0.4616037905216217, 1.0473294258117676, -0.11212368309497833, 0.3839000165462494, ...
def testpartfailmoveattachmenttwoevents ( self ) : self. _ createbuffer ( {'copy _ attachments': false } ) with file _ utils. unopenedtemporaryfile ( ) as path : real _ event = datatypes. event ( { }, {'a': path } ) fake _ event = datatypes. event ( { }, {'a':'/ tmp / non _ existent _ file'} ) self. assertequal ( false...
[ 0.49521511793136597, -0.33153966069221497, 0.684995174407959, -0.3360024690628052, 0.20040616393089294, 0.700242280960083, 1.0546066761016846, -0.4832162857055664, 0.07258754223585129, -0.7060645818710327, -0.4264783561229706, 0.32670000195503235, 0.4367707371711731, -0.26988452672958374, ...
def group _ base _ message _ key ( cls, message ) : return {'id': message. strategy _ id,'time': message. date }
[ -0.44169726967811584, -0.43123432993888855, 0.3083518445491791, -0.3638698160648346, 0.4658200442790985, 0.009558564983308315, 0.039584118872880936, -1.3354631662368774, -1.1131839752197266, 1.113224983215332, 0.1670800894498825, 0.5733410716056824, -0.44054609537124634, 1.1790279150009155...
def make _ clean ( self, zip _ file ) : path = os. path. join ( self. tmp _ path, os. listdir ( self. tmp _ path ) [ 0 ] ) for root, _, file _ names in os. walk ( path ) : for file _ name in file _ names : f = file _ name. lower ( ) if f. endswith ( ". o " ) : os. remove ( os. path. join ( root, file _ name ) ) elif f....
[ 0.2526852488517761, -0.8772484064102173, 1.170361876487732, -0.6233307123184204, -1.0220264196395874, 0.2022104561328888, 1.3669923543930054, 0.07725800573825836, -0.19714704155921936, 0.5934789776802063, -0.29858002066612244, -0.4735896587371826, 0.01963932439684868, 0.5061108469963074, ...
def _ _ eq _ _ ( self, * args ) : return _ snap. tneanetastri _ _ _ eq _ _ ( self, * args )
[ -0.9173396229743958, -0.27443647384643555, -0.09118149429559708, -0.7509493231773376, 0.6228142976760864, 0.49091601371765137, 0.4553670287132263, -0.07868064194917679, -0.2513950765132904, 0.8994085192680359, -0.4722556173801422, -1.3200985193252563, 0.29330283403396606, 0.547996699810028...
def _ _ call _ _ ( self, * args ) : return _ snap. tintflth _ _ _ call _ _ ( self, * args )
[ -0.6272372007369995, 0.547146201133728, 0.04840955510735512, 0.26951104402542114, 0.14386536180973053, 0.1051611453294754, -0.9305567741394043, -1.0526095628738403, -0.6748461127281189, -0.4925296902656555, -0.08737226575613022, -1.1277052164077759, -0.48875001072883606, 0.1416462957859039...
def schedule _ next _ cycle ( self, time _ lapsed ) : sleep _ time = self. _ evaluate _ sleep _ period ( time _ lapsed ) time. sleep ( sleep _ time )
[ -0.6361204981803894, 0.1200585812330246, 0.3238227963447571, 0.08204290270805359, -0.537250816822052, 0.8322026133537292, 0.31754985451698303, -0.6355404853820801, -0.44016093015670776, -0.4721846282482147, 0.043917588889598846, 0.1728435903787613, 0.13738714158535004, 0.028059354051947594...
def tint _ getinrng ( * args ) : return _ snap. tint _ getinrng ( * args )
[ -0.04791433736681938, -0.07908918708562851, 0.2198890894651413, 0.38857898116111755, 0.2339043915271759, -0.42201337218284607, -0.2770959734916687, -0.5890579223632812, -1.034895658493042, -0.20945893228054047, -0.35632890462875366, 0.6529403924942017, -1.597790002822876, 0.358640670776367...
def setup _ platform ( hass, config, add _ entities, discovery _ info = none ) : name = config. get ( conf _ name ) service _ key = config. get ( conf _ service _ key ) station _ name = config. get ( conf _ station _ name ) monitored _ conditions = config. get ( conf _ monitored _ conditions ) sensors = [ ] if monitore...
[ -0.13180319964885712, -0.38356927037239075, 0.5575098395347595, 0.7511430978775024, 0.5021232962608337, 0.323652446269989, -0.06268846988677979, 0.010969661176204681, -0.1988941729068756, 0.39293724298477173, -0.09606170654296875, -0.586300790309906, -0.05993935465812683, 1.48682701587677,...
def sendartreport ( request ) : valid, response = initrequest ( request ) template ='templated _ email / artreportpackage. html'try : email _ subject _ prefix = settings. email _ subject _ prefix except : _ logger. warning ('no email _ subject _ prefix set in settings, keeping blank') email _ subject _ prefix ='' subje...
[ -0.34819096326828003, 0.20485225319862366, 0.6501895785331726, -0.69549560546875, -0.2956860065460205, -0.32633939385414124, 0.35551732778549194, -0.8036057353019714, -0.5046020746231079, 0.3920031487941742, 0.015564829111099243, -0.358462929725647, -0.11243972927331924, 0.3581394851207733...
def resolve _ variables ( variables, context, provider ) : for variable in variables : variable. resolve ( context, provider )
[ -0.9393985867500305, -0.003629446029663086, 0.13791272044181824, -0.04608844593167305, 1.1751885414123535, -0.7034786939620972, -1.1268779039382935, 0.4278854429721832, 0.1098853126168251, 0.22443969547748566, -0.7505443096160889, -0.26388975977897644, -0.3349345922470093, -0.1220759972929...
def displaybrailleregions ( regioninfo, flashtime = 0 ) : if not _ settingsmanager. getsetting ('enablebraille') \ and not _ settingsmanager. getsetting ('enablebraillemonitor') : debug. println ( debug. level _ info, " braille : display regions disabled " ) return braille. displayregions ( regioninfo, flashtime )
[ 0.9420837759971619, 0.012379172258079052, 0.4569211006164551, -0.01029504369944334, -0.4480524957180023, 0.5877625346183777, 0.14887744188308716, -0.14576837420463562, 0.203143909573555, -0.2177083045244217, -0.04998091608285904, 0.2777228355407715, -1.412361979484558, 0.968439519405365, ...
def selectatomicstrconst ( self, * args ) : return _ snap. ptable _ selectatomicstrconst ( self, * args )
[ 0.23635949194431305, -0.8857979774475098, 0.09135288745164871, -0.6511637568473816, 0.010707576759159565, 0.41615843772888184, 0.4125312566757202, -1.0924484729766846, -1.2932263612747192, 0.4791916012763977, 0.2520526647567749, 0.6036669611930847, -0.03867591544985771, -1.1331899166107178...
def getintattrdatn ( self, * args ) : return _ snap. tneanet _ getintattrdatn ( self, * args )
[ -0.7944906949996948, 0.08196955174207687, 0.43641406297683716, -0.24705521762371063, 0.7160346508026123, -0.31046709418296814, 0.7016352415084839, -0.18237079679965973, -0.9812445044517517, -0.6583999991416931, -0.4288860559463501, -0.48490121960639954, -0.27510079741477966, 0.276145011186...
def setfltval ( self, * args ) : return _ snap. tpredicate _ setfltval ( self, * args )
[ -0.7322403192520142, 0.9570153951644897, 0.33728837966918945, -0.7087103128433228, -0.1192438155412674, 0.39040660858154297, 0.10464280843734741, 0.46017149090766907, -1.2084565162658691, -0.2215379774570465, -0.7324092388153076, -0.2002497762441635, 0.08514489978551865, 1.4926304817199707...