text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def test _ atomic _ hex _ binary _ length _ nistxml _ sv _ iv _ atomic _ hex _ binary _ length _ 1 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - length - 1. xsd ", instance = " nistdata / atom... | [
0.17918100953102112,
-0.43303167819976807,
0.41629981994628906,
0.6732211112976074,
-0.012940976768732071,
0.31865090131759644,
-0.18329329788684845,
0.4292145073413849,
-0.26087629795074463,
0.4183593690395355,
-0.6687115430831909,
-0.38512054085731506,
0.2255403846502304,
0.8483328819274... |
def testinverse ( self ) : invertible = _ matrix. creatematrix ( 2, [ self. f7. createelement ( c ) for c in [ 2, 5, 3, 1 ] ] ) inverse = _ matrix. creatematrix ( 2, [ self. f7. createelement ( c ) for c in [ 1, 2, 4, 2 ] ] ) noninvertible = _ matrix. creatematrix ( 2, [ self. f7. createelement ( c ) for c in [ 2, 6, 3... | [
-0.8659717440605164,
0.3232530355453491,
0.41699737310409546,
0.23053143918514252,
0.22180823981761932,
0.48540571331977844,
0.8734683394432068,
0.5337496399879456,
-1.4874870777130127,
-0.6345586180686951,
-0.8805933594703674,
-0.3283710181713104,
-1.5847469568252563,
0.02188112400472164,... |
def cos ( x ) : try : return variable ( x. name, np. cos ( x. val ), { k : - v * np. sin ( x. val ) for ( k, v ) in x. der. items ( ) }, false ) except attributeerror : return np. cos ( x ) | [
-0.12488706409931183,
0.12359826266765594,
0.39592429995536804,
0.08442944288253784,
-1.1292247772216797,
0.009028683416545391,
-0.8117467164993286,
-0.2514137625694275,
-0.2061220407485962,
0.029933273792266846,
-0.0735732764005661,
0.005332268308848143,
0.3927099406719208,
-0.28160303831... |
def fit ( self, structure, sg ) : fit = self. make _ recipe ( structure, sg ) try : self. regression ( fit, structure. title ) self. write _ to _ file ( fit, structure. title ) self. plot _ fit ( fit, structure ) except : print _ exc ( ) return | [
0.09618954360485077,
-0.05643894523382187,
0.4227711260318756,
0.7180997133255005,
0.2856590449810028,
-0.09512979537248611,
0.8015084862709045,
0.353975772857666,
-0.1557004749774933,
-0.9679661989212036,
-0.3383646011352539,
0.590796172618866,
-0.18966050446033478,
-0.20349682867527008,
... |
def distance ( self, e ) : location = self. l x, y = e [ 0 ], e [ 1 ] x _ diff = math. pow ( location [ x ] [ 0 ] - location [ y ] [ 0 ], 2 ) y _ diff = math. pow ( location [ x ] [ 1 ] - location [ y ] [ 1 ], 2 ) euclidean = math. sqrt ( x _ diff + y _ diff ) return euclidean | [
-0.516254723072052,
-0.7372228503227234,
0.8920450806617737,
-0.7313464283943176,
0.22814016044139862,
0.43423908948898315,
0.14806874096393585,
0.7738132476806641,
0.43322500586509705,
0.8934934139251709,
-0.13993427157402039,
-0.30576667189598083,
0.011569834314286709,
-0.301006883382797... |
def handle ( self, * args, * * options ) : country = options ['country _ code'] model = self. check _ country ( country ) qs = model. objects. all ( ) print ( qs. count ( ) ) for item in qs : registration _ date = item. regdate geolocation, altitude, hdop = self. transform _ gpsloc ( item. gpsloc ) uuid = item. rowuuid... | [
-0.43422701954841614,
0.4528658390045166,
0.7540704011917114,
0.7655977010726929,
1.908964991569519,
0.4725181758403778,
0.6368651390075684,
0.4451049864292145,
-0.09103849530220032,
0.09401208907365799,
-0.3324703574180603,
-0.3424457907676697,
-0.2934643030166626,
0.3709449768066406,
-... |
def run _ one _ yoshi ( *, obsid, detector, chipx, chipy, chip _ id, ra _ targ, dec _ targ, roll _ targ, offset _ y, offset _ z, sim _ offset, focus _ offset, dither _ y, dither _ z, obs _ date, t _ ccd, man _ angle, * * kwargs, ) : from proseco import get _ aca _ catalog params = convert _ yoshi _ to _ proseco _ param... | [
-0.009244862012565136,
-0.5247251391410828,
0.6809667348861694,
-0.9252298474311829,
-0.40214189887046814,
-0.5169792771339417,
0.36462682485580444,
0.21594291925430298,
-0.47566378116607666,
-0.29752853512763977,
-0.061445433646440506,
0.4888686537742615,
0.21946150064468384,
0.7131688594... |
def draw _ units ( unit _ dictionary, image _ in, show _ text = false ) : for unit _ id, unit _ dict in unit _ dictionary. iteritems ( ) : if unit _ dict ['max _ health'] < = 0 : continue unit _ scale = int ( 5 * ( unit _ dict ['health'] * 1. 0 / unit _ dict ['max _ health'] ) ) unit _ color = color _ dict [ unit _ dic... | [
-0.7984055876731873,
-0.21973983943462372,
0.9820049405097961,
-0.886894166469574,
-0.056792184710502625,
0.6721065640449524,
0.1582476645708084,
0.12595082819461823,
0.2898977994918823,
0.6309133172035217,
0.4095500111579895,
0.6866143941879272,
0.5641147494316101,
0.013645575381815434,
... |
def update ( self ) : for level in ( false, true ) : try : self. _ nuki _ device. update ( aggressive = level ) except requestexception : _ logger. warning ( " network issues detect with % s ", self. name ) self. _ available = false continue # if in error state, we force an update and repoll data self. _ available = se... | [
-0.9044051766395569,
-0.37398138642311096,
0.3321528434753418,
0.6631956100463867,
0.7001384496688843,
0.3139537274837494,
-0.13341538608074188,
-1.000856876373291,
-0.12753888964653015,
-0.31246405839920044,
-0.0948125496506691,
-0.6954867839813232,
-0.42011743783950806,
0.475153148174285... |
def xytobot _ locuc ( self, xy ) : return float ( xy ) / 0. 0254 | [
0.6605439186096191,
-0.38084083795547485,
0.2966780364513397,
-0.6879162192344666,
0.41238003969192505,
0.1213560476899147,
-0.28196272253990173,
-1.3361226320266724,
-0.5764660835266113,
0.8848936557769775,
0.05625548213720322,
0.5097311735153198,
0.6410780549049377,
-0.9539917707443237,
... |
def create _ chunks ( self, list _ name, n ) : for i in range ( 0, len ( list _ name ), n ) : yield list _ name [ i : i + n ] | [
-0.6249158978462219,
0.372053861618042,
0.5645283460617065,
0.24548126757144928,
0.05779057368636131,
0.5418146252632141,
-1.1696817874908447,
-0.1985975205898285,
-0.1428295373916626,
0.11151387542486191,
-1.0569891929626465,
-0.222992941737175,
0.29762640595436096,
1.1912380456924438,
... |
def list _ fpha _ bbox ( ) : img _ root = path ( root ) /'first _ person _ action _ benchmark'skel _ root ='hand _ pose _ annotation _ v1'video _ root ='video _ files'modality ='color'img _ size = ( fpha. ori _ width, fpha. ori _ height ) img _ tmpl ='color _ { : 04d }. jpeg'# accumulate list train _ img _ list = [ ] t... | [
-0.9401734471321106,
-0.46809715032577515,
0.8642637729644775,
0.4119855761528015,
0.1283552199602127,
-0.6608746647834778,
1.406968116760254,
0.919416606426239,
0.42253175377845764,
0.20233388245105743,
0.17726518213748932,
0.7020969986915588,
0.35962092876434326,
1.0403058528900146,
-0... |
def draw _ intersection ( x = 1, y = 1 ) : print ( " { } { } ; { } ". format ( csi, y, x ), end = " ", flush = true ) | [
0.658977746963501,
0.3987870514392853,
0.800561249256134,
-0.13078424334526062,
-0.036528851836919785,
0.5083114504814148,
-0.3632248640060425,
0.16115766763687134,
-0.2257915437221527,
-0.000142086879350245,
0.28860756754875183,
0.8992977738380432,
-0.758337140083313,
0.0460781529545784,
... |
def gpu _ memory _ mb ( ) : # pylint : disable = bare - except try : result = subprocess. check _ output ( ['nvidia - smi ','- - query - gpu = memory. used ','- - format = csv, nounits, noheader'], encoding ='utf - 8') gpu _ memory = [ int ( x ) for x in result. strip ( ). split ('\ n') ] return { gpu : memory for gpu,... | [
-0.1431102156639099,
0.5366786122322083,
0.5404640436172485,
0.6946356892585754,
-0.4231799244880676,
-0.980839192867279,
0.0902319848537445,
-0.8698512315750122,
-0.037787459790706635,
0.08388026058673859,
-0.12379801273345947,
0.32752642035484314,
-0.5556755065917969,
0.6034618020057678,... |
def connect _ tap ( self, tap, * * kwargs ) : tap. add _ subscriber ( partial ( self. update, * * kwargs ) ) self. tap _ stream = tap self. dmap = tap. source | [
-0.7323929667472839,
-0.2793091833591461,
0.4760894179344177,
-0.0852513238787651,
-0.3742639720439911,
0.20882397890090942,
-0.4863286316394806,
-0.4317483603954315,
0.9397577047348022,
-0.6407836079597473,
-0.1436190903186798,
-0.5432410836219788,
0.3709138035774231,
0.328615665435791,
... |
def readdias ( diasdatafile ) : print " reading all diasources into memory... " idtodias = { } line = diasdatafile. readline ( ) while line! = " " : [ diaid, expmjd, ra, decl, mag, obscode, ssmid, e, ee ] = \ line. split ( ) diaid = int ( diaid ) expmjd = float ( expmjd ) ssmid = int ( ssmid ) idtodias [ diaid ] = [ di... | [
-0.3033483922481537,
-0.5109660625457764,
0.478014200925827,
-1.4496952295303345,
-0.9753293991088867,
0.15763650834560394,
0.4533987045288086,
0.5885288119316101,
0.8006337881088257,
-0.8362072110176086,
-0.5611750483512878,
-0.1828015148639679,
-0.06627118587493896,
0.5482711791992188,
... |
def draw _ intersection _ line ( x = 1, y = 1, width = 1, height = 1, fore _ colour = 39, back _ colour = 49 ) : # execute function to check for valid colours and force correction fore _ colour, back _ colour = colour _ check ( fore _ colour, back _ colour ) # set foreground and background colours and turn on line draw... | [
0.787445068359375,
0.4256337285041809,
0.7471491694450378,
-0.4132818579673767,
0.6447840929031372,
0.0078583974391222,
-0.2657446265220642,
0.5455124974250793,
-0.4488101899623871,
0.14305086433887482,
-0.04278571531176567,
0.45990118384361267,
-1.0576478242874146,
0.21230971813201904,
... |
def test _ get _ command _ for _ testrunner _ resume _ continue ( self ) : executor = self. real _ executor executor. stand _ alone = false self. testrun. resume = true command = executor. _ get _ command _ for _ testrunner ( ) self. _ assertcommandcontains ( command, " testrunner - lite " ) self. _ assertcommandcontai... | [
0.6975902915000916,
0.08371230214834213,
0.7439760565757751,
0.6183844208717346,
0.8406967520713806,
-0.34976762533187866,
0.37392890453338623,
-0.21320639550685883,
0.04377663508057594,
-0.3378521800041199,
-0.24931247532367706,
-0.14670635759830475,
-0.447955846786499,
-0.183962658047676... |
async def schedule _ software _ update ( self, offset _ sec : optional [ int ] = 0 ) - > none : await self. _ send _ command ( " schedule _ software _ update ", offset _ sec = offset _ sec ) | [
-0.28633666038513184,
-0.2892151176929474,
0.5961265563964844,
1.1224747896194458,
-0.5933813452720642,
0.8838139772415161,
-0.10221769660711288,
0.22245988249778748,
0.11604700237512589,
-0.17414546012878418,
-0.13162861764431,
1.2130266427993774,
-0.41971489787101746,
-0.0548239499330520... |
def test _ atomic _ any _ uri _ max _ length _ 4 _ nistxml _ sv _ iv _ atomic _ any _ uri _ max _ length _ 5 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - maxlength - 5. xsd ", instance = " nistdata... | [
0.058132678270339966,
-0.2046709805727005,
0.2804515063762665,
0.8485217094421387,
-0.5128570199012756,
-0.36508044600486755,
-0.18631072342395782,
-0.49461978673934937,
-0.06178578361868858,
-0.09803972393274307,
-0.07725304365158081,
-0.4389210045337677,
-0.749155580997467,
0.39501866698... |
def previous _ step ( self, event _ data = none ) : if self. _ current _ step > 0 : self. _ current _ step - = 1 self. fire ( { " event " : " sequencestepstarted " } ) self. reset _ step ( ) self. reset _ duration ( ) | [
0.04512432962656021,
0.22935514152050018,
0.5176219940185547,
0.6853183507919312,
0.5229539275169373,
-0.39055851101875305,
0.44450056552886963,
0.577812671661377,
-0.06872041523456573,
-0.1836206614971161,
-0.4088045060634613,
0.3726138770580292,
0.012050159275531769,
1.0634957551956177,
... |
def validate _ asset _ allocation _ percentage ( amount, entity, asset _ store ) : # filtering out the sub - entities to calculate this percentage entities = allocation. objects. filter ( asset _ store _ _ asset = asset _ store. asset if asset _ store else none, asset _ store _ _ order = asset _ store. order if asset _... | [
0.7950155138969421,
-0.00493434676900506,
0.8616196513175964,
-0.4143049716949463,
-0.6464865803718567,
0.5521817803382874,
0.19969697296619415,
-0.39084088802337646,
0.49590373039245605,
0.9252560138702393,
1.1863595247268677,
-1.1402580738067627,
0.7457362413406372,
-0.697390615940094,
... |
def is _ subscribed ( self ) : if self. _ session is none or not self. _ session. is _ authed : raise utils. autherror ( " you can only get a user id using an authenticated session " ) header = self. _ soup _ profile. find ( " div ", { " class " : " primary header module " } ) input _ = header. find ( " input ", { " na... | [
0.7303940057754517,
0.16970820724964142,
0.7619833946228027,
0.6060532927513123,
-0.018374904990196228,
-0.12211025506258011,
0.04504954069852829,
-0.36332473158836365,
0.5379621982574463,
-0.24995121359825134,
-0.1886330544948578,
0.2507001459598541,
-0.21348664164543152,
0.14868628978729... |
def combine ( self, ratio ) : index _ df = self. index + self. title _ ini _ index * ratio mag = np. sqrt ( np. square ( index _ df ). sum ( axis = 0 ) ) mag ['idf'] = 1 + ratio self. index = index _ df / mag if not self. baseline : with open ( os. path. join ( self. root _ folder, " index _ df2. pkl " ), " wb " ) as f... | [
-0.24952737987041473,
-0.252114862203598,
0.4883849024772644,
0.7194044589996338,
0.5665498971939087,
0.38761889934539795,
0.24732083082199097,
0.4442571997642517,
-0.1039818674325943,
0.31655192375183105,
0.2451387196779251,
-0.5313433408737183,
-0.8633069396018982,
-1.2526298761367798,
... |
def update _ replay ( self, obs, action, reward, done ) : value = self. critic. predict ( obs. reshape ( 1, * obs. shape ) / 255 ) [ 0 ] mask = 0 if done else 1 self. replay _ memory. append ( ( obs, action, reward, mask, value ) ) | [
-0.7384204268455505,
0.13521885871887207,
0.45684418082237244,
-0.034058213233947754,
-0.05247340351343155,
-0.08968158811330795,
-0.3100808262825012,
-0.4554785192012787,
0.6003198623657227,
0.949524462223053,
-0.16164779663085938,
1.505833387374878,
0.1971987932920456,
-0.504510045051574... |
def recv ( self, timeout = 1000 ) : while true : try : # tokenize message ( possibly more than on per read ) for msg in tokenize _ message ( self. hardware. read ( timeout ) ) : _ trace. debug ( " recv : % s ", msg _ to _ string ( msg ) ) cmd = self. unpack ( msg ) if cmd : yield cmd except ioerror as err : # iteration... | [
-0.32739129662513733,
-0.08087306469678879,
0.7150073051452637,
0.016950951889157295,
-0.6246157884597778,
-0.6682310700416565,
-0.47536924481391907,
-0.6285350918769836,
-0.5916057825088501,
-0.039623938500881195,
0.7757652997970581,
0.015635937452316284,
0.11175603419542313,
0.1266314685... |
def _ var ( a, axis = none, dtype = none, out = none, keepdims = np. _ novalue ) : if not isinstance ( a, np. ndarray ) : a = a. values return 0. 0 if len ( a ) = = 1 else np. var ( a, axis = axis, dtype = dtype, ddof = 0, out = out, keepdims = keepdims ) | [
0.23046843707561493,
0.5570769309997559,
0.7454047203063965,
0.49625542759895325,
-0.7097901105880737,
-0.4215901494026184,
0.7439589500427246,
-0.22521178424358368,
0.5983583331108093,
0.05457405373454094,
0.6583582162857056,
1.4068490266799927,
0.5649794936180115,
0.6024549603462219,
0... |
def count ( self ) : return len ( self. storage ) | [
0.06738348305225372,
-0.35888779163360596,
0.30146268010139465,
-0.12627242505550385,
0.5463307499885559,
0.6733038425445557,
0.21978594362735748,
0.22520266473293304,
0.03703036531805992,
-0.7397435903549194,
-1.3854176998138428,
-0.5768174529075623,
0.08459591865539551,
-0.07642606645822... |
def get _ ids ( self, callback = none ) : self. eval _ js ('table. _ getids ( ) ; ', callback = callback ) | [
-0.31871020793914795,
0.6315568685531616,
0.3265533447265625,
0.6612306237220764,
0.2550695240497589,
-1.0542984008789062,
0.4587240517139435,
-0.2882532775402069,
-0.16580143570899963,
0.3804910182952881,
-0.7051101922988892,
0.35481858253479004,
-0.14456218481063843,
0.3542168140411377,
... |
def get _ dims ( ) : return width, height | [
-0.4279744625091553,
0.34922119975090027,
0.5025489330291748,
0.08490576595067978,
-0.6045840382575989,
-0.4667477309703827,
0.14997605979442596,
-0.15280652046203613,
-0.17959637939929962,
-0.516901969909668,
-0.6388068199157715,
0.004699736833572388,
0.2342144101858139,
0.452887296676635... |
def test _ example _ input _ two _ required _ field _ name ( 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. ex... | [
-0.6459620594978333,
-0.21808084845542908,
0.7581861615180969,
-0.01402705442160368,
0.2218058556318283,
1.1722694635391235,
-0.09462249279022217,
-0.3597908616065979,
-0.4056580662727356,
0.5352088212966919,
-1.2437505722045898,
-0.3733897805213928,
0.014683345332741737,
0.212434679269790... |
def fate ( self ) : return max ( [ p. fate for p in self. prerequisites ], default = fate. init ) if self. flags & flag. temp else self. _ fate | [
-0.09624031186103821,
-0.44159185886383057,
0.39151233434677124,
0.8963426351547241,
0.5885838866233826,
0.621583104133606,
-0.03503521904349327,
0.5695833563804626,
0.15089713037014008,
-0.7151818871498108,
0.38387587666511536,
-0.43177664279937744,
0.23651550710201263,
1.5844707489013672... |
def shipping _ country _ name ( self, shipping _ country _ name ) : self. _ shipping _ country _ name = shipping _ country _ name | [
-0.6803049445152283,
0.10283951461315155,
0.0059897820465266705,
0.19318123161792755,
-0.9007616639137268,
1.4370936155319214,
0.6661198139190674,
0.17649425566196442,
-0.5369638800621033,
0.6256782412528992,
-0.5057965517044067,
-0.9453681707382202,
-0.6033548712730408,
0.1879608780145645... |
def start ( self ) : p = multiprocessing. process ( target = movingstageproc, args = ( self. serialnumber, self. child _ connection ) ) p. start ( ) return p | [
0.9306710958480835,
-0.7942758202552795,
0.43574434518814087,
0.0805378258228302,
-0.34635722637176514,
-0.08837947249412537,
0.1670825034379959,
0.34613966941833496,
0.41563740372657776,
-0.3819361627101898,
-0.562646746635437,
0.5995360612869263,
-0.8386507034301758,
-0.08128772675991058... |
def credential _ checking ( password ) : if len ( password ) < 8 : abort ( 400,'password should be longer than 8 characters.') has _ digit = any ( [ c. isdigit ( ) for c in password ] ) if not has _ digit : abort ( 400,'password must have at least one digit.') has _ upper = any ( [ c. isupper ( ) for c in password ] ) ... | [
-0.2363211214542389,
-0.09570829570293427,
0.7681781649589539,
0.7380087971687317,
0.11685360223054886,
0.8340917825698853,
-0.47572585940361023,
0.34061044454574585,
0.6847241520881653,
-0.1374412477016449,
0.38835543394088745,
0.49000799655914307,
-0.5150253772735596,
1.3283768892288208,... |
def draw _ bottom _ t ( x = 1, y = 1 ) : print ( " { } { } ; { } ". format ( csi, y, x ), end = " ", flush = true ) | [
0.16630901396274567,
-0.12244702130556107,
0.6854139566421509,
-0.6226674914360046,
0.4734944999217987,
0.4199880361557007,
-0.7880099415779114,
-0.918131411075592,
-0.7183761596679688,
0.3749898672103882,
-0.5191758871078491,
1.5848547220230103,
-0.5902997851371765,
-0.34769102931022644,
... |
def transform ( self, y ) : y = self. ensure _ output _ format ( y, sparse _ format ='lil ', enforce _ sparse = true ) self. clean ( ) self. label _ count = y. shape [ 1 ] last _ id = 0 train _ vector = [ ] for labels _ applied in y. rows : label _ string = ", ". join ( map ( str, labels _ applied ) ) if label _ string... | [
-1.2570291757583618,
-0.45014795660972595,
0.6888008117675781,
-0.5053112506866455,
1.0266908407211304,
-0.6942670941352844,
0.8609521985054016,
0.602122962474823,
0.3122716546058655,
-0.09106003493070602,
-0.411380410194397,
0.5588154196739197,
0.6864292621612549,
-0.8438329696655273,
-... |
def page _ should _ not _ have _ element ( self, name ) : selector = self. get _ web _ element _ selector ( name ) self. page _ should _ not _ contain _ element ( selector ) | [
-0.9302358031272888,
-0.12210621684789658,
0.3177521526813507,
0.2694021761417389,
0.31289371848106384,
1.3243892192840576,
0.6141707897186279,
-0.2003086656332016,
0.6344661116600037,
-0.3015590012073517,
-0.10201824456453323,
-0.5644705891609192,
-0.8941054940223694,
1.1157456636428833,
... |
def generate _ word ( ) : return''. join ( random. choice ( s ) for s in ( initial _ consonants, vowels, final _ consonants ) ) | [
0.1250825822353363,
-0.06664921343326569,
0.33388739824295044,
0.13655276596546173,
0.3248017132282257,
1.0153707265853882,
-0.22210143506526947,
0.2979336977005005,
-0.548268735408783,
0.3737770915031433,
-0.15728195011615753,
-0.14939095079898834,
-0.8683984875679016,
-0.4940578937530517... |
def test _ login ( self ) : pass | [
-0.34780770540237427,
-0.03474529832601547,
0.18808697164058685,
1.3468786478042603,
0.6836326718330383,
1.177612543106079,
1.3309073448181152,
-0.08654771745204926,
0.5202335715293884,
-1.3443604707717896,
-0.7432497143745422,
0.2767083942890167,
-0.48363691568374634,
-0.5177572965621948,... |
def set _ prefilters ( self, prefilters : list [ scopefilter ] = none, clear : optional [ bool ] = false, ) - > none : if prefilters is not none : if not isinstance ( prefilters, list ) or not all ( isinstance ( pf, scopefilter ) for pf in prefilters ) : raise illegalargumenterror ( f " ` prefilters ` must be a list of... | [
-1.6992090940475464,
0.9711940288543701,
0.47789889574050903,
0.13969871401786804,
0.8450880646705627,
-0.30461829900741577,
0.2562796473503113,
-0.5706530213356018,
0.9420743584632874,
0.8003566265106201,
-0.6559455394744873,
0.4211716651916504,
-0.3437083661556244,
0.6076761484146118,
... |
def change _ log ( base _ parameters : baseparameters, csv : str, access _ token : str, risk : bool ) - > none : previous _ logs = base _ parameters. previous _ logs current _ logs = base _ parameters. current _ logs previous _ diff _ logs = previous _ logs. diff ( current _ logs ) logs = gitchangelog ( current _ logs.... | [
0.35315561294555664,
-0.027921117842197418,
0.5643582344055176,
0.21662770211696625,
0.53585284948349,
0.09754008054733276,
-0.6684249639511108,
-0.02580755017697811,
-0.374876469373703,
0.8114352226257324,
0.25334054231643677,
1.3202894926071167,
0.029522394761443138,
0.14568233489990234,... |
def create _ new _ hazard ( self, hazard : hazard ) : id = int ( hazard. hazard _ id ) name = hazard. name haz _ type = hazard. hazard _ type. value lat = hazard. location. center. lat lon = hazard. location. center. long updated = hazard. last _ updated. to _ integer ( ) try : with self. database. cursor ( ) as cursor... | [
0.18399275839328766,
-0.33240267634391785,
0.8104276657104492,
0.4336056709289551,
0.7183936834335327,
0.7938590049743652,
0.08395262807607651,
-0.3055378794670105,
-0.4627423584461212,
-0.16104041039943695,
-0.5585582852363586,
-0.7962251901626587,
-0.5568402409553528,
-0.0681306645274162... |
def perf _ serial ( obj ) : if isinstance ( obj, ( datetime, date ) ) : return obj. isoformat ( ) raise typeerror ( " type % s not serializable " % type ( obj ) ) | [
-0.2367408126592636,
0.018568234518170357,
0.6497870683670044,
0.2358989715576172,
-0.2451188564300537,
0.425351619720459,
0.5479071736335754,
-1.0222856998443604,
0.9181146621704102,
0.3836005628108978,
0.5262113809585571,
-0.05253281071782112,
-0.6916148066520691,
0.07863164693117142,
... |
def test _ atomic _ language _ length _ 1 _ nistxml _ sv _ iv _ atomic _ language _ length _ 2 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - length - 2. xsd ", instance = " nistdata / atomic / l... | [
0.3332955539226532,
-0.6090317368507385,
0.38901883363723755,
0.5317636132240295,
-0.5211890339851379,
0.06036852300167084,
0.2734537124633789,
-0.09913673996925354,
-0.6034087538719177,
0.659978449344635,
-0.8878266215324402,
-0.1402934491634369,
0.2789289951324463,
0.6354686617851257,
... |
def commitment _ id ( self ) - > pulumi. output [ int ] : return pulumi. get ( self, " commitment _ id " ) | [
1.4294464588165283,
-0.12954461574554443,
0.42995941638946533,
0.5843059420585632,
0.6443151831626892,
0.8278329372406006,
0.8629255294799805,
1.2198240756988525,
0.1088428795337677,
0.8718042373657227,
0.16151520609855652,
0.44213244318962097,
-0.36629047989845276,
-0.6737471222877502,
... |
def forest _ story ( player ) : print ( " you go east, moving into the jungle at a brisk walk. " + " shortly after passing the tree - line you find yourself " + " in near - pitch darkness. luminescent vegitation provides " + " the only light. " ) if " flashlight " in player. inventory : print ( " do you turn on your fl... | [
-0.15671779215335846,
-0.5202777981758118,
0.8445854187011719,
0.722588300704956,
0.7839350700378418,
-0.44162777066230774,
0.2794070243835449,
-0.06785114854574203,
-0.4779251515865326,
-0.4286031723022461,
-0.9686370491981506,
-0.17361314594745636,
0.37363335490226746,
0.2564064264297485... |
def test _ atomic _ qname _ length _ 3 _ nistxml _ sv _ iv _ atomic _ qname _ length _ 4 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - length - 4. xsd ", instance = " nistdata / atomic / qname / schem... | [
0.16489221155643463,
-0.012662503868341446,
0.3527715504169464,
-0.3425908088684082,
-0.31958484649658203,
0.31364017724990845,
-0.549156904220581,
-0.40571853518486023,
0.4936992824077606,
0.2869583070278168,
-0.5480323433876038,
-0.7106576561927795,
-0.16866323351860046,
-0.4605890810489... |
def _ remove _ watcher ( self, watcher : future ) - > none : try : self. _ watchers. remove ( watcher ) except keyerror : pass | [
-0.28593334555625916,
0.29395920038223267,
-0.03592129051685333,
0.005479250568896532,
-0.6016068458557129,
-0.44365185499191284,
-0.7444456219673157,
-0.06823039054870605,
-0.7883173227310181,
-0.20530149340629578,
-0.15390773117542267,
-0.2380814403295517,
-0.3137582242488861,
1.44569659... |
def switch _ sample _ features ( value, x, lags _ x, rolling _ window ) : return {'mean': lambda : mean _ sample ( lags _ x, rolling _ window ),'std': lambda : std _ sample ( lags _ x, rolling _ window ),'max': lambda : max _ sample ( lags _ x, rolling _ window ),'min': lambda : min _ sample ( lags _ x, rolling _ windo... | [
-0.28787562251091003,
-0.12733323872089386,
0.4768267869949341,
-0.5870710015296936,
-1.2392386198043823,
-0.49583950638771057,
-0.6231973171234131,
-0.21520525217056274,
0.004429561551660299,
0.024676252156496048,
-0.5114831924438477,
1.0798850059509277,
0.7392219305038452,
-0.29608625173... |
def test _ atomic _ any _ uri _ pattern _ 2 _ nistxml _ sv _ iv _ atomic _ any _ uri _ pattern _ 3 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - pattern - 3. xsd ", instance = " nistdata / atomic / ... | [
-0.020736249163746834,
-0.24312913417816162,
0.596555233001709,
0.9661548733711243,
-0.029127566143870354,
0.1285160779953003,
-0.24748627841472626,
-0.01305452547967434,
0.05187072232365608,
-0.028468303382396698,
0.290219247341156,
-0.3515908122062683,
-0.4818168580532074,
-0.27775147557... |
def process _ trains _ points _ on _ tick ( self ) : for train in self. trains. values ( ) : line = self. map. line [ train. line _ idx ] if train. position = = line. length or train. position = = 0 : self. train _ in _ point ( train, line. point [ self. get _ sign ( train. position ) ] ) | [
0.19578471779823303,
-0.4229027032852173,
0.4324595332145691,
0.23984383046627045,
0.3901216387748718,
0.07480710744857788,
0.4403870701789856,
0.6426438689231873,
-0.9637838006019592,
0.24097920954227448,
-0.011230818927288055,
-0.7331887483596802,
0.9120314121246338,
0.02491525374352932,... |
def test _ atomic _ any _ uri _ enumeration _ 3 _ nistxml _ sv _ iv _ atomic _ any _ uri _ enumeration _ 4 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - enumeration - 4. xsd ", instance = " nistdata... | [
-0.9050063490867615,
-0.49529919028282166,
0.6149068474769592,
0.6101760268211365,
-0.1480664759874344,
-0.16072112321853638,
-0.03157201409339905,
-0.11056067049503326,
0.5142587423324585,
-0.17183448374271393,
0.15950851142406464,
-0.7920205593109131,
-0.5394910573959351,
-0.221856296062... |
def drawskill ( self, canvas, values, function = none ) : if function is none : return color = self. skillcolor a = mv2. ones ( ( self. detail, self. detail ), typecode = mv2. float ) a = mv2. masked _ equal ( a, 1 ) v1 = [ ] v2 = [ ] for i in range ( self. detail ) : x = float ( i ) / self. detail * self. stdmax * sel... | [
0.1602151244878769,
-0.3445064425468445,
0.8606292009353638,
0.034270621836185455,
-0.5072452425956726,
0.8318960666656494,
0.47757288813591003,
-1.1058231592178345,
-0.24828584492206573,
-0.3440319299697876,
-0.0737651064991951,
0.49375617504119873,
0.985819399356842,
-0.1221693828701973,... |
def using _ jobs ( self ) : return self. jobs! = 0 | [
-0.2601999342441559,
0.2941254675388336,
0.5545850396156311,
0.0592164508998394,
0.06348945945501328,
-0.029691969975829124,
-0.22127120196819305,
0.11686091870069504,
-0.1857367902994156,
-1.0892101526260376,
0.5328113436698914,
-0.7944488525390625,
-0.8484131097793579,
0.7409771084785461... |
def lstsqmultiptwpu ( thetahat, thetaa, dthetahat, dthetaa, etap _ lysc, t, etapu _ lysc, lambdapu ) : thetahat2 = np. hstack ( ( thetahat, np. exp ( lambdapu * t. reshape ( ( - 1, 1 ) ) ) ) ) dthetahat2 = np. hstack ( ( dthetahat, lambdapu * np. exp ( lambdapu * t. reshape ( ( - 1, 1 ) ) ) ) ) etap _ lysc2 = np. hstac... | [
-0.4211450517177582,
-0.17760413885116577,
0.6562063097953796,
-0.9453139901161194,
0.09533628076314926,
-0.14805017411708832,
-0.3885006308555603,
0.10234585404396057,
-0.08027740567922592,
-0.06686409562826157,
-0.05186588317155838,
0.08706533908843994,
0.5389398336410522,
0.325051635503... |
def set _ backlight _ rgb ( self, red, green, blue ) : self. _ write _ command ( [ lcdbackpack. backlight _ rgb, red, green, blue ] ) | [
-0.005319836549460888,
0.5395028591156006,
0.6230209469795227,
0.4561566114425659,
0.5954967141151428,
0.3248126804828644,
-0.46585747599601746,
-0.6640053391456604,
-0.770264744758606,
0.35835710167884827,
-1.0170445442199707,
1.0157527923583984,
-1.3719033002853394,
-0.2751893401145935,
... |
def k _ nearest _ neighbors ( data, predict, k = 3 ) : predict = np. array ( predict ) if len ( data ) > = k : warnings. warn ('k is set to a value less than total voting groups') distances = [ ] for group in data : for features in data [ group ] : features = np. array ( features ) # euclidean _ distance = np. sqrt ( n... | [
-0.14918823540210724,
0.2654136121273041,
0.46443796157836914,
0.7256758809089661,
-0.4492539167404175,
-0.10061106085777283,
-0.4894615113735199,
0.4387953579425812,
-0.7744501829147339,
0.9235613942146301,
-0.27803489565849304,
0.1706656813621521,
-0.11234284192323685,
0.7408758401870728... |
def select ( self, all _ : bool ) : if all _ : self. btnselall. setvisible ( false ) self. btnselnone. setvisible ( true ) for row in range ( self. tblsrvright. selectionmodel ( ). model ( ). rowcount ( ) ) : for col in [ 0, 1 ] : idx = self. tblsrvright. selectionmodel ( ). model ( ). indexfromitem ( self. tblsrvright... | [
-0.1561278998851776,
-0.35904747247695923,
0.6415894031524658,
0.9526380300521851,
-0.3359333872795105,
-0.09124763309955597,
0.096589095890522,
0.11315862834453583,
0.8192146420478821,
0.8023200035095215,
-0.8630208969116211,
-0.4871847629547119,
0.2213289886713028,
0.6169887185096741,
... |
def resource _ sentences ( entity _ uri, type _ uri ) : sentences = [ ] query _ string _ o = ( " select distinct str (? pl ) as? plabel? a where { { " " < { 0 } >? p? a. " "? p rdfs : label? pl. " " < { 1 } > owl : equivalentclass? eq. " "? a rdf : type? eq. " " filter ( lang (? pl ) ='en'| | lang (? pl ) ='' ) " " } }... | [
-0.2721853256225586,
-0.5527769923210144,
0.719151496887207,
-0.9350515604019165,
1.0886577367782593,
-0.5562925338745117,
-0.134946808218956,
-0.3121580481529236,
0.3434508144855499,
1.3513118028640747,
0.7605372667312622,
0.18631643056869507,
-0.33037856221199036,
0.32739317417144775,
... |
def parse _ github _ url ( url ) : tokens = re. split ('/ | : ', url. replace ( '. git ','' ) ) repo = tokens. pop ( ) organization = tokens. pop ( ) return organization, repo | [
-0.35063257813453674,
-0.674971342086792,
0.4110449552536011,
0.24189822375774384,
0.3979561924934387,
-0.013955197297036648,
-0.3820223808288574,
1.5020021200180054,
-0.31614112854003906,
0.6124893426895142,
-0.7598778605461121,
0.06124529615044594,
0.0787094235420227,
-0.3168884813785553... |
def active _ route _ energy _ at _ arrival ( self ) - > optional [ int ] : if " active _ route _ energy _ at _ arrival " in self. _ vehicle _ data. get ( " drive _ state ", { } ) : return self. _ vehicle _ data. get ( " drive _ state ", { } ). get ( " active _ route _ energy _ at _ arrival " ) return none | [
-0.02813846990466118,
-1.898533582687378,
0.7128207683563232,
-0.36964476108551025,
0.13222230970859528,
-0.3431321978569031,
-0.5818214416503906,
0.4734116494655609,
-0.7528643012046814,
0.6200740337371826,
0.1578798145055771,
0.13490496575832367,
0.4796035885810852,
-0.28268003463745117,... |
def test _ atomic _ any _ uri _ max _ length _ 4 _ nistxml _ sv _ iv _ atomic _ any _ uri _ max _ length _ 5 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - maxlength - 5. xsd ", instance = " nistdata... | [
0.013263173401355743,
-0.25972113013267517,
0.29247474670410156,
0.8271304965019226,
-0.579505205154419,
-0.32673731446266174,
-0.1337464451789856,
-0.4013420641422272,
-0.07970704138278961,
0.04014350846409798,
-0.1250302791595459,
-0.3886686861515045,
-0.6012524366378784,
0.4159506857395... |
def rarity ( self, word : str ) - > rarity : try : occurences = self. new _ hash _ table [ word ] except keyerror : return rarity. misspelt if occurences > = self. max _ word [ 1 ] / 100 : return rarity. common elif occurences < self. max _ word [ 1 ] / 1000 : return rarity. rare elif occurences < self. max _ word [ 1 ... | [
-0.12169335037469864,
0.17181943356990814,
0.5411750078201294,
0.615695595741272,
-0.0999189242720604,
0.34716761112213135,
-0.5528561472892761,
-0.28141283988952637,
0.05349317193031311,
0.1180051863193512,
0.39187091588974,
0.8344801664352417,
-0.4164433479309082,
0.033426202833652496,
... |
def _ get _ duration ( path ) : # sanity checks if not os. path. isfile ( path ) : raise filenotfounderror # properly format the command and its arguments cmd = f'ffprobe - show _ entries format = duration - v quiet - of csv = " p = 0 " { shlex. quote ( path ) }'subprocess _ args = shlex. split ( cmd ) # run the comman... | [
0.6257187128067017,
0.14395023882389069,
0.6809759736061096,
-0.004387431778013706,
-0.254184365272522,
-0.6599246859550476,
0.13533377647399902,
-0.2585131525993347,
-0.3824334740638733,
0.9077574014663696,
0.10983557999134064,
0.22453619539737701,
-0.07596578449010849,
0.5770018100738525... |
def eval _ js ( self, expr, callback = none ) : # avoid js errors when the table is not yet fully loaded. expr ='if ( typeof table! = = " undefined " )'+ expr return super ( table, self ). eval _ js ( expr, callback = callback ) | [
-0.22894275188446045,
0.4932008981704712,
0.6827380657196045,
0.06452975422143936,
-0.6770411133766174,
-1.219681978225708,
0.4396709203720093,
-0.06031104922294617,
0.030620699748396873,
0.6572709083557129,
-0.13781778514385223,
0.05896080657839775,
0.5646454691886902,
1.157071590423584,
... |
def is _ leaf ( self ) : return self. leaf | [
0.25299328565597534,
-0.7701616883277893,
0.3210556209087372,
0.765444278717041,
0.3809274733066559,
1.1631174087524414,
-0.3278096914291382,
-0.05263815447688103,
1.6767053604125977,
-0.8229889273643494,
-0.3109714984893799,
0.6402755379676819,
-0.6576197147369385,
0.1547228842973709,
-... |
def getstates ( self ) : return self. states | [
-0.41506826877593994,
-0.5044134259223938,
0.17447595298290253,
0.13051636517047882,
0.1928015500307083,
0.2705223560333252,
0.03125139698386192,
-0.702185332775116,
0.9875903129577637,
-1.3416929244995117,
-0.01292311679571867,
-0.6831048130989075,
-0.6151333451271057,
0.00314830732531845... |
def marker _ detect ( img _ ori, template, method, selection _ threshold ) : # load the image, clone it for output img _ rgb = img _ ori. copy ( ) # convert it to grayscale img _ gray = cv2. cvtcolor ( img _ rgb, cv2. color _ bgr2gray ) # store width and height of template in w and h w, h = template. shape [ : : - 1 ] ... | [
-0.4151943027973175,
-0.7056756615638733,
0.8676654696464539,
0.03311594948172569,
-0.6784330606460571,
-0.9754417538642883,
0.9837717413902283,
0.26157674193382263,
0.47981494665145874,
0.08621141314506531,
-0.1252865195274353,
0.24943314492702484,
0.4388619065284729,
0.13666045665740967,... |
def test _ list _ decimal _ white _ space _ nistxml _ sv _ iv _ list _ decimal _ white _ space _ 1 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - whitespace - 1. xsd ", instance = " nistdata / list / d... | [
-0.4693463146686554,
-0.018816566094756126,
0.4897928535938263,
0.28320759534835815,
0.29231154918670654,
-0.22842738032341003,
0.06435701251029968,
-0.262618750333786,
1.2420735359191895,
-0.10806456208229065,
-0.557486891746521,
-0.36494624614715576,
-0.21672330796718597,
1.5079604387283... |
def clear _ items ( label1 : label, label2 : label, rb _ lst : list, forget _ button : button ) - > none : label1. destroy ( ) label2. destroy ( ) for rb in rb _ lst : rb. destroy ( ) forget _ button. destroy ( ) | [
-0.29710960388183594,
-0.39346012473106384,
0.7203985452651978,
0.31192630529403687,
0.7168663144111633,
1.1894309520721436,
-0.797491192817688,
0.0195329450070858,
-0.32082170248031616,
1.4085487127304077,
-1.0456714630126953,
0.7141997814178467,
0.08308179676532745,
0.46526437997817993,
... |
def ab _ plus _ c ( a, b, c ) : " * * * your code here * * * " if ( a = = 0 ) : return c else : return ab _ plus _ c ( a - 1, b, c ) + b | [
1.1566545963287354,
-0.28880491852760315,
0.61366868019104,
0.8577641844749451,
0.26957061886787415,
0.8645374178886414,
0.07614792138338089,
-0.22382518649101257,
0.7876805663108826,
-0.11619523912668228,
1.0156909227371216,
0.1340913027524948,
0.12548615038394928,
-0.4712655246257782,
... |
def clearalldiagnosticlogs ( self, typeid, deviceid ) : devicediagnostics = apiclient. devicediaglogs % ( self. host, typeid, deviceid ) r = requests. delete ( devicediagnostics, auth = self. credentials, verify = self. verify ) status = r. status _ code if status = = 204 : self. logger. debug ( " all diagnostic logs s... | [
-0.8811455368995667,
-0.026303330436348915,
0.8438100814819336,
0.478579580783844,
-0.46896836161613464,
0.392909437417984,
-0.09117342531681061,
-0.6786794066429138,
0.19806919991970062,
0.8078287839889526,
0.5922442674636841,
1.176317811012268,
-0.48657289147377014,
0.4908149242401123,
... |
def _ update _ finish ( self, dict _ of _ hashes, verbose = false ) : # discard cached setup. json from any gone jobs # ( so we reload it if they reappear, and also so we don't see them here ) for j in set ( _ paramsdict ) - self. _ fsjid : del _ paramsdict [ j ] discarded _ due _ to _ hash _ list = [ ] self. db _ by _... | [
-0.6458063721656799,
-0.0886521264910698,
0.5851123332977295,
-0.3514217436313629,
-0.16365915536880493,
-0.46714869141578674,
0.8057229518890381,
-0.21901659667491913,
-1.176652193069458,
0.17816530168056488,
0.02452010288834572,
-0.9279304146766663,
0.17942720651626587,
1.138420343399047... |
def request _ for _ the _ inventory _ level ( self, location _ id, instance, model _ id, log _ line _ array ) : try : inventory _ levels = shopify. inventorylevel. find ( location _ ids = location _ id. shopify _ location _ id, limit = 250 ) if len ( inventory _ levels ) = = 250 : inventory _ levels = self. shopify _ l... | [
-1.468772292137146,
-0.022279303520917892,
0.47024691104888916,
0.030699899420142174,
0.9300499558448792,
-0.1885986328125,
-0.3283615708351135,
-0.7636635899543762,
0.026451045647263527,
0.7086339592933655,
-0.8679534196853638,
0.0011240829480811954,
-0.7935163378715515,
-0.14261718094348... |
def disconnect ( self ) : self. _ ser. close ( ) | [
-0.4689309597015381,
-0.7739179730415344,
0.32118070125579834,
-0.455952525138855,
-0.1610943228006363,
1.0504162311553955,
0.4937517046928406,
-0.5036004185676575,
0.02427956834435463,
-0.9544234275817871,
0.4771733283996582,
0.31161877512931824,
-0.614439845085144,
-0.2091781347990036,
... |
def update _ according _ to ( self, action, noise = noise _ flag ) : action = action. split ( ) action _ type = action [ 0 ] if action _ type = ='move': steering, distance = action [ 1 : ] self. _ attempt _ move ( float ( steering ), float ( distance ), noise = noise ) elif action _ type = ='sample': self. _ attempt _ ... | [
-0.516808271408081,
-0.8779112696647644,
0.5911127924919128,
0.22128994762897491,
0.08622086048126221,
0.3065858781337738,
-0.006986493244767189,
-1.0197678804397583,
0.5313522219657898,
0.7345932126045227,
0.491243839263916,
0.7541453242301941,
-0.1389899104833603,
0.32744041085243225,
... |
def checkparameters ( self ) : edverbose. debug ( " edpluginexecsaxsaddmetadatav1 _ 0. checkparameters " ) self. checkmandatoryparameters ( self. getdatainput ( ), " data input is none " ) self. checkmandatoryparameters ( self. getdatainput ( ). getinputimage ( ), " input image is none " ) | [
-0.738676130771637,
0.2763831913471222,
0.38187986612319946,
-0.45372873544692993,
0.6163135766983032,
0.805820643901825,
-0.8954947590827942,
-0.2845926880836487,
-0.4905548095703125,
1.3007667064666748,
1.0479528903961182,
1.5104427337646484,
-0.2757454216480255,
1.5645567178726196,
-0... |
def write _ png ( self, pth ) : image = self. bitmap. converttoimage ( ) im = image. new ('rgb ', ( image. getwidth ( ), image. getheight ( ) ) ) im. frombytes ( bytes ( image. getdata ( ) ) ) self. compute. write _ image ( im, pth ) | [
-0.7906866669654846,
0.6581348180770874,
0.5924081802368164,
-0.6280092597007751,
0.47977322340011597,
0.5035060048103333,
0.24359987676143646,
-0.6903457045555115,
-0.13171328604221344,
0.10166341066360474,
-0.07481233775615692,
0.5179874897003174,
-0.09705027937889099,
0.4471496641635895... |
def _ _ init _ _ ( self, app ) : self. app = app | [
0.9140036702156067,
-0.7475914359092712,
0.19665634632110596,
0.6036689281463623,
-0.4342462718486786,
0.9818229675292969,
-0.4993775188922882,
-0.03848210349678993,
0.7568104863166809,
0.025035100057721138,
0.019315047189593315,
0.13115575909614563,
0.7722981572151184,
0.5648230314254761,... |
def clean _ links _ and _ scrape _ combined _ data ( data _ filename, sales _ filename, num _ retries = 10 ) : link _ list = collect _ all _ featured _ links ( ) bad _ links = collect _ bad _ links ( link _ list ) clean _ links = remove _ bad _ links _ from _ link _ list ( bad _ links, link _ list ) scrape _ combined _... | [
0.002061045030131936,
-0.26250970363616943,
0.41356775164604187,
0.9476150870323181,
0.874177873134613,
0.42236804962158203,
0.015768514946103096,
0.9108934998512268,
-0.1568416953086853,
-0.8464336395263672,
0.4664158523082733,
0.9143898487091064,
0.4740176796913147,
0.08777620643377304,
... |
def test _ list _ integer _ pattern _ nistxml _ sv _ iv _ list _ integer _ pattern _ 1 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - pattern - 1. xsd ", instance = " nistdata / list / integer / schema... | [
-0.6988215446472168,
0.11269210278987885,
0.5302425622940063,
0.5076113343238831,
-0.17114633321762085,
0.3844583332538605,
-0.11836004257202148,
0.7620180249214172,
1.6838386058807373,
0.8980804085731506,
-0.6009314656257629,
-0.4873329997062683,
-0.5294891595840454,
0.31128990650177,
0... |
def intersects _ point ( a, b, c ) : if has _ c _ ufuncs : return math _ util. intersects _ point ( a, b, c ) total _ length = length ( a, b ) left _ length = length ( a, c ) right _ length = length ( c, b ) length _ diff = np. abs ( ( left _ length + right _ length ) - total _ length ) return length _ diff < 1e - 10 | [
0.9238859415054321,
0.5805495381355286,
0.4922550320625305,
-0.472430020570755,
0.6388757824897766,
0.7824649810791016,
0.00959128886461258,
0.3403570353984833,
0.09432368725538254,
0.9656946063041687,
0.40631380677223206,
-0.6259422898292542,
-0.8115095496177673,
-0.9604728817939758,
-0... |
def _ _ init _ _ ( self, app ) : script. script. _ _ init _ _ ( self, app ) self. flatreviewcontext = none self. windowactivatetime = none self. targetcursorcell = none self. justenteredflatreviewmode = false self. digits ='0123456789'self. whitespace ='\ t \ n \ r \ v \ f'# unicode currency symbols ( populated by the ... | [
-0.058327604085206985,
-0.28192010521888733,
0.6760208606719971,
0.15148359537124634,
-0.9400174617767334,
-0.20533137023448944,
0.2821561098098755,
-0.14783011376857758,
0.19975177943706512,
-0.23569676280021667,
-0.03577404469251633,
-0.11252076178789139,
0.011827053502202034,
0.86822825... |
def test _ atomic _ language _ max _ length _ 4 _ nistxml _ sv _ iv _ atomic _ language _ max _ length _ 5 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - maxlength - 5. xsd ", instance = " nistda... | [
0.3379627764225006,
-0.21265512704849243,
0.12049664556980133,
0.3470759987831116,
-0.7569252848625183,
-0.06928864866495132,
-0.14584094285964966,
-0.3837876617908478,
-0.04741206020116806,
0.825207531452179,
-0.740139901638031,
-0.2819855213165283,
-0.35280993580818176,
0.183596327900886... |
def insert ( self, * values, * * columns ) : if values : assert len ( values ) = = len ( self. _ _ columns ), " bad number of columns! " assert not columns, " mixed syntax is not accepted! " row = self. _ _ insert _ across ( values ) else : assert columns, " there is nothing to insert! " row = self. _ _ insert _ select... | [
-1.0015279054641724,
1.1619288921356201,
0.41005739569664,
0.1530499905347824,
0.289206326007843,
0.9792889952659607,
0.4275137186050415,
0.1221095621585846,
-0.6898864507675171,
-1.0664749145507812,
-0.3722948431968689,
-0.6212621927261353,
-0.7724029421806335,
0.6890451908111572,
-0.14... |
def test _ block _ templated _ message _ full ( app ) : with app. app _ context ( ) : blank = blocktemplatedmessage ( " tests / subject _ body _ html. html " ) assert blank. subject = = " test subject. " assert blank. body = = " test body. " assert blank. html = = " test html. " | [
0.7286512851715088,
0.40866753458976746,
0.5548922419548035,
0.28780800104141235,
0.35758158564567566,
0.29113563895225525,
-0.1886013299226761,
-0.6630734205245972,
-0.00393747678026557,
-0.34897467494010925,
-0.4905208647251129,
1.08155357837677,
-0.2277318686246872,
1.0152119398117065,
... |
def do _ ocr ( self, job ) : logger. info ( " got job [ % s ] - batch : % s jobtype : % s ocr engine : % s " % ( job. id, job. batch _ job. name, job. batch _ job. job _ type, job. batch _ job. ocr _ engine ) ) # ocr # ocr _ engine = job. batch _ job. ocr _ engine if ocr _ engine = = " tesseract " : ocr = tesseract ( j... | [
-0.629445493221283,
0.33804476261138916,
1.084593653678894,
-0.6014276742935181,
-0.3420124351978302,
-0.2315755933523178,
-0.49423038959503174,
-0.5862923264503479,
0.14127209782600403,
0.5046714544296265,
-0.04270812124013901,
-0.46635541319847107,
-0.15706321597099304,
-0.06568542122840... |
def test _ list _ decimal _ min _ length _ nistxml _ sv _ iv _ list _ decimal _ min _ length _ 1 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - minlength - 1. xsd ", instance = " nistdata / list / deci... | [
-0.38158994913101196,
-0.5161967873573303,
0.4862995147705078,
0.7065867185592651,
-0.3339846134185791,
-0.18609920144081116,
-0.4094516634941101,
-0.02722213603556156,
0.8906306028366089,
-0.2079908698797226,
-1.0579906702041626,
0.026219526305794716,
-0.1600618213415146,
0.61102533340454... |
def gen _ random _ points _ poly ( poly, num _ points, seed = none ) : min _ x, min _ y, max _ x, max _ y = poly. bounds points = [ ] i = 0 while len ( points ) < num _ points : s = randomstate ( seed + i ) if seed else randomstate ( seed ) random _ point = point ( [ s. uniform ( min _ x, max _ x ), s. uniform ( min _ ... | [
-0.3758397400379181,
-0.7639944553375244,
0.36484870314598083,
0.21474342048168182,
-0.34273019433021545,
0.7132993340492249,
-0.13953658938407898,
-0.015581274405121803,
1.418054223060608,
-0.002369245979934931,
-0.8403887152671814,
-0.11974582821130753,
0.07770470529794693,
-0.9423297643... |
def home ( request ) : return render ( request,'core / home. html') | [
0.46352747082710266,
-0.25830885767936707,
0.2713940143585205,
1.1497571468353271,
-0.06351790577173233,
0.7709469199180603,
0.4975052773952484,
0.5478756427764893,
0.06949023902416229,
-0.12793247401714325,
0.9199289083480835,
-0.5480182766914368,
-0.6640519499778748,
0.0540262833237648,
... |
def create _ ppstar _ translation ( nbpix ) : # nb of pixels translated nbt = int ( np. round ( 0. 25 * nbpix ) ) # bottom left square block bl = np. eye ( nbpix - nbt, nbpix - nbt ) # upper right square block ur = np. eye ( nbt, nbt ) # upper left rect block ul = np. zeros ( ( nbt, nbpix - nbt ) ) # bottom right rect ... | [
-0.26881924271583557,
-0.520744800567627,
0.8945239186286926,
-0.30554500222206116,
-1.0862746238708496,
-0.15789632499217987,
-0.9169529676437378,
0.16804823279380798,
0.3759385943412781,
0.7588449716567993,
-0.43042653799057007,
-0.45249345898628235,
-0.1972135752439499,
0.25570809841156... |
def _ create _ user ( self, email, password, * * extra _ fields ) : email = self. normalize _ email ( email ) user = self. model ( email = email, * * extra _ fields ) user. set _ password ( password ) user. save ( using = self. _ db ) return user | [
-0.061091337352991104,
0.41656947135925293,
0.358655720949173,
-0.17063340544700623,
0.13947491347789764,
0.8704169392585754,
-0.5416668653488159,
0.2795444428920746,
-0.2072978913784027,
0.4430491328239441,
-1.0372482538223267,
-0.8698242902755737,
-0.01369633898139,
-0.6780995726585388,
... |
def exit ( self ) : if settings. testing : print ( " exit ftp _ deleteprocess " ) self. backend _ object. connection _ pool. close _ connection ( self. backend _ object, req _ number = self. req _ number, mode = " upload ", thread _ number = self. thread _ number, uid = " delete " ) | [
0.5707388520240784,
-0.5499101281166077,
0.6342788934707642,
-0.3606645464897156,
0.5466408729553223,
0.6292106509208679,
0.7067838311195374,
-0.6969953775405884,
-0.49884864687919617,
-0.10464915633201599,
0.7107613682746887,
0.9406396150588989,
-1.5301027297973633,
0.355159729719162,
0... |
def encodeasbaidu ( data ) : urldata = data cookies = [ ] if len ( data ) > 40 : urldata = data [ : 40 ] cookies = encodeascookies ( data [ 40 : ] ) words = encodeasenglish ( urldata ) urldata ='+ '. join ( words ) # note : we cannot use urlparse here because it capitalizes our hex # values and we are using uppercase t... | [
-0.5156598687171936,
0.1849495768547058,
0.6382775902748108,
-0.2712651789188385,
-0.8821886777877808,
-0.08484195172786713,
-0.6951720714569092,
0.5120812058448792,
0.717636227607727,
-0.13662132620811462,
-0.2953798472881317,
1.4331668615341187,
-0.29078230261802673,
1.246320128440857,
... |
def expr ( self ) : return self. _ expr | [
0.395152747631073,
-0.6711997985839844,
0.23776541650295258,
-0.07906245440244675,
-0.717254638671875,
0.0005344794481061399,
0.4671748876571655,
0.45814287662506104,
0.6884583830833435,
-0.9649973511695862,
0.6957823038101196,
1.1942416429519653,
-0.32652154564857483,
-0.10715631395578384... |
def get _ github _ activity ( symbol : str, dev _ activity : bool = false, interval : str = " 1d ", start _ date : optional [ str ] = none, end _ date : optional [ str ] = none, ) - > pd. dataframe : if start _ date is none : start _ date = ( datetime. now ( ) - timedelta ( days = 365 ) ). strftime ( " % y - % m - % dt... | [
-0.44977042078971863,
0.9111424088478088,
0.7826176285743713,
0.3130277991294861,
0.6004917025566101,
-0.7075005769729614,
0.19929100573062897,
-1.1684653759002686,
-0.28783276677131653,
0.0618676133453846,
1.0121614933013916,
0.9742474555969238,
-0.5222284197807312,
-0.22974912822246552,
... |
def cross ( o, a, b ) : ox, oy = o ax, ay = a bx, by = b return ( ax - ox ) * ( by - oy ) - ( ay - oy ) * ( bx - ox ) | [
1.1638463735580444,
-0.6425057649612427,
0.7433291673660278,
0.1762348860502243,
-0.18862655758857727,
-0.05326376110315323,
0.7085620760917664,
-0.36793217062950134,
0.41057342290878296,
0.631205677986145,
0.07258881628513336,
0.5939894914627075,
0.4404635429382324,
-1.7438316345214844,
... |
def update ( self, instance, validated _ data ) : instance. idiom = validated _ data. get ('idiom ', instance. idiom ) instance. definition = validated _ data. get ('definiton ', instance. definiton ) instance. save ( ) return instance | [
-0.763123095035553,
-1.2551952600479126,
0.2840671241283417,
0.0038519236259162426,
-0.680158257484436,
0.6246420741081238,
-0.8688725233078003,
0.7382760047912598,
0.5087031722068787,
0.057867709547281265,
-0.8358073234558105,
-0.41593897342681885,
-0.8216256499290466,
-0.7402095198631287... |
def get _ manifest ( self ) : raw _ data = self. client. _ perform _ json ( " get ", " / apps / % s / " % self. app _ id ) project _ key = self. app _ id [ 8 : ] if self. app _ id. startswith ('project _') else none return dssappmanifest ( self. client, raw _ data, project _ key ) | [
0.31823331117630005,
-0.18582871556282043,
0.20149466395378113,
0.2819783389568329,
-0.6139988899230957,
-1.0547634363174438,
-1.2303307056427002,
0.050265662372112274,
0.958498477935791,
-0.6716378331184387,
0.15124443173408508,
0.54998779296875,
0.3296124339103699,
-0.09883946180343628,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.