text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def apply ( self, func, * args, num _ splits = none, other _ axis _ partition = none, * * kwargs ) : if num _ splits is none : num _ splits = len ( self. list _ of _ blocks ) if other _ axis _ partition is not none : return [ pyarrowonraydataframepartition ( obj ) for obj in deploy _ ray _ func _ between _ two _ axis _... | [
0.1256769597530365,
0.0754752978682518,
0.8786599040031433,
0.7337089776992798,
0.06204312667250633,
-0.7361507415771484,
0.39043283462524414,
0.1212640330195427,
0.25678807497024536,
0.19956472516059875,
-0.24950988590717316,
0.4585411846637726,
-0.25241005420684814,
-0.18038970232009888,... |
def save _ once ( model ) : if not getattr ( model,'_ saved ', false ) : model. save ( ) model. _ saved = true | [
-0.9940516948699951,
0.5727667808532715,
0.5484364032745361,
-0.2047165334224701,
0.5756926536560059,
-0.010348650626838207,
0.17331041395664215,
-0.643778920173645,
-0.30531442165374756,
0.21711595356464386,
-1.7475237846374512,
-1.3761385679244995,
-0.20354069769382477,
1.229207515716552... |
def get _ business _ details ( self, bearer _ token, business _ id ) : business _ path _ full = self. business _ path + business _ id return self. request ( self. api _ host, business _ path _ full, bearer _ token ) | [
-0.07961530983448029,
0.05208943411707878,
0.5048304796218872,
1.7077444791793823,
1.178225040435791,
0.312591016292572,
-1.1706781387329102,
-0.9188559055328369,
0.03776361048221588,
-0.4414215087890625,
-0.2300250083208084,
2.0840401649475098,
-1.0150967836380005,
0.48918765783309937,
... |
def test _ single _ watch _ period _ failure ( self ) : self. expect _ get _ statuses ( ) self. expect _ health _ check ( 0, true ) self. expect _ health _ check ( 1, true ) self. expect _ health _ check ( 2, true, num _ calls = self. expected _ cycles - 1 ) self. expect _ health _ check ( 2, false, num _ calls = 1 ) s... | [
-0.020899899303913116,
1.068902850151062,
0.49659794569015503,
0.6838430762290955,
1.3690593242645264,
1.1734557151794434,
0.9320690035820007,
-0.41360893845558167,
-0.20415370166301727,
-0.7886397838592529,
0.0024711848236620426,
0.565841794013977,
-0.2788480818271637,
0.16110675036907196... |
def cmtyevolutionfilebatch ( * args ) : return _ snap. cmtyevolutionfilebatch ( * args ) | [
0.26712626218795776,
-0.31275463104248047,
0.3490000069141388,
0.3557293713092804,
0.47946807742118835,
0.32294583320617676,
0.29476165771484375,
0.15504427254199982,
-0.7629247307777405,
-0.5905428528785706,
0.03545529767870903,
-0.533591091632843,
-0.021662939339876175,
1.203738689422607... |
def geteigenvectorcentr ( * args ) : return _ snap. geteigenvectorcentr ( * args ) | [
-0.5148204565048218,
-0.37605616450309753,
0.0982455238699913,
0.4841461181640625,
0.6975598931312561,
0.12236099690198898,
0.88741135597229,
0.4612952768802643,
0.00788514781743288,
-0.20978866517543793,
0.638452410697937,
-0.7177162170410156,
-0.32572346925735474,
1.2414039373397827,
0... |
def getni ( self, * args ) : return _ snap. pngraph _ getni ( self, * args ) | [
0.012170637957751751,
1.0173479318618774,
0.46124961972236633,
0.9484100937843323,
1.442299485206604,
-1.520772099494934,
0.1847103387117386,
-1.636073112487793,
-0.755918025970459,
-0.4387625753879547,
-1.4654924869537354,
-0.9608796238899231,
-0.4809756875038147,
-0.8198469877243042,
0... |
def test _ example _ input _ one _ required _ field _ object _ fields ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) input _ page. create _ new _ input. select ( " example input one " ) input _ page. ... | [
-0.8193656802177429,
0.06319867074489594,
0.6591906547546387,
0.333263099193573,
0.5259423851966858,
1.2053489685058594,
0.6634737253189087,
-0.2686416208744049,
0.0898570567369461,
0.49530085921287537,
-1.6488127708435059,
-0.36960703134536743,
-0.3089633584022522,
-0.0096459174528718,
... |
def test _ parameter _ check _ fit _ parameters ( ) : with pytest. raises ( typeerror ) : parameter _ check ( ['a'], sim = false ) | [
0.18482431769371033,
0.8032983541488647,
0.3885967433452606,
1.2902331352233887,
0.8918828964233398,
0.9282472133636475,
0.4905562400817871,
0.3021140396595001,
0.4101712107658386,
0.6108366847038269,
0.153422012925148,
0.5366691946983337,
-1.1409612894058228,
0.7897341847419739,
-0.5265... |
def test _ would _ schedule _ active ( self, app _ setup _ to _ add _ job ) : schedule _ 1 = models. schedule ( schedule _ type = constants. schedule _ hourly, start _ time = self. start _ time _ beautifully, * * self. active _ schedule _ skeleton ) db. session. add ( schedule _ 1 ) db. session. commit ( ) schedule _ 2... | [
-0.027901658788323402,
-0.1497618854045868,
0.5823925137519836,
0.49054399132728577,
0.5022696852684021,
0.37974420189857483,
-0.08559352159500122,
0.3682381510734558,
-0.11185017228126526,
0.10573992133140564,
-0.3716202974319458,
-0.3965706527233124,
-0.3744409382343292,
-0.3217272460460... |
def extract _ source ( url, driver ) : driver. get ( url ) time. sleep ( 5 ) source = driver. page _ source return source | [
-0.5854370594024658,
0.727090060710907,
0.3456864356994629,
0.33529818058013916,
0.22531142830848694,
-1.45070219039917,
0.7881371378898621,
0.3952202796936035,
0.5423228144645691,
0.7158641219139099,
-0.7991987466812134,
-0.967068076133728,
-0.8888100385665894,
-0.029321612790226936,
1.... |
def main ( a _ argv ) : argparser = argparse. argumentparser ( description = " " " script for extracting \ coordinatively conjoined phrases from dg trees " " " ) argparser. add _ argument ( " files ", help = " input files containing conll dg trees ", \ nargs ='*') args = argparser. parse _ args ( a _ argv ) if not args... | [
0.4457894265651703,
0.10886938124895096,
0.9526647329330444,
0.0786282867193222,
0.22750802338123322,
0.20170919597148895,
0.5272386074066162,
0.6235908269882202,
-1.1247154474258423,
0.8470041155815125,
0.2642917037010193,
-0.3011588752269745,
0.041477005928754807,
0.5546780824661255,
0... |
def tstrutil _ getwebsitenm ( * args ) : return _ snap. tstrutil _ getwebsitenm ( * args ) | [
-0.745278000831604,
0.6327721476554871,
0.06761758029460907,
0.7620851397514343,
0.3506650924682617,
-0.2239638864994049,
0.9546402096748352,
-0.33794915676116943,
-0.39638033509254456,
-0.5899593234062195,
-0.3929170072078705,
0.23155631124973297,
-0.4498275816440582,
-0.2924025058746338,... |
def convert _ to _ tab _ delimited _ data ( self, output _ filepath, seq _ column _ name ='sequence _ input ', seq _ id _ column _ name ='sequence _ id ', add _ cols = none ) : fileout = open ( output _ filepath, " w " ) header ='% s \ t % s \ t % s \ t % s \ t % s \ t % s \ t % s \ t'% ( seq _ id _ column _ name, seq ... | [
0.009063142351806164,
-0.6090975999832153,
1.1023002862930298,
-0.5456547141075134,
-0.21329247951507568,
0.12666495144367218,
-0.5847960114479065,
-0.23209357261657715,
-0.8693940043449402,
0.41360193490982056,
-0.5402960777282715,
-0.03462579473853111,
0.29713454842567444,
-0.59875893592... |
def addnumber ( self, number ) : self. number = number | [
-1.0586857795715332,
-0.08958468586206436,
0.669485867023468,
0.6324905753135681,
0.8779141902923584,
0.7752014398574829,
0.2692872881889343,
0.6522918939590454,
1.0717405080795288,
-1.2970484495162964,
-1.1327221393585205,
0.3458293378353119,
0.2714260220527649,
0.9025170803070068,
0.97... |
def _ _ init _ _ ( self, * args ) : _ snap. tnativecallbacknotify _ swiginit ( self, _ snap. new _ tnativecallbacknotify ( * args ) ) | [
0.0001278998825000599,
0.07580696046352386,
0.333429753780365,
0.5547398328781128,
-0.18158823251724243,
-0.1822853833436966,
0.26812744140625,
0.000567179115023464,
-1.030178427696228,
0.3061731457710266,
-1.3617775440216064,
-1.207479476928711,
0.6853989362716675,
0.3836366534233093,
0... |
def fit ( self, panel, y = none, fit _ intercept = true, wide _ population _ data = none ) : if wide _ population _ data is none : self. pop _ wide = dlpop. load _ wide _ population _ data _ for _ panel ( panel ) else : self. pop _ wide = wide _ population _ data pop _ long = self. pop _ wide. stack ( ) try : import st... | [
-0.04974503442645073,
0.37419360876083374,
0.8509371876716614,
0.032859254628419876,
0.09616921842098236,
0.1260712742805481,
0.7523308396339417,
-0.09913865476846695,
0.3023921549320221,
-0.02760595828294754,
-0.13282907009124756,
0.5012889504432678,
-0.535178542137146,
-0.261612951755523... |
def convex _ polygon _ intersection ( polya, polyb ) : min _ overlap = float ('inf') min _ separating _ axis = none separate _ poly = polya for axis _ poly, other _ poly in [ ( polya, polyb ), ( polyb, polya ) ] : for seg in axis _ poly. segments ( ) : axis = normal _ perp ( seg. b - seg. a ) min _ axis _ poly = 0 max ... | [
1.2550734281539917,
-1.3386571407318115,
1.2472953796386719,
0.05687607452273369,
-0.4764155447483063,
0.1191738098859787,
0.23815107345581055,
-0.5566339492797852,
0.3831944167613983,
0.22718197107315063,
-0.3353539705276489,
0.387245237827301,
-0.91865473985672,
-1.3671756982803345,
0.... |
def query _ yes _ no ( question, default = " no " ) : valid = { " yes " : " yes ", " y " : " yes ", " no " : " no ", " n " : " no " } rv = { " yes " : true, " y " : true, " no " : false, " n " : false } if default = = none : prompt = " [ y / n ] " elif default = = " yes " : prompt = " [ y / n ] " elif default = = " no ... | [
0.3716719448566437,
-0.00398364569991827,
0.6113030314445496,
0.14176751673221588,
-0.601093053817749,
-0.19994327425956726,
-0.25796568393707275,
-0.8041476607322693,
0.218789204955101,
-0.6660268306732178,
0.024400725960731506,
-0.009228621609508991,
-0.6097843647003174,
-0.7068522572517... |
def _ _ eq _ _ ( self, * args ) : return _ snap. tmodenetedgei _ _ _ eq _ _ ( self, * args ) | [
-1.651813268661499,
-0.28769755363464355,
0.17117400467395782,
-0.6661410331726074,
0.8324716091156006,
0.5466291904449463,
0.25627410411834717,
-0.12326587736606598,
-0.882543683052063,
1.1029329299926758,
-1.173054814338684,
-1.5065503120422363,
0.13551338016986847,
0.6639288067817688,
... |
def exitstatus ( self ) : rc = self. _ popen. _ popen. returncode if rc is none : return none return exitstatus. exitstatus ( 0, name = self. progname, returncode = rc ) | [
-0.22035706043243408,
-0.6961287260055542,
0.593716025352478,
-0.35032573342323303,
0.33470186591148376,
-0.10491518676280975,
-0.4516237676143646,
0.7542492747306824,
0.10077148675918579,
-0.17726118862628937,
-0.34231850504875183,
-0.3191666901111603,
-0.6150656938552856,
-0.066838368773... |
def test _ sla _ create _ sla ( self ) : pass | [
-0.10122369229793549,
-0.7224656343460083,
0.09352768212556839,
0.21595706045627594,
0.639142632484436,
0.4820631444454193,
0.8237650990486145,
0.15529069304466248,
0.730092465877533,
-0.5637800097465515,
-0.2863462567329407,
0.1651439666748047,
-0.5148810148239136,
0.6520408391952515,
-... |
def initui ( self ) : self. center ( ) self. setsize ( 700, 700 ) self. createstatusbar ( ) mainsizer = wx. boxsizer ( wx. vertical ) self. scroll = wx. scrolledwindow ( self, - 1 ) self. scroll. setscrollbars ( 1, 1, 700, 400 ) panela = wx. lib. scrolledpanel. scrolledpanel ( self. scroll, - 1, style = wx. simple _ bo... | [
0.35413992404937744,
0.2859400510787964,
0.8020209670066833,
0.2970314621925354,
-0.777214765548706,
0.7321909070014954,
0.5077583193778992,
-0.28801819682121277,
0.28144389390945435,
-0.6162110567092896,
-0.9151328802108765,
-0.12395323812961578,
-0.6906847953796387,
1.3177406787872314,
... |
def tographsequenceiterator ( self, * args ) : return _ snap. ttable _ tographsequenceiterator ( self, * args ) | [
-1.6226171255111694,
0.4687168002128601,
0.19412656128406525,
0.7886406183242798,
-0.2517589032649994,
-0.7640470266342163,
1.131809949874878,
-0.8090391159057617,
-0.7380954623222351,
1.107906460762024,
-0.6444147229194641,
-0.8774502873420715,
-0.575570285320282,
-0.41217318177223206,
... |
def setup _ module ( ) : log = get _ log ( ) global serviceapp serviceapp = serverrunner ( ) log. debug ( " setup _ module : starting web app. " ) serviceapp. start ( ) log. debug ( " setup _ module : running. " ) | [
0.31520408391952515,
-0.16647794842720032,
0.4368712902069092,
0.5045436024665833,
0.7178556323051453,
1.2439202070236206,
0.9101241230964661,
0.12896114587783813,
0.5068446397781372,
0.4367676377296448,
-0.7729967832565308,
1.361148476600647,
-0.15399210155010223,
0.9210196137428284,
0.... |
def getgoalpropositions ( self ) : return self. goalpropositions | [
-1.4594699144363403,
0.5216818451881409,
0.5775344371795654,
0.928044855594635,
-0.22428496181964874,
0.36226552724838257,
-0.16686421632766724,
-0.46226072311401367,
-0.7894651293754578,
1.1340798139572144,
-0.589959979057312,
-1.0630463361740112,
-0.38517463207244873,
-0.2907208204269409... |
def addch ( self, * args ) : return _ snap. tcha _ addch ( self, * args ) | [
0.21323859691619873,
0.718555212020874,
0.440043568611145,
0.09491101652383804,
0.47492358088493347,
1.2931609153747559,
1.0870068073272705,
0.02322630025446415,
-0.4829058349132538,
-0.2744261622428894,
0.037590593099594116,
-0.20954948663711548,
0.22026687860488892,
0.3819144070148468,
... |
def dim ( self ) : return ( self. m, self. n ) | [
-0.7217538356781006,
0.3247948884963989,
0.45534437894821167,
-0.3237215280532837,
0.03487376123666763,
0.6184444427490234,
-0.1187332421541214,
0.1570204794406891,
-0.20229527354240417,
-0.3502092659473419,
-0.6439995169639587,
-0.2522404193878174,
-0.17652124166488647,
0.1688971519470214... |
def test _ editing _ own _ post _ with _ hashtag _ updates _ to _ existing _ hashtag _ exists ( self ) : user = make _ user ( ) headers = make _ authentication _ headers _ for _ user ( user = user ) hashtag = make _ hashtag ( ) post _ text ='one hashtag #'+ hashtag. name post = user. create _ public _ post ( text = pos... | [
0.6256769299507141,
-0.5547671318054199,
0.5764023065567017,
0.6952280402183533,
0.7481861114501953,
0.33229565620422363,
-0.342796266078949,
0.4278537631034851,
-0.5447909235954285,
-0.27577075362205505,
-1.2775942087173462,
-0.7379037141799927,
-0.04565778374671936,
0.21572954952716827,
... |
def get _ search _ results ( self, bearer _ token, term, location, limit, offset ) : url _ params = {'term': term,'location': location,'limit': limit,'offset': offset } return self. request ( self. api _ host, self. search _ path, bearer _ token, url _ params = url _ params ) | [
-0.717890202999115,
-0.13597460091114044,
0.7669354677200317,
0.13961941003799438,
0.8257246613502502,
-0.14057694375514984,
-1.7702345848083496,
-0.40904146432876587,
-0.8488808274269104,
-0.09185855090618134,
-0.3077702522277832,
0.8124474883079529,
-0.6092344522476196,
-1.30448269844055... |
def remove _ numbers ( doc : str ) - > str : removed = filter ( lambda character : not character. isdigit ( ), str ( doc ) ) return''. join ( removed ) | [
-0.03281437233090401,
-0.2595854699611664,
0.4525490999221802,
0.1282908320426941,
-0.9698598980903625,
0.7146026492118835,
0.4786622226238251,
0.20679952204227448,
0.024919480085372925,
-0.19910502433776855,
-0.9882165789604187,
-0.38079074025154114,
-0.7774908542633057,
0.267879158258438... |
def _ _ init _ _ ( self ) : pass | [
0.384575754404068,
-1.1162716150283813,
0.2936498522758484,
0.8026404976844788,
0.5190465450286865,
0.6533650755882263,
0.5970242023468018,
0.30950239300727844,
0.15195979177951813,
-1.2418946027755737,
-0.8523526787757874,
-0.016424469649791718,
-0.05249137803912163,
0.6643484234809875,
... |
def read _ bytes ( self, n = none, reverse = false, invert = false ) : rmask = 8 - ( self. bit _ seek _ pos % 8 ) self. byte _ source. seek ( self. seek _ bit _ pos / / 8 ) if n is none : rest = self. byte _ source. read ( ) else : rest = self. byte _ source. read ( n ) first _ value = rmask _ byte ( rmask, rest [ 0 ] ... | [
-0.6656205058097839,
0.7664363980293274,
0.5772706866264343,
0.35587790608406067,
0.3589111566543579,
-0.04942876100540161,
0.20552819967269897,
-0.12672322988510132,
-0.4547804594039917,
-0.15513533353805542,
-0.8129879832267761,
0.0049316720105707645,
-0.7039123773574829,
-0.023695526644... |
def export _ to ( self ) : return self. get ('export _ to') | [
0.12185215950012207,
0.6185691952705383,
0.4873955249786377,
0.5454751253128052,
0.40670499205589294,
-0.18567150831222534,
0.5084503293037415,
-0.38956984877586365,
0.36672934889793396,
0.22411412000656128,
0.08427373319864273,
1.3150323629379272,
0.21633456647396088,
-0.7557963728904724,... |
def tuint64 _ gethexstr ( * args ) : return _ snap. tuint64 _ gethexstr ( * args ) | [
-0.7880350947380066,
0.6698846220970154,
-0.3395419418811798,
1.4333462715148926,
0.49585190415382385,
0.3860445022583008,
-0.702042818069458,
0.33462604880332947,
-1.3379497528076172,
-0.30255284905433655,
1.4599840641021729,
-1.783463954925537,
-0.35022255778312683,
0.7080492377281189,
... |
def extract _ from _ gps _ logs ( directory, rx _ pos, offset ) : gps = { } with open ( " { d } / gps. txt ". format ( d = directory ) ) as f : reader = csv. reader ( f ) for row in reader : # time, lat, lon, elevation, accuracy, bearing, speed if len ( row ) = = 7 : dt = dateutil. parser. parse ( row [ 0 ] ) tx _ pos ... | [
0.13946351408958435,
-0.4726285934448242,
0.6252292394638062,
-0.594083845615387,
-1.1952611207962036,
0.39813002943992615,
-0.7232778668403625,
0.0531398206949234,
0.01192480605095625,
0.40490350127220154,
0.1642303317785263,
0.09206264466047287,
0.031616777181625366,
-0.00895087234675884... |
def list ( self, request, pk, slug ) : try : comment = self. queryset. get ( pk = pk ) except comment. doesnotexist : raise validationerror ( " the comment does not exist " ) comments = comment. objects. filter ( parent = comment ) serializer = self. serializer _ class ( data = comments, many = true ) serializer. is _ ... | [
-0.4059336185455322,
-0.9948323369026184,
0.7319150567054749,
-0.4539729952812195,
1.111924171447754,
-0.7478216290473938,
-0.16134761273860931,
0.3247588276863098,
-0.05524524301290512,
0.3402148485183716,
-0.3523631691932678,
-0.09235616773366928,
0.250906378030777,
0.2915852665901184,
... |
def set _ button _ change _ brightness ( self, deck _ id : str, page : int, button : int, amount : int ) - > none : if self. get _ button _ change _ brightness ( deck _ id, page, button )! = amount : self. _ button _ state ( deck _ id, page, button ) [ " brightness _ change " ] = amount self. _ save _ state ( ) | [
0.11292354762554169,
-0.584991991519928,
0.6292168498039246,
0.22400763630867004,
0.36240407824516296,
-0.29653987288475037,
-0.8271474242210388,
-0.006453315727412701,
0.5778037905693054,
0.08410439640283585,
-1.0996845960617065,
0.37554454803466797,
0.6550635099411011,
1.4741101264953613... |
def translate ( text, conversion _ dict, before = lambda _ : _ ) : # if empty : if not text : return text # preliminary transformation : before = before or str. lower t = before ( text ) for key, value in conversion _ dict. items ( ) : t = t. replace ( key, value ) return t | [
-0.048107728362083435,
0.2749916613101959,
0.43271297216415405,
-0.6563295722007751,
-0.8711001873016357,
-0.6777961850166321,
-0.8335521817207336,
0.9030678868293762,
0.005333897192031145,
0.6217743754386902,
-0.49341121315956116,
-0.6117217540740967,
-0.3619476854801178,
-0.3682148158550... |
def _ _ init _ _ ( self, * args ) : _ snap. tmemout _ swiginit ( self, _ snap. new _ tmemout ( * args ) ) | [
0.4920381009578705,
0.3641921281814575,
-0.026428963989019394,
-1.2190204858779907,
0.05083004757761955,
-0.3987628221511841,
1.2631160020828247,
1.0347291231155396,
-0.6723883748054504,
0.3079755902290344,
-0.5908772945404053,
-0.6718908548355103,
-0.6040700078010559,
0.7733017206192017,
... |
def translate ( image, x, y ) : columns, rows = parameters. width, parameters. height return cv2. warpaffine ( image, np. float32 ( [ [ 1, 0, x ], [ 0, 1, y ] ] ), ( columns, rows ) ) | [
-0.11111412942409515,
0.5289279222488403,
0.5223804712295532,
0.012023961171507835,
-0.5947616100311279,
-0.9100286960601807,
-1.1431431770324707,
-1.055759310722351,
0.04182995855808258,
0.5521348714828491,
-0.094866082072258,
0.12286631762981415,
0.4639595150947571,
-0.5080771446228027,
... |
def test _ editing _ text _ post _ ignores _ casing _ of _ mentioned _ usernames ( self ) : user = make _ user ( ) mentioned _ user = make _ user ( username ='miguel') headers = make _ authentication _ headers _ for _ user ( user = user ) post = user. create _ public _ post ( text = make _ fake _ post _ text ( ) ) case... | [
0.4307037889957428,
0.006261374801397324,
0.661334216594696,
0.18236979842185974,
-0.5146291851997375,
1.0514518022537231,
0.11598663777112961,
0.4174387454986572,
-0.34218817949295044,
-0.12920859456062317,
-0.68744957447052,
0.17609752714633942,
-0.8174813985824585,
0.09432650357484818,
... |
def new ( * args, * * kargs ) : obj = itksubtractconstantfromimagefiltericf3cficf3 _ superclass. _ _ new _ orig _ _ ( ) import itktemplate itktemplate. new ( obj, * args, * * kargs ) return obj | [
1.9321317672729492,
-0.041207559406757355,
0.2555048167705536,
-0.3354649841785431,
-0.3819977939128876,
0.1611420214176178,
0.49711427092552185,
1.3302562236785889,
-0.2882900834083557,
-0.8073230981826782,
-1.2158277034759521,
-1.0585143566131592,
0.05437815934419632,
-0.2004762589931488... |
def paths _ left _ or _ right _ of _ large _ branch ( self, large _ branch, side ) : large _ switch = self. _ large _ tt. branch _ endpoint ( - large _ branch ) for lg _ br, total in self. accumulate _ outgoing _ paths ( large _ switch, side ) : # todo : collapsed cusp if lg _ br = = large _ branch : return total - sel... | [
0.16417406499385834,
0.2920559346675873,
0.8276996612548828,
-0.2536807358264923,
-0.26612645387649536,
0.09041804820299149,
-0.04596641659736633,
0.4942654073238373,
0.3303189277648926,
0.536236047744751,
-0.5222448110580444,
-1.6581308841705322,
-0.4486572742462158,
0.8289364576339722,
... |
def getsattrnamee ( self, * args ) : return _ snap. tundirnet _ getsattrnamee ( self, * args ) | [
-0.9334551692008972,
-0.3935812711715698,
0.27816304564476013,
0.47286874055862427,
0.29910731315612793,
-0.5569078922271729,
0.3550195097923279,
-0.4864315688610077,
-0.6829355955123901,
0.2336806356906891,
0.4413926601409912,
-0.764814019203186,
-1.2177231311798096,
0.3422917425632477,
... |
def load ( self, * args ) : return _ snap. pmmnet _ load ( self, * args ) | [
-0.94810950756073,
0.29426875710487366,
0.47007831931114197,
-0.11796259135007858,
0.17393793165683746,
0.37173396348953247,
-0.24742640554904938,
-0.6407241821289062,
-0.06488272547721863,
-0.7602402567863464,
-0.49526911973953247,
-1.2666226625442505,
-1.492248773574829,
0.21599441766738... |
def save _ reviews ( cursor, reviews, movie _ title ) : count = 0 regex ='( [, 0 - 9 ] + ) out of ( [, 0 - 9 ] + )'for r in reviews. items ( ) : count + = 1 # get rating, e. g. 9 / 10 result = re. match ('( \ \ d + ) / \ \ d + ', r ( '. ipl - ratings - bar'). text ( ) ) rating = none if result is none else result. grou... | [
-0.2749914228916168,
0.3669489920139313,
0.8248821496963501,
-0.027238210663199425,
0.07070430368185043,
-0.06578032672405243,
-0.6348351240158081,
0.46693795919418335,
-1.1871856451034546,
0.8360108137130737,
-0.5956857800483704,
-1.3326764106750488,
-0.8393844366073608,
-0.17508856952190... |
def logarithmic _ indices ( stop, n ) : return np. unique ( [ floor ( np. exp ( i / ( n - 1 ) * np. log ( stop ) ) ) - 1 for i in range ( n ) ] ) | [
-1.1385929584503174,
-0.016978874802589417,
0.468862920999527,
-0.361754447221756,
-0.6433366537094116,
0.10085323452949524,
-0.5192028880119324,
-0.6811807155609131,
-0.03976450860500336,
0.9182825088500977,
-0.09473489969968796,
0.045028574764728546,
-0.19705930352210999,
-1.284898996353... |
def getnainti ( self, * args ) : return _ snap. tneanet _ getnainti ( self, * args ) | [
0.29890361428260803,
-0.1452987641096115,
0.30674535036087036,
0.2151089757680893,
0.9610359072685242,
-0.1963789314031601,
0.0028572757728397846,
-0.8312375545501709,
-0.6741282939910889,
-0.8754383325576782,
-0.4556979835033417,
-1.329701542854309,
-0.967048704624176,
0.5993316769599915,... |
def randomnumbergenerator ( ) : machinerandomnumber = random. sample ( range ( 0, 10 ), k = 4 ) # genera una lista return machinerandomnumber | [
-0.181174173951149,
0.5158438086509705,
0.43675312399864197,
-0.2169186919927597,
0.03062744252383709,
0.7243373990058899,
-0.18952800333499908,
1.6706271171569824,
-0.05434343218803406,
-0.7669445276260376,
-1.1580307483673096,
-0.4603925943374634,
0.09857041388750076,
0.6932647228240967,... |
def lower _ actuated _ joint _ limits ( self ) - > cs. dm : return cs. dm ( [ self. get _ joint _ lower _ limit ( jnt ) for jnt in self. urdf. joints if jnt. type! = " fixed " ] ) | [
0.394390732049942,
-0.5859459042549133,
0.2537136375904083,
-0.3033214211463928,
0.258088082075119,
-0.04868367314338684,
0.42532670497894287,
-0.5432644486427307,
-0.22035957872867584,
-1.0797713994979858,
0.07166031748056412,
0.8808965086936951,
-0.9817302823066711,
-0.7447206377983093,
... |
def setup _ data ( self ) : pass | [
-0.3223313093185425,
-0.537448525428772,
0.2592715620994568,
0.1103743463754654,
0.6598657965660095,
0.7954081892967224,
0.3823695778846741,
0.29322105646133423,
0.0751926600933075,
-0.4136391878128052,
-0.6264121532440186,
0.12304703146219254,
0.21126744151115417,
0.680410623550415,
-1.... |
def upload _ stf ( self, iteration : str, hpc _ cluster = none ) : local _ stf = self. find _ stf ( iteration = iteration ) if not os. path. exists ( local _ stf ) : write _ custom _ stf ( stf _ path = local _ stf, comm = self. lasif _ comm ) if hpc _ cluster is none : hpc _ cluster = get _ site ( self. comm. project. ... | [
-0.16165244579315186,
0.4716225266456604,
0.5511971712112427,
-0.3138309121131897,
0.3732939660549164,
-0.1428336352109909,
0.9939741492271423,
-0.19343632459640503,
-0.7533369064331055,
0.6254854798316956,
-1.227508783340454,
0.24740275740623474,
-0.9269135594367981,
0.0718829408288002,
... |
def keep _ categories _ id ( self, id _ categories ) : self. _ _ to _ keep _ id _ categories = set ( id _ categories ) | [
-0.6294693946838379,
-0.04414196312427521,
0.19604142010211945,
-0.28362804651260376,
0.27392688393592834,
1.139947772026062,
-0.3432765007019043,
-0.7308215498924255,
0.001954270526766777,
-0.7272326946258545,
-1.4477903842926025,
-0.49221864342689514,
-0.5051699280738831,
-0.738062143325... |
def _ playernobolt ( self ) : state = true for x in self. _ bolts : if x. isplayerbolt ( ) : state = false return state | [
-0.7305528521537781,
-0.23984511196613312,
0.3519054353237152,
-0.47085267305374146,
-0.2922842800617218,
-0.0239199697971344,
-0.32466229796409607,
-0.0928819477558136,
-0.6314544677734375,
-0.25462719798088074,
-0.0982552170753479,
-0.589996874332428,
-0.9341821670532227,
-0.143376126885... |
def close ( self ) : self. _ renderer. close ( ) | [
-0.04970327392220497,
-0.49943363666534424,
0.38858845829963684,
-0.9547101259231567,
-0.7566118836402893,
1.0878334045410156,
0.5387461185455322,
0.26299595832824707,
-1.0242339372634888,
-1.764343500137329,
0.8567286133766174,
-0.00530182896181941,
-1.1064409017562866,
1.4189603328704834... |
def attrvalueei ( self, * args ) : return _ snap. pneanetmp _ attrvalueei ( self, * args ) | [
-0.1507125347852707,
-0.04350496828556061,
0.13298103213310242,
0.8593209385871887,
0.5488321781158447,
0.897628903388977,
0.5481390953063965,
0.2120576649904251,
-1.5414609909057617,
-0.39427292346954346,
-0.18018341064453125,
-0.6088282465934753,
0.07390400767326355,
1.0976721048355103,
... |
def cleanup ( self ) : for task in list ( self. tasks. keys ( ) ) [ : ] : self. remove ( task ) self. _ server. close ( ) | [
-0.06774353235960007,
-0.3858097791671753,
0.3931363523006439,
-0.0507611446082592,
-0.33377373218536377,
0.6975437998771667,
0.8307234048843384,
0.3990042805671692,
-0.0042121862061321735,
-0.16030512750148773,
-0.8357422947883606,
-0.00236826972104609,
-0.6065851449966431,
1.073176741600... |
def find _ edge _ same _ currency _ different _ exchanges ( self, vertex ) : list _ index, i = [ ], 0 for edge in self. list _ edges : if edge. vertex _ source. currency = = vertex. currency and edge. vertex _ source. exchange! = vertex. exchange : list _ index. append ( i ) i + = 1 return list _ index | [
-0.8764923214912415,
-0.1018436923623085,
0.40682724118232727,
-0.48007282614707947,
-0.402882844209671,
-0.07682403177022934,
1.140668511390686,
0.08363809436559677,
1.658392071723938,
1.1951195001602173,
-0.8184827566146851,
0.2582956552505493,
-1.0842872858047485,
-0.016664346680045128,... |
def _ _ str _ _ ( self ) : # tile _ width is number of digits in largest number in the grid. tile _ width = len ( str ( max ( map ( max, self. _ grid ) ) ) ) horizontal _ border ='+'+ ('-'* ( tile _ width + 2 ) +'+') * self. _ width row _ separator ='|'+ ('-'* ( tile _ width + 2 ) +'|') * self. _ width result = horizon... | [
0.6570678949356079,
-0.06281331181526184,
0.9495604038238525,
0.004251342266798019,
-0.6870262026786804,
0.21340039372444153,
-0.18305598199367523,
-0.22017911076545715,
-0.349994033575058,
-0.0051704891957342625,
0.36232998967170715,
0.11062338948249817,
0.252547025680542,
0.7378299832344... |
def test _ can _ delete _ post _ of _ community _ if _ admin ( self ) : user = make _ user ( ) community _ creator = make _ user ( ) community = make _ community ( creator = community _ creator ) user. join _ community _ with _ name ( community _ name = community. name ) community _ creator. add _ administrator _ with ... | [
0.7621121406555176,
0.15137261152267456,
0.5110366344451904,
0.781855046749115,
0.4687621593475342,
0.5256025791168213,
0.0395999439060688,
-0.6320309638977051,
-0.2269514501094818,
-0.14871631562709808,
-0.4965495765209198,
-0.33042922616004944,
-0.3684465289115906,
0.3936309814453125,
... |
def get _ grad ( self, batch _ samples, batch _ labels ) : pass | [
-0.8074030876159668,
-0.5610549449920654,
0.49586471915245056,
1.2053500413894653,
1.3118462562561035,
0.8323222398757935,
-0.3471524715423584,
0.4557911455631256,
-2.071397066116333,
-0.23211298882961273,
0.0967836007475853,
0.3711656332015991,
-0.10449360311031342,
-0.1599608212709427,
... |
def get _ trees _ max _ depth ( state, max _ depth ) : parent _ stack = [ ] full _ trees = [ ] # utility function which puts parents in full _ trees if all their children are in full _ trees def pop _ finished _ parents ( ) : for i in reversed ( range ( len ( parent _ stack ) ) ) : positions = parent _ stack [ i ] if -... | [
-0.2561550438404083,
0.45687368512153625,
0.8398103713989258,
-0.6874560117721558,
-0.2715209722518921,
-0.6114907264709473,
0.3398633599281311,
0.19620582461357117,
-0.11463146656751633,
1.2849453687667847,
-0.601390540599823,
-0.8518640995025635,
0.0635269358754158,
0.6224592328071594,
... |
def _ loaddatamodelmgr ( self, dmgr = none ) : if dmgr is none : dmgr = self. state. datamodelmgr if dmgr is not none and not self. isloaded : self. isloaded = true dmgr. addlistener ('datasetadded ', self. _ ondatasetadded ) dmgr. addlistener ('modeladded ', self. _ onmodeladded ) dmgr. addlistener ('modelremoved ', s... | [
-0.8443252444267273,
0.12103452533483505,
0.7451828718185425,
-0.8300076723098755,
-0.16090603172779083,
-0.22231826186180115,
-0.9919800758361816,
-0.11614440381526947,
0.5617092251777649,
-0.66749107837677,
-0.7806463837623596,
-0.16824495792388916,
0.245853990316391,
1.8860355615615845,... |
def fields ( self ) : return self. _ fields | [
-0.6650505065917969,
0.3196548521518707,
0.1780879944562912,
-0.9505859613418579,
0.37019747495651245,
0.8258991241455078,
0.5570573210716248,
-0.5569740533828735,
0.6023690104484558,
-1.4705810546875,
-1.4137543439865112,
-0.47028204798698425,
-0.5806484222412109,
-1.1761820316314697,
-... |
def create _ user ( self, email, password = none, * * extra _ fields ) : return self. _ create _ user ( email, password, false, * * extra _ fields ) | [
-0.5028727650642395,
0.8085048794746399,
0.3808453679084778,
-0.007091170642524958,
0.21692171692848206,
0.23986859619617462,
-0.6081992983818054,
0.022113198414444923,
0.003491634037345648,
-0.1703149825334549,
-1.0625759363174438,
-0.6512218117713928,
-0.25598669052124023,
-0.58621138334... |
def genvec ( ) : print ( " \ t. text " ) print ( " \ t. extern \ t _ kernel _ ia32 _ build _ trap _ context \ n \ n " ) for i in range ( genvec _ vector _ nr ) : if ( genvec _ exception _ nr > i ) : print ( " / * % s * / " % exception _ names [ i ] ) elif ( genvec _ reserved _ nr > i ) : print ( " / * intel reserved % ... | [
-0.39870700240135193,
0.4447900354862213,
1.0418851375579834,
-0.08145419508218765,
0.023739609867334366,
0.8795725107192993,
0.8293942809104919,
-0.4351702630519867,
-0.6488276720046997,
0.028679577633738518,
0.3157908022403717,
0.866220235824585,
-0.040772758424282074,
-0.169274687767028... |
def coef _ pval ( clf, x, y ) : n = x. shape [ 0 ] t = coef _ tval ( clf, x, y ) p = 2 * ( 1 - scipy. stats. t. cdf ( abs ( t ), n - 1 ) ) return p | [
-0.2772276699542999,
-0.4349686801433563,
0.5426197648048401,
-0.05990952253341675,
-0.2674112319946289,
0.6073341965675354,
-0.6967836618423462,
-0.5235540866851807,
-0.4557819664478302,
1.9693576097488403,
0.17170698940753937,
0.47501036524772644,
0.37252920866012573,
-0.4235414266586303... |
def fno _ margin ( self ) : try : fno _ stream = request. urlopen ( self. _ fo _ url ) col _ list = ['scrip ','span expiry date ','nrml margin % ','mis margin % ','mis multiplier ','co lower margin % ','co multiplier'] fno _ df = pd. read _ csv ( fno _ stream, encoding ='utf - 8 ', usecols = col _ list, keep _ default ... | [
-0.44622114300727844,
-0.5140835046768188,
0.6348003149032593,
-0.7216789126396179,
0.016688143834471703,
-0.4810209572315216,
0.23015479743480682,
-0.09102465957403183,
-0.14669229090213776,
-0.539438009262085,
0.1041766107082367,
0.32542383670806885,
0.418954461812973,
0.6318025588989258... |
def percentmxscc _ pngraph ( * args ) : return _ snap. percentmxscc _ pngraph ( * args ) | [
-0.17978869378566742,
1.1450209617614746,
0.3269903063774109,
0.2758477032184601,
-1.0736446380615234,
0.03712470829486847,
-0.5773269534111023,
-1.17954421043396,
-0.2591009736061096,
0.06459832191467285,
-0.10616154968738556,
0.18542256951332092,
0.1550075113773346,
0.6225793361663818,
... |
def getdat ( self, * args ) : return _ snap. tstrstrhi _ getdat ( self, * args ) | [
0.3570394515991211,
0.24675098061561584,
0.397996723651886,
-0.8437212705612183,
1.228175401687622,
0.7541372776031494,
0.7618302702903748,
-1.3312883377075195,
-0.881230354309082,
-0.7381576299667358,
-0.3110969066619873,
-0.41348856687545776,
-0.5976384878158569,
-0.40752506256103516,
... |
def _ checkabspathtoexecutable ( self, path _ to _ binary ) : if not os. path. isabs ( path _ to _ binary ) : raise valueerror ('brick executables must be specified by absolute path, not " % s ".'% path _ to _ binary ) return true | [
-0.021890634670853615,
-0.3402025103569031,
0.5760736465454102,
1.0681906938552856,
0.5595702528953552,
0.8112090229988098,
0.14458869397640228,
-0.5042514801025391,
-0.9064942002296448,
0.47914963960647583,
0.3074301779270172,
-0.06282787024974823,
0.020504631102085114,
0.8598132729530334... |
def intersect1 ( * args ) : return _ snap. intersect1 ( * args ) | [
-1.7546405792236328,
0.4778757095336914,
0.698883593082428,
1.7391798496246338,
-0.5797810554504395,
0.9585272073745728,
1.086981177330017,
0.15658676624298096,
-1.2722047567367554,
0.6733061671257019,
-0.12166253477334976,
-1.0637893676757812,
-0.9486936330795288,
0.5770052075386047,
-0... |
def _ onmodelremoved ( self, dmgr, model _ name ) : if dmgr and model _ name : update _ all = true if dmgr. getdatamodelcount ( ) > 0 and \'self'not in self. modelsubmenus and \ model _ name in self. modelsubmenus : menu _ item _ id = self. finditem ( model _ name ) if menu _ item _ id! = wx. not _ found : # self. dest... | [
-0.6112266182899475,
-0.777612030506134,
0.810637354850769,
0.32851099967956543,
-0.7300412654876709,
0.21568608283996582,
-0.3868997097015381,
0.9241242408752441,
0.05396440997719765,
0.15755772590637207,
-0.9738256335258484,
-0.6155231595039368,
-0.2701420783996582,
1.3529740571975708,
... |
def test _ atomic _ language _ min _ length _ 4 _ nistxml _ sv _ iv _ atomic _ language _ min _ length _ 5 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - minlength - 5. xsd ", instance = " nistda... | [
0.4768635928630829,
-0.600321352481842,
0.19917066395282745,
0.002480222610756755,
-0.6819354891777039,
-0.25741273164749146,
0.03238651156425476,
-0.8293084502220154,
0.16317065060138702,
0.3377469480037689,
-0.6313673257827759,
-0.15319299697875977,
-0.9390957355499268,
-0.00317366071976... |
def addedgeunchecked ( self, * args ) : return _ snap. pngraphmp _ addedgeunchecked ( self, * args ) | [
-0.26632413268089294,
0.4816008508205414,
0.420064777135849,
-0.3419930040836334,
1.1766090393066406,
0.7137123346328735,
1.0979759693145752,
-0.5945542454719543,
-0.3393746018409729,
-0.8693652749061584,
-0.3354153335094452,
-0.13981035351753235,
-1.5011751651763916,
0.0856996700167656,
... |
def tintfltkdv _ getv ( * args ) : return _ snap. tintfltkdv _ getv ( * args ) | [
0.14627452194690704,
0.2819727063179016,
0.1030840277671814,
0.46856871247291565,
0.29931360483169556,
-0.13859987258911133,
0.9338483214378357,
0.2289120852947235,
-1.0537879467010498,
-0.4453795254230499,
0.24634195864200592,
0.17023372650146484,
0.2653188705444336,
0.7019199728965759,
... |
def crawl _ ssoar _ metadata ( id ) : try : # specify retry strategy and initialize session retry _ strategy = retry ( total = 3, status _ forcelist = [ 429, 500, 502, 503, 504 ], method _ whitelist = [ " head ", " get ", " options " ] ) adapter = httpadapter ( max _ retries = retry _ strategy ) http = requests. sessio... | [
0.1130315512418747,
-0.34254953265190125,
0.8505986332893372,
-0.714566707611084,
0.27008768916130066,
-0.33567121624946594,
-0.07758701592683792,
-0.7207054495811462,
0.45739659667015076,
0.666644811630249,
0.2957591414451599,
0.8396176695823669,
-0.27903515100479126,
0.12491601705551147,... |
def manual _ size ( userinput, blocksize, change = " no " ) : if change = = " no " : msg = _ strip ( userinput ) else : msg = userinput if len ( msg ) = = blocksize : print ( " \ nyou matched the blocksize first time. \ nawesome \ n " ) print ( " your msg is [ { } ] \ n ". format ( msg ) ) return msg else : ret = _ res... | [
-0.13213993608951569,
0.6808635592460632,
0.6470053791999817,
0.23115673661231995,
-1.1307673454284668,
-0.28561609983444214,
0.2873092293739319,
-0.3477870225906372,
0.1605614721775055,
-0.08115126937627792,
0.046930983662605286,
0.5822951197624207,
-1.1780205965042114,
1.2747113704681396... |
def convert _ input _ image _ coord _ to _ feature _ map ( coord _ in _ input _ space, input _ to _ feature ) : x = int ( round ( ( coord _ in _ input _ space [ " x " ] + input _ to _ feature [ " x _ offset " ] ) * input _ to _ feature [ " x _ scale " ] ) ) y = int ( round ( ( coord _ in _ input _ space [ " y " ] + inp... | [
-0.8858091235160828,
-1.6931453943252563,
0.649849534034729,
-1.2057740688323975,
-0.39043721556663513,
0.2521178722381592,
-0.05313084274530411,
0.1543276011943817,
-0.6674102544784546,
0.27889084815979004,
-1.0591613054275513,
0.70595383644104,
0.5179424285888672,
-0.008047441951930523,
... |
def read _ file ( filename ) : print ( " beginning file read... " ) my _ image = cv2. imread ( filename ) return computer _ hash ( my _ image ) | [
0.2957196831703186,
-0.31344324350357056,
0.407794326543808,
0.8088102340698242,
-0.5255211591720581,
0.7558778524398804,
0.0868241935968399,
0.6507110595703125,
-1.2730753421783447,
0.3249123990535736,
0.10096002370119095,
-0.3776552379131317,
0.12287652492523193,
-0.1930333524942398,
-... |
def addnode ( self, * args ) : return _ snap. tneanet _ addnode ( self, * args ) | [
-1.0313206911087036,
0.9929255247116089,
0.3201739490032196,
0.18027479946613312,
1.188859462738037,
0.5349807739257812,
0.00688093900680542,
-0.15184688568115234,
-0.13952679932117462,
-0.18582656979560852,
0.4832722246646881,
-1.4774562120437622,
-0.3757813274860382,
0.9425410032272339,
... |
def render _ block _ to _ string ( template _ name, block _ name, context = none, request = none ) : # like render _ to _ string, template _ name can be a string or a list / tuple. if isinstance ( template _ name, ( tuple, list ) ) : t = loader. select _ template ( template _ name ) else : t = loader. get _ template ( ... | [
-0.49438631534576416,
0.17813758552074432,
0.5105667114257812,
-0.2844415605068207,
-1.1375876665115356,
-0.9103506803512573,
-1.0579630136489868,
-0.3930647075176239,
-0.44219982624053955,
0.6735312938690186,
-0.06534518301486969,
0.3556978702545166,
-0.654512882232666,
-0.496889054775238... |
def loadtxt ( * args ) : return _ snap. trnd _ loadtxt ( * args ) | [
-0.7235085964202881,
1.0215821266174316,
0.34302833676338196,
-0.4745468199253082,
-0.5868391990661621,
-0.03891022130846977,
-0.1434876024723053,
-0.056773558259010315,
-0.798980712890625,
0.014847373589873314,
-1.132685661315918,
-1.2209683656692505,
-1.066046118736267,
0.018063712865114... |
def mssne _ eval _ dsm _ lds _ min _ row _ dsm _ lds _ t _ dsm ( dsm _ lds ) : np. fill _ diagonal ( a = dsm _ lds, val = np. inf ) # returning return dsm _ lds. min ( axis = 1 ) - dsm _ lds. t | [
-0.5064973831176758,
0.1590770184993744,
0.34971562027931213,
-1.2069343328475952,
-0.6868034601211548,
-0.5619322657585144,
-0.32038646936416626,
0.5029534101486206,
0.5546029210090637,
-0.0032546906732022762,
0.18111173808574677,
0.15140296518802643,
0.9936987161636353,
0.614725708961486... |
def add _ many _ enrollments ( self, enrollments ) : return self. _ add _ many _ models ( enrollments, self. complete _ uri ) | [
-2.0882232189178467,
0.8181805610656738,
0.559011697769165,
1.4308252334594727,
0.24880902469158173,
1.060347557067871,
-0.11821115761995316,
-0.7693192958831787,
1.0855127573013306,
-0.29014852643013,
-0.4567972719669342,
-0.9289537668228149,
-0.1823408454656601,
1.236332654953003,
-1.6... |
def test _ atomic _ base64 _ binary _ min _ length _ 1 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ min _ length _ 2 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - minlength - 2. xsd ... | [
0.17793355882167816,
-0.4445144534111023,
0.4844670295715332,
1.0017426013946533,
-0.029091844335198402,
0.12440811842679977,
-0.31440770626068115,
-0.40837183594703674,
0.174497589468956,
0.12244680523872375,
-0.4376166760921478,
0.3649514317512512,
-0.620979368686676,
0.145261749625206,
... |
def overlay _ boxes ( image, boxes, class _ names = none, color _ factor = 1, thickness = 2, image _ size _ factor = 1 ) : # scale thickness thickness * = image _ size _ factor thickness = np. maximum ( int ( np. around ( thickness ) ), 1 ) # cast to int, verify that thicness is at least 1 # get bounding boxes bboxes =... | [
-1.1423251628875732,
-0.6160188913345337,
0.7893959283828735,
-0.3400498032569885,
-0.07622846961021423,
-0.3238435983657837,
-0.49637672305107117,
-0.20604628324508667,
-0.2710839807987213,
0.16318999230861664,
0.6102942228317261,
-0.04508659616112709,
0.5053382515907288,
0.25397756695747... |
def clean _ bls _ qcew _ fba ( fba _ df, * * kwargs ) : fba _ df = replace _ missing _ 2 _ digit _ sector _ values ( fba _ df ) fba _ df = remove _ 2 _ digit _ sector _ ranges ( fba _ df ) return fba _ df | [
0.17013604938983917,
-1.0178639888763428,
0.5265300869941711,
0.39242950081825256,
-0.2788384258747101,
-0.3495456576347351,
0.47971072793006897,
-0.669360876083374,
0.35767003893852234,
-0.2535243332386017,
0.16080263257026672,
0.20058226585388184,
-0.00017450691666454077,
0.5500338673591... |
def getei ( self, * args ) : return _ snap. pngraphmp _ getei ( self, * args ) | [
-0.023007802665233612,
0.6545354723930359,
0.39580321311950684,
0.5050923824310303,
2.5984139442443848,
-0.6973986029624939,
1.4198729991912842,
-1.3016602993011475,
-1.2455328702926636,
-0.7219125032424927,
-0.521185040473938,
-0.5734373927116394,
-1.2482012510299683,
-0.4209737777709961,... |
def get _ macd ( self, bot _ id ) : return self. macd _ repo. get ( bot _ id ) | [
0.5037665963172913,
-0.06795229762792587,
0.15775148570537567,
-0.5634806752204895,
-0.11126123368740082,
0.7550631761550903,
-1.2613781690597534,
0.04224161431193352,
0.0291490126401186,
-0.8055796027183533,
1.0241930484771729,
1.2455408573150635,
-0.6476882696151733,
-0.02540712058544159... |
def _ _ init _ _ ( self, * args, * * kwargs ) : super ( ). _ _ init _ _ ( * args, * * kwargs ) self. _ class = place self. _ name = " place " | [
0.00016741667059250176,
-0.13410773873329163,
0.6118091344833374,
-0.07376528531312943,
0.554165780544281,
0.10793779045343399,
-0.03439440578222275,
0.4126248359680176,
0.7337268590927124,
-0.42191633582115173,
-0.587209165096283,
0.19408822059631348,
0.036614518612623215,
1.0727401971817... |
def delifkey ( self, * args ) : return _ snap. tintset _ delifkey ( self, * args ) | [
-0.6173928380012512,
1.0992867946624756,
0.20700187981128693,
0.8533453345298767,
0.10249417275190353,
-0.33828645944595337,
0.3187699019908905,
-1.0095301866531372,
-0.25157615542411804,
0.40731728076934814,
-0.1316341757774353,
-0.10758760571479797,
-1.5952006578445435,
0.556623041629791... |
def size ( self ) : return len ( self. _ s ) | [
0.2970852255821228,
0.12703561782836914,
0.15892519056797028,
-1.5211750268936157,
-0.017366131767630577,
0.2596704065799713,
0.3253316879272461,
0.2186657339334488,
0.4687809944152832,
-1.2708131074905396,
-0.7390745878219604,
0.22039751708507538,
-0.18891914188861847,
-0.596226155757904,... |
def remake _ dicts ( filename ) : df = pd. read _ json ( filename, orient ='table') profanities = read _ wordlist _ file ('bad - words. txt') lst = [ ] for row in df. iterrows ( ) : used _ swears = { } lyrics = row [ 1 ] ['lyrics'] for ind in range ( len ( lyrics ) ) : lyrics [ ind ] = lyrics [ ind ]. replace ('- ','' ... | [
-0.6324355006217957,
0.3780604302883148,
0.6237462162971497,
-0.8963808417320251,
-0.7887721061706543,
-0.10162479430437088,
0.555241584777832,
1.10420823097229,
-1.133419394493103,
0.7759939432144165,
-0.6824400424957275,
0.8372473120689392,
0.07184849679470062,
0.452125608921051,
0.266... |
def compute _ ds ( self, mx, my ) : import scikits. cuda. cufft as cufft d _ ds = parray. empty ( ( self. num _ neurons, 2 * my + 1, 2 * mx + 1 ), self. dtype ) one _ time _ filter = min ( 1024 * * 3 / ( self. pxall * self. pyall * d _ ds. dtype. itemsize ) / 2, self. num _ neurons ) n = np. asarray ( ( self. pyall, se... | [
-0.12309803813695908,
1.0083229541778564,
0.8516527414321899,
0.37519586086273193,
-0.17681840062141418,
-0.8575322031974792,
0.2881542146205902,
0.11488994210958481,
0.4516352117061615,
-0.20550379157066345,
0.21280138194561005,
1.0679067373275757,
0.6362951397895813,
0.27132073044776917,... |
def searchvforw ( self, * args ) : return _ snap. tfltprv _ searchvforw ( self, * args ) | [
-0.704937219619751,
0.5944575071334839,
0.17567701637744904,
-0.501126766204834,
0.29881611466407776,
-0.2843710780143738,
-0.1953507363796234,
-0.054628144949674606,
-0.9814547300338745,
-0.0989929810166359,
0.6753827333450317,
-1.4678573608398438,
0.13067927956581116,
1.1163949966430664,... |
def test _ parseshowmac ( self ) : expected = output _ mac _ address _ processed result = parsesshowmac ( output _ mac _ address ) assert result = = expected | [
0.49761682748794556,
0.22443050146102905,
0.41049322485923767,
-0.4573201537132263,
-0.8845052719116211,
-0.1684424877166748,
0.9040359258651733,
0.2892274558544159,
0.27323928475379944,
-0.7539229989051819,
0.27192628383636475,
0.8560555577278137,
0.35659080743789673,
-0.00256119016557931... |
def outlook _ running ( ) : try : win32ui. findwindow ( none, " microsoft outlook " ) return true except win32ui. error : return false | [
0.09103060513734818,
-0.7823085784912109,
0.716204047203064,
-0.025094134733080864,
-0.5175140500068665,
1.0019798278808594,
0.07519543170928955,
0.08865097910165787,
0.2304142862558365,
-0.18344952166080475,
0.05626582354307175,
0.5437904596328735,
-1.365385890007019,
-0.6343123316764832,... |
def serializeashtml ( trace _ files, html _ file, trace _ title = none ) : if not trace _ files : raise valueerror ('trace files list is empty') input _ size = sum ( os. path. getsize ( trace _ file ) for trace _ file in trace _ files ) cmd = [ ] if platform. system ( ) = ='windows': version _ cmd = ['python ','- c ','... | [
0.3425576090812683,
0.5899019837379456,
0.8605905771255493,
0.8380182981491089,
0.162397101521492,
0.37243708968162537,
0.6883554458618164,
-0.3195658028125763,
-0.3617821931838989,
0.760293185710907,
-0.19649240374565125,
0.09626181423664093,
-0.059639837592840195,
-0.001135368598625064,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.