text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def poisson ( l, k ) : return ( pow ( l, k ) * exp ( - l ) ) / factorial ( k ) | [
0.7731406092643738,
0.0855276957154274,
0.22689314186573029,
-0.5945162773132324,
-0.5319452881813049,
-0.004141751676797867,
-1.0656893253326416,
1.2271308898925781,
-0.06489052623510361,
0.012184358201920986,
-0.31067177653312683,
0.003851377172395587,
-0.37539899349212646,
-0.2932346761... |
def _ build _ input ( self ) : pass | [
-1.2874513864517212,
-1.362744927406311,
0.15248815715312958,
0.12993624806404114,
-0.38681861758232117,
1.1657838821411133,
0.9312593340873718,
0.3286813497543335,
0.38035809993743896,
-1.251262903213501,
-0.08861827850341797,
0.17335660755634308,
-0.00004297792838769965,
-0.3684848546981... |
def fill _ db ( items, fields ) : for item in items : repo = repository ( ) for field _ name in fields : setattr ( repo, field _ name, item [ field _ name ] ) db. session. add ( repo ) db. session. commit ( ) | [
-0.8908299207687378,
0.9891279339790344,
0.4511067271232605,
-0.5907785892486572,
1.1949058771133423,
0.4905722439289093,
-0.4371274411678314,
0.25490519404411316,
-0.3939332962036133,
0.5228680968284607,
-1.1593683958053589,
-1.6517680883407593,
0.0456259623169899,
-0.11172518134117126,
... |
def test _ atomic _ qname _ length _ 2 _ nistxml _ sv _ iv _ atomic _ qname _ length _ 3 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - length - 3. xsd ", instance = " nistdata / atomic / qname / schem... | [
0.24318230152130127,
-0.3707457482814789,
0.3796350061893463,
-0.21872848272323608,
-0.486154705286026,
0.477711945772171,
-0.9040538668632507,
-0.42314770817756653,
0.2758227586746216,
0.7062705755233765,
-0.682689905166626,
0.07076887786388397,
0.2822751998901367,
-0.3425716161727905,
... |
def simulation ( m1, m2, k1, k2, b1, b2, u, fw, x0, t0, delta _ t, t _ end ) : x _ list = [ ] t _ list = [ ] x = x0 t = t0 while t < t _ end : x, t = heun _ step ( m1, m2, k1, k2, b1, b2, u, fw, x, t, delta _ t ) x _ list. append ( x ) t _ list. append ( t ) return np. array ( x _ list ). t, np. array ( t _ list ) | [
-0.4378189444541931,
0.3789070248603821,
0.5386032462120056,
0.015478488057851791,
0.09616104513406754,
0.4055402874946594,
-0.7743972539901733,
1.1599808931350708,
-1.5999081134796143,
0.9547938704490662,
-0.9506733417510986,
-0.8367853164672852,
0.3536634147167206,
0.8069307208061218,
... |
def _ build ( cls ) : from draco2. model. check import checkvisitor from draco2. model. build import buildvisitor checker = checkvisitor ( ) checker. visit ( cls ) builder = buildvisitor ( ) builder. visit ( cls ) | [
-1.0250946283340454,
-0.4162227213382721,
0.3592450022697449,
0.9411713480949402,
0.6325809359550476,
0.3487738370895386,
1.2240558862686157,
-0.03725436329841614,
0.02590734325349331,
-0.3543696999549866,
-0.05867872014641762,
-0.06170240417122841,
0.6290849447250366,
-0.09450121968984604... |
def fsp ( graph, a _ node, b _ node ) : front = deque ( ) front. append ( a _ node ) came _ from = { a _ node : none } while front : cp = front. popleft ( ) for np in graph. neighbors ( cp ) : if np not in came _ from : front. append ( np ) came _ from [ np ] = cp return make _ path ( came _ from, a _ node, b _ node ) | [
1.1261646747589111,
0.2553657293319702,
0.43555620312690735,
-0.5291292667388916,
0.4386601150035858,
-0.8914089798927307,
-0.31316259503364563,
0.006658487021923065,
-0.05934395268559456,
0.43384766578674316,
0.4055534601211548,
0.343296617269516,
0.28812116384506226,
-0.17686955630779266... |
def xxdorootmenureload ( self, _ p _ json ) : log. info ( " self : { } ". format ( self ) ) self. m _ pyhouse _ obj. xxpyhousemainapi. savexml ( self. m _ pyhouse _ obj ) | [
-1.4364413022994995,
-0.48814526200294495,
0.47418835759162903,
0.2029169797897339,
-0.11100347340106964,
-0.07028299570083618,
-0.45421692728996277,
0.11312898993492126,
0.4564993381500244,
-0.02957896701991558,
-0.879352867603302,
0.3045634627342224,
-0.49336734414100647,
0.6471399068832... |
def test _ atomic _ hex _ binary _ pattern _ 1 _ nistxml _ sv _ iv _ atomic _ hex _ binary _ pattern _ 2 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - pattern - 2. xsd ", instance = " nistdata... | [
-0.2830151319503784,
-0.5526710152626038,
0.553529679775238,
1.009087324142456,
-0.2827608585357666,
0.3693532645702362,
0.1917298287153244,
0.14334218204021454,
-0.9073970913887024,
0.2944084405899048,
-1.0044809579849243,
-0.11806277930736542,
0.1237659901380539,
0.6974998712539673,
0.... |
def redraw ( self ) : # plot max shear for grain self. maxshearax. clear ( ) grainplot = self. currmap [ self. grainid ]. plotmaxshear ( fig = self. plot. fig, ax = self. maxshearax, vmax = self. vmax, plotcolourbar = false, plotscalebar = true ) # draw slip traces self. sliptraceax. clear ( ) self. sliptraceax. set _ ... | [
0.26608893275260925,
-0.3341011106967926,
0.6654690504074097,
-0.5050673484802246,
-0.4509158432483673,
0.838283896446228,
0.5471541881561279,
-0.4786902964115143,
0.12889429926872253,
-0.8831762671470642,
0.42399460077285767,
1.234785795211792,
0.12571127712726593,
0.38930508494377136,
... |
def _ get _ packages _ for _ state ( self, state, observer ) : available = super ( unixremote, self ). _ get _ packages _ for _ state ( state, observer ) if not available : if state = = unixremote. unix _ remote or state = = unixremote. unix _ remote _ root : available = { unixremote. cmds : ['moler. cmd. unix'], unixr... | [
-0.5668579936027527,
-0.20136064291000366,
0.5533314347267151,
-0.3491109013557434,
-0.4651508927345276,
-0.26943057775497437,
-0.8016708493232727,
0.12842032313346863,
1.0031708478927612,
-0.5356755256652832,
-0.41815370321273804,
-0.1474633365869522,
-0.08082915097475052,
0.5504016876220... |
def respond ( self, request : request ) - > response : url _ parser = urlparse ( request. url ) # splits url into its components path = server _ root / url _ parser. path. strip ('/') if path. is _ file ( ) : try : if path. suffix not in self. suffix _ whitelist : raise permissionerror ( ) # serve file with open ( path... | [
-0.328631728887558,
-0.17640770971775055,
0.8251216411590576,
0.5218682885169983,
0.25883063673973083,
-0.22492176294326782,
0.9615083932876587,
-0.031229842454195023,
0.2921629250049591,
-0.070584736764431,
0.7569193243980408,
0.21583938598632812,
-0.476640522480011,
-0.08826156705617905,... |
def render _ receivers ( self, duration = none, resample = none ) : if not self. simfile : self. write ( ) rcefile = os. path. splitext ( self. simfile ) [ 0 ] + '. rce'self. _ rcefile = rcefile simfile = os. path. abspath ( self. simfile ) args = ['- rce ','- exit ','- file ', simfile ] if duration is not none : itera... | [
0.08982588350772858,
-0.01180237252265215,
0.5875983834266663,
-0.2248665988445282,
-0.18114040791988373,
-0.6815707683563232,
-0.38984328508377075,
0.2998475134372711,
0.08026347309350967,
-0.1189328208565712,
0.11370480060577393,
-0.26006850600242615,
-0.784854531288147,
0.16509784758090... |
def write _ bladestructure ( st3d, filebase ) : # write material properties fid = open ( filebase + '. mat ','w') fid. write ('# version % s \ n'% st3d ['version'] ) fid. write ('# % s \ n'% (''. join ( list ( st3d ['materials']. keys ( ) ) ) ) ) if len ( st3d ['matprops'] [ 0 ] ) = = 10 : fid. write ('# e1 e2 e3 nu12 ... | [
0.41145336627960205,
-0.9621866941452026,
0.885392427444458,
-0.4670086205005646,
0.1851549595594406,
0.8032743334770203,
0.12821879982948303,
-0.33376333117485046,
-0.8618592023849487,
-0.06707342714071274,
-0.22429488599300385,
0.058688197284936905,
-0.47095200419425964,
-0.3315552473068... |
def _ _ init _ _ ( self ) : self. label = " nato vector graphic to feature class " self. description = " converts data from igeosit in the nato vector graphic format to feature class " self. canruninbackground = false | [
0.4743698537349701,
-0.3362317979335785,
0.25483107566833496,
-0.15223060548305511,
0.4914200007915497,
0.3816603422164917,
-0.23800016939640045,
-0.12577365338802338,
-0.34017205238342285,
0.13326045870780945,
0.5573499202728271,
1.023254632949829,
0.4348258972167969,
0.001344009651802480... |
def _ _ init _ _ ( self ) : print " k9 object initialising... " # create lidar sensor instances with different channels self. left _ ear = lidar ( name = " ear _ left ", adc = 0, gpio = left _ lidar _ shutdown, address = 0x30 ) self. right _ ear = lidar ( name = " ear _ right ", adc = 1, gpio = right _ lidar _ shutdown... | [
0.373064786195755,
-0.9111078381538391,
0.9499025940895081,
-0.9212193489074707,
0.3922978341579437,
0.5004151463508606,
-0.5812892913818359,
-0.6938764452934265,
0.3259163796901703,
0.5379076600074768,
0.015438257716596127,
0.1454787403345108,
-0.38313448429107666,
0.5071009993553162,
1... |
def iter _ leaves ( self ) : for child in self. children : yield from child. iter _ leaves ( ) | [
0.5829416513442993,
-1.2012367248535156,
0.4655170440673828,
-0.20420478284358978,
0.1193399727344513,
0.6250666379928589,
-0.018872201442718506,
-0.11699002236127853,
-0.4698414206504822,
-0.36726877093315125,
0.7546237707138062,
-0.1938691884279251,
0.2310098558664322,
0.71406090259552,
... |
def _ prepare _ state _ prompts _ without _ proxy _ pc ( self ) : state _ prompts = { unixremote. unix _ remote : self. _ configurations [ unixremote. connection _ hops ] [ unixremote. unix _ local ] [ unixremote. unix _ remote ] [ " command _ params " ] [ " expected _ prompt " ], unixremote. unix _ remote _ root : sel... | [
-0.9784026145935059,
-0.8458154797554016,
0.5551384687423706,
-0.9410033822059631,
-0.3530127704143524,
0.7021616101264954,
0.11532814055681229,
-0.05822359770536423,
0.20352673530578613,
-0.0516674742102623,
-0.43934956192970276,
-0.06622622907161713,
-0.32564350962638855,
-0.122234441339... |
def _ extract _ available _ dates ( self ) - > tuple [ date, date ] : log. info ( " extracting available dates. " ) available _ date _ arr = self. _ get _ available _ dates _ element ( ). text. split ( " to " ) if available _ date _ arr [ 1 ] = = " 00 / 00 / 0000 " : raise noavailabledata ( ) start _ date = datetime. s... | [
-0.5766382217407227,
-0.4697607457637787,
0.4706632196903229,
-0.2567562758922577,
-0.30847278237342834,
0.6671558022499084,
-0.4529859721660614,
0.955618679523468,
-0.118206687271595,
0.7220768928527832,
0.07178082317113876,
0.5721898078918457,
-0.0680232122540474,
0.5396406054496765,
1... |
def wx _ 3 _ zapisz _ zestaw ( self, evt ) : pop = wx. textentrydialog ( self, " podaj nazwe dla pliku ze zestawem : " ) pop. showmodal ( ) nazwa = pop. getvalue ( ) if " zestaw " not in nazwa : nazwa = " zestaw _ " + nazwa if ". txt " not in nazwa : nazwa = nazwa + ". txt " if os. path. exists ( nazwa ) : nazwa2 = naz... | [
-0.6128348708152771,
-0.196132093667984,
0.3885456621646881,
-0.10300635546445847,
-1.2852604389190674,
0.5475049018859863,
0.3807372450828552,
0.011451962403953075,
-0.32586294412612915,
0.6037705540657043,
-0.737687349319458,
0.22754624485969543,
0.8513816595077515,
0.2862536311149597,
... |
def block _ load ( self, download = true ) : self. block _ df = self. load _ dataset ('block') | [
0.05319797247648239,
0.5898140668869019,
0.37432003021240234,
0.5372238755226135,
-0.2823152542114258,
0.1345713883638382,
0.14702720940113068,
0.1529226303100586,
-0.8743239045143127,
-0.02944117784500122,
0.2676658034324646,
0.8476908206939697,
-0.20785322785377502,
-0.3038880527019501,
... |
def get ( self, request ) : cars = car. objects. all ( ) return render ( request, " cars _ view. html ", { " cars " : cars } ) | [
-0.43252015113830566,
-0.10630813241004944,
0.2893314063549042,
-0.5391770005226135,
0.118934266269207,
0.17979483306407928,
-1.353018879890442,
0.7477352023124695,
-1.5006144046783447,
-0.812335193157196,
0.5290740132331848,
0.046758752316236496,
0.23537686467170715,
0.24411171674728394,
... |
def perform _ step ( self, client, step ) : ( ( name, parameters ), ) = step. items ( ) param _ str = ', '. join ('{ } = { } '. format ( k, repr ( v ) ) for k, v in sorted ( parameters. items ( ) ) ) logging. info ('performing step : { } ( { } ) '. format ( name, param _ str ) ) return self. _ actions [ name ]. perform... | [
-1.0826152563095093,
-0.6990234851837158,
0.2359345257282257,
-0.2076629400253296,
0.29911869764328003,
-0.38102051615715027,
-0.050899092108011246,
-0.1715095192193985,
-1.3443725109100342,
0.33164069056510925,
-0.1874980330467224,
0.12530255317687988,
-0.4867432117462158,
0.6749750971794... |
def font _ style ( self ) : return self. _ font _ style | [
0.22036968171596527,
-0.014327112585306168,
0.13606928288936615,
0.7324158549308777,
-0.36264121532440186,
-0.5320042967796326,
0.3632480502128601,
0.051749881356954575,
0.024263886734843254,
-0.8692403435707092,
0.44283029437065125,
0.550847053527832,
-0.6899375319480896,
-0.6680029034614... |
def minimize ( self, new _ fst _ base = false, in _ place = false ) : if new _ fst _ base = = false : return self. minimize ( self. base, true ) call = " fstminimize - - delta = % s % s % s. fst " \ % ( self. delta, self. fst _ fn, new _ fst _ base ) subprocess. call ( [ call ], shell = true ) if in _ place : return se... | [
-0.3340247571468353,
-0.26063451170921326,
0.541037917137146,
0.22482925653457642,
-0.24496960639953613,
-0.722649872303009,
-0.28553688526153564,
-0.3726244866847992,
0.38242122530937195,
-1.1374940872192383,
-0.5916239023208618,
-0.27089589834213257,
-1.5727144479751587,
0.27263563871383... |
def item _ to _ push _ queue ( ) : offset = getattr ( settings, " carrier _ select _ offset ", 10 ) while true : qs = itemtopush. objects. all ( ) qs = qs. order _ by ('creation _ date') qs = qs. filter ( status = itemtopush. status. new ) rows = qs [ : offset ] # don't retrieve too many rows at once if len ( rows ) = ... | [
-0.4320825934410095,
0.31709450483322144,
0.686295747756958,
-0.2080129086971283,
0.4208327829837799,
0.1089596226811409,
-1.001589059829712,
-0.49867600202560425,
-0.21571806073188782,
-0.14345109462738037,
0.5577548742294312,
0.37031203508377075,
1.279220700263977,
0.6817554235458374,
... |
def get _ val _ losses ( self, as _ np = false ) - > union [ list, ndarray ] : if as _ np : return np. array ( self. _ val ) return self. _ val | [
-1.1779487133026123,
0.13197951018810272,
0.6480724215507507,
0.4509449005126953,
0.427874892950058,
0.3309422433376312,
-1.170605182647705,
-0.9065861701965332,
0.9133920073509216,
0.23857228457927704,
0.004739938769489527,
0.959293782711029,
0.5293405055999756,
0.6729599237442017,
-0.2... |
def addtracefor ( self, part, data, allow _ unstructured = false ) : if isinstance ( data, stringtypes ) : if not allow _ unstructured : raise valueerror ('must pass allow _ unstructured = true for text data') do _ write = lambda d, f : f. write ( d ) suffix = '. txt'# used for atrace and systrace data. elif isinstance... | [
-0.09106601774692535,
-0.10030124336481094,
0.7622596025466919,
-0.47735899686813354,
0.5129424929618835,
1.091461420059204,
-0.16258332133293152,
-0.25016656517982483,
-0.12573760747909546,
-0.8617727160453796,
0.3083373010158539,
0.17766979336738586,
-0.39527955651283264,
-0.136590033769... |
def is _ up ( self ) : return ( self. updated _ at and self. updated _ at > = utils. service _ expired _ time ( true ) ) | [
-1.0478086471557617,
-0.3732357621192932,
0.7577850818634033,
0.3108114004135132,
-0.49265459179878235,
0.5562361478805542,
-1.4456331729888916,
-0.1653270423412323,
0.02664031833410263,
0.610031008720398,
-0.02595657855272293,
0.5793401598930359,
0.06613708287477493,
-0.36386772990226746,... |
def test _ monsters _ at _ location ( self ) : lvl = level ( 1, 10, 10, none ) mon = new _ monster ( pos ( 3, 3 ), 1, ord ('a') ) lvl. add _ monster ( mon ) assert lvl. monsters _ at ( pos ( 0, 0 ) ) = = [ ] assert lvl. monsters _ at ( pos ( 3, 3 ) ) = = [ mon ] self. asserttrue ( true ) | [
-0.5529567003250122,
-0.523530900478363,
0.5568625926971436,
-0.5301700830459595,
1.287001132965088,
0.7375814318656921,
-0.913233757019043,
0.41607439517974854,
-0.6875758767127991,
0.06963324546813965,
-1.0924886465072632,
-0.09799177944660187,
-0.46894457936286926,
0.4207320213317871,
... |
async def test _ uncaught _ channel _ exception ( event _ loop, connect _ to _ broker ) : exchange _ name ='testcase _ exchange'routing _ key ='testcase _ routing _ key'async with await connect _ to _ broker ( ) as connection : delete _ succeeded = false publish _ succeeded = false with raises ( serverclosedchannel ) a... | [
0.5211049914360046,
-0.20406495034694672,
0.5665518641471863,
0.49234631657600403,
0.5339283347129822,
0.11414333432912827,
-0.03905755281448364,
0.41773346066474915,
0.3270932137966156,
0.25165772438049316,
0.3374667465686798,
0.4772358238697052,
-0.8527258634567261,
0.863082230091095,
... |
def get _ is _ liked ( obj, user ) - > bool : return is _ object _ liked _ by _ user ( obj = obj, user = user ) | [
-0.3524421155452728,
-0.006986627355217934,
0.5960289835929871,
1.4672257900238037,
-0.7305976748466492,
0.6659716963768005,
0.13791704177856445,
-0.9519221782684326,
-0.16341352462768555,
-0.1336216926574707,
-0.9456650614738464,
1.4042842388153076,
-0.26559028029441833,
-0.35758012533187... |
def hide _ field ( stream, field ) : def helper ( field _ stream ) : type = stream ( field _ stream ). select ('@ type'). textof ( ) if type = ='checkbox': if stream ( field _ stream ). select ('@ checked'). textof ( ) = = " checked " : value = 1 else : value = 0 else : value = stream ( field _ stream ). select ('@ val... | [
0.03714419901371002,
-0.1492762267589569,
0.728731095790863,
-0.5276626944541931,
-0.923282265663147,
-0.011080305092036724,
-0.07721701264381409,
-0.8177198171615601,
-0.6813145279884338,
0.6748741865158081,
-1.0099413394927979,
0.20936256647109985,
-0.16562968492507935,
0.079558447003364... |
def _ extract _ posts _ from _ page _ soup ( self, page _ soup : beautifulsoup ) - > iterable [ beautifulsoup ] : raise notimplementederror | [
-0.5529918670654297,
-0.02534039504826069,
0.43821078538894653,
0.71234530210495,
0.28402313590049744,
-0.2745383083820343,
-0.2919517159461975,
-0.09999548643827438,
0.12857218086719513,
0.09781333059072495,
0.20537078380584717,
-0.9548420906066895,
0.6198861598968506,
0.4156084358692169,... |
def play _ former ( self ) : if self. currentindex is none : return if len ( self. music ) = = 0 : return if self. currentindex = = 0 : return if self. play _ mode! = 3 : self. currentindex - = 1 self. letsplay ( ) | [
0.1584673970937729,
0.38526612520217896,
0.7277618646621704,
0.15520359575748444,
0.6260130405426025,
1.0584157705307007,
0.8427902460098267,
-0.5593891143798828,
0.18289867043495178,
0.2685464918613434,
0.2876858711242676,
0.22547580301761627,
-0.8937814235687256,
-0.45463040471076965,
... |
def _ parse _ geoms ( self, * * kwargs ) : bbox = kwargs. get ('bbox ', none ) wkt _ geom = kwargs. get ('wkt ', none ) geojson = kwargs. get ('geojson ', none ) if bbox is not none : g = box ( * bbox ) elif wkt _ geom is not none : g = wkt. loads ( wkt _ geom ) elif geojson is not none : g = shape ( geojson ) else : r... | [
0.9970409870147705,
0.5249942541122437,
0.6630445718765259,
-0.9056338667869568,
0.1553368866443634,
0.192968487739563,
-0.9749999642372131,
-0.13741064071655273,
0.08064920455217361,
-0.4494062066078186,
0.7433561086654663,
0.2296804040670395,
0.23107777535915375,
-0.21644967794418335,
... |
def variablederivation ( cls, record ) : # my variable may reject invalid input yield cls. filter # make a managed dependent yield from cls. manageddependencyderivation ( ) # my variables have values yield cls. value # and whatever else my superclass says yield from super ( ). variablederivation ( record ) # all done r... | [
0.38406452536582947,
0.19671979546546936,
0.5563796162605286,
0.18524861335754395,
-0.5532748699188232,
0.014096291735768318,
0.4547784626483917,
-0.22324411571025848,
0.26638588309288025,
-0.8679080605506897,
-0.3917942941188812,
0.36709314584732056,
0.097041055560112,
0.7660537362098694,... |
def read _ csv ( self, csv _ file ) : self. df = pd. read _ csv ( csv _ file, sep = ", ", float _ precision = 32 ) ( nrows, ncols ) = self. df. shape self. nrows = nrows # discover preparation steps self. nanneal = self. _ check _ prepsteps ( 0, self. annealingstart ) self. ngrow = self. _ check _ prepsteps ( 0, self. ... | [
-0.05599784851074219,
0.37619808316230774,
0.32718753814697266,
0.800351619720459,
0.3476816713809967,
0.3548961281776428,
0.939459502696991,
0.3719210922718048,
-0.6784617900848389,
-0.15365295112133026,
0.1706361025571823,
0.18801556527614594,
0.5738313794136047,
1.0562068223953247,
0.... |
def print _ total _ value ( ) : sum = 0 for item in data : sum + = ( item [ " price " ] * item [ " stock " ] ) print ( f " total stock value = { sum } " ) | [
-0.16712607443332672,
-0.27608752250671387,
0.40820348262786865,
-0.4814494848251343,
1.022316575050354,
0.18002569675445557,
0.26943764090538025,
-0.28128790855407715,
-0.26160144805908203,
0.00801029335707426,
-0.44515180587768555,
0.35425981879234314,
0.7313937544822693,
0.3635060787200... |
def read ( self, n = none, reverse = false, invert = false ) : if n is none : n = len ( self ) - self. tell ( ) if not isinstance ( n, int ) : raise exception ('input n must be int, not % s'% repr ( type ( n ) ) ) if n = = 0 : return 0, 0 start _ pos = self. bit _ seek _ pos end _ pos = self. bit _ seek _ pos + n start... | [
-1.2195225954055786,
0.11385174095630646,
1.00030517578125,
-0.7426941394805908,
-0.35344377160072327,
0.5537829995155334,
0.8828552961349487,
0.06831108033657074,
0.05607419088482857,
-0.14118869602680206,
-0.18472439050674438,
0.7512468695640564,
-0.48826420307159424,
0.4182734787464142,... |
def liqtool _ load ( self, download = true ) : self. liqtool _ df = self. load _ dataset ('liqtool') | [
0.3070235252380371,
-0.38444504141807556,
0.24973443150520325,
-0.4258210062980652,
-0.33707180619239807,
0.6106177568435669,
-0.7276102900505066,
0.08660554140806198,
-0.8353548049926758,
-0.5265483260154724,
-0.6165619492530823,
0.3394116759300232,
0.6083415150642395,
-0.7741859555244446... |
def act ( self ) : while true : con, addr = self. my _ socket. accept ( ) # my _ socket. accept ( ) is a blocking method print ( " new connection : % s " % str ( addr ) ) while true : mystr = con. recv ( 1024 ) # con. recv ( ) is also a blocking method, will return value none when connect became dead if not mystr : bre... | [
-0.34735798835754395,
-1.4230469465255737,
0.7441629767417908,
-0.15046091377735138,
-0.22184163331985474,
0.47298166155815125,
0.057711463421583176,
-0.43483078479766846,
-0.3943609297275543,
-0.20266324281692505,
0.7245832681655884,
1.0670562982559204,
-0.4519522190093994,
0.279874682426... |
def _ make _ aggregate _ index ( data, interval _ length, interval _ label, timezone ) : # first, find limits for a new index start = pd. timestamp ('20380119t031407z') end = pd. timestamp ('19700101t000001z') for df in data. values ( ) : start = min ( start, min ( df. index ) ) end = max ( end, max ( df. index ) ) # a... | [
-0.6710337996482849,
0.13913539052009583,
0.6910377740859985,
-0.054646916687488556,
0.13953351974487305,
0.22819311916828156,
-0.2864004075527191,
0.2154773473739624,
-0.7115645408630371,
0.24062936007976532,
0.5212011933326721,
-0.07135393470525742,
-0.07118059694766998,
-0.9946569204330... |
def count _ chxreads _ to _ dataframe ( list _ of _ transcripts, path _ to _ chx _ reads, path _ to _ chx _ psite, nthreads ) : def count _ chx _ single _ transcript ( input _ transcript, path _ to _ chx _ reads, path _ to _ chx _ psite ) : print'working on'+ str ( input _ transcript. get _ name ( ) ) + '...'# prepare ... | [
0.23221203684806824,
-0.3802075982093811,
0.4171765446662903,
-0.28224214911460876,
0.4299874007701874,
-0.08485177904367447,
0.09733106940984726,
0.012239850126206875,
-0.5150153636932373,
-0.20405323803424835,
-0.30758318305015564,
0.19636906683444977,
-0.13022953271865845,
-0.6622105836... |
def get _ tidy _ invocation ( f, inplace ) : start = ['clang - format - 7'] if inplace : start. append ('- i') start. append ( f ) return start | [
0.14155836403369904,
0.46203622221946716,
0.315899133682251,
-0.48035362362861633,
0.6334397792816162,
-0.6186771988868713,
-0.07146736234426498,
0.7100659608840942,
-0.40603765845298767,
-0.03534094616770744,
0.07367557287216187,
0.3922985792160034,
0.6577486991882324,
0.8594300746917725,... |
async def async _ set _ cover _ position ( self, * * kwargs ) : position = kwargs. get ( attr _ position ) set _ req = self. gateway. const. setreq self. gateway. set _ child _ value ( self. node _ id, self. child _ id, set _ req. v _ dimmer, position, ack = 1 ) if self. gateway. optimistic : # optimistically assume th... | [
-0.6204614639282227,
0.04362446069717407,
0.382928729057312,
0.25138330459594727,
-0.33106914162635803,
0.13983352482318878,
0.039341334253549576,
-0.3029923737049103,
-0.3777974843978882,
0.4258798658847809,
-0.6414268016815186,
-0.4759151041507721,
0.24448353052139282,
0.6630715131759644... |
def isotope _ switch _ a _ little ( self, switch ) : # check if the isotopy is not possible for br in small _ tt. outgoing _ branches ( switch ) : if self. is _ branch _ collapsed ( br ) : return for cusp in small _ tt. outgoing _ cusps ( switch ) : if self. is _ cusp _ collapsed ( cusp ) : return self. begin _ switch ... | [
-0.2900187373161316,
-0.15952739119529724,
0.8674506545066833,
-0.41132214665412903,
-0.03356488049030304,
0.2706930339336395,
0.37143123149871826,
-0.5220386385917664,
0.7168719172477722,
0.02977248653769493,
-0.0807458683848381,
-0.9295738339424133,
-0.22991769015789032,
-0.3159072101116... |
def test _ mfa _ login ( self ) : pass | [
-0.7154441475868225,
-0.25646916031837463,
0.16056890785694122,
0.9293407797813416,
-0.1587209701538086,
0.2280418425798416,
0.7771099209785461,
-0.03571552038192749,
0.7198612093925476,
-1.5758916139602661,
-0.5605897307395935,
0.44534850120544434,
-0.08068746328353882,
-0.228011175990104... |
def union ( self, x, y ) : s _ x = self. find ( x ) s _ y = self. find ( y ) ls _ x = s _ x. size ( ) ls _ y = s _ y. size ( ) if self. h and ls _ x > ls _ y : self. unionh ( s _ x, s _ y ) else : self. unionh ( s _ y, s _ x ) | [
-0.16363616287708282,
0.09432871639728546,
0.6725249886512756,
0.09167513996362686,
0.20411188900470734,
0.14520800113677979,
-0.4761255383491516,
-0.5543131828308105,
-0.007292341440916061,
-0.004201833158731461,
-0.44726279377937317,
0.2549992501735687,
0.20617809891700745,
0.17948421835... |
def type ( self ) - > optional [ pulumi. input [ str ] ] : return pulumi. get ( self, " type " ) | [
0.8103295564651489,
0.5675862431526184,
0.3442249298095703,
0.488986611366272,
1.547010064125061,
1.2760064601898193,
0.22838342189788818,
-0.6121605634689331,
1.0448805093765259,
-0.04402422532439232,
0.3382732570171356,
0.9727432727813721,
-0.3952687382698059,
-1.0635545253753662,
-0.2... |
def _ createnurbs ( self ) : for crv in [ [ " hip ", " knee " ], [ " knee ", " foot " ] ] : limb _ points = self. _ getcurvepositions ( crv [ 0 ], crv [ 1 ] ) limb _ crv = mc. curve ( n = self. guides [ crv [ 0 ] ] [ 0 ]. replace ( " guide ", " crv " ), p = limb _ points, d = 3 ) limb _ crv _ offset = mc. offsetcurve (... | [
0.2859184741973877,
-0.015452532097697258,
0.7129244208335876,
-0.537761390209198,
0.4324752390384674,
1.0253721475601196,
0.3703977167606354,
-0.18311291933059692,
-0.17458707094192505,
-0.4166441857814789,
-0.20193685591220856,
0.4121936857700348,
-0.1695682555437088,
0.33201631903648376... |
def get ( self, name : str ) - > job : if not isinstance ( name, str ) : raise usererrorexception ( f " { name } is a invalid input for client. jobs. get ( ). " ) job _ object = self. _ get _ job ( name ) if not _ is _ pipeline _ child _ job ( job _ object ) : job = job. _ from _ rest _ object ( job _ object ) if job _... | [
0.37824422121047974,
-0.17822180688381195,
0.5661372542381287,
0.3134574592113495,
-0.5065529346466064,
-0.10396740585565567,
-0.4900590479373932,
-0.6708024740219116,
-0.6250073313713074,
-0.6490684151649475,
0.18301954865455627,
0.4806433916091919,
-0.7642295956611633,
-0.481219440698623... |
def run ( raw _ data = none, experiment = none, prm = none, probe = none ) : assert experiment is not none, ( " an experiment instance needs to be " " provided in order to write the output. " ) # create file logger for the experiment. logger _ file = create _ file _ logger ( experiment. gen _ filename ('log') ) # get p... | [
0.31286609172821045,
-0.25688406825065613,
0.9545936584472656,
-0.3849574625492096,
-0.19760844111442566,
-0.2817419767379761,
-0.023358678445219994,
0.6569410562515259,
-0.283513605594635,
-0.005641788709908724,
0.40860530734062195,
0.8930015563964844,
0.1348629891872406,
0.16798137128353... |
def register _ link ( cls, link _ name : str, linked _ class : type ['base'], table : table, key : str, attribute : str, cardinality :'cardinality') - > none : base = cls. association _ base ( ) if not base. registered _ links : base. registered _ links = { } base. registered _ links [ link _ name ] = registeredlink ( ... | [
-1.0309687852859497,
0.37022262811660767,
0.42838776111602783,
0.8400312662124634,
1.377060055732727,
-0.4081542491912842,
-0.44888147711753845,
0.7035639882087708,
-0.12842383980751038,
-1.1617721319198608,
-0.5350290536880493,
0.7310528755187988,
0.45232418179512024,
0.6074082851409912,
... |
def identity _ map ( cls, report _ aggregation ) : identity = super ( basereportdimension, cls ). identity _ map ( report _ aggregation ) identity ['dimension _ id'] = report _ aggregation. dimension _ id return identity | [
0.3783096671104431,
-0.08549914509057999,
0.31920674443244934,
0.4955993890762329,
1.0050171613693237,
0.5063973665237427,
0.5166559815406799,
0.4095989763736725,
-0.0022682282142341137,
0.03236312046647072,
-0.0765405222773552,
-0.07248175889253616,
0.2082953155040741,
-0.2365980744361877... |
def test _ all _ by _ study ( self ) : pass | [
0.16396464407444,
-0.28195011615753174,
0.37673336267471313,
1.7450281381607056,
0.015651583671569824,
0.961615800857544,
0.9655478596687317,
-0.6673864126205444,
1.182089924812317,
-0.9939815998077393,
-0.11219127476215363,
0.494703471660614,
0.04693875089287758,
0.6794065833091736,
-1.... |
def manage _ channel _ filter ( ) : if cfg. conf. standalone : return flask. jsonify ( {'status': false,'code':'the standalone mode does not support channel filter function'} ) if flask. request. method in ['post ','delete'] : filter _ dict = flask. request. get _ json ( ) if flask. request. method = ='post': for item ... | [
-1.0217386484146118,
-0.8128775358200073,
0.8339464664459229,
0.05203385651111603,
0.20914363861083984,
-0.38668006658554077,
-0.7593076825141907,
-0.05237841233611107,
-0.25541582703590393,
0.4356856048107147,
0.3968975245952606,
1.3486475944519043,
-0.5936893820762634,
0.9100045561790466... |
def sign _ in ( ) : global username, email, message email = request. forms. mail pwd _ 1 = request. forms. pwd mailadress = email + ". txt " if mailadress in listdir ( " user " ) : f = codecs. open ( " user / " + email + ". txt ", " r ", " utf - 8 " ) text _ file = f. readlines ( ) pwd _ 2 = text _ file [ 2 ]. replace ... | [
0.24606281518936157,
-0.3805627226829529,
0.5021879076957703,
-0.20855817198753357,
-0.9496668577194214,
0.30286505818367004,
0.13699810206890106,
0.5541863441467285,
-0.9310727715492249,
0.26606786251068115,
-0.753696084022522,
-0.7831517457962036,
-0.06863519549369812,
0.5162192583084106... |
def _ normalized _ distro _ name ( distro ) : distro = distro. lower ( ) if distro. startswith ( ('redhat ','red hat') ) : return'redhat'elif distro. startswith ( ('scientific ','scientific linux') ) : return'scientific'elif distro. startswith ( ('suse ','opensuse') ) : return'suse'elif distro. startswith ('centos') : ... | [
-0.35395902395248413,
-0.11177711933851242,
0.5799315571784973,
-0.21538154780864716,
-1.081091284751892,
0.8932824730873108,
-0.6535438895225525,
-0.15005803108215332,
-0.1553470343351364,
0.3636377453804016,
0.12853950262069702,
-0.25036442279815674,
-0.015221841633319855,
0.525676906108... |
def insertvalues ( self, parse _ args _ id, parse _ args _ name ) : self. cursor. execute ( " insert into channels values ( { },'{ }') ". format ( parse _ args _ id, parse _ args _ name ) ) | [
-0.23291978240013123,
0.5574828386306763,
0.4527101516723633,
-1.0165364742279053,
1.488793969154358,
0.29911476373672485,
-0.805790364742279,
-0.2619670331478119,
-1.7591952085494995,
0.24064764380455017,
-0.1662837713956833,
-0.08733806014060974,
-1.4809930324554443,
0.27470138669013977,... |
def run _ video _ appx _ rank _ pooling ( video _ path, outdir, img _ ext = '. jpg ', buffer _ size = 24, ) : def _ run _ appx _ rank _ pooling ( frames, outpath ) : rank _ pooled = cvapproxrankpooling ( frames ) cv2. imwrite ( outpath, rank _ pooled ) arp _ name _ tmpl ='arp _ { : 05d }'+ img _ ext safe _ mkdir ( outd... | [
-0.28704655170440674,
-0.5587748289108276,
0.6969705820083618,
0.9619295597076416,
-0.6123659610748291,
0.23709021508693695,
0.6204159259796143,
-0.2802477180957794,
0.8353899121284485,
-0.4278838634490967,
-0.038054823875427246,
1.1527740955352783,
0.3705313801765442,
0.5335610508918762,
... |
def gettimefromtimestamp ( self, timestamp ) : # datetime. datetime. fromtimestamp ( int ( candles [ - 1 ] [ 0 ] ) ). strftime ('% y - % m - % d % h : % m : % s') return datetime. datetime. fromtimestamp ( int ( timestamp ). strftime ('% y - % m - % d % h : % m : % s') ) | [
0.11062884330749512,
-0.21833939850330353,
0.963248610496521,
-0.7239877581596375,
-0.26708897948265076,
-0.8192068338394165,
-0.8002834320068359,
-0.5791639685630798,
0.685998797416687,
1.1916155815124512,
-0.032589443027973175,
-0.5984070897102356,
-0.031797006726264954,
-0.7455574274063... |
def parse _ commandline ( ) : parser = argparse. argumentparser ( ) parser. add _ argument ('- v ','- - version ', action ='version ', version = _ _ version _ _ ) parser. add _ argument ( " - o ", " - - outputdir ", default = ".. / output " ) parser. add _ argument ( " - p ", " - - plotdir ", default = ".. / plots " ) ... | [
1.0299551486968994,
-1.0009969472885132,
1.0894299745559692,
-0.16978801786899567,
0.48296138644218445,
0.3098219931125641,
0.6348024010658264,
0.059074968099594116,
-0.2906405031681061,
-0.5193498134613037,
-0.6724150776863098,
0.1428806483745575,
-0.5773108005523682,
0.46950748562812805,... |
def fed _ tax ( self ) : return self. _ fed _ tax | [
0.7902037501335144,
0.43291765451431274,
0.3555607497692108,
-1.1215463876724243,
0.7537336945533752,
0.3366493880748749,
0.36976146697998047,
-1.8357009887695312,
-0.6293403506278992,
-0.8182903528213501,
-0.8900214433670044,
1.0623104572296143,
-0.1837911605834961,
-0.36615270376205444,
... |
def _ get _ user _ repos ( self ) : url = " % s / user / repos " % self. _ api _ url data = { " affiliation " : [ " owner ", " collaborator " ] } repo _ data = self. get _ all _ pages ( url, data ) owner _ repo = [ ] if repo _ data : for repo in repo _ data : owner _ repo. append ( " % s / % s " % ( repo ['owner'] ['lo... | [
-0.8424310088157654,
0.43661946058273315,
0.6224972605705261,
0.42125508189201355,
0.2966946065425873,
-0.13263705372810364,
-0.19154050946235657,
-0.3602140247821808,
0.6974405646324158,
0.04373439773917198,
0.17378857731819153,
-0.1627667397260666,
0.6522904634475708,
-0.3866136074066162... |
def _ _ getitem _ _ ( self, index ) : return self. _ items [ index ] | [
-0.8700445294380188,
-0.29323434829711914,
0.1452805995941162,
-0.9716039299964905,
0.1067095547914505,
-0.02127843350172043,
0.02715674601495266,
-1.350537657737732,
-0.20292247831821442,
-0.8714349865913391,
-0.02484901435673237,
0.29747942090034485,
0.4240330457687378,
-1.46006536483764... |
def afbeelding ( self ) : return self. _ afbeelding. get _ waarde ( ) | [
0.3012057840824127,
1.3958863019943237,
0.3020758330821991,
-0.10890946537256241,
-0.08700956404209137,
0.17761829495429993,
1.094519019126892,
-0.18456463515758514,
-0.21172279119491577,
-1.0730172395706177,
0.4055034816265106,
0.9596638679504395,
-1.1130242347717285,
0.7881728410720825,
... |
def write ( self, string : str ) : if string is'' : return if len ( string ) = = 1 : self. x _ position + = self. checkbounds ('x') self. screen. addch ( self. y _ position, self. x _ position, string ) else : for char in string : self. x _ position + = self. checkbounds ('x') self. screen. addch ( self. y _ position, ... | [
-0.6616391539573669,
-0.16145791113376617,
0.46799618005752563,
0.20760305225849152,
0.6342239379882812,
0.5553094744682312,
0.6679563522338867,
-0.614075243473053,
0.8476125001907349,
-0.15724758803844452,
-0.22569140791893005,
0.21590523421764374,
-0.6813690662384033,
0.03800267726182937... |
def d _ print ( level, * args, * * kwargs ) : if not isinstance ( level, int ) : print ( level, * args, * * kwargs ) elif debug > = level : print ( * args, * * kwargs ) | [
-0.4588451683521271,
0.3631759285926819,
0.6446470022201538,
0.06839275360107422,
0.18427208065986633,
0.10740089416503906,
-0.9480237364768982,
-1.279056429862976,
-0.35122889280319214,
-0.9545391201972961,
0.49889618158340454,
0.7075148820877075,
-0.8194881677627563,
1.148427963256836,
... |
def normalize _ parameters ( params ) : # the parameters collected in ` section 3. 4. 1. 3 ` _ are normalized into a # single string as follows : # #.. _ ` section 3. 4. 1. 3 ` : http : / / tools. ietf. org / html / rfc5849 # section - 3. 4. 1. 3 # 1. first, the name and value of each parameter are encoded # ( ` sectio... | [
-0.14420056343078613,
-0.7783787846565247,
0.7650620937347412,
-0.8479296565055847,
-0.692962646484375,
0.27299773693084717,
-0.1649034172296524,
-0.383516788482666,
0.3498769700527191,
1.0851893424987793,
0.3822755217552185,
0.45803868770599365,
-0.39583730697631836,
-0.06717497110366821,... |
def fold _ in _ small ( self, folded _ branch, fold _ onto _ branch, fold _ direction ) : # trying to isotope the endpoint of ` ` fold _ onto _ branch ` ` as close to # the start point as possible... small _ tt = self. _ small _ tt end _ sw = small _ tt. branch _ endpoint ( fold _ onto _ branch ) start _ sw = small _ t... | [
0.16212311387062073,
0.02075156383216381,
0.8855724930763245,
0.3319932818412781,
-0.6957463622093201,
0.672090470790863,
-0.1496388167142868,
-0.22624628245830536,
0.15894220769405365,
-0.28994929790496826,
-0.34693723917007446,
-0.3267964720726013,
0.02584991790354252,
-0.150009498000144... |
def _ divmod ( a, b ) : da, db = a. denominator, b. denominator div, n _ mod = divmod ( a. numerator * db, da * b. numerator ) return div, fraction ( n _ mod, da * db ) | [
-0.41935524344444275,
0.10102953016757965,
0.5241659283638,
-0.22217334806919098,
0.18784119188785553,
-0.4761146306991577,
-0.3803211748600006,
-0.4868912696838379,
-0.07226625084877014,
-0.6804803609848022,
1.0389865636825562,
0.10336266458034515,
0.7801179885864258,
0.2181723713874817,
... |
def load _ verbs ( self, verbs _ hyp : list [ str ], verbs _ eds : list [ str ], ) - > list [ str ] : classic _ verbs = get _ verbs ( verbs _ eds ) classic _ verbs = classic _ verbs. loc [ classic _ verbs [ " mode " ] = = " conditionnel " ] list _ classic _ verbs = list ( classic _ verbs [ " term " ]. unique ( ) ) hypo... | [
-0.5535159707069397,
-0.17769497632980347,
0.5889586210250854,
0.008366209454834461,
0.4427434504032135,
0.5813702344894409,
-0.8250997066497803,
0.9535019993782043,
-0.305512398481369,
0.9357543587684631,
0.3286833167076111,
0.5590806007385254,
0.28477585315704346,
0.20447057485580444,
... |
def test _ edit _ specimen _ taxonomy _ logged _ in ( self ) : with app. test _ client ( ) as client : client. post ( " / login ", data = { " username " : " tester1 ", " password " : " password1 " }, follow _ redirects = true, ) resp = client. get ( " / specimen / 12 / edit _ taxonomy " ) html = resp. get _ data ( as _... | [
-0.23099428415298462,
-0.5462306141853333,
0.5592473745346069,
0.4879224896430969,
0.4922184646129608,
0.1481410413980484,
0.6839271783828735,
0.42009586095809937,
-0.15091769397258759,
-0.42489299178123474,
-0.4012790620326996,
0.699209988117218,
0.47610706090927124,
-0.4620813727378845,
... |
def ip _ command ( reliability : str, should _ error : bool ) - > list [ commandresults ] : ips = demisto. args ( ). get ('ip ','1. 1. 1. 1') rate _ limit _ retry _ count : int = int ( get _ param _ or _ arg ('rate _ limit _ retry _ count ','rate _ limit _ retry _ count') or rate _ limit _ retry _ count _ default ) rat... | [
-0.6589203476905823,
0.43467071652412415,
0.8983511328697205,
0.08147671818733215,
0.7709484100341797,
-0.2914119362831116,
0.13703161478042603,
0.2686936855316162,
-0.5123594403266907,
1.0694713592529297,
0.6438356637954712,
-0.5569024682044983,
0.05933346599340439,
-1.1075124740600586,
... |
def avancer ( self ) : self. x + = robot. _ dx [ self. direction ] self. y + = robot. _ dy [ self. direction ] | [
-0.4500609040260315,
-0.4151020050048828,
0.6127945780754089,
-1.2566803693771362,
0.20088081061840057,
-0.0744549110531807,
-0.10743329674005508,
0.25928792357444763,
-0.07907212525606155,
0.14152689278125763,
0.17467594146728516,
0.9716367125511169,
0.9069789052009583,
0.2411861419677734... |
async def get _ server _ info ( ) : return info ( current _ version = get _ version ( ), last _ supported _ version = get _ version ( ) ) | [
-0.1587931364774704,
-0.3352080285549164,
0.26251518726348877,
0.17338146269321442,
-0.03360501676797867,
-0.3692450523376465,
-0.7503735423088074,
-0.013512182980775833,
-0.6416358947753906,
0.586118221282959,
-0.46482694149017334,
0.7976811528205872,
-0.05260713770985603,
-0.078843668103... |
def remove _ qc _ rejects ( self ) : reject _ visits = self. qc _ reject _ ser. index [ self. qc _ reject _ ser ]. tolist ( ) orig _ rej _ cnt = len ( reject _ visits ) self. qc _ rejects _ excluded = true # flag for counts method # generate list of subjects to be rejected from subjid indexed df's reject _ subjids = [ ... | [
0.2479245364665985,
0.4718931317329407,
0.7368268370628357,
-0.6146758198738098,
-0.720423698425293,
0.23741573095321655,
1.0304350852966309,
-0.011817514896392822,
-0.13219302892684937,
0.35620811581611633,
0.4689241051673889,
0.710218608379364,
-0.5395505428314209,
-0.8506739139556885,
... |
def save _ exchange _ symbols ( exchange _ name, assets, is _ local = false ) : asset _ dicts = dict ( ) for symbol in assets : asset _ dicts [ symbol ] = assets [ symbol ]. to _ dict ( ) filename = get _ exchange _ symbols _ filename ( exchange _ name, is _ local ) with open ( filename,'wt') as handle : json. dump ( a... | [
-1.1886905431747437,
-0.35544994473457336,
0.4128818213939667,
-1.1883680820465088,
0.3355344533920288,
-0.11984726041555405,
0.31047821044921875,
-0.27011269330978394,
-0.053859416395425797,
0.9005755186080933,
-1.5468369722366333,
-0.04136901721358299,
0.5409421324729919,
0.1069930493831... |
def responsiveness _ vs _ spontaneous ( self ) : if self. _ responsiveness _ vs _ spontaneous is none : self. _ responsiveness _ vs _ spontaneous, pd _ stim, pd _ spont = self. _ calc _ spont _ p _ values ( ) return self. _ responsiveness _ vs _ spontaneous, pd _ stim, pd _ spont | [
-0.127328559756279,
-0.25730255246162415,
0.3769054412841797,
0.3242776691913605,
-0.06723348051309586,
0.26777738332748413,
0.8832045197486877,
-0.14328621327877045,
-0.03030838444828987,
-0.7117460370063782,
-0.42292359471321106,
0.040896225720644,
-0.5311731100082397,
0.1291716396808624... |
def this _ is _ entrance ( ) : with picamera ( ) as camera : camera. resolution = ( 320, 240 ) camera. framerate = 24 camera. hflip = true camera. vflip = true rawcapture = pirgbarray ( camera, size = ( 320, 240 ) ) time. sleep ( 0. 1 ) # 一 for frame in camera. capture _ continuous ( rawcapture, format = " bgr ", use _... | [
-0.6089831590652466,
-0.10557260364294052,
1.0583226680755615,
1.658703327178955,
0.26486313343048096,
0.5374483466148376,
0.7568086981773376,
-0.18180754780769348,
0.17478503286838531,
0.3146229386329651,
-0.38680437207221985,
0.7280498743057251,
-0.4632103741168976,
1.2486627101898193,
... |
def osi ( orivals, tuning ) : if len ( orivals ) = = 0 or len ( orivals )! = len ( tuning ) : warnings. warn ('orivals and tunings are of different lengths') return np. nan tuning _ sum = tuning. sum ( ) if tuning _ sum = = 0. 0 : return np. nan cv _ top = tuning * np. exp ( 1j * 2 * orivals ) return np. abs ( cv _ top... | [
-0.9960979223251343,
0.6712640523910522,
0.6487059593200684,
0.4999805688858032,
-1.0996390581130981,
-0.2667924761772156,
0.2296675145626068,
-0.5538570880889893,
0.4376165270805359,
1.508858561515808,
0.5797473192214966,
0.4073832333087921,
-0.17738550901412964,
-1.0274605751037598,
0.... |
def _ get _ bearer _ token ( consumer _ key, consumer _ secret, force _ refresh = false ) : if not force _ refresh : # first check if there is a cached token cached _ token = memcache. get ( twitter _ api _ token ) if cached _ token : return cached _ token # then check the datastore cached _ token = apitoken. get _ by ... | [
0.353447288274765,
-0.21376203000545502,
0.8162170052528381,
-0.41304242610931396,
0.15216879546642303,
-0.8093472123146057,
-0.6208339929580688,
0.4629891812801361,
0.3625468909740448,
0.09308290481567383,
-0.6717347502708435,
0.7748472690582275,
-0.3162771761417389,
0.17573818564414978,
... |
def fetch _ new _ item ( location, category, start _ time = " ", end _ time = " ", coordinate _ str = none, disallowed _ yelp _ ids = [ ] ) : yelp _ id, item _ name = best _ yelp _ id _ with _ name ( location, category, coordinate _ str = coordinate _ str, disallowed _ yelp _ ids = disallowed _ yelp _ ids ) item = item... | [
0.44656050205230713,
-0.8294903635978699,
0.47141245007514954,
0.7679509520530701,
-0.5263990163803101,
0.5366445183753967,
-1.3306418657302856,
-0.044954609125852585,
-1.0115854740142822,
0.23315103352069855,
-0.08156846463680267,
0.8513611555099487,
0.4990852475166321,
-0.208155557513237... |
def creationdfclustering ( available _ database ) : d = { } grouped = available _ database [ ( available _ database. num _ connection = = 1 ) ] filtered = grouped. groupby ('id _ eleve') for student, student _ groupby in filtered : # we first add the student d [ student ] = [ student ] student _ data = available _ data... | [
-0.2614961862564087,
0.3769907057285309,
0.5977288484573364,
-0.735375702381134,
0.06619245558977127,
0.4442651867866516,
0.31003648042678833,
0.2069278061389923,
-0.7127460241317749,
0.14883151650428772,
0.6950778365135193,
0.021960588172078133,
0.04965414106845856,
-0.08506547659635544,
... |
def test _ calculation _ quantile ( split _ frac, expected ) : df = pd. dataframe ( { " a " : [ it for it in range ( 0, 101 ) ], " b " : [ it for it in range ( 0, 101 ) ] } ) test = drophighpsifeatures ( split _ col = " a ", split _ frac = split _ frac, split _ distinct = false ) test. fit _ transform ( df ) assert tes... | [
-0.28742480278015137,
0.8056322336196899,
0.5232787132263184,
-0.0670737624168396,
0.9046454429626465,
-0.28761163353919983,
0.7617719769477844,
1.0004377365112305,
0.08243050426244736,
-0.28042855858802795,
-0.5606452226638794,
-0.5517664551734924,
-0.0665605291724205,
-1.008461594581604,... |
def _ _ repr _ _ ( self ) : return " node ('{ 0 } ','{ 1 }') ". format ( self. node, self. attrs ) | [
-1.0770291090011597,
-1.0607503652572632,
0.38133782148361206,
-1.553564190864563,
-0.4723341464996338,
0.2114875614643097,
-0.31038087606430054,
0.43405887484550476,
-0.02319938689470291,
0.08937132358551025,
0.6338996887207031,
1.4125744104385376,
0.5896657705307007,
-0.29084932804107666... |
def test _ list _ decimal _ min _ length _ 2 _ nistxml _ sv _ iv _ list _ decimal _ min _ length _ 3 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - minlength - 3. xsd ", instance = " nistdata / list / ... | [
-0.2534893751144409,
-0.21927550435066223,
0.6063689589500427,
0.6618092060089111,
-0.23721644282341003,
0.34166815876960754,
-0.8540651202201843,
0.16978853940963745,
1.397251844406128,
0.09861679375171661,
-0.8989523649215698,
0.10651624947786331,
-0.12421464174985886,
-0.070187404751777... |
def second ( self, * * kwargs ) : self. _ second = dict ( kwargs ) | [
0.2581993639469147,
-0.30678215622901917,
0.31087639927864075,
-0.1532951444387436,
-0.2828570306301117,
-0.7974817156791687,
-0.21908147633075714,
-0.7312690615653992,
-1.1199597120285034,
-0.41766849160194397,
-2.2606427669525146,
0.30003562569618225,
-0.3003534972667694,
0.8778207898139... |
def lines _ columns _ values ( ) : while true : try : lines = int ( input ( " enter the number of lines of the board ( at least 4 ) : " ) ) columns = int ( input ( " enter the number of columns of the board ( at least 4 ) : " ) ) if lines > = 4 and columns > = 4 : # minimum condition for the game to be functional break... | [
0.2918177545070648,
-0.35441717505455017,
0.6218183040618896,
0.0039555663242936134,
-0.271365225315094,
0.7510657906532288,
0.1314653903245926,
-0.7956072092056274,
-1.1223385334014893,
-1.089465856552124,
0.3961780369281769,
-0.2061876505613327,
-0.1412258893251419,
-0.017582926899194717... |
def show _ icon ( self ) : try : import unicornhat, signal except importerror : logger. info ('could not import modules to show messages on unicorn.') return unicornhat. set _ pixels ( self. icon ) unicornhat. show ( ) signal. pause ( ) | [
0.6345028877258301,
0.26625365018844604,
0.25956717133522034,
0.09349676221609116,
-0.07136538624763489,
0.5230294466018677,
1.490211844444275,
0.3977998197078705,
0.051136985421180725,
0.40842169523239136,
-0.3091897666454315,
0.351019948720932,
0.2126072496175766,
0.00924681220203638,
... |
def population ( count, length, minimun, maximum ) : return [ individual ( length, minimun, maximum ) for i in range ( count ) ] | [
-0.3673607110977173,
-0.36392056941986084,
0.23461103439331055,
0.4670853614807129,
-0.08820126950740814,
1.0014582872390747,
-1.0057350397109985,
0.5788784623146057,
-0.21348661184310913,
0.42306187748908997,
-1.0695325136184692,
0.4524211883544922,
0.003066757693886757,
-1.59112071990966... |
def update _ algo _ parameter ( self, parameter _ name, new _ parameter _ value ) : self. update _ worker. update _ algo _ parameter ( parameter _ name, new _ parameter _ value ) | [
-0.825897753238678,
-0.8713420629501343,
0.45786410570144653,
-0.2951357662677765,
-0.8458295464515686,
0.6025286316871643,
0.2780168950557709,
-0.008831143379211426,
-0.7997516393661499,
2.183443307876587,
-0.3489227294921875,
1.435198426246643,
-0.1309940218925476,
0.1353488266468048,
... |
def itksubtractconstantfromimagefilterid3did3 _ superclass _ cast ( * args ) : return _ itksubtractconstantfromimagefilterpython. itksubtractconstantfromimagefilterid3did3 _ superclass _ cast ( * args ) | [
1.175482153892517,
0.6286983489990234,
0.3876553177833557,
-1.0486620664596558,
-0.7575087547302246,
1.0578572750091553,
-0.6919475197792053,
0.9115938544273376,
1.1271083354949951,
0.16626198589801788,
-1.3192775249481201,
-0.033569131046533585,
-0.4033515751361847,
-1.0982228517532349,
... |
def spawn ( self ) : print _ notify ( " performing " + str ( self. nprocesses ) + " concurrent fits. " ) procs = [ ] for ind in range ( self. nprocesses ) : procs. append ( mp. process ( target = self. perform _ fits ) ) try : for proc in procs : proc. start ( ) except ( keyboardinterrupt, systemexit, runtimeerror ) : ... | [
0.05775902047753334,
-0.6803156137466431,
0.666047215461731,
0.5667973160743713,
1.2079578638076782,
0.07098067551851273,
0.5072782039642334,
-0.3757719099521637,
0.14974814653396606,
-0.5011664628982544,
0.5440009236335754,
0.24931803345680237,
-0.5229748487472534,
0.18358339369297028,
... |
def parse _ bin _ elements ( bin _ string, bin _ type = none ) : if bin _ type not in ( none,'float ','int') : raise valueerror ('invalid bin type ; bin _ type must be unspecified or set as " float " or " int "') bin _ string = validate _ bin _ string ( bin _ string ) parsed _ string = bin _ parser. match ( bin _ strin... | [
-0.38595613837242126,
-0.5645695924758911,
0.7408100962638855,
0.7434629797935486,
-0.227533221244812,
0.6254400014877319,
0.10342282056808472,
-0.30918315052986145,
-0.527605414390564,
-0.10677889734506607,
-0.5645673871040344,
0.714664101600647,
-0.714385449886322,
0.6533219218254089,
... |
def _ _ init _ _ ( self ) : self. tablesize = 1000 self. table = [ [ ] for _ in range ( self. tablesize ) ] | [
0.3551045358181,
0.4044845402240753,
0.500813364982605,
0.8885958790779114,
-0.29727914929389954,
0.08625394105911255,
0.2415873408317566,
0.31012821197509766,
0.017331378534436226,
-0.2562980055809021,
-1.2575430870056152,
0.5197203755378723,
-0.060434579849243164,
1.3061517477035522,
-... |
def setmodel ( self, model = none ) : if model is not none : self. _ model = model self. _ entitiesmodel. populate ( self. _ model. getentities ( ). values ( ) ) self. _ scenegraphmodel. populate ( self. getscenegraphroot ( ) ) if self. _ view is not none : self. _ view. scenegraphview. setmodel ( self. _ scenegraphmod... | [
-0.36634212732315063,
0.3002757728099823,
0.37697649002075195,
0.263895720243454,
0.24114000797271729,
0.04336242750287056,
0.20989692211151123,
0.11997945606708527,
-0.036935944110155106,
-0.4563393294811249,
-0.10520322620868683,
-0.2568872272968292,
0.1110813170671463,
0.846924006938934... |
def cloud _ platform ( self ) : return self. _ cloud _ platform | [
0.6511276960372925,
0.2269328236579895,
0.2185267060995102,
0.10118777304887772,
0.3224147856235504,
0.841821014881134,
0.858533501625061,
-1.2552739381790161,
-0.23388394713401794,
-0.837043821811676,
-0.368902325630188,
0.18335667252540588,
-0.5608879923820496,
-0.2201124131679535,
-0.... |
def get _ interfaces _ ip ( self ) : interfaces = { } command = " show interface " show _ ip _ interface = self. _ send _ command ( command ) internet _ address = r " \ s + (? : internet address is | secondary address is ) " internet _ address + = r " (? p < ip > { } ) / (? p < prefix > \ d + ) ". format ( ipv4 _ addr ... | [
-0.5906447768211365,
0.45414701104164124,
0.7897212505340576,
-0.4109437167644501,
-0.4045202136039734,
-0.7473666667938232,
0.3852100968360901,
0.18841052055358887,
-0.30089738965034485,
0.3557352125644684,
-1.0288479328155518,
0.0934995710849762,
-0.674839198589325,
-0.08096732944250107,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.