text
stringlengths
25
2.19k
embedding
listlengths
768
768
def test _ atomic _ language _ pattern _ nistxml _ sv _ iv _ atomic _ language _ pattern _ 1 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - pattern - 1. xsd ", instance = " nistdata / atomic / la...
[ 0.05946166813373566, 0.0824192613363266, 0.5009769797325134, 0.6083988547325134, -0.2583300769329071, 0.6934351921081543, -0.154791921377182, 0.33539795875549316, 0.7003167271614075, 1.0490232706069946, -0.034731991589069366, -0.3720690608024597, -0.3023591935634613, -0.38027819991111755, ...
def test _ add _ exe _ args _ list _ of _ str _ lists _ init ( ) : exe _ args = [ [ " 1 ", " 2 ", " 3 " ], [ " 4 ", " 5 ", " 6 " ] ] settings = runsettings ( " python ", exe _ args = exe _ args ) assert settings. exe _ args = = exe _ args
[ -0.347616583108902, -0.1203388124704361, 0.6305484175682068, 0.19150462746620178, 1.264039158821106, 0.05041532963514328, -0.4443928003311157, 0.3897550404071808, 0.023493947461247444, 0.44718077778816223, -1.2502834796905518, -0.45244625210762024, -0.6982136368751526, 0.7166529893875122, ...
def parent _ id ( self ) - > optional [ pulumi. input [ str ] ] : return pulumi. get ( self, " parent _ id " )
[ 1.325044870376587, 0.37929683923721313, 0.13233888149261475, 0.5428023338317871, 0.7304837107658386, 1.2798179388046265, 0.4536680281162262, -0.4141373038291931, 0.620181143283844, -0.09399108588695526, 0.5695310831069946, 1.0631577968597412, -0.7219243049621582, -0.9334667325019836, -0....
def main ( ) : # local variables delivery _ charge = false # if win10 check version supports ansi escape sequences. escape _ sequence _ check ( ) # set console window title bar. # this operating system command ( osc ) may be only valid for windows 10. text = " ansi sequences. data entry program " print ( " { } ] 2 ; { ...
[ 0.5782050490379333, 0.34751981496810913, 0.9546399712562561, 0.14290890097618103, 0.06666422635316849, 0.336335152387619, 0.9652559757232666, 0.25761884450912476, -1.0209568738937378, -0.19241882860660553, -0.3217824697494507, 0.4562065303325653, -0.34091782569885254, 0.5091879963874817, ...
def read _ seq ( file ) : # open file if path. exists ( file ) : records = list ( seqio. parse ( file,'gb') ) return records else : raise valueerror ( " % s not exist " % file )
[ 0.15510235726833344, -0.33564943075180054, 0.5231568217277527, 0.3128001391887665, 0.5391002297401428, 0.5969071984291077, -0.3073568344116211, 0.5674753189086914, -0.9541724324226379, 0.9474652409553528, -0.41406649351119995, -0.08981062471866608, -0.23026831448078156, -0.2467724829912185...
def test _ atomic _ hex _ binary _ min _ length _ nistxml _ sv _ iv _ atomic _ hex _ binary _ min _ length _ 1 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - minlength - 1. xsd ", instance = " ...
[ 0.17359289526939392, -0.06042440980672836, 0.49205800890922546, 0.6170608997344971, -0.10948117077350616, 0.6800100803375244, -0.6624187231063843, 0.027376046404242516, 0.7544194459915161, 0.2675682306289673, -0.3240605592727661, -0.636398196220398, -0.6547284126281738, 0.19271962344646454...
def test _ bazaar ( self ) : # checks if can create the class bazaar = modulesource. create ( " bazaar " ) self. assertnotequal ( bazaar, none ) self. assertequal ( bazaar. name ( ), " bazaar " ) # verifies if bazaar is installed testresult = bazaar. check _ version ( self. _ env ) self. asserttrue ( testresult ) bazaa...
[ 0.45423781871795654, -0.82505863904953, 0.8222395181655884, 0.19400712847709656, 0.9796964526176453, 0.5223793983459473, 0.5858321189880371, 0.30576470494270325, 0.4902566373348236, -0.4937571585178375, -0.6804705262184143, 0.2348140925168991, -0.8307855129241943, 0.49695315957069397, 1....
def get _ file _ lines ( self ) : lines = [ ] for head in self. header : if not head. startswith ( " # " ) : lines. append ( " # " + head ) else : lines. append ( head ) for key, value in self. items ( ) : if isinstance ( value, ( tuple, list ) ) : lines. append ( f " % block { key } " ) if key in self. units : lines. ...
[ 0.08717145770788193, -0.7778002619743347, 0.7330681681632996, -0.47751280665397644, 0.594689130783081, 0.5066325068473816, -1.4397138357162476, -0.0860946848988533, -1.548000693321228, 0.14148969948291779, 0.8550826907157898, -0.4686819612979889, -0.049538832157850266, 0.766447126865387, ...
def orth _ slit _ nanoflyscan _ cal ( scan _ id _ list = [ ], slit _ range = [ ], from _ re = [ ], orthogonality = false, interp _ range = none, bin _ low = 934, bin _ high = 954, normalize = true ) : scan _ id _ list = np. array ( scan _ id _ list ) slit _ range = np. array ( slit _ range ) numline = scan _ id _ list....
[ -0.28417688608169556, -0.3196846842765808, 0.7318052649497986, 0.04222317785024643, -0.4803093373775482, 0.013951552100479603, 0.46916463971138, 0.06304318457841873, -0.20750851929187775, -0.2983282208442688, 0.20311422646045685, 0.20637668669223785, -0.5523649454116821, 0.7351326942443848...
def all _ rots ( self ) : n = self. num _ active _ cameras ( ) ind = np. zeros ( n ) r = np. zeros ( ( n, 3, 3 ) ) ptr = 0 for i, cam in enumerate ( self. cameras ) : if cam. initialized ( ) : ind [ ptr ] = i r [ ptr, :, : ] = cam. r ptr + = 1 return ind, r
[ -0.8409108519554138, -0.37533828616142273, 0.37048301100730896, 0.18274825811386108, 0.3300226628780365, -0.05815182998776436, 1.1466784477233887, -0.40969863533973694, 1.1494827270507812, 0.37044253945350647, -0.4132159352302551, 0.3023448884487152, -1.3036527633666992, -0.337164998054504...
def test _ atomic _ any _ uri _ length _ 4 _ nistxml _ sv _ iv _ atomic _ any _ uri _ length _ 5 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - length - 5. xsd ", instance = " nistdata / atomic / any...
[ 0.019716724753379822, -0.2992796301841736, 0.3515399396419525, 0.6235759258270264, -0.3192756474018097, -0.541928231716156, 0.11209411174058914, -0.6560729146003723, -0.3239927291870117, -0.011988019570708275, -0.14813458919525146, -0.5282651782035828, -0.7740134000778198, 0.40593510866165...
def set _ player ( self, player _ num, new _ player ) : if 0 < = player _ num < = len ( self. players ) : self. players [ player _ num ] = new _ player else : raise indexerror
[ -0.8884680271148682, -0.5458623766899109, 0.4143805205821991, 0.09768655896186829, 0.9177480936050415, 0.0779247134923935, -0.06704705953598022, -0.3135836720466614, -0.2748918831348419, 0.7582845091819763, -0.15105730295181274, 0.8842148780822754, -0.8244389891624451, 0.06272010505199432,...
def hhmmss _ bar _ time ( start _ hour, start _ min, start _ sec, end _ hour, end _ min, end _ sec, bar _ sec ) : h = start _ hour m = start _ min s = start _ sec t1 = end _ hour * 10000 + end _ min * 100 + end _ sec bar = [ ] while true : t0 = h * 10000 + m * 100 + s if t0 > t1 : break bar. append ( t0 ) s + = bar _ s...
[ -0.1604696810245514, -0.1460055559873581, 0.7854136228561401, 0.12600009143352509, 0.4159683287143707, 0.331214964389801, -0.30554699897766113, -0.511542797088623, -1.274560809135437, 0.5360953211784363, -0.7144820690155029, -0.01562722772359848, -1.100748062133789, 0.22483216226100922, ...
def skeleton _ graph ( image _ skeleton ) : # get brach data branch _ data = summarize ( skeleton ( image _ skeleton ) ) # print ( branch _ data ) # select end branch sub _ branch = branch _ data. loc [ branch _ data ['branch - type'] = = 1 ] sub _ branch _ branch _ distance = sub _ branch [ " branch - distance " ]. to...
[ -0.18250124156475067, 0.5748340487480164, 0.6582387089729309, 0.10179322212934494, -0.23077020049095154, 0.35562700033187866, 1.2302218675613403, -0.622799277305603, -0.13177426159381866, 0.7898063063621521, -0.4234338700771332, 0.9607672095298767, -0.2164870649576187, -0.23468999564647675...
def test _ is _ feasible ( ) : dom = pc. box2poly ( [ [ 0. 0, 4. 0 ], [ 0. 0, 3. 0 ] ] ) sys = drifting _ dynamics ( dom ) p1 = pc. box2poly ( [ [ 0. 0, 1. 0 ], [ 0. 0, 1. 0 ] ] ) p2 = pc. box2poly ( [ [ 2. 0, 3. 0 ], [ 0. 0, 1. 0 ] ] ) n = 10 r = feasible. is _ feasible ( p1, p2, sys, n, use _ all _ horizon = false ) ...
[ -0.0456564724445343, 0.11705712974071503, 0.7375562191009521, 1.1176140308380127, 0.5810682773590088, 0.33444690704345703, -0.551998496055603, -0.14912721514701843, -0.23673948645591736, -0.5912932753562927, -0.8940988779067993, -0.14068332314491272, 0.14551189541816711, 0.2963279485702514...
def apply ( self ) : self. investigate ( ) self. prefered = self. determine ( ) if self. prefered = = self. current : print _ ( " { 0 }'s rx ring buffer already has fine size. ". format ( self. dev ) ) return assert self. prefered, " can't eval prefered rx ring buffer size. " command ='ethtool - g { 0 } rx { 1 } '. for...
[ -0.018637284636497498, 0.8223139643669128, 0.5398183465003967, -0.27571550011634827, 0.66782146692276, 0.2800988256931305, 0.3339898884296417, -0.9853672385215759, 0.17494244873523712, -1.1375433206558228, -0.021952660754323006, 0.5922227501869202, -0.6367769837379456, 0.53972327709198, ...
def test _ remove _ reference _ col ( self ) : expect = ['orientation ','orient ','doa ','course ','crs'] df = pd. dataframe ( columns = expect + ['reference'] ) actual = list ( remove _ reference _ column ( df ). columns ) self. assertequal ( expect, actual )
[ -0.7344951033592224, 0.10062592476606369, 0.45419058203697205, 0.1416034996509552, 1.0353823900222778, 0.2229333072900772, 0.8601682782173157, -0.35034534335136414, 0.09729056805372238, 0.5959092378616333, -0.7403871417045593, 0.06362555176019669, -0.1130334809422493, -0.7420352697372437, ...
def test _ atomic _ boolean _ pattern _ nistxml _ sv _ iv _ atomic _ boolean _ pattern _ 1 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / boolean / schema + instance / nistschema - sv - iv - atomic - boolean - pattern - 1. xsd ", instance = " nistdata / atomic / boolea...
[ -0.22435155510902405, -0.3994007408618927, 0.5986406803131104, 1.0537149906158447, 0.09972202032804489, 0.42442572116851807, 0.404049813747406, 0.31840381026268005, 0.1330665647983551, 1.1876254081726074, 0.03952280431985855, 0.08161471784114838, -0.18033774197101593, -0.3412133455276489, ...
def test _ get _ cve _ filter _ by _ rejected _ state ( ) : res = requests. get ( f'{ env. awg _ base _ url } { cve _ url } / ', headers = utils. base _ headers, params = {'state':'rejected'} ) assert res. status _ code = = 200 recordslength = len ( json. loads ( res. content. decode ( ) ) ['cverecords'] ) assert recor...
[ -0.4245578348636627, 0.732158899307251, 0.4476340413093567, -0.5214745402336121, 0.4350690245628357, 0.42027729749679565, -0.629193902015686, 0.6239029765129089, 0.16982948780059814, -0.11007662117481232, -0.4794158935546875, 0.7662451863288879, 0.07045992463827133, -0.27369457483291626, ...
def expm _ eigh ( h ) : eigvals, p = anp. linalg. eigh ( h ) p _ dagger = anp. conjugate ( anp. swapaxes ( p, - 1, - 2 ) ) d = anp. exp ( - 1j * eigvals ) return anp. matmul ( p * d, p _ dagger )
[ -0.3138125538825989, 0.240643709897995, 0.5151590704917908, 0.25375896692276, -0.776594340801239, 0.27554595470428467, 0.043148577213287354, 1.0994964838027954, 0.34549519419670105, 0.3356409966945648, 0.0666687935590744, -0.1608324944972992, -0.32389119267463684, 0.600243866443634, 0.67...
def gendensitydata ( ev ) : # for dt = [ 20 - 100 ] c p _ range _ 1 = np. full ( int ( starter _ res * ( 80 / 20 ) ), ( 7900. 0 + 8000. 0 + 8027. 0 ) / 3. 0 ) # # calculate density data for dt = [ 100 - 1000 ] c using ev spline and prev range value as starter point p _ range _ 2 = [ ] for dt in np. linspace ( 0. 0, 900...
[ -0.04416416212916374, -0.501653254032135, 0.7487611770629883, -0.2893698215484619, 0.04774834215641022, 0.8652737140655518, 0.3308902382850647, 0.5423673391342163, -0.2882808446884155, 0.30022311210632324, -0.4888133108615875, -0.417989581823349, 1.0903409719467163, 0.3824232220649719, 0...
def test _ atomic _ base64 _ binary _ enumeration _ 3 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ enumeration _ 4 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - enumeration - 4. xsd ...
[ -0.5346676707267761, -0.5778703093528748, 0.5986722111701965, 0.9957553148269653, 0.1972585916519165, -0.06442317366600037, 0.37616994976997375, -0.4517102837562561, -0.07759688049554825, 0.3290276527404785, -0.46684420108795166, -0.387185275554657, -0.6647571921348572, -0.1808903068304062...
def _ _ init _ _ ( self, data ) : self. value = data self. prev = none # a reference to this node's parent node. self. left = none # self. left. value < self. value self. right = none # self. value < self. right. value
[ 0.08472472429275513, 0.22469793260097504, 0.4970076382160187, 0.1790105700492859, -0.8162049651145935, 0.14720892906188965, 0.3717990517616272, -0.5285618901252747, -0.11633842438459396, -0.8085959553718567, -0.923599362373352, 0.2880689203739166, -0.324659138917923, 1.3373932838439941, ...
def distinct ( self ) : copy = type ( self ) ( ) copy. _ _ columns = self. _ _ columns copy. _ _ data _ area = self. _ _ data _ area. copy ( ) copy. _ _ row _ index = self. _ _ row _ index valid _ indexs = set ( ) distinct _ rows = set ( ) for row in copy. _ _ data _ area : array = pickle. dumps ( tuple ( copy. _ _ dat...
[ -0.03093142621219158, -0.15862540900707245, 0.6235366463661194, -0.3937990367412567, -0.2809365391731262, 0.540992259979248, 0.6662969589233398, -0.49305447936058044, 0.6184418201446533, -0.3211941719055176, -0.35904207825660706, 0.6610105633735657, -0.018570249900221825, -0.37215548753738...
def ontextattributeschanged ( self, event ) : verbosity = _ settingsmanager. getsetting ('speechverbositylevel') if verbosity = = settings. verbosity _ level _ verbose \ and self. utilities. issameobject ( event. source, orca _ state. locusoffocus ) : try : text = event. source. querytext ( ) except : return # if the m...
[ 0.6035476922988892, -0.6998258233070374, 0.6277055144309998, -0.2633802592754364, -0.7062249779701233, -0.27906492352485657, 0.2355092316865921, -0.010252708569169044, 0.5791020393371582, 1.321965217590332, 0.17658200860023499, 0.7692095637321472, -0.23413003981113434, 0.5689065456390381, ...
def setwriter ( self, writer ) : self. writer = writer
[ -0.9114604592323303, -0.35499969124794006, -0.08501672744750977, -0.30392366647720337, 0.6056627035140991, -0.4635731279850006, 0.9847670793533325, 0.8486267924308777, -0.2267526537179947, -0.5303556323051453, -0.1908845603466034, -0.3460923135280609, 0.10688735544681549, 0.518371224403381...
def _ expfromid ( self, dataid ) : dataid = hashable _ dict ( dataid ) if dataid in self. _ expcache : exp = self. _ expcache [ dataid ] else : exp = self. butler. get ( self. datasetname, dataid ) self. _ expcache [ dataid ] = exp return exp
[ 0.2964494228363037, -0.04692982882261276, 0.16834276914596558, -0.8718238472938538, -1.156480312347412, -0.5121368169784546, -0.38280192017555237, -0.44784173369407654, 1.502726674079895, 0.10978678613901138, -0.08606265485286713, 0.6691213250160217, -0.16991104185581207, -0.29453817009925...
def get _ user _ scores ( self, request ) : user = user. query ( user. name = = request. user _ name ). get ( ) if not user : raise endpoints. notfoundexception ('a user with that name does not exist!') scores = score. query ( score. user = = user. key ) return scoreforms ( items = [ score. to _ form ( ) for score in s...
[ -0.5875604748725891, 0.319661945104599, 0.5506973266601562, 0.7710912227630615, 0.20907749235630035, -0.32633984088897705, -0.17786100506782532, -1.2281346321105957, 0.09054632484912872, 0.3836441934108734, -0.706253707408905, -0.16497467458248138, -0.07216159999370575, -0.1991287767887115...
def get _ elmo _ vec ( sentence, elmo ) : emb = elmo. embed _ sentence ( sentence ) # n _ layer, _, _ = emb. shape # emb = emb. sum ( 0 ) / float ( n _ layer ) return emb # ( 3, len, dim )
[ 0.9837945103645325, 0.44781169295310974, 0.6700167059898376, 0.4725998044013977, 0.11249638348817825, 0.4043874144554138, 0.46532583236694336, 0.6130418181419373, 0.5255247950553894, 0.868768036365509, -0.7819178104400635, -0.49456319212913513, 0.5178636312484741, 0.015580039471387863, -...
def compute _ attention _ weights ( query, keys, keys _ mask, attention _ style, attention _ fn = none ) : att _ weights = [ ] num _ senders = keys. size ( 1 ) for s in range ( num _ senders ) : key = keys [ :, s ] if attention _ style in {'v1 ','concat'} : att _ fn _ input = torch. cat ( [ query, key ], dim = - 1 ) at...
[ -0.2752586901187897, -0.16457463800907135, 0.6558797955513, 0.5365104079246521, -0.8319507837295532, -0.675281822681427, -0.1151437908411026, -0.09985452145338058, -0.3649185001850128, 1.0640310049057007, 0.4050520062446594, 0.6828036904335022, 0.38145825266838074, 0.4532550871372223, -0...
def _ _ init _ _ ( self, imga : bool = false, imgb : bool = true, show _ img _ interval : int = 10 ) : store _ attr ( ) assert imga or imgb, " at least displaying one type of prediction should be enabled " assert show _ img _ interval, " non - zero interval for showing images "
[ 0.166940838098526, 0.34945082664489746, 0.5106486082077026, 0.8381126523017883, -0.6394766569137573, 0.41824549436569214, 1.1479699611663818, 0.7224772572517395, -0.23531441390514374, 0.20517580211162567, 0.48416024446487427, 0.19436205923557281, 0.0014890894526615739, 1.2858917713165283, ...
def test _ list _ integer _ length _ 1 _ nistxml _ sv _ iv _ list _ integer _ length _ 2 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - length - 2. xsd ", instance = " nistdata / list / integer / schem...
[ -0.4986766576766968, -0.48054856061935425, 0.3553715646266937, 0.6383086442947388, -0.19047635793685913, -0.31188997626304626, -0.2677362561225891, 0.1471649706363678, 0.38722121715545654, 0.45925453305244446, -1.0615919828414917, -0.26315563917160034, -0.309942364692688, 1.163721442222595...
def create ( cls, graph _ schema : graphschema, model _ storage : modelstorage, execution _ context : executioncontext, hooks : optional [ list [ graphnodehook ] ] = none, ) - > graphrunner :...
[ 0.1309802383184433, 0.5506858229637146, 0.4228442907333374, 1.2998374700546265, 1.0140997171401978, 0.2179657369852066, 0.12894316017627716, -0.3776763081550598, -0.596917986869812, -0.02390982396900654, -0.7551684379577637, 0.8745951056480408, -0.17656700313091278, -1.0208157300949097, ...
def test _ atomic _ language _ enumeration _ 4 _ nistxml _ sv _ iv _ atomic _ language _ enumeration _ 5 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - enumeration - 5. xsd ", instance = " nistda...
[ -0.3476710617542267, -0.43313151597976685, 0.41973453760147095, 0.2897074520587921, -0.5345301032066345, 0.15979531407356262, 0.20112204551696777, -0.43536490201950073, 0.23368483781814575, 0.990657389163971, -0.5929058790206909, -0.41892099380493164, -0.3899666368961334, 0.007980427704751...
def instances ( self ) : bip = bipenum. get _ id ('symbol _ name _ param') param _ filter = rpw. collector. parameterfilter ( bip, equals = self. name ) return rpw. collector ( of _ class = db. wall, parameter _ filter = param _ filter, is _ not _ type = true ). elements
[ -0.5024884939193726, 0.6568074822425842, 0.5219666361808777, -0.08237601816654205, 0.6324418187141418, 0.5351908802986145, 0.7954810261726379, -0.876139223575592, -0.1518801897764206, 0.732103168964386, -0.45842984318733215, 0.49598434567451477, -1.1843341588974, 1.3560035228729248, -1.4...
def split ( text : unicode, maxlinelength : int, retainspacing : bool ) - > list [ unicode ] :...
[ 0.3109295070171356, 0.44592538475990295, 0.4275681972503662, 0.7446697950363159, -0.4665311574935913, -0.16174525022506714, -1.0372977256774902, 1.4802346229553223, 0.6406022310256958, -0.1657615303993225, -1.0651376247406006, -0.17506587505340576, -0.3156973421573639, -0.1388292908668518,...
def connect ( ) : arduino = serial. serial ('/ dev / serial / by - id / usb - gravitech _ arduino _ nano _ 13bp1066 - if00 - port0 ', 115200 ) info _ start = {'purpose':'realtime - sender ','groupid': " cwa2 ",'userid': " r0462183 " } metadata = {'other': " trip ended " } # string " trip ended " stored in metadata unde...
[ -0.555637001991272, -0.5194412469863892, 0.552783191204071, 0.17460288107395172, 0.22483450174331665, -0.5461430549621582, 0.08108769357204437, -0.38571009039878845, -1.349269986152649, 0.47457507252693176, -0.905837893486023, 0.4436459541320801, 0.1343262642621994, 0.4560827612876892, 0...
def project ( self ) - > optional [ pulumi. input [ str ] ] : return pulumi. get ( self, " project " )
[ 0.5716012716293335, 0.708289623260498, 0.39897266030311584, 0.471920907497406, 1.221516728401184, 1.254810094833374, 0.14272750914096832, 0.25424838066101074, 0.8176037073135376, 0.0579870343208313, 0.6928960084915161, 0.2956552505493164, -0.23821088671684265, -1.395453691482544, -0.9755...
def bulk _ create ( self, data ) : # todo testing return self. client. post ( " / tickets / bulk ", data )
[ -0.40500393509864807, 0.4835156500339508, 0.41026726365089417, 0.3129390776157379, 1.417301893234253, 0.15500353276729584, -1.1638190746307373, -0.410826176404953, 0.050032664090394974, -0.64762943983078, -1.2329264879226685, 0.18022866547107697, -1.4534116983413696, 0.30258846282958984, ...
def has _ permission _ static ( request, is _ admin = false ) : if request. user. is _ superuser or request. user. team = = epicmember. team. manage : return true if request. method = = " post " : return false return true
[ -0.11730458587408066, 0.9092525839805603, 0.5700823068618774, 1.7880706787109375, 0.05962653085589409, 0.7770728468894958, 0.026897147297859192, -0.4957267642021179, -0.725571870803833, 0.07425957173109055, 0.25026872754096985, 0.40559104084968567, 0.04462543874979019, 0.757327139377594, ...
def getrandomactivitiesbyathlete ( self, athlete, samplesize = 1 ) : athletepath = self. path +'/'+ athlete allactivities = os. listdir ( athletepath ) allactivities. remove ( ". ds _ store " ) # allactivities = self. getsingleathleteactivities ( athlete ) while samplesize > len ( allactivities ) : print ( " sample siz...
[ -0.771700918674469, 0.5933006405830383, 0.6739711165428162, 0.774610161781311, -0.5097782015800476, -0.22759118676185608, 1.715719223022461, -0.53187096118927, 1.5752909183502197, -0.6278759837150574, 0.16534239053726196, 0.5616754293441772, -0.254745751619339, -1.1740524768829346, 0.091...
def setup ( self ) : raise notimplementederror ( " class % s doesn't implement amethod ( ) " % self. _ _ class _ _. _ _ name _ _ )
[ -0.51375412940979, -0.08213133364915848, 0.6675880551338196, 0.18422651290893555, -0.25111111998558044, 0.3335617780685425, 1.2345079183578491, 0.29854556918144226, 0.8864762783050537, 0.3608291745185852, -0.32195961475372314, -0.0575067363679409, 0.31630897521972656, 1.0891093015670776, ...
def process _ eight _ products _ layout _ page ( ocr, page _ image ) : yield from marker _ parser ( [ ( page _ image, ocr ) ], find _ markers = find _ markers, text _ region = ( - 0. 02, - 0. 06, 0. 8, 0. 07 ), image _ region = ( - 0. 13, - 0. 055, 0. 12, 0. 085 ), extract _ product _ from _ text = extract _ product _ ...
[ 0.006825827993452549, -0.8279544711112976, 0.4500524699687958, -0.2178305685520172, 0.7220611572265625, -0.14990626275539398, 0.9742926359176636, -0.7475487589836121, 0.6301058530807495, 0.3098684251308441, 0.6908425092697144, -0.4682791531085968, 0.7107413411140442, -0.31470170617103577, ...
def _ execute _ policy ( self, repository ) : partition = repository. partitions [ self. policy. partition _ name ] # sites that are e. g. getting full and need dismiss calls triggered _ sites = set ( ) # site - > partition quota quotas = { } # we will process this list iteratively. replicas with protection and deletio...
[ 0.41414323449134827, 0.18392199277877808, 0.5342956781387329, -0.7817651629447937, -0.34092408418655396, -0.23856601119041443, 0.7196099162101746, 0.27248165011405945, 0.5597813129425049, 0.4438173770904541, 0.07580190896987915, 0.8302433490753174, 0.3959345519542694, 0.15864315629005432, ...
def for _ i ( ) : for row in range ( 6 ) : for col in range ( 7 ) : if row = = 0 or row = = 5 or col = = 3 : print ( " * ", end = " " ) else : print ( " ", end = " " ) print ( )
[ 0.3453855514526367, 0.5663641095161438, 0.5692095160484314, 0.669776201248169, -0.1900719255208969, 0.3655807375907898, 0.15025053918361664, -0.12365663796663284, -0.6914408802986145, 0.3603145182132721, 0.47308865189552307, 0.044645294547080994, -0.1111912801861763, 0.12642312049865723, ...
def contact ( ) : return render _ template ('contact. html')
[ 0.7774444818496704, -0.2958434820175171, 0.23229685425758362, 0.31722086668014526, -0.49830007553100586, 0.15530413389205933, 0.2898207902908325, 0.2851293385028839, -0.5748132467269897, 0.5278506278991699, 0.7318928241729736, -1.1371538639068604, -0.13050329685211182, -0.03673622757196426...
def sums _ int _ list ( any _ list ) : summ = 0 for n in any _ list : summ + = n return summ
[ -0.675713062286377, 0.2669406831264496, 0.28873375058174133, 0.8263348937034607, 0.432494193315506, 0.18309752643108368, -0.35359856486320496, 0.5675932168960571, 0.6265639066696167, 0.015050111338496208, -1.7835203409194946, -0.7077838778495789, -0.9008080363273621, 1.3607755899429321, ...
def custom _ eval ( model, env, n _ eval _ episodes = 10, deterministic = true, render = false, callback = none, reward _ threshold = none, return _ episode _ rewards = false, player _ type = " pelican " ) : if player _ type = = " pelican " : wincondition = " pelicanwin " if player _ type = = " panther " : wincondition...
[ -0.25461140275001526, 0.1948489397764206, 0.8514917492866516, -0.3040909767150879, -0.44924047589302063, -0.3747449815273285, -0.3342347741127014, 0.1439046561717987, -0.029719222337007523, 1.1067503690719604, -0.427846223115921, 0.5537287592887878, 0.24119386076927185, 0.32407426834106445...
def broadcast _ message ( msg, login ='' ) : prefix ='' time _ stamp = time. ctime ( time. time ( ) ) if len ( login )! = 0 : prefix = login +':'requestsender. log _ message ( cursor, time _ stamp, login,'all users ', msg ) connection. commit ( ) for sock in clients : sock. send ( bytes ( prefix + msg, " utf - 8 " ) )
[ -0.6736747026443481, 0.31047603487968445, 0.810222327709198, 0.962689220905304, 0.2246924638748169, 0.0635855495929718, 0.3470117449760437, 0.25739651918411255, 0.44133853912353516, -0.027593007311224937, 0.46455618739128113, 0.9908211827278137, -0.796539306640625, 0.8926982879638672, -0...
def extendexon ( bloc, cdsseq, geneseq ) : foundbloc = [ ] sequence1 = cdsseq [ bloc [ 0 ] : bloc [ 1 ] ] sequence2 = geneseq [ bloc [ 2 ] : bloc [ 3 ] ] if len ( sequence2 ) > = len ( sequence1 ) : codesequence1 = codesegment ( sequence1 ) k = 0 for j in range ( bloc [ 2 ], bloc [ 3 ] - len ( sequence1 ) + 1, 1 ) : if...
[ -0.2448417842388153, -0.26882094144821167, 1.0728296041488647, 0.8487657308578491, -0.37243789434432983, -0.2950940430164337, -0.2884945273399353, 0.7434236407279968, 0.11958353221416473, 0.8971177339553833, -1.3380732536315918, 0.030025603249669075, -0.9154746532440186, 0.3146229982376098...
def remotespeedindexrecorder ( device, connection, local _ output _ path ) : # paint the current html document with the orange that video is detecting with # the view - port position and size. color = video. highlight _ orange _ frame connection. executejavascript ( " " " ( function ( ) { var screen = document. createe...
[ -0.12557829916477203, 0.47338417172431946, 0.8067841529846191, -0.20805723965168, -0.6505711674690247, -0.7214389443397522, 0.6454766988754272, -0.5771399140357971, 0.2056504637002945, -0.053295720368623734, -0.071306012570858, 0.7103875875473022, -0.448144793510437, 1.1185609102249146, ...
def _ reconfigureport ( self ) : if not self. hcomport : raise serialexception ('can only operate on a valid port handle') self. _ first _ payload ( ) data = self. _ first _ payload ( ) self. _ second _ payload ( data ) self. _ third _ payload ( ) self. _ first _ payload ( ) data = self. _ first _ payload ( ) self. _ s...
[ 0.3864940404891968, 0.25743162631988525, 0.5964155197143555, -0.15000900626182556, 0.8384345173835754, -0.7931650876998901, 0.5761387944221497, -0.36130520701408386, -0.9247027635574341, -0.8429254293441772, -0.407349556684494, -0.3648587465286255, -0.8373540639877319, 0.2616124153137207, ...
def _ duplicate _ item ( self, parent _ usage _ key, duplicate _ source _ usage _ key, user, display _ name = none, is _ child = false ) : store = modulestore ( ) course _ key = parent _ usage _ key. course _ key with store. bulk _ operations ( course _ key if course _ key else duplicate _ source _ usage _ key. course ...
[ -0.8918609023094177, 0.0277108084410429, 0.9335051774978638, 0.07015278190374374, -0.09547252207994461, -0.11305288970470428, 0.5263633728027344, -0.38293662667274475, -0.4804692268371582, 1.455664038658142, -1.1123188734054565, 0.8032066822052002, 0.924935519695282, -0.16773918271064758, ...
def validate _ stop _ tag ( stop _ tag ) : stop _ tag = str ( stop _ tag ) try : stop = stop. objects. get ( tag = stop _ tag ) except stop. doesnotexist : raise validationerror ( message ='stop with tag % ( stop _ tag ) s does not exist ', params = {'stop _ tag': stop _ tag } ) else : return stop _ tag
[ -0.19176562130451202, -0.728350818157196, 0.1703069508075714, 0.21166880428791046, -0.41089892387390137, 0.5075216889381409, -0.20913970470428467, -0.492554247379303, -0.9652416110038757, 1.1094754934310913, 0.6358652114868164, -0.6297619938850403, 0.5990050435066223, 0.12253034859895706, ...
def from _ triangles ( cls, triangles : tp. list [ tp. tuple [ int, int, int ],... ], cull _ back _ faces = true ) : return cls ( flags = 0, unk _ x06 = 0, triangle _ strip = false, cull _ back _ faces = cull _ back _ faces, vertex _ indices = [ i for tri in triangles for i in tri ], )
[ 0.965936541557312, 0.587713360786438, 0.1948363333940506, 0.04653008282184601, 0.06614605337381363, 0.4668634831905365, 1.403647541999817, -0.5348870158195496, 0.7792338132858276, 0.3721137046813965, -0.3432692587375641, -0.20024888217449188, 0.02163643203675747, -0.7822352051734924, -1....
def factory ( element ) : class _ map = {'familyinstance': instance,'familysymbol': symbol,'family': family,'category': category,'wall': wallinstance,'walltype': wallsymbol,'wallkind': wallfamily, } element _ class = class _ map [ element. _ _ class _ _. _ _ name _ _ ] return element _ class ( element )
[ -0.21358489990234375, 0.08311349153518677, 0.20251503586769104, 0.09073343873023987, -0.12975385785102844, 0.5146241188049316, 0.09335403889417648, -0.7780818939208984, 0.48907753825187683, -0.9033043384552002, -0.3831671476364136, 0.2697732150554657, 0.5396475791931152, 0.7834746241569519...
def _ clear _ bots _ pending _ deletion ( machine _ type _ key, hostnames ) : machine _ type = machine _ type _ key. get ( ) if not machine _ type : logging. error ('machinetype no longer exists : % s ', machine _ type _ key. id ( ) ) return num _ pending _ deletion = len ( machine _ type. pending _ deletion ) machine ...
[ -0.6199565529823303, 0.5158219933509827, 0.441093385219574, -0.3335358798503876, 0.25533148646354675, 0.542399525642395, -0.44078531861305237, 0.17329947650432587, -0.8292316198348999, 0.3202221989631653, -0.22193290293216705, 0.6938572525978088, -0.3654349446296692, 0.6432499289512634, ...
def cast ( * args ) : return _ itksubtractconstantfromimagefilterpython. itksubtractconstantfromimagefilteriul2diul2 _ superclass _ cast ( * args )
[ 0.4568319320678711, -0.564024031162262, 0.4273160398006439, -0.15248680114746094, -0.8783077597618103, 1.0224740505218506, 0.18878258764743805, 0.5414716005325317, 0.31429407000541687, -0.6547645926475525, -0.4877665936946869, 0.9083667993545532, 0.5786643028259277, -0.16633760929107666, ...
def increment _ count ( count _ dict, key ) : if key in count _ dict : count _ dict [ key ] + = 1 else : count _ dict [ key ] = 1
[ -0.002010906348004937, -0.04486804082989693, 0.4418869912624359, 0.3216343820095062, -0.42378613352775574, 0.5850802063941956, 0.013132620602846146, 0.6635558605194092, -0.2906147241592407, 0.6276208758354187, 0.16021890938282013, 0.1284191757440567, 0.10621609538793564, 0.5763397812843323...
def _ _ init _ _ ( self, siret = none, management _ centre _ member = none, rcs _ number = none, share _ capital = none, business _ activity _ type _ id = none, legal _ form _ type _ id = none, auxiliary _ accounts _ visible = none, business _ type _ id = none, country _ of _ registration _ id = none, default _ ledger ...
[ 0.9530960321426392, -0.27087903022766113, 0.5678251385688782, 0.09150974452495575, 0.2972232699394226, -0.5141211152076721, 0.5453757047653198, -0.22422824800014496, 1.0467501878738403, -0.10566781461238861, -0.6552380919456482, 1.1724352836608887, -0.1834128051996231, 0.12604287266731262,...
def exp _ mask ( val, mask, name = none ) : if name is none : name = " exp _ mask " return tf. add ( val, ( 1 - tf. cast ( mask,'float') ) * very _ negative _ number, name = name )
[ -0.2285504788160324, 0.25641629099845886, 0.4610136151313782, 1.0227233171463013, -0.28352463245391846, 0.15732112526893616, -0.24510324001312256, 0.15126045048236847, 0.32421454787254333, 0.31796184182167053, 0.034776125103235245, 0.05383443087339401, 0.2281094193458557, -0.31713554263114...
def test _ list _ insert _ with _ nonexistent _ bin ( self ) : key = ('test ','demo ', 1 ) charset ='abcdefghijklmnopqrstuvwxyz1234567890'minlength = 5 maxlength = 10 length = random. randint ( minlength, maxlength ) bin =''. join ( map ( lambda unused : random. choice ( charset ), range ( length ) ) ) + ". com " statu...
[ -0.7966704964637756, 0.18019279837608337, 0.5400208234786987, -0.46955710649490356, 0.31874963641166687, 0.71327143907547, -0.45501449704170227, 0.3929291367530823, 0.18034851551055908, 0.4337548613548279, -1.8977513313293457, 0.07444994151592255, -1.5666930675506592, 0.6271862983703613, ...
def display ( self ) : if self. points is none : data = [ " no data for selected. " ] nrows = 0 ncols = 0 else : nrows = self. points. npoints colnames = ( list ( self. points. axes. keys ( ) ) + list ( self. points. fields. keys ( ) ) ) ncols = len ( colnames ) self. setrowcount ( nrows ) self. setcolumncount ( ncols ...
[ 0.17986291646957397, 0.15036775171756744, 0.38465389609336853, -0.5817074179649353, -0.15418365597724915, 0.015427159145474434, 0.46324968338012695, -0.12096294015645981, -0.6449378132820129, 0.30837002396583557, 0.7598142623901367, -0.18759594857692719, 1.0226154327392578, 0.4603452384471...
def delete ( self, subpath : str, rev : int ) - > dict : return self. _ http. delete ( [ self. segment, subpath ], rev = rev )
[ -0.2878628671169281, -0.05536149442195892, 0.6603015661239624, -0.09928689897060394, 0.0875387191772461, 0.16477762162685394, 0.2968280613422394, 0.4884723424911499, -0.7010719180107117, -0.03639385476708412, -0.49573513865470886, 0.19111216068267822, -0.6421154141426086, -1.50778019428253...
def read _ vocab ( ) : global xml _ root while 1 : try : eng _ def = read _ eng ( ) jp _ def = furi _ cre. get _ list ( ) group = read _ group ( ) if group = ='' : adj = read _ adj ( ) else : adj ='' xml _ def = def _ to _ xml ( eng _ def, jp _ def, group, adj ) xml _ hand. add _ element ( xml _ def ) print'definition ...
[ 0.3713306784629822, -0.3829365670681, 0.5528465509414673, 1.0663436651229858, 0.41020146012306213, -0.23113206028938293, 0.7584090828895569, 0.26472657918930054, -0.806297242641449, -0.11135710030794144, 0.007895753718912601, 0.025868434458971024, -0.19669684767723083, 0.3880893588066101, ...
def get _ files ( dirname, size _ in _ kb ) : res = [ ] for root, _, files in os. walk ( dirname ) : for f in files : if os. stat ( os. path. join ( root, f ) ). st _ size > = one _ kb * size _ in _ kb : res. append ( f ) return res
[ 0.06730902194976807, 0.9074007272720337, 0.6746137738227844, 1.2524915933609009, -0.5782437324523926, -1.0709728002548218, 0.4722078740596771, 0.6826680898666382, -0.4451323449611664, 0.2288954257965088, -0.322393536567688, -0.5466688871383667, -0.9022515416145325, 0.30792751908302307, -...
def paste _ zd ( zdkey, k ) : zd = zdgrid. zdist [ zdkey ] mbin0 = zd. m0 + mck mbin1 = zd. m1 + mck # calculate the corresponding limits of each bin limit ( m, logr ) # need to take care of " edge effects " ix0 = ( mbin0 - modellimits [ 0, 0 ] ) / pixdx [ 0 ] ; ixc0 = int ( np. ceil ( ix0 ) ) if ixc0 > = npix [ 0 ] : ...
[ -0.37672629952430725, 0.040131982415914536, 0.927918553352356, -0.08394080400466919, -1.1080819368362427, 0.43539661169052124, 0.964413046836853, -0.04565254598855972, 0.2140195518732071, 0.8583911061286926, 0.0558086559176445, -0.26194629073143005, -0.6112282872200012, 0.8287966251373291,...
def fun _ doc ( ) : return none
[ 0.38913244009017944, 0.49060454964637756, 0.3045530617237091, 1.230355143547058, -0.024939021095633507, -0.6519914865493774, 0.8587850332260132, -0.325916588306427, -0.17572365701198578, -1.1489876508712769, 0.019593097269535065, -0.20939786732196808, -0.17808900773525238, -0.6127832531929...
def terminate _ provisioned _ product _ with _ options ( self, request : servicecatalog _ 20210901 _ models. terminateprovisionedproductrequest, runtime : util _ models. runtimeoptions, ) - > servicecatalog _ 20210901 _ models. terminateprovisionedproductresponse : utilclient. validate _ model ( request ) body = { } if...
[ -1.4290549755096436, -0.37786954641342163, 0.5275686383247375, 0.29060786962509155, 0.08101317286491394, 0.5114855766296387, -0.41110074520111084, -1.0523350238800049, 0.698563277721405, 0.22706325352191925, -0.2004862278699875, 0.18501457571983337, -0.7270573973655701, 0.2862057387828827,...
def _ update _ single _ file ( operation, file _ path, line _ by _ line = false ) : if line _ by _ line : return _ update _ lines _ in _ file ( operation, file _ path ) else : return _ update _ entire _ file ( operation, file _ path )
[ 0.03291243687272072, -0.37724292278289795, 0.4001810848712921, 0.7282605171203613, -0.5063478350639343, -0.5515071749687195, 0.6114410758018494, 1.211337685585022, -0.8041694760322571, 0.5119225978851318, 0.9853978753089905, -0.9763012528419495, -0.2776948809623718, -0.2469494789838791, ...
def do _ watchdog _ server _ poweron ( self, sid ) : if sid is not none and len ( sid ) > 0 : timeout = 180 # [ seconds ] timeout _ start = time. time ( ) cursid = self. do _ get _ server _ by _ id ( sid ) while time. time ( ) < timeout _ start + timeout : s = cursid. split ( " \ t \ t " ) # print " > > > > > > > > > "...
[ -0.07352107018232346, -1.0113911628723145, 0.898635745048523, -0.08373192697763443, 0.2838105261325836, -0.032622262835502625, -0.7084096074104309, 0.7378475666046143, 0.0511881485581398, 0.8858543634414673, -0.23479990661144257, 0.646559476852417, -0.8225549459457397, 0.6929032802581787, ...
def cn _ createsheared ( self, * args, * * kwargs ) : depr ('createsheared ', 1. 1,'obj. shear ( shear )') return self. shear ( * args, * * kwargs )
[ 0.6876347064971924, -0.558478057384491, 0.34378373622894287, -0.5058556199073792, -0.12624326348304749, 0.4121495485305786, 0.40377846360206604, -1.595642328262329, 0.2793141007423401, -0.9469889998435974, -0.19650456309318542, 0.9983521103858948, -1.0783363580703735, -0.06418858468532562,...
def plot ( self, pattern = none ) : dashes _ per _ fret = self. get _ num _ dashes _ per _ fret ( ) def get _ fret _ pattern ( note ) : marker = " " if self. show _ note _ name : marker = note. get _ note _ name ( ) elif self. show _ intervals : marker = c. intvl _ dict [ note. get _ interval ( ) ] else : marker = " r ...
[ 0.1338755190372467, 0.755405068397522, 0.8921847343444824, -0.6390082836151123, -0.2663900852203369, 0.1360500603914261, 0.7320165038108826, -0.027716591954231262, 0.15470123291015625, -0.721528172492981, 0.5292115807533264, 1.0145153999328613, 0.19188909232616425, -0.25246697664260864, ...
def getdtmltokenforinfobytype ( self, task _ definition _ type ) : # overwrite in classes for have dtml for info on page'change _ state'return'office _ registration '
[ -0.7276669144630432, -0.11424931138753891, 0.4936387836933136, 0.26379287242889404, 0.003764467779546976, -0.13605931401252747, 0.5021384954452515, 0.6010977625846863, -0.36715686321258545, 0.5249882936477661, -0.21266910433769226, -0.3429834544658661, 1.5705522298812866, 0.691036760807037...
def validation _ step ( self, val _ batch, batch _ idx ) : tokens, target = val _ batch logits = self. forward ( tokens ) loss = self. cross _ entropy _ loss ( logits, target ) masked _ preds, masked _ targets = self. get _ tensor _ accuracy ( logits, target ) self. val _ acc ( masked _ preds, masked _ targets ) masked...
[ -0.0630757212638855, 0.1853618323802948, 0.4180490970611572, -0.0806620717048645, -0.3396296799182892, 0.17912229895591736, 0.33395469188690186, -0.6001732349395752, -0.3234516680240631, 0.1409747302532196, 0.17605827748775482, 0.39410194754600525, 0.29398542642593384, 0.10858060419559479,...
def run _ migrations ( toprint, torun, recorder, app, migrations, fake = false, db _ dry _ run = false, verbosity = 0 ) : for migration in migrations : app _ name = get _ app _ name ( app ) if verbosity : print toprint % ( app _ name, migration ) # get migration class klass = get _ migration ( app, migration ) # find i...
[ -0.3649807572364807, 0.659848690032959, 0.7079761028289795, 0.1986512690782547, 0.31497031450271606, -0.4958224296569824, 0.41229140758514404, 0.13416312634944916, 0.013458919711411, 0.28552329540252686, -0.16781224310398102, 0.5443012118339539, 0.4340144395828247, 0.46568387746810913, -...
def draw ( self, surface ) : self. triangle. draw ( surface )
[ -0.09555688500404358, 0.5091930627822876, 0.0424596332013607, 0.04895470291376114, 0.7381327152252197, 1.8254483938217163, 1.3837354183197021, -0.11461874842643738, -0.019264768809080124, -1.0962375402450562, -0.1739106923341751, 0.26100802421569824, 0.28508368134498596, -0.050116583704948...
def rpc _ export ( rpc _ method _ name, sync = false ) : def dec ( f ) : f. _ nvim _ rpc _ method _ name = rpc _ method _ name f. _ nvim _ rpc _ sync = sync f. _ nvim _ bind = true f. _ nvim _ prefix _ plugin _ path = false return f return dec
[ 0.4163026213645935, -0.6146381497383118, 0.721523642539978, 0.3825381100177765, -0.7866185903549194, -1.1472415924072266, 0.32409870624542236, -0.7357327342033386, 0.49324098229408264, 0.5347740054130554, 0.24339213967323303, -0.1957843005657196, -0.7019068598747253, 0.012525004334747791, ...
def glob ( # type : ignore [ override ] self, patterns : str | sequence [ str ], *, flags : int = 0, limit : int = _ wcparse. pattern _ limit, exclude : str | sequence [ str ] | none = none ) - > iterable ['path'] : if self. is _ dir ( ) : scandotdir = flags & scandotdir flags = self. _ translate _ flags ( # type : ign...
[ 0.17410117387771606, 0.34651345014572144, 0.9328123927116394, 0.8349505662918091, -0.10092463344335556, 1.331627368927002, 1.2587355375289917, -0.31554028391838074, 0.6474875211715698, -0.6969797611236572, 0.6115761995315552, 0.10447665303945541, -0.41869252920150757, 0.034361932426691055,...
def domain ( value ) : return pattern. match ( value )
[ -0.7345575094223022, 0.5048256516456604, 0.30484458804130554, 0.4372921586036682, -0.04843304306268692, 0.4310095012187958, 0.4972058832645416, -0.18022623658180237, 0.5940051674842834, -0.796015739440918, -0.10242398083209991, 0.5969569683074951, 0.10584687441587448, -0.5659897327423096, ...
def _ getpagecountinthisperiod ( self, current _ physical _ page _ count ) : difference = ( current _ physical _ page _ count - ( self. _ last _ page _ count % self. _ adump. page _ count _ wrap _ size ) ) if difference < 0 : logging. info ('handle page count wrapping for physical current page'' count 0x % x, logical l...
[ -0.44201481342315674, -0.5319393277168274, 0.6394094824790955, -0.5185663104057312, 0.09751001000404358, 0.8564103245735168, 0.089011050760746, -0.01764064095914364, -0.04734719544649124, -0.41049444675445557, 1.1384563446044922, 0.30618420243263245, -0.11814449727535248, 0.288159191608428...
def query _ disc ( nside, vec, radius, inclusive = false, fact = 4, nest = false ) : try : # new - style call ( healpy 1. 6. 3 ) return hp. query _ disc ( nside, vec, np. radians ( radius ), inclusive, fact, nest ) except exception as e : print ( e ) # old - style call ( healpy 0. 10. 2 ) return hp. query _ disc ( nsid...
[ 0.10100530087947845, 0.751758873462677, 0.6283038854598999, 0.09104038774967194, -0.635204017162323, -0.21434131264686584, 0.042231034487485886, -0.5007853507995605, -0.47517144680023193, -0.5755327939987183, 0.8880006074905396, 0.29332494735717773, -0.9088765978813171, 0.26696115732192993...
def startbulkread ( ctx, # mandatory main parameter volumeid, # mandatory main parameter format, # optional main parameter snapshotid = none, # optional main parameter script = none, # optional main parameter scriptparameters = none, # optional main parameter attributes = none ) : " " " can run simultaneously on a volu...
[ -0.18777474761009216, -0.8346239328384399, 1.0088645219802856, 0.6558465957641602, -0.00965909380465746, -0.30527928471565247, 0.33377063274383545, -0.39031222462654114, 0.47637537121772766, 0.05759984254837036, -0.041108231991529465, 0.9318596720695496, -0.5482624769210815, -0.41720217466...
def on _ error ( self, status _ code ) : if status _ code = = 420 : # returning false in on _ error disconnects the stream return false elif status _ code = = 429 : time. sleep ( 900 ) else : print ( tweepy. tweeperror, status _ code )
[ -0.20523427426815033, -0.31276342272758484, 0.4074309468269348, -0.09451678395271301, -0.16520021855831146, -0.3074072599411011, -0.19093762338161469, 0.01300477609038353, 0.7639694213867188, 0.5565009117126465, -0.03871994465589523, 0.27703890204429626, -0.4260486662387848, 0.048740342259...
def _ compare _ to _ first ( self, input _ df ) : new _ cols = [ ] for col in self. _ column _ names : new _ cols. extend ( [ col, col + self. _ suffix ] ) base = input _ df. loc [ 0, self. _ column _ names ] baseline _ ratio = ( input _ df [ self. _ column _ names ] / base ) * * self. _ column _ negations renamed _ ra...
[ 0.15275749564170837, 0.03774123638868332, 0.5289981365203857, -0.39463457465171814, 0.31814810633659363, -0.3685842454433441, -0.38299059867858887, -0.5726279616355896, -0.7288902997970581, 0.6512802243232727, 0.5861507058143616, 0.426918625831604, 0.07167930155992508, 0.13007374107837677,...
def chunk ( original, chunk _ size ) : for i in range ( 0, len ( original ), chunk _ size ) : yield original [ i : i + chunk _ size ]
[ 0.24180297553539276, -0.28700509667396545, 0.6104909181594849, 0.032842542976140976, -1.0886355638504028, 0.15175651013851166, -0.47136858105659485, 0.9193978309631348, -0.7558058500289917, -0.5465049147605896, 0.32005220651626587, 1.1441739797592163, 0.3126833140850067, -0.686944246292114...
def test _ authorize _ paypal _ transaction ( self ) : pass
[ 0.20626124739646912, 0.46320661902427673, 0.01487563457340002, 1.2019590139389038, 0.6299450993537903, 0.46183866262435913, 0.7266589999198914, -0.6792207956314087, 0.4308651089668274, -0.5476861596107483, 0.01478563155978918, 0.03184226527810097, -0.4581417739391327, -0.8938131928443909, ...
def get _ elapsed _ time ( start _ time : float ) : now = time. time ( ) s = now - start _ time m = math. floor ( s / 60 ) s - = m * 60 return " % dm % ds " % ( m, s )
[ 0.42745113372802734, -0.08110129088163376, 0.4681491255760193, -0.8603686094284058, -0.7062264680862427, 0.10618965327739716, 0.004018088337033987, 0.06459321826696396, 0.2853446304798126, 0.48337191343307495, 0.09966091811656952, 0.5396543741226196, 0.03710039332509041, 0.2997827231884002...
def _ sub _ id ( self ) : if not self. is _ subscribed : raise exception ( " you are not subscribed to this user " ) header = self. _ soup _ profile. find ( " div ", { " class " : " primary header module " } ) id _ = header. form. attrs [ " action " ]. split ( " / " ) [ - 1 ] return int ( id _ )
[ 0.8581657409667969, -0.06119488179683685, 0.8508673906326294, 0.5549300909042358, -0.07401120662689209, -0.040580619126558304, 0.5069891214370728, -0.19557538628578186, 0.3775913119316101, -0.6550177931785583, -0.22464480996131897, 0.4951364994049072, -0.15574200451374054, -0.1994633376598...
def print _ spelling _ output ( result : spellcheckresult ) : with with _ group ( f " { text _ red } output for spelling check : { result. package _ name } { text _ reset } " ) : console. print ( ) console. print ( f " [ info ] { result. package _ name : 60 } : " + " # " * 80 ) with open ( result. log _ file _ name ) a...
[ -0.04049872234463692, -1.0719460248947144, 0.7448435425758362, -0.09664451330900192, -0.6538605093955994, 0.3157646656036377, 0.11672097444534302, -0.2528795301914215, -0.4220357835292816, 0.3438495099544525, 0.3217065930366516, -0.04792025685310364, 0.2643711268901825, 0.6712662577629089,...
def write _ pdb _ markers ( filename, centers, apix _ x, apix _ y, apix _ z, sx, sy, sz ) : print sx, sy, sz try : out = file ( filename, " w " ) for j, c in enumerate ( centers ) : out. write ( " atom % 5d ca ala % 4d % 8. 3f % 8. 3f % 8. 3f 1. 00 % 6. 2f s _ 00 0 \ n " % ( j, j, ( c [ 0 ] - sx / 2 ) * apix _ x, ( c [...
[ -0.7471765279769897, -1.1338928937911987, 0.6078581213951111, 0.0509863942861557, 0.4466557502746582, 0.4914880096912384, 0.6211161613464355, 0.7736979722976685, -0.07055459171533585, -0.14950822293758392, -0.6147072315216064, -0.4858274459838867, -0.30782797932624817, -0.34824684262275696...
def add _ column ( name : str, type _ : str ) - > none : db, connection = open _ db ( " lyrics. db " ) connection. execute ( f'''alter table songs add { name } { type _ } ;''') connection. commit ( ) connection. close ( )
[ -0.5328736305236816, -0.11135989427566528, 0.773709237575531, -0.392323762178421, 0.6657587885856628, 0.7669257521629333, 0.33439043164253235, -0.4695146679878235, -1.5318868160247803, 0.5949301719665527, -0.745032548904419, 0.6155421137809753, -0.5474981665611267, 0.0025931070558726788, ...
def get _ user _ playlists ( self, user, progress = progress ( ) ) : q = { " limit " : 50 } url = " users / { } / playlists ". format ( user ['id'] ) page = self. get _ api _ v1 ( url, q ) results = self. _ extract _ page ( page, progress ) return tuple ( [ playlist ( p ) for p in results ] )
[ -0.8597169518470764, 0.29350072145462036, 0.49576079845428467, 1.184051513671875, 0.06612528860569, -0.09931232780218124, 0.1597813218832016, -1.5641599893569946, 0.16968227922916412, 0.3022422194480896, -0.8954808115959167, -0.10868026316165924, -1.1142704486846924, -0.18309533596038818, ...
def _ _ next _ _ ( self ) - > _ position : if self. _ _ generator is none : self. _ _ generator = self. traverse _ tree _ level _ order ( ) try : next _ position = next ( self. _ _ generator ) except stopiteration as e : self. _ _ generator = none raise e return next _ position
[ -0.7494403719902039, -0.24596235156059265, 0.5825300216674805, -0.358455091714859, -0.7468134164810181, -0.390341579914093, 0.2573820948600769, -0.044311922043561935, -0.6430404186248779, -0.6750423312187195, 0.26806944608688354, -0.7619805932044983, -0.7513635754585266, 0.0714296475052833...
def place ( self, new _ location : location, new _ direction : direction ) : if not new _ location. is _ valid ( ) : return false self. location = new _ location self. direction = new _ direction return true
[ -0.6293982863426208, -0.5804752707481384, 0.5329793095588684, -0.2909993827342987, 0.07259824126958847, 0.659627377986908, -0.268837571144104, 1.196763515472412, -0.059233665466308594, 0.47086668014526367, -0.3284049928188324, -0.2193964272737503, -0.6243473887443542, 0.006807692348957062,...
def _ resetlocalconfiguration ( self ) : context = self. context context. manage _ delproperties ( ['forum _ sendto _ values ','forum _ sendto _ all'] ) # zope. interface. nolongerprovides ( context, ilocalboardnotify ) # do not use until plone 2. 5 support will be dropped zope. interface. directlyprovides ( context, z...
[ 0.08020129799842834, 0.6864007711410522, 0.28725725412368774, -0.030436011031270027, 0.1548336148262024, -0.5111254453659058, 0.7652385234832764, 0.4687747657299042, 0.059822022914886475, 0.3693680465221405, -0.9165453314781189, 0.7494978308677673, -0.12303517013788223, 0.3909977376461029,...
def getcomlorentzgamma ( self, direction = " z " ) : if not hasattr ( self, " lorentz _ gamma " ) : self. lorentz _ gamma = { } if not direction in self. lortenz _ gamma : v _ over _ c = self. getcomvelocityoverc ( direction ) self. lorentz _ gamma [ direction ] = np. sqrt ( 1 / ( 1 - v _ over _ c * * 2 ) ) return self...
[ 0.07011371105909348, -0.6879801750183105, 0.37509581446647644, -0.18800806999206543, -0.13305889070034027, 0.02044990472495556, 0.7415682077407837, 0.2824888527393341, 0.47593215107917786, -0.22564494609832764, -0.35691672563552856, 0.5168758034706116, -1.1024502515792847, 1.46704566478729...
def parse _ list ( self, response ) : items = pypiitem ( ) name = response. xpath ( self. namexpath ). get ( ) version = response. xpath ( self. verxpath ). get ( ) description = response. xpath ( self. descxpath ). get ( ) url = response. xpath ( self. urlxpath ). get ( ) items ['name'] = name items ['version'] = vers...
[ -0.8652666807174683, -0.09987496584653854, 0.5043387413024902, -0.303961843252182, 0.8587250113487244, 0.016619063913822174, -1.2465777397155762, 0.8521658182144165, -0.414221853017807, -0.25002923607826233, -1.3687701225280762, -1.2590503692626953, 0.17551352083683014, 0.45226243138313293...
def _ parse _ function ( record ) : features = { " terms " : tf. varlenfeature ( dtype = tf. string ), # terms are strings of varying lengths " labels " : tf. fixedlenfeature ( shape = [ 1 ], dtype = tf. float32 ) # labels are 0 or 1 } parsed _ features = tf. parse _ single _ example ( record, features ) terms = parsed...
[ 0.3024841845035553, -0.15131151676177979, 0.14043229818344116, -1.389817237854004, -0.6493566632270813, -0.9383829236030579, -0.23781922459602356, 0.6232537031173706, -0.6994894742965698, 0.0837949886918068, -0.6540408730506897, 0.5117406249046326, 0.9108191132545471, 0.014587986283004284,...
def day _ sample ( x ) : enc = onehotencoder ( sparse ='false ', drop ='first ', categories = [ list ( range ( 0, 32 ) ) ] ) array = enc. fit _ transform ( np. array ( x. index. day ). reshape ( - 1, 1 ) ). toarray ( ) columns = ['day _'+ str ( i ) for i in range ( 1, 32 ) ] return pd. dataframe ( array, index = x. ind...
[ -0.9321364164352417, 0.8745823502540588, 0.7629706859588623, 0.15425613522529602, -0.7261546850204468, -0.08455390483140945, 0.023064402863383293, -0.9229043126106262, 0.5336592793464661, -0.19087116420269012, 0.3042677640914917, 0.3650219142436981, 0.2661858797073364, -0.17423321306705475...