text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def _ buildentitiessection ( self, rawsection ) : new _ section = entitiessection ( ) for rawdocnode in rawsection : new _ docnodes = self. _ builddocumentnode ( rawdocnode ) new _ section. docnodes. extend ( new _ docnodes ) return new _ section | [
-0.5965319871902466,
-0.6740661859512329,
0.33535483479499817,
-1.1858468055725098,
-0.41114097833633423,
0.5517411828041077,
-0.09133812040090561,
-0.6118725538253784,
-0.03974262997508049,
-0.39569732546806335,
1.2102625370025635,
-0.43066123127937317,
0.2579101324081421,
1.2202694416046... |
def _ _ len _ _ ( self ) : pos = self. tell ( ) end = self. seek ( 0, io. seek _ end ) self. seek ( pos ) return end | [
0.47235432267189026,
-0.63399338722229,
0.5626242756843567,
-1.0118228197097778,
0.3579863905906677,
-0.043239593505859375,
0.3212287127971649,
-0.4658781886100769,
0.07567953318357468,
-0.3662579357624054,
-0.4466629922389984,
-0.45575082302093506,
-0.2578161358833313,
-0.7094243764877319... |
def describebilldetail ( self, request ) : try : params = request. _ serialize ( ) headers = request. headers body = self. call ( " describebilldetail ", params, headers = headers ) response = json. loads ( body ) model = models. describebilldetailresponse ( ) model. _ deserialize ( response [ " response " ] ) return m... | [
-0.6265355944633484,
1.176389217376709,
0.540518045425415,
0.04616020619869232,
0.1809452623128891,
0.3198380470275879,
0.05408182367682457,
-0.6228578686714172,
-0.1082940399646759,
-0.2776406407356262,
-0.7120867967605591,
1.352461338043213,
-0.8365063667297363,
1.0154786109924316,
-0.... |
def name ( self ) - > str : return self. _ name | [
-0.404328852891922,
-1.072009801864624,
0.10539824515581131,
-0.45077598094940186,
-0.8229008316993713,
1.146654725074768,
-0.17474815249443054,
-0.32431599497795105,
-0.0291740782558918,
0.37083619832992554,
-0.08448516577482224,
0.2760368585586548,
0.5119032263755798,
-0.4964417815208435... |
def configure _ logging ( level = logging. info ) : streamhandler = logging. streamhandler ( ) formatter = logging. formatter ( " % ( asctime ) s - % ( name ) s - % ( levelname ) s - % ( message ) s " ) streamhandler. setformatter ( formatter ) # awsiotpythonsdk. core logger iot _ logger = logging. getlogger ( " awsiot... | [
0.3338199555873871,
-0.37945911288261414,
0.6393399238586426,
-0.38356447219848633,
-0.4299866259098053,
0.06981974095106125,
-1.4108344316482544,
-0.3406095504760742,
0.28672802448272705,
-0.4253711998462677,
-0.07278801500797272,
-0.25964221358299255,
-0.11577503383159637,
1.262778162956... |
def store ( self ) : return self. _ block _ store | [
0.10135053098201752,
-0.596697211265564,
0.2238769382238388,
0.10602438449859619,
-0.6723886728286743,
0.5926781296730042,
1.050803303718567,
-0.6737149953842163,
1.0893752574920654,
-0.8267819285392761,
-0.32440412044525146,
0.3577395975589752,
-1.2934263944625854,
-0.6112121343612671,
... |
def _ add _ tcp _ connects ( self, node, calls, socketid, opentime, closetime ) : if closetime is not none : tcpconnects = calls [ ( calls ['api'] = ='connect') & ( calls ['time'] > = opentime ) & ( calls ['time'] < = closetime ) ] else : tcpconnects = calls [ ( calls ['api'] = ='connect') & ( calls ['time'] > = openti... | [
-0.7843881845474243,
0.29527339339256287,
0.7052819132804871,
-0.8019020557403564,
0.3074519634246826,
-0.1360635906457901,
-0.423455148935318,
-0.4385698437690735,
-0.4094334542751312,
0.9512842297554016,
0.5964837670326233,
0.2997080981731415,
0.16428261995315552,
-0.013273607939481735,
... |
def end _ after ( self ) : return self. _ pattern. get ( " active _ end _ occurence ", false ) | [
0.10720879584550858,
-0.8867011070251465,
0.5585289001464844,
0.16520802676677704,
0.5072265267372131,
0.7459154725074768,
1.0635825395584106,
0.5101731419563293,
-0.4606188237667084,
0.0018789061577990651,
-0.2706996500492096,
-0.1269465535879135,
-1.081350564956665,
-0.4285600781440735,
... |
def copy ( self, s3 _ src _ bucket, s3 _ dest _ bucket, s3 _ object, s3 _ object _ version = none, dryrun = true, public _ read = true ) : try : if not dryrun : s3 = boto3. resource ( " s3 ", region _ name = self. _ region, * * self. _ credentials ) copy _ source = { " bucket " : s3 _ src _ bucket, " key " : s3 _ objec... | [
0.002012974116951227,
-0.9103662967681885,
0.7958114743232727,
-0.07815231382846832,
-0.5009732246398926,
1.843050479888916,
-0.03266662359237671,
0.31725651025772095,
-0.08499100059270859,
0.845301628112793,
-0.3006506562232971,
0.4506817162036896,
0.6225055456161499,
-0.7138020992279053,... |
def md _ photo _ location _ uri ( image _ uri ) : return image _ uri + " / location " | [
-1.1519440412521362,
-0.845740556716919,
0.41484275460243225,
0.43343478441238403,
-0.23811806738376617,
0.4038291573524475,
0.2521246671676636,
1.0478044748306274,
0.4099063277244568,
-0.28045976161956787,
1.4016025066375732,
0.10482032597064972,
0.35822299122810364,
-0.270050585269928,
... |
def optparse _ init ( self ) : from optparse import optionparser, optiongroup usage ='usage : % prog [ options ] input _ file ( s ) [ output ]'p = optionparser ( usage, version ='% prog'+ _ _ version _ _ ) p. add _ option ('- t ','- - file _ type ', dest ='intputtype ', type ='choice ', choices = type _ list, help = " ... | [
0.249940425157547,
-0.2722128927707672,
0.9858946800231934,
-0.5517234802246094,
0.011670165695250034,
0.5300551056861877,
0.04192722588777542,
-0.6132197380065918,
-0.4421948492527008,
0.47011029720306396,
-0.4620458781719208,
0.02943108044564724,
-0.24430891871452332,
0.5987671613693237,... |
def persist ( self ) : if not self. _ within _ context _ manager : if self. target _ kind = = " filepath " : with open ( self. source, " w " ) as fp : return self. write ( fp, self. space _ around _ delimiters ) else : if self. target _ kind = = " stream " : target = self. source return self. write ( target, self. spac... | [
-0.7606727480888367,
-0.6387255787849426,
0.7157623767852783,
-0.8999204635620117,
0.4286537766456604,
-0.16648471355438232,
-0.6220822334289551,
-0.44837287068367004,
0.20768511295318604,
-0.5787520408630371,
0.7643812894821167,
0.9011505246162415,
-0.6914353966712952,
-0.2046857327222824... |
def rm ( file _ name ) : # check if the file exists check _ file ( file _ name ) # get file path from the directory contain. lgit to file file _ name = get _ path ( file _ name ) # change directory working set _ path ( _ _ file _ _ ) # check if the file in file index check _ tracked ( file _ name ) # take content all f... | [
0.4010588526725769,
-0.7759297490119934,
0.7780938148498535,
-0.18581978976726532,
0.05568281561136246,
0.26929762959480286,
0.23924267292022705,
0.9336289763450623,
-0.5422927141189575,
0.44387778639793396,
0.3354726731777191,
-0.2609131932258606,
-0.4805236756801605,
0.07077356427907944,... |
def verify _ plaintext ( request, client _ secret = none, resource _ owner _ secret = none ) : signature = sign _ plaintext ( client _ secret, resource _ owner _ secret ) return safe _ string _ equals ( signature, request. signature ) | [
0.14418253302574158,
-0.3841233551502228,
0.196928471326828,
1.1110789775848389,
-0.13618053495883942,
-0.001502055092714727,
-0.4412113428115845,
-0.5800116658210754,
0.215796560049057,
-0.11908169835805893,
-0.9151316285133362,
-0.4421268105506897,
-0.1463281810283661,
-0.507373332977294... |
def test _ get _ spike _ data ( ) : sigma = 0. 05 # import doesn't actually create a pointset ( it's slightly misnamed for this # purpose but it can do other things... ) data = importpointset ( path. join ( path. dirname ( _ _ file _ _ ),'test _ spikes. dat'), t = 0, sep ='\ t') vs = data ['vararray'] [ 0 ] # pick one ... | [
0.4399201571941376,
0.574603259563446,
0.5644411444664001,
0.31961920857429504,
0.4189460277557373,
-0.1672547161579132,
0.5009827017784119,
-0.5444735884666443,
0.2588316798210144,
-0.3647182583808899,
-0.4836176633834839,
0.4795195460319519,
0.31039702892303467,
-0.37510034441947937,
-... |
def test _ atomic _ boolean _ white _ space _ 2 _ nistxml _ sv _ iv _ atomic _ boolean _ white _ space _ 3 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / boolean / schema + instance / nistschema - sv - iv - atomic - boolean - whitespace - 3. xsd ", instance = " nistdat... | [
-0.5479626059532166,
0.1352025866508484,
0.5778827667236328,
0.813235878944397,
-0.071769580245018,
0.7299513220787048,
-0.08404576778411865,
-0.1987966150045395,
0.39000368118286133,
1.2759093046188354,
0.07828395068645477,
0.6287140846252441,
0.04399588704109192,
0.024187300354242325,
... |
def version ( self ) : return tuple ( self. _ root. get _ attr ( " version " ) ) | [
-0.6266435384750366,
-0.14101839065551758,
0.4146360754966736,
0.7402635216712952,
0.8296326994895935,
0.7529234290122986,
0.6274145245552063,
-0.2216150313615799,
-0.5632773637771606,
1.1124069690704346,
-1.353188157081604,
-0.7489159107208252,
0.12871479988098145,
0.3199319541454315,
0... |
def learn _ from _ epoch ( self, x _ batch, y _ batch ) : self. sess. run ( self. train, feed _ dict = { self. x : x _ batch, self. y : y _ batch } ) | [
0.1521429866552353,
-0.9952380061149597,
0.4049094319343567,
0.1599118858575821,
0.0004390661488287151,
0.525629460811615,
-0.8262033462524414,
0.13344600796699524,
-1.3191884756088257,
-0.9923270344734192,
-0.9126776456832886,
1.3132628202438354,
1.8427698612213135,
-0.07469650357961655,
... |
def spectral _ radius ( mat : np. ndarray ) - > float : return max ( abs ( np. linalg. eig ( mat ) [ 0 ] ) ) | [
0.48710712790489197,
-0.05486190319061279,
0.4711652994155884,
-0.1285811960697174,
0.12238724529743195,
0.4629559814929962,
-0.6427597403526306,
0.23540692031383514,
-0.12192990630865097,
1.3797290325164795,
1.6723464727401733,
0.10112962871789932,
-0.5088512301445007,
1.075605034828186,
... |
def generic ( cls, * * kwargs ) : return cls ( conductivity = 0. 16, specificheat = 1090, density = 800, name = " gp01 gypsum ", roughness = " smooth ", solarabsorptance = 0. 7, thermalemittance = 0. 9, visibleabsorptance = 0. 5, datasource = " ashrae 90. 1 - 2007 ", moisturediffusionresistance = 8. 3, * * kwargs, ) | [
0.4255882501602173,
0.7467222809791565,
0.7704490423202515,
-0.478162944316864,
0.2567113935947418,
0.9191755652427673,
-0.056213345378637314,
-0.15967383980751038,
-0.10192079842090607,
-0.15632449090480804,
0.13244561851024628,
0.5564478039741516,
-0.004535001236945391,
0.332182884216308... |
def test _ atomic _ boolean _ white _ space _ 4 _ nistxml _ sv _ iv _ atomic _ boolean _ white _ space _ 5 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / boolean / schema + instance / nistschema - sv - iv - atomic - boolean - whitespace - 5. xsd ", instance = " nistdat... | [
-0.42698463797569275,
-0.06585416197776794,
0.38668590784072876,
0.6289270520210266,
-0.2077547311782837,
0.19023163616657257,
0.6021659970283508,
-0.8168660402297974,
-0.11592787504196167,
1.095706820487976,
-0.16962148249149323,
0.26748916506767273,
-0.4788261950016022,
0.647972226142883... |
def _ _ init _ _ ( self, state, binder, mode ='', ds _ listener = none, ds _ types = none, show _ core _ datasets = false, show _ derived _ menu = true, show _ dialog _ item = false, # special _ type = none, widget = none ) : super ( datasetsmenu, self ). _ _ init _ _ ( state, binder, data _ model = none, mode = mode, ... | [
-0.42608997225761414,
0.0779232457280159,
0.7458223104476929,
0.2099338322877884,
-0.5860195755958557,
0.3144558370113373,
0.2721213698387146,
1.0881268978118896,
0.33485081791877747,
-0.8697980642318726,
-0.6660102009773254,
0.1537104845046997,
0.7761692404747009,
1.4640511274337769,
0.... |
def end _ flow ( switch, flow ) : active _ flows = inst. active _ flows if ( active _ flows. has _ key ( switch ) and flow in active _ flows [ switch ] ) : active _ flows [ switch ]. remove ( flow ) if active _ flows [ switch ] = = [ ] : del active _ flows [ switch ] return | [
0.24144044518470764,
-1.4567396640777588,
0.47944769263267517,
0.05273009091615677,
-0.11751203238964081,
0.18698172271251678,
-0.3095381557941437,
0.24411116540431976,
0.471047580242157,
0.5184642672538757,
-0.7547281384468079,
0.20341137051582336,
-1.3699145317077637,
-0.0927874743938446... |
def construct ( self, x ) : in _ shape = self. shape ( x ) out _ shape = ( in _ shape [ 0 ], in _ shape [ 1 ], in _ shape [ 2 ] / / self. stride, in _ shape [ 3 ] / / self. stride ) return tensor ( np. zeros ( out _ shape, np. float32 ) ) # return self. zeroslike ( x ) [ :, :, : : self. stride, : : self. stride ] | [
0.1421162188053131,
-0.09092175960540771,
0.47764280438423157,
-0.7193635106086731,
-0.6392704844474792,
0.298894464969635,
0.43541422486305237,
-0.3876188099384308,
-0.0007403009221889079,
-0.08347885310649872,
-0.7774131298065186,
0.3167682886123657,
0.5805345773696899,
-0.72785717248916... |
def bulk _ rename ( pattern : str, replacement _ pattern : optional [ str ], testing : bool = true, full : bool = false, recursive : bool = false, padding : int = 0, ) - > list [ match ] : log. debug ('matching regex pattern ', pattern = pattern, replacement = replacement _ pattern, testing _ mode = testing, full _ mat... | [
0.3341596722602844,
0.08315997570753098,
0.6433322429656982,
0.08412165194749832,
0.40883076190948486,
-0.7446296811103821,
0.010806813836097717,
0.8086728453636169,
0.39861786365509033,
0.3550056219100952,
-0.3097575306892395,
0.21446150541305542,
0.11234472692012787,
0.4746943712234497,
... |
def accumulate _ cwd ( precipitation, evaporation, saturation _ index ) : # noqa # make sure evaporation is 2d if'time'in evaporation. dims : msg ='evaporation must be a 2d array ( time mean )'raise valueerror ( msg ) # get dimensions ntim, nlat, mlon = precipitation. shape # get values p = np. array ( precipitation. v... | [
-0.10938180983066559,
-0.6531054973602295,
0.9624040126800537,
-0.7232808470726013,
0.17490814626216888,
1.1907140016555786,
1.052775263786316,
-0.16169074177742004,
-0.40863317251205444,
0.5688375234603882,
1.4987841844558716,
0.8740156292915344,
0.3781372010707855,
1.062509298324585,
0... |
def bgr2ycbcr ( img : np. ndarray, y _ only : bool = false ) - > np. ndarray : img _ type = img. dtype img = _ convert _ input _ type _ range ( img ) if y _ only : out _ img = np. dot ( img, [ 24. 966, 128. 553, 65. 481 ] ) + 16. 0 else : out _ img = np. matmul ( img, [ [ 24. 966, 112. 0, - 18. 214 ], [ 128. 553, - 74.... | [
0.29099777340888977,
-0.08612747490406036,
0.9062410593032837,
-0.25835248827934265,
0.3562164306640625,
-0.670331597328186,
1.0240477323532104,
0.030434992164373398,
0.19391345977783203,
-0.12198738753795624,
-0.13079681992530823,
0.9531986713409424,
0.2913423776626587,
0.9399762153625488... |
def replace _ node _ links ( self, contents ) : for pattern in [ titled _ link _ regex, node _ link _ regex ] : node _ links = re. findall ( pattern, contents ) for match in node _ links : node _ link = re. search ( node _ link _ regex, match ) node _ id = node _ link. group ( 0 ) [ - 3 : ] if node _ id not in self. pr... | [
-0.811349630355835,
-0.7776185870170593,
0.4039296507835388,
-0.8039676547050476,
0.26330268383026123,
-0.29608288407325745,
-0.21010451018810272,
0.841564416885376,
-0.4107471704483032,
-0.3534075915813446,
0.5882172584533691,
0.38030049204826355,
-0.21316923201084137,
0.21608217060565948... |
def _ _ init _ _ ( self, * args ) : _ snap. tcha _ swiginit ( self, _ snap. new _ tcha ( * args ) ) | [
-0.22864386439323425,
0.9920282363891602,
0.03217145800590515,
-0.37428808212280273,
0.7803532481193542,
-0.027120813727378845,
1.2602299451828003,
0.5599571466445923,
-0.6830394864082336,
0.741758406162262,
-0.5924211144447327,
-0.7597066164016724,
0.1869712620973587,
0.8606481552124023,
... |
def refreshbraille ( pantocursor = true, targetcursorcell = 0, getlinkmask = true, stopflash = true ) : braille. refresh ( pantocursor, targetcursorcell, getlinkmask, stopflash ) | [
0.18814745545387268,
-0.9498042464256287,
0.3585495352745056,
0.7756897211074829,
0.2784680128097534,
-0.1727839708328247,
-0.021207619458436966,
0.1536816954612732,
0.0773715078830719,
-0.499566912651062,
-0.3375595510005951,
1.4775702953338623,
-0.3662526607513428,
-0.1303837150335312,
... |
def select _ arm ( self ) : samples = np. multiply ( np. random. beta ( self. beta _ parameters [ :, 0 ], self. beta _ parameters [ :, 1 ] ), self. prices ) return np. argmax ( samples ) | [
-0.08448784798383713,
-0.7334810495376587,
0.3839919865131378,
-0.029537886381149292,
1.1690129041671753,
0.11407105624675751,
0.11995149403810501,
-0.6448051333427429,
-0.3354036509990692,
0.09510080516338348,
0.89866703748703,
0.7621294260025024,
-1.0973931550979614,
-0.09686432033777237... |
def append _ job _ description ( extra _ description : str, separator : str = " - " ) : earlier = append _ description ( extra _ description, separator ) try : yield finally : set _ description ( earlier ) | [
0.46636709570884705,
0.8774550557136536,
0.6345487833023071,
-0.13117344677448273,
-1.2008157968521118,
0.041500650346279144,
-1.5973010063171387,
0.5219934582710266,
0.22611455619335175,
-0.4790330231189728,
0.4370461106300354,
0.44108960032463074,
0.005033324472606182,
0.4063719511032104... |
def cloud _ platform ( self, cloud _ platform ) : self. _ cloud _ platform = cloud _ platform | [
0.3834705352783203,
0.058143164962530136,
0.16069813072681427,
0.19849906861782074,
0.18189749121665955,
0.9185671210289001,
0.488551527261734,
-0.5672299861907959,
-0.9025436043739319,
-0.15767255425453186,
-1.9214739799499512,
-0.5502718687057495,
-0.3596001863479614,
0.6225324273109436,... |
def validate _ view ( view, ip _ str, ip _ type ) : if ip _ type = ='4'and is _ rfc1918 ( ip _ str ) : raise validationerror ( " { 0 } is a private ip address. you cannot put a record that " " contains private data into a public view. " ) if ip _ type = ='6'and is _ rfc4193 ( ip _ str ) : raise validationerror ( " { 0 ... | [
-0.31664878129959106,
0.6153790950775146,
0.35099169611930847,
-0.35330477356910706,
-0.5871114134788513,
0.2455548197031021,
0.2312411069869995,
-0.19431938230991364,
-0.37270548939704895,
-0.6927401423454285,
0.6460429430007935,
0.14574050903320312,
-0.49955520033836365,
-0.1737843602895... |
def link ( self, f ) : self. add _ handler ( f, type ='link') return f | [
0.10471262782812119,
0.10505352169275284,
0.3577089309692383,
0.24158407747745514,
0.28763750195503235,
0.7272602915763855,
0.9750704169273376,
0.38820111751556396,
0.47460198402404785,
-2.2437305450439453,
-0.11910206824541092,
0.4009304344654083,
0.3302910029888153,
0.09389734268188477,
... |
def monitor _ prices ( ) - > none : email _ component. instructions ( ) try : sender _ email = email _ component. set _ sender _ email ( ) sender _ email _ pw = email _ component. set _ sender _ pw ( ) receiver _ email = email _ component. set _ receiver _ email ( ) except typeerror as e : print ( e ) return while true... | [
-0.15566059947013855,
-0.3712794780731201,
0.7523332834243774,
0.7017112970352173,
0.5221763849258423,
-0.20101816952228546,
0.08598209917545319,
0.13510902225971222,
-0.8051756024360657,
-0.018650595098733902,
0.09500177204608917,
-0.22899939119815826,
-0.4059801399707794,
-0.103932365775... |
def get _ id ( ctx, user ) : result = ctx. sudo ( f'id - u { user } ', warn = true ). stdout. strip ( ) result = int ( result ) if result. isdigit ( ) else none return result | [
0.09778448194265366,
0.9553001523017883,
0.6375499367713928,
1.4477468729019165,
-0.052902765572071075,
0.2626510560512543,
0.048284247517585754,
-0.6760650873184204,
0.412394255399704,
-0.8332194685935974,
-0.14076049625873566,
0.7457235455513,
-1.2153464555740356,
-0.005014240741729736,
... |
def details ( self ) : return ( f " username : { self. username }, " f " email : { self. email }, " f " fullname : { self. fullname }, " f " ppms _ group : { self. ppms _ group }, " f " active : { self. active } " ) | [
0.0836339145898819,
-0.7929810881614685,
0.5283036828041077,
-1.1753439903259277,
0.07479282468557358,
0.03214196488261223,
-0.7848110198974609,
-0.6255553960800171,
-0.5154510140419006,
-0.247886523604393,
-0.9434807300567627,
-0.2931409478187561,
-0.25537699460983276,
0.1354561448097229,... |
def set _ workers _ name ( self, s, name ) : self. workers _ info [ s ] ['comp _ name'] = name self. workers _ info [ s ] ['msg _ queue']. put ('ok') self. out _ sockets. append ( s ) | [
-0.1509348750114441,
-0.700590968132019,
0.45081475377082825,
-1.1345351934432983,
-0.27365705370903015,
-0.05512145161628723,
0.016405802220106125,
-0.45718029141426086,
0.09661231935024261,
0.9650741219520569,
-1.415674090385437,
1.020101547241211,
-0.06030450016260147,
0.077285446226596... |
def with _ root _ uri ( self, uri ) : b = self. _ copy ( ) b. config ['root _ uri'] = uri return b | [
0.021066945046186447,
0.0028036206495016813,
0.6829205751419067,
1.376751184463501,
-0.9701570272445679,
0.5523372888565063,
0.1467178910970688,
0.05779894068837166,
0.9606658816337585,
-0.8668673634529114,
-0.18457409739494324,
0.6983014345169067,
-0.6547969579696655,
0.14091739058494568,... |
def clean ( self ) : if ( self. cleaned _ data ['new _ pass']! = self. cleaned _ data ['new _ pass _ confirm'] ) : raise validationerror ('niepoprawne hasło') | [
0.27020275592803955,
0.03592197224497795,
0.4947567284107208,
1.0016264915466309,
0.024575695395469666,
1.4806443452835083,
0.010347374714910984,
-0.4410582482814789,
-1.0533756017684937,
0.539842426776886,
-0.34578683972358704,
0.1844898909330368,
-0.08220493048429489,
1.2515596151351929,... |
def group _ end ( self ) : return'< / label > < / div > ' | [
-0.5700637102127075,
-0.10605164617300034,
0.4448414742946625,
-0.816340446472168,
0.1475995033979416,
1.1762365102767944,
-0.3593885004520416,
-0.41580599546432495,
-0.37553954124450684,
0.03962983936071396,
0.7685769200325012,
0.014617836102843285,
-0.6174147725105286,
0.4231161475181579... |
def nodesize ( self ) : return nodesize ( self. _ samplerate, self. c ) | [
0.263975590467453,
0.34857070446014404,
0.40014562010765076,
-0.8815409541130066,
0.039514508098363876,
-0.25697293877601624,
0.5567130446434021,
-0.8258426189422607,
0.2307415008544922,
-0.2920607626438141,
0.101474329829216,
0.11361251771450043,
-0.5058871507644653,
-0.2519814074039459,
... |
def taketest111 ( ) : user = getuser ( request, session ) problem = request. args. get ( " problem " ) questions = db. gettestquestions ( problem ) return render _ template ('test. html ', learningstyle = " visual ", user = user, problem = problem, questions = questions ) | [
0.3066256642341614,
0.04779472574591637,
0.39150017499923706,
0.3867308497428894,
-0.6422665119171143,
0.7530626654624939,
0.3337312936782837,
0.17047305405139923,
0.7269885540008545,
-0.043250713497400284,
0.8453068137168884,
-0.43193116784095764,
-0.6027949452400208,
-0.25878608226776123... |
def removefromaccessgroup ( ctx, # mandatory main parameter volumeaccessgroupid, # mandatory main parameter volumes ) : cli _ utils. establish _ connection ( ctx ) volumes = parser. parse _ array ( volumes ) ctx. logger. info ( " " " : " " " " " " volumeaccessgroupid = " " " + str ( volumeaccessgroupid ) + " ; " + " " ... | [
-0.3205101490020752,
-1.1174737215042114,
0.5765552520751953,
-0.7298093438148499,
-0.6501986980438232,
-0.25143715739250183,
0.0989321619272232,
0.0424186997115612,
0.2567022740840912,
0.7630329728126526,
1.0369809865951538,
0.544091522693634,
-1.0241923332214355,
0.26041164994239807,
0... |
def _ _ init _ subclass _ _ ( cls, types : list [ str ] ) : for type _ in types : _ registered _ serializers [ type _ ] = cls | [
-0.8867247700691223,
0.8931557536125183,
0.31936323642730713,
0.42713382840156555,
0.8065808415412903,
-0.13530495762825012,
0.049374453723430634,
-0.4175470471382141,
0.15764836966991425,
-0.5749731659889221,
-1.5997041463851929,
0.31585893034935,
-0.748153567314148,
0.27154508233070374,
... |
def logged ( level, name = none, message = none ) : def decorator ( func ) : logname = name if name else func. _ _ module _ _ log = logging. getlogger ( logname ) logmsg = message if message else func. _ _ name _ _ @ wraps ( func ) def wrapper ( * args, * * kwargs ) : log. log ( level, logmsg ) return func ( * args, * ... | [
-0.1554553061723709,
-0.10954444110393524,
0.830701470375061,
-0.18099266290664673,
-0.20193322002887726,
-0.25769275426864624,
-0.31278517842292786,
0.2511194348335266,
0.5531864762306213,
0.3978666365146637,
0.00360369891859591,
0.7035437822341919,
0.26073402166366577,
0.4427088797092438... |
def draw _ progress ( self ) : self. bitmap = self. bitmap _ from _ compute ( ) self. refresh ( ) self. update ( ) wx. callafter ( self. fire _ event, aptusrecomputedevent ) wx. safeyield ( onlyifneeded = true ) | [
-0.12433097511529922,
0.4055943787097931,
0.304947167634964,
-0.15702418982982635,
-0.19336369633674622,
0.6101609468460083,
0.3834349513053894,
0.030332012102007866,
-0.17659726738929749,
-0.778670608997345,
0.0254362765699625,
0.188120499253273,
-0.222255140542984,
0.4919663667678833,
... |
def purity _ score ( clusters, classes ) : a = np. c _ [ ( clusters, classes ) ] n _ accurate = 0. for j in np. unique ( a [ :, 0 ] ) : z = a [ a [ :, 0 ] = = j, 1 ] x = np. argmax ( np. bincount ( z ) ) n _ accurate + = len ( z [ z = = x ] ) return n _ accurate / a. shape [ 0 ] | [
-0.7952542901039124,
0.024398386478424072,
0.602676272392273,
0.5202927589416504,
0.8926708698272705,
0.02313525229692459,
0.5041633248329163,
0.29248276352882385,
0.43232348561286926,
1.0031335353851318,
0.25360140204429626,
0.10126807540655136,
0.06300955265760422,
0.1431475728750229,
... |
def _ create _ and _ connect _ node ( operation, * args, * * kwargs ) : # if a multi _ index - attribute is given ; create list with it of same length than args log. debug ( " creating a new { } - operationnode with args : { } ". format ( operation, args ) ) new _ node _ inputs = lookup _ tables. node _ lookup _ table ... | [
-0.8431345820426941,
0.12628814578056335,
0.7848865985870361,
-0.09677853435277939,
0.3329388499259949,
0.16429442167282104,
0.7168132662773132,
0.0923357605934143,
-0.4362776279449463,
0.6919734477996826,
0.6007795929908752,
-0.15121032297611237,
-0.006044849753379822,
-0.6346557140350342... |
def limit _ denominator ( self, max _ denominator = 1000000 ) : # algorithm notes : for any real number x, define a * best upper # approximation * to x to be a rational number p / q such that : # # ( 1 ) p / q > = x, and # ( 2 ) if p / q > r / s > = x then s > q, for any rational r / s. # # define * best lower approxim... | [
0.4028589725494385,
-0.31408506631851196,
0.9128770232200623,
0.09678357094526291,
-1.154239535331726,
0.11300458014011383,
-0.17078469693660736,
-1.0679413080215454,
0.5912504196166992,
-1.3048937320709229,
0.7722333073616028,
-0.02009187452495098,
-0.14811867475509644,
-0.086403265595436... |
def _ _ init _ _ ( self, h = none ) : self. nododir = dict ( ) self. new _ set = none self. h = h | [
-0.2721676826477051,
0.8051626682281494,
0.4402540624141693,
0.26738065481185913,
-0.46332451701164246,
-0.28077012300491333,
0.3077728748321533,
0.21318888664245605,
-0.333721399307251,
-0.7334814071655273,
-0.7796162962913513,
0.2673421800136566,
-0.05170292779803276,
1.2224878072738647,... |
def _ retrieve _ objects ( self, * * kwargs ) - > list [ context ] : contexts = [ ] for contexts _ json in self. _ value : context = context ( client = self. _ client, json = contexts _ json ) context. refresh ( ) # to populate the object with all expected data contexts. append ( context ) return contexts | [
-0.9494979977607727,
-0.47459420561790466,
0.3035394549369812,
0.34649211168289185,
0.9543913006782532,
-0.3061085343360901,
0.24932341277599335,
-0.9695028066635132,
0.8870560526847839,
-0.2586822807788849,
-0.07938285171985626,
-0.30615657567977905,
0.008996544405817986,
-0.1751911193132... |
def tprender ( self, md, section, args, s _ type = none ) : if s _ type is none : simple _ type = { type ('' ) : 0, type ( 1 ) : 0, type ( 1. 0 ) : 0 }. has _ key else : simple _ type = s _ type # isdebug = _ isdebug ( self ) data = [ ] idattr = args ['id'] if hasattr ( self, idattr ) : id = getattr ( self, idattr ) if... | [
-0.6295680403709412,
-0.07427631318569183,
0.7085072994232178,
-0.7315670847892761,
-0.46000343561172485,
-0.5838050842285156,
-0.5851730108261108,
0.004175178240984678,
-0.04975924268364906,
0.6659842729568481,
0.46275079250335693,
-0.3084390163421631,
0.08533148467540741,
0.7785600423812... |
def test _ prepare _ mac _ header ( self ) : self. assertequal ( prepare _ mac _ header ( * * self. mac _ plain ), self. auth _ plain ) self. assertequal ( prepare _ mac _ header ( * * self. mac _ body ), self. auth _ body ) self. assertequal ( prepare _ mac _ header ( * * self. mac _ both ), self. auth _ both ) | [
-0.633762538433075,
-0.34739407896995544,
0.4134730100631714,
0.16917584836483002,
0.08388862013816833,
0.6524437069892883,
-0.49932894110679626,
-0.6495974659919739,
0.10086511820554733,
-0.6369909048080444,
-0.3165951073169708,
0.17611436545848846,
-0.07717790454626083,
0.091702021658420... |
def approve ( self, notes ='' ) : if self. state! = states. reviewing or self. approver is none : raise valueerror, \ " only reviewing changes with an approver can be approved. " self. comments. create ( commenter = self. approver, text = notes, old _ state = self. state, new _ state = states. approved ) self. commit _... | [
-0.1090945452451706,
-0.07109696418046951,
0.4284469783306122,
-0.2938760221004486,
-0.11040594428777695,
0.35749316215515137,
-0.4001322090625763,
-0.13854894042015076,
-0.5914163589477539,
0.5211929082870483,
0.4961458742618561,
0.2888527512550354,
-0.44305261969566345,
0.163279891014099... |
def http _ raster ( http _ testdata _ dir ) : return http _ testdata _ dir / " cleantopo / 1 / 0 / 0. tif " | [
-0.08542187511920929,
-0.5296614766120911,
0.35792282223701477,
-0.6101320385932922,
0.16065442562103271,
0.8969572186470032,
0.7081681489944458,
-0.4823693335056305,
-0.36130690574645996,
-0.023947514593601227,
0.8243540525436401,
0.671845555305481,
0.0960516706109047,
-0.0125238550826907... |
def get _ tracks _ of _ artist ( artist _ id ) : # connect to the database db = connect _ minerva _ db ( ) # return all the tracks as a list artist _ tracks = list ( db. tracks. find ( { _ id : artist _ id } ) ) return artist _ tracks | [
0.3699789345264435,
0.4695926010608673,
0.2453821897506714,
-0.32628995180130005,
0.7276827096939087,
0.12299122661352158,
-1.2291631698608398,
0.8869154453277588,
-0.018436389043927193,
0.44629737734794617,
-0.2226959615945816,
-0.24629969894886017,
-0.21844854950904846,
1.027136921882629... |
def genresframe ( self ) : self. canvas. forget ( ) self. master. geometry ('1050x800 + 25 + 25') self. genre _ frame = frame ( self. master ) self. genre _ frame. config ( padx = 10, pady = 10 ) self. genre _ frame. pack ( expand = true, fill = " both " ) for i in range ( 10 ) : self. genre _ frame. grid _ rowconfigur... | [
-0.6742802858352661,
0.748668372631073,
0.9497940540313721,
-0.28482353687286377,
-0.414374977350235,
-0.28218334913253784,
0.4143942594528198,
-0.10359634459018707,
-0.3900364637374878,
0.08280326426029205,
-0.022851234301924706,
0.8167406320571899,
0.3260990381240845,
0.9615535736083984,... |
def setstate ( self, state ) : self. _ state = state | [
-0.7416303157806396,
0.4273952543735504,
0.03268054500222206,
-0.5641130805015564,
0.22519424557685852,
0.5087996125221252,
0.26929906010627747,
0.4863767623901367,
0.02767597883939743,
-0.818070113658905,
-1.174012303352356,
-0.07033832371234894,
-0.23347896337509155,
0.6312601566314697,
... |
def attack ( self, enemy ) : # slight advantage given to self injured _ unit = weighted _ random _ selection ( self, enemy, 57, 43 ) damage = random. randint ( 10, 15 ) # inflict between 10 and 15 hitpoints injured _ unit. health _ meter = max ( injured _ unit. health _ meter - damage, 0 ) war _ cry _ list = ( ['going ... | [
-0.9362432360649109,
0.011734304018318653,
0.7776879072189331,
-0.14943069219589233,
0.756567120552063,
0.19836919009685516,
0.0691438838839531,
0.4543588161468506,
0.7157626748085022,
0.5406374931335449,
0.4039873480796814,
0.3937878906726837,
-0.04933555796742439,
-0.0559517964720726,
... |
def busy _ indicator ( self ) : self. busy _ lbl. settext ( " busy " ) self. busy _ lbl. setstylesheet ('color : red') | [
-0.552851140499115,
0.03348243609070778,
0.5022103190422058,
-0.363986074924469,
0.39512747526168823,
1.6524245738983154,
0.5315587520599365,
0.2100331038236618,
-0.1026199609041214,
0.6999017596244812,
-0.7239848971366882,
1.0147202014923096,
0.9013441205024719,
0.4036544859409332,
0.61... |
def forward ( self, batch ) : outputs = self. prompt _ model ( batch ) outputs = self. verbalizer. gather _ outputs ( outputs ) if isinstance ( outputs, tuple ) : outputs _ at _ mask = [ self. extract _ at _ mask ( output, batch ) for output in outputs ] else : outputs _ at _ mask = self. extract _ at _ mask ( outputs,... | [
-0.8492980003356934,
-0.422281414270401,
0.6741060018539429,
-0.035140588879585266,
-0.26111355423927307,
0.20315022766590118,
-0.5260505080223083,
-0.7067914009094238,
-0.05302976071834564,
0.37246036529541016,
0.5364832878112793,
0.20263761281967163,
-0.03923061490058899,
0.0340849943459... |
def setup _ optimizers ( self ) : pass | [
-0.2003951519727707,
-0.07439755648374557,
0.308104932308197,
0.9538406133651733,
1.3515928983688354,
-0.48277005553245544,
0.8160913586616516,
-0.37298905849456787,
0.32785895466804504,
0.3546702563762665,
-0.7218922972679138,
-0.14341379702091217,
-0.7968103289604187,
0.24183975160121918... |
def reopen _ gap ( decanonicalized : blocknumber, base _ gaps : chaingaps ) - > chaingaps : current _ gaps, tip _ child = base _ gaps if tip _ child < = decanonicalized : return base _ gaps new _ raw _ gaps = current _ gaps + ( ( decanonicalized, decanonicalized ), ) # join overlapping gaps joined _ gaps = _ join _ ove... | [
-1.148939847946167,
-0.7238046526908875,
0.7458956241607666,
0.31876689195632935,
-0.512010395526886,
-0.4388140141963959,
-0.4430617392063141,
0.06364481151103973,
0.35170435905456543,
-0.3447231650352478,
0.3395938277244568,
-0.6058178544044495,
-0.3389946520328522,
-0.5415098667144775,
... |
def display _ intervals ( self, val = true ) : self. show _ intervals = val | [
0.28560763597488403,
0.6088297367095947,
0.45726117491722107,
0.30389946699142456,
-1.611956000328064,
1.911653995513916,
0.8305196166038513,
-0.24951879680156708,
0.13758540153503418,
0.22958248853683472,
0.3208247721195221,
0.7937528491020203,
-0.4435657560825348,
0.5357750058174133,
-... |
def combo _ box _ method ( self ) : if not self. highlighted _ person _ id _ in _ coord _ list is none : person _ data = self. coord _ list [ self. highlighted _ person _ id _ in _ coord _ list ] print ( " person _ data = ", person _ data ) self. combo _ box. setcurrentindex ( person _ data [ 0 ] ) | [
-0.42929381132125854,
-1.0853180885314941,
0.4781450033187866,
-0.18533891439437866,
0.6474477648735046,
0.5486887097358704,
0.5423177480697632,
0.47068336606025696,
0.146677628159523,
-0.880764901638031,
0.059669122099876404,
0.7969688177108765,
-0.2997440993785858,
0.031997863203287125,
... |
def single _ nback _ comparison ( stimset, cdrift, setsize, pr _ match, pr _ stim _ lure, pr _ context _ lure ) : ntokens, sdim = stimset. shape min _ context _ t = setsize # set current stim and context stim _ t _ idx = np. random. randint ( 0, ntokens ) context _ t _ idx = np. random. randint ( min _ context _ t, nto... | [
-0.29940253496170044,
0.3802243173122406,
0.7281253337860107,
-0.5814977884292603,
0.43012627959251404,
-0.38614752888679504,
0.9467979669570923,
-0.6375009417533875,
0.6375551819801331,
0.11581698060035706,
0.46566522121429443,
0.7407858967781067,
-0.4521293342113495,
-0.03711555525660515... |
def _ generic _ io _ transform ( node, name, cls ) : io _ module = astroid. manager. ast _ from _ module _ name ( " _ io " ) attribute _ object = io _ module [ cls ] instance = attribute _ object. instantiate _ class ( ) node. locals [ name ] = [ instance ] | [
-1.0823982954025269,
-0.23413501679897308,
0.33479663729667664,
-1.371284008026123,
0.1461157351732254,
-0.0427483469247818,
0.289034366607666,
0.5260416269302368,
-0.5047177672386169,
0.7149488925933838,
-0.7872107625007629,
0.745738685131073,
0.8863607048988342,
-0.5481265187263489,
0.... |
def _ _ init _ _ ( self, observer, observer _ self, logger ) : self. _ observer = observer self. _ observer _ self = observer _ self self. _ queue = queue. queue ( ) self. _ request _ end = false self. _ timeout _ for _ get _ from _ queue = 1 self. logger = logger t = thread ( target = self. _ loop _ for _ observer ) t... | [
0.06853193789720535,
-0.3003779351711273,
0.8664699196815491,
-0.08460244536399841,
-0.13872042298316956,
0.031826410442590714,
-0.2534269094467163,
0.35992008447647095,
-0.54048091173172,
-0.30756497383117676,
-0.1656307876110077,
-0.11211363226175308,
0.3783704340457916,
0.60536801815032... |
def traverse ( self, x ) - > " leaf " : for node in self. walk ( x ) : pass return node | [
-0.43912747502326965,
-0.062477461993694305,
0.35738232731819153,
0.2829359173774719,
0.2694719433784485,
0.7507950067520142,
-0.019938601180911064,
-1.0246069431304932,
0.4263075292110443,
-1.3794198036193848,
-0.15378724038600922,
0.6201857328414917,
-0.37108737230300903,
-0.000301526131... |
def run _ simulation ( grad, vtot, f ) : n = numit # generate random values for init cpa, cpv, csa, csv x = np. random. rand ( 4 ) min _ val = 5000000 min _ x = x while n > 0 : # check all x are positive for val in x : if val < 0 : val = abs ( val ) # check the volume restriction act _ v = vtot ( x [ 0 ], x [ 1 ], x [ ... | [
-0.045393187552690506,
0.5191258788108826,
0.850364625453949,
0.03524193912744522,
-0.5314593315124512,
0.09640771895647049,
-0.2727081775665283,
-0.7498824596405029,
-0.21196211874485016,
0.7032241821289062,
-0.07536241412162781,
-0.1953640729188919,
-0.009452641010284424,
-0.644757151603... |
def ibm _ hmc _ delete ( context, hmc _ uuid ) : return impl. ibm _ hmc _ delete ( context, hmc _ uuid ) | [
0.08730175346136093,
-0.3795745074748993,
0.4769015610218048,
0.30543065071105957,
-0.20940713584423065,
-0.5781653523445129,
0.9157633781433105,
0.6009626388549805,
0.36812567710876465,
-0.017091920599341393,
-0.15264880657196045,
1.171937346458435,
-1.5175809860229492,
-0.082170344889163... |
def configure _ params ( ) : # read in command - line parameters params _ default = namespacewithupdate ( mqtt _ endpoint = none, mqtt _ topic = none, ssl _ root _ ca = " certificates / amazonrootca1. pem ", ssl _ cert = none, ssl _ key = none, client _ id = " mqtt _ listener ", debug = false, script = none, ) params _... | [
0.5118976831436157,
-0.9545936584472656,
1.053149938583374,
-0.3408617079257965,
0.056928470730781555,
0.14085891842842102,
-0.4664888083934784,
-0.046089056879282,
-0.5323602557182312,
0.4847872853279114,
-0.12801270186901093,
0.3895362615585327,
-0.018359791487455368,
0.5924316048622131,... |
def _ get _ pool _ id _ term ( self ) : raise notimplementederror ('abstract method.') | [
-0.4763008952140808,
-0.6687512993812561,
0.7340659499168396,
-0.06539804488420486,
-0.032761652022600174,
1.3334301710128784,
0.20318761467933655,
-0.9432035088539124,
0.04355844855308533,
0.021987276151776314,
-0.6119122505187988,
0.8606619238853455,
-0.28558680415153503,
-0.649247586727... |
def test _ cornerradec ( self ) : dtype = np. dtype ( [ ('name ', str, 15 ), ('x0 ', float ), ('y0 ', float ), ('x1 ', float ), ('y1 ', float ), ('x2 ', float ), ('y2 ', float ), ('x3 ', float ), ('y3 ', float ) ] ) data = np. genfromtxt ( os. path. join ( self. data _ dir,'lsst _ camera _ corners. txt'), dtype = dtype... | [
0.5341827273368835,
0.1543227881193161,
1.004118800163269,
-0.9473440051078796,
0.45078709721565247,
-0.5021734237670898,
0.7283188700675964,
-0.10236150771379471,
-0.27591463923454285,
0.14325648546218872,
-0.4561343193054199,
0.07990090548992157,
-0.49717071652412415,
-0.0662999078631401... |
def test _ compare ( self, before, expected, transform ) : if inspect. isclass ( expected ) and issubclass ( expected, exception ) : with pytest. raises ( expected ) : after = transform ( before ) # this portion through pytest. fail isn't strictly # necessary, but gives a better error message that # includes the before... | [
0.35795876383781433,
0.14263592660427094,
0.30790746212005615,
-0.4014047086238861,
0.10567521303892136,
-0.2690698802471161,
0.5763478875160217,
-0.5148758292198181,
-0.007657326757907867,
-0.08609719574451447,
-0.2159668654203415,
0.45185884833335876,
-0.8086419105529785,
-0.368027418851... |
def train _ test _ plot ( use _ momentum = false, use _ sparsity = false, for _ comparison = false ) : # load data train _ x, test _ x, train _ y, test _ y = load _ mnist ( onehot = true ) trx = len ( train _ x ) print ('finished loading data') # initialize model x _ mat = t. fmatrix ('x') y _ mat = t. fmatrix ('d') np... | [
0.7778728008270264,
0.6591370105743408,
0.9321383237838745,
0.18561957776546478,
-0.3526303470134735,
0.5866701006889343,
1.0875747203826904,
0.6614841222763062,
-0.06817407160997391,
0.2652190625667572,
-0.40521040558815,
0.6929829716682434,
-0.4833739995956421,
-0.22138451039791107,
-0... |
def test _ get _ current _ directory ( monkeypatch ) : def mock _ getcwd ( ) : return'/ data / user / directory123'# monkeypatch. setattr ( obj, name, value, raising = true ) monkeypatch. setattr ( os,'getcwd ', mock _ getcwd ) assert example1 ( ) = ='/ data / user / directory123 ' | [
-0.41296616196632385,
-0.12406785041093826,
0.40980198979377747,
0.36814063787460327,
-0.18399010598659515,
0.5132718682289124,
1.6397392749786377,
0.3812500238418579,
0.8477799892425537,
-0.7412406206130981,
-0.17933987081050873,
0.6045610308647156,
0.4797724783420563,
0.24581435322761536... |
def get _ readings ( self ) : # wake up the sensor self. _ wake _ sensor ( ) # read the raw data rh _ msb, rh _ lsb, t _ msb, t _ lsb = self. _ read _ raw ( ) # convert the humidity to engineering units rh = self. _ calculate _ humidity ( rh _ msb, rh _ lsb ) # convert the temperature to engineering units ( c and f ) t... | [
-0.2322004735469818,
-0.2471887618303299,
0.6506009101867676,
-0.35709595680236816,
0.5403891801834106,
-0.07921008765697479,
-0.33949390053749084,
0.29069221019744873,
-0.7428160309791565,
-0.32227328419685364,
-0.08114512264728546,
-0.5668456554412842,
-0.44114214181900024,
-0.0455660894... |
def setup ( self ) : self. factory = requestfactory ( ) super ( signuptestcase, self ). setup ( ) | [
-0.2221096307039261,
-0.0800788402557373,
0.48273006081581116,
0.5694109797477722,
0.4722787141799927,
0.07336432486772537,
0.7337666153907776,
0.15159867703914642,
0.9850620031356812,
-0.8813795447349548,
0.4163333475589752,
-0.1614556908607483,
0.014789705164730549,
0.18029414117336273,
... |
def decodeasgoogle ( url ) : pattern ='http : / / www. google. com / search \? q = (? p < englishtext > [ a - za - z0 - 9 + ] + )'matches = re. match ( pattern, url ) urldata = matches. group ('englishtext') words = urldata. split ('+') data = decodeasenglish ( words ) return data | [
-1.7165647745132446,
-0.22600720822811127,
0.41875335574150085,
-0.6745090484619141,
-0.16387249529361725,
0.12334968149662018,
-0.7301393747329712,
1.1088876724243164,
0.3969043791294098,
0.760773777961731,
-0.8261337876319885,
0.34791994094848633,
-0.5118389129638672,
0.2635578215122223,... |
def get _ offsets _ for _ files ( files ) : # create default empty offset list section offset _ names = ['binary _ files ','sub _ binary _ files ','text _ files'] package _ offsets = dict ( zip ( offset _ names, [ [ ] ] * 3 ) ) package _ offsets ['install _ dir'] = install _ path _ offsets ['install _ dir'] # search th... | [
-0.07326149940490723,
-0.22553984820842743,
0.4826275408267975,
-0.12448659539222717,
-0.12663230299949646,
0.30121317505836487,
0.5222179293632507,
0.930464506149292,
-0.9120745658874512,
0.3328147530555725,
-0.49845609068870544,
-0.5245776176452637,
0.06725668162107468,
1.250311851501464... |
def _ _ get _ statics ( self ) : try : conn = self. _ _ get _ db _ connection ( ) # sprocs cursor = conn. cursor ( ) cursor. execute ( " " " select r. specific _ name from information _ schema. routines r where r. routine _ schema ='% s'and r. routine _ type ='procedure'" " " % ( self. _ _ database ) ) sprocs = cursor.... | [
-0.3128240704536438,
0.06826674193143845,
0.6580517292022705,
-0.6035882830619812,
-0.3553467094898224,
-0.4049316644668579,
-0.033673498779535294,
0.008816447108983994,
-0.18489085137844086,
0.3261326849460602,
-1.428709626197815,
0.006829326041042805,
-0.4337841868400574,
0.4396929144859... |
def remember _ game _ board ( board ) : global current _ game _ boards current _ game _ boards. append ( np. array ( board ). tolist ( ) ) | [
-0.41286584734916687,
0.5491731762886047,
0.5894531607627869,
0.24778693914413452,
0.7949643731117249,
1.2794359922409058,
-0.07607751339673996,
-0.49039849638938904,
0.45520979166030884,
0.8199198842048645,
-0.9303328990936279,
0.6804829239845276,
-0.5329660177230835,
0.3334748446941376,
... |
def update _ environment ( self, project _ name : str, environment _ name : str, body : io, user _ id : str = " me ", *, content _ type : str = " application / merge - patch + json ", * * kwargs : any ) - > json : | [
-0.8108112812042236,
-0.2959112524986267,
0.6652424931526184,
0.5687633752822876,
-0.022489305585622787,
1.1324129104614258,
-0.04160537198185921,
-0.5659996867179871,
-0.05550214648246765,
0.5773947834968567,
-0.2660365402698517,
0.6698982119560242,
-0.9746058583259583,
0.0709936991333961... |
def copy ( self ) - > " modinindex " : idx _ cache = self. _ value if not callable ( idx _ cache ) : idx _ cache = idx _ cache. copy ( ) return modinindex ( idx _ cache ) | [
-1.4811571836471558,
-0.87671959400177,
0.3505818545818329,
0.4655560553073883,
-1.1626667976379395,
0.4023175835609436,
0.6279529929161072,
-0.6098446249961853,
1.5178744792938232,
-0.38193535804748535,
-0.15795625746250153,
1.1384930610656738,
-0.2691611349582672,
-0.9816219806671143,
... |
def get _ info ( self ) : if self. info _ to _ send = = [ ] : return none info = self. info _ to _ send [ 0 ] del ( self. info _ to _ send [ 0 ] ) return info | [
-0.4895153045654297,
0.2586337924003601,
0.4352489411830902,
-0.17824329435825348,
0.8614904880523682,
-0.5170102119445801,
-0.35270318388938904,
-0.9259732961654663,
-0.5257965922355652,
0.800110399723053,
-0.4650486707687378,
0.5213595628738403,
-0.6639418005943298,
-0.19737279415130615,... |
def hostgroup _ name _ as _ hostname ( self ) : return self. _ hostgroup _ name _ as _ hostname | [
-0.4626898467540741,
-0.5276452302932739,
0.493400901556015,
0.4739418625831604,
-0.9732803106307983,
0.036519572138786316,
0.38065972924232483,
0.26712435483932495,
-0.8132168054580688,
0.07354971766471863,
0.43080559372901917,
-0.38288065791130066,
0.014980889856815338,
0.063596889376640... |
def test _ list _ integer _ max _ length _ nistxml _ sv _ iv _ list _ integer _ max _ length _ 1 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - maxlength - 1. xsd ", instance = " nistdata / list / inte... | [
-0.5753463506698608,
-0.32497933506965637,
0.27324485778808594,
1.0705310106277466,
-0.6816744804382324,
0.12084666639566422,
-0.5595207214355469,
0.37999892234802246,
0.9717654585838318,
0.7218659520149231,
-1.06446373462677,
-0.09078073501586914,
-0.19418585300445557,
1.0471515655517578,... |
def updateruleonlogicalinterface ( self, logicalinterfaceid, ruleid, name, condition, description = none ) : req = apiclient. oneruleforlogicalinterfaceurl % ( self. host, " / draft ", logicalinterfaceid, ruleid ) body = { " logicalinterfaceid " : logicalinterfaceid, " id " : ruleid, " name " : name, " condition " : co... | [
-0.05145673081278801,
-0.5627147555351257,
0.20592689514160156,
-1.2264469861984253,
-0.3447587192058563,
0.8332412838935852,
-1.0367519855499268,
0.15137094259262085,
0.011890084482729435,
1.024916172027588,
-0.35298603773117065,
0.5665904879570007,
-1.9660794734954834,
0.4969291985034942... |
def startelement ( self, name, attrs ) : self. level = self. level + 1 attrstring = " " qnames = attrs. getqnames ( ) for i in range ( 0, len ( qnames ) ) : attrstring = attrstring + " " + qnames [ i ] + " = \ " " + attrs. getvaluebyqname ( qnames [ i ] ) + " \ " " print self. tab ( self. level ) + " < " + name. rstrip... | [
-0.2903485894203186,
-0.8073475360870361,
0.6625164747238159,
-0.3686763644218445,
-0.9807441830635071,
0.6098347902297974,
-0.146722674369812,
0.23398372530937195,
-0.8405894637107849,
-0.21184000372886658,
-0.07769623398780823,
1.0108675956726074,
0.17842362821102142,
0.07731848210096359... |
def safe _ makedirs ( directory, mode = 0777 ) : if not os. path. isdir ( directory ) : os. makedirs ( directory, mode ) | [
-0.021534930914640427,
1.0841102600097656,
0.6173309683799744,
0.06695528328418732,
-0.06607548147439957,
1.2131664752960205,
0.7172890901565552,
-0.8354994654655457,
0.9327729344367981,
-0.726681113243103,
-0.2527707517147064,
-0.657095193862915,
0.3808418810367584,
0.058526575565338135,
... |
async def is _ admin ( member : discord. member ) : if is _ bot _ owner ( member ) or is _ server _ owner ( member ) : return true async with await db. session. new ( ) as sess : if await admin. get _ member _ is _ admin ( sess, member. guild. id, member. id ) : return true return false | [
-0.4769256114959717,
0.8039162158966064,
0.1021464392542839,
0.5862756967544556,
-0.23320528864860535,
-0.16054216027259827,
-1.1755032539367676,
-1.0858358144760132,
0.47011974453926086,
0.15586616098880768,
-0.4442215859889984,
1.6177425384521484,
-1.0536372661590576,
1.011151909828186,
... |
def download _ file ( self, file _ id : str, skip _ existing : bool = false, overwrite _ existing : bool = false, ) - > none : files _ to _ dl, folders _ to _ dl = [ ], [ ] file = self. drive. createfile ( { " id " : file _ id } ) file. fetchmetadata ( ) if file. metadata [ " mimetype " ] = = folder _ mime _ type : pri... | [
-0.6595264673233032,
-0.17106479406356812,
0.7431615591049194,
0.31929418444633484,
0.9698225855827332,
0.4218505620956421,
0.43485695123672485,
-0.01618468388915062,
-0.3445684313774109,
-0.40194350481033325,
0.6291428208351135,
-0.17072167992591858,
0.12944012880325317,
1.049757242202758... |
def validate ( self ) : validator = validate ( self ) validator. check _ file ( ) validator. form _ dict ( ) errors = validator. errors for bi, blk in enumerate ( self. blocks ) : validator. check _ blocks ( blk, bi ) for gi, grp in enumerate ( blk. groups ) : validator. check _ groups ( grp, gi, bi ) for di, da in enu... | [
0.1207694262266159,
-0.6387451887130737,
1.0324817895889282,
0.15368817746639252,
0.3014368414878845,
-0.3104919195175171,
-0.21777014434337616,
0.047335173934698105,
-0.9604189395904541,
-0.9513344764709473,
-0.2610035836696625,
-0.2946762442588806,
0.18942297995090485,
1.0923718214035034... |
def _ _ init _ _ ( _ _ self _ _, *, key _ arn : pulumi. input [ str ] ) : pulumi. set ( _ _ self _ _, " key _ arn ", key _ arn ) | [
-0.08840326219797134,
-0.3014027774333954,
0.4193951189517975,
0.44773992896080017,
0.40247997641563416,
0.40788835287094116,
-0.1550915688276291,
0.9717336297035217,
0.1911827176809311,
0.030734840780496597,
-0.6852633357048035,
0.7019351124763489,
0.8700839281082153,
-0.5378135442733765,... |
def search ( self, dns _ dict ) : d = dns _ dict n = self. domain _ list. copy ( ) while n : if n [ - 1 ] not in d : return self. query ( dns _ dict ) else : d = d [ n. pop ( ) ] if not n and isinstance ( d, list ) : # now d is list ( dict value ), not dict for i in d : if int ( time. time ( ) ) - i ['time'] > i ['ttl'... | [
-0.5621040463447571,
1.0813441276550293,
0.44280293583869934,
-0.19119815528392792,
-0.8059806823730469,
0.11145186424255371,
-0.690280556678772,
-0.2551092803478241,
1.1771410703659058,
0.043390482664108276,
-0.20812475681304932,
0.16093114018440247,
0.2333442121744156,
0.9786441922187805... |
def map ( self ) : return self. _ map | [
-0.6552631855010986,
-1.1226222515106201,
0.15584655106067657,
-0.15824684500694275,
-0.44057905673980713,
1.3837738037109375,
0.4712749719619751,
0.05785306915640831,
1.5294578075408936,
-0.9965211749076843,
0.412831574678421,
0.26703426241874695,
0.4163983166217804,
-0.7814115881919861,
... |
def test _ inputs _ filter _ functionality _ positive ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper, add _ input _ one, add _ input _ two ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) input _ page. table. set _ filter ( " dummy " ) self. assert ... | [
-0.3826960623264313,
0.8545488119125366,
0.5749203562736511,
0.6278516054153442,
0.6117680668830872,
0.14923013746738434,
0.23345385491847992,
-0.49256959557533264,
-0.08251461386680603,
-0.21186065673828125,
0.3438197374343872,
-0.025987692177295685,
0.5508894324302673,
0.1290399879217147... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.