text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def concat _ instr _ df ( self ) : if self. _ concat _ instr _ df is none and len ( self. all _ instructions ) > 0 : self. _ concat _ instr _ df = pd. concat ( self. all _ instructions. values ( ), axis = 0 ) return self. _ concat _ instr _ df | [
-0.5549769401550293,
0.3107616901397705,
0.4471782445907593,
0.6907690763473511,
-0.37216219305992126,
-0.1408664733171463,
0.4982414245605469,
-0.06053907051682472,
-0.3833237886428833,
-0.44858476519584656,
1.8564598560333252,
0.205043762922287,
-0.6924369931221008,
0.29279565811157227,
... |
def test _ systemdependencysource ( self ) : # it first needs to be able to create the class otherwise will not be # able to do anything else installer = modulesource. create ( " system _ dependency " ) self. assertnotequal ( installer, none ) self. assertequal ( installer. name ( ), " system _ dependency " ) # verifie... | [
0.08793528378009796,
-0.5126972198486328,
0.6351008415222168,
-0.3395412862300873,
1.196265459060669,
0.5184743404388428,
0.8639327883720398,
0.3509458601474762,
0.2827221751213074,
-0.20318633317947388,
-0.8747521638870239,
-0.44269266724586487,
-0.21869558095932007,
1.132766842842102,
... |
def sample ( self, value, sample _ rate, timestamp = none ) : raise notimplementederror ( ) | [
0.4098987579345703,
-0.09008675068616867,
0.41451767086982727,
0.5807967185974121,
-0.7879332900047302,
-0.09556258469820023,
-0.35219427943229675,
-0.38199371099472046,
0.7153154611587524,
0.11127272993326187,
0.271798312664032,
-0.3110499083995819,
0.6596054434776306,
0.30637648701667786... |
def phone _ number ( self, phone _ number ) : self. _ phone _ number = phone _ number | [
-0.2763579189777374,
-0.8000679016113281,
-0.05928641930222511,
0.8164137005805969,
1.3007655143737793,
0.023801185190677643,
0.2295735478401184,
1.630651831626892,
0.26001259684562683,
-0.7970888018608093,
-1.2770050764083862,
-0.41444918513298035,
0.9307482242584229,
0.7333944439888,
1... |
def _ _ init _ _ ( self, * args, * * kwargs ) : super ( ). _ _ init _ _ ( * args, * * kwargs ) self. name = " heco " self. login _ url = " https : / / mybiz. heco. com / " # download link selector can differ on mvweb implementation self. download _ link _ selector ='a [ href $ = " / mvweb / download " ] ' | [
-0.11637003719806671,
-0.003943445160984993,
0.530951201915741,
0.8881746530532837,
0.2856821119785309,
0.22120539844036102,
-0.416801780462265,
1.0245290994644165,
0.4789635241031647,
-0.7572199106216431,
-0.7727013230323792,
0.04303252696990967,
0.4722936749458313,
1.4277503490447998,
... |
def patch ( self, request : request, * args : tuple, * * kwargs : dict ) - > response : return self. partial _ update ( request, * args, * * kwargs ) | [
-0.6472715735435486,
-1.3657798767089844,
0.4121677875518799,
-0.630770206451416,
-0.44837966561317444,
0.20368169248104095,
-0.22941921651363373,
-0.44404181838035583,
0.4618997573852539,
-0.22334925830364227,
0.19729697704315186,
-0.15667052567005157,
-0.8105980753898621,
-0.557090342044... |
def underline ( string ) : lines ='='* ( len ( weighing1 ) - 1 ) return lines | [
0.044362638145685196,
-0.2024661749601364,
0.5231874585151672,
-0.38617321848869324,
0.20973260700702667,
0.15850691497325897,
-0.33326366543769836,
-0.5602954030036926,
-0.24931220710277557,
-0.21247069537639618,
-0.20753341913223267,
0.33932867646217346,
-0.736128032207489,
-0.2443287521... |
def test _ atomic _ boolean _ pattern _ 2 _ nistxml _ sv _ iv _ atomic _ boolean _ pattern _ 3 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / boolean / schema + instance / nistschema - sv - iv - atomic - boolean - pattern - 3. xsd ", instance = " nistdata / atomic / bo... | [
-0.019527986645698547,
0.01861717365682125,
0.6377760171890259,
0.7782274484634399,
0.018993079662322998,
0.8431035280227661,
-0.4666750431060791,
0.16693352162837982,
0.22957731783390045,
1.1781048774719238,
-0.22581720352172852,
0.09635747969150543,
-0.06531470268964767,
-0.7721737623214... |
def items ( self, items ) : self. _ items = items | [
-1.0417388677597046,
-0.08472629636526108,
-0.0763259083032608,
-0.4427078664302826,
0.7696571350097656,
0.9882169961929321,
-0.16686342656612396,
0.4999823570251465,
-0.607187807559967,
-0.20887456834316254,
-1.0569441318511963,
-0.6386967897415161,
-0.058663882315158844,
0.23817409574985... |
def insert _ query ( self ) : self. sql. dict _ to _ sql ( self. data _ query,'query') self. query _ id = self. sql. cursor. lastrowid | [
0.127711683511734,
0.017200179398059845,
0.22892841696739197,
-0.5745903849601746,
0.4321843087673187,
-0.08702122420072556,
-0.8026270866394043,
0.8366020917892456,
0.14036506414413452,
0.2022673785686493,
-0.02218399941921234,
-0.1814432591199875,
-0.43787458539009094,
0.4713469743728637... |
def test _ atomic _ id _ enumeration _ 3 _ nistxml _ sv _ iv _ atomic _ id _ enumeration _ 4 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / id / schema + instance / nistschema - sv - iv - atomic - id - enumeration - 4. xsd ", instance = " nistdata / atomic / id / schem... | [
-0.4869678020477295,
-0.5456541180610657,
0.48881539702415466,
0.5663138628005981,
-0.2776634395122528,
0.29460906982421875,
0.23996466398239136,
-0.10127441585063934,
0.4519854187965393,
0.967617928981781,
-0.12153281271457672,
-0.1205454021692276,
0.019074078649282455,
-0.706192851066589... |
def test _ list _ decimal _ max _ length _ 4 _ nistxml _ sv _ iv _ list _ decimal _ max _ length _ 5 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - maxlength - 5. xsd ", instance = " nistdata / list / ... | [
-0.33130308985710144,
-0.02041795663535595,
0.2437727302312851,
0.40905824303627014,
-0.28601598739624023,
-0.35139673948287964,
-0.29477450251579285,
-0.17338311672210693,
0.6511703729629517,
0.07805346697568893,
-1.301286220550537,
-0.5585692524909973,
-0.3932337462902069,
0.540436089038... |
def listqoshistograms ( ctx, # optional main parameter volumeids = none ) : " " " it may take up to 5 seconds for newly created volumes to have accurate histogram data available. " " " cli _ utils. establish _ connection ( ctx ) ctx. logger. info ( " " " : " " " " " " volumeids = " " " + str ( volumeids ) + " " " ; " "... | [
-0.022777589038014412,
-0.4137250483036041,
0.7685798406600952,
-0.06353648751974106,
0.3621152639389038,
-0.18400320410728455,
0.02926485985517502,
-0.5768278241157532,
0.43230336904525757,
0.7527984976768494,
-0.31840741634368896,
0.9912580847740173,
-0.5855836272239685,
0.03919490054249... |
def test _ list _ decimal _ min _ length _ 2 _ nistxml _ sv _ iv _ list _ decimal _ min _ length _ 3 _ 3 ( 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.06443654745817184,
-0.1434851884841919,
0.5572256445884705,
0.29318633675575256,
-0.08998052775859833,
0.2244574874639511,
-0.8875582814216614,
0.030964618548750877,
1.449164867401123,
-0.18757060170173645,
-0.9525377154350281,
-0.1627989113330841,
-0.322799950838089,
0.0011519697727635... |
def odometry _ updated ( self, odo ) : self. _ vehicle _ location = odo. pose. pose. position quaternion = ( odo. pose. pose. orientation. x, odo. pose. pose. orientation. y, odo. pose. pose. orientation. z, odo. pose. pose. orientation. w ) _, _, self. _ vehicle _ yaw = euler _ from _ quaternion ( quaternion ) | [
-0.0291141290217638,
-1.0638058185577393,
0.5542103052139282,
-1.0706039667129517,
-0.3033130466938019,
-0.5350692868232727,
-0.1146308109164238,
-0.4709499180316925,
0.12113618105649948,
0.10632698237895966,
-0.5791532397270203,
-0.06893260031938553,
1.271787166595459,
-0.0309678670018911... |
def get _ segment _ ends ( sequence _ feature, segment _ lens ) : device = infer _ device ( sequence _ feature ) batch _ size = sequence _ feature. shape [ 0 ] feat _ dim = sequence _ feature. shape [ - 1 ] max _ num _ segments = segment _ lens. shape [ 1 ] # ensure ` segment _ lens ` has 2 dimensions. segment _ lens =... | [
-0.3861510753631592,
-0.4637482166290283,
0.838040828704834,
0.45123931765556335,
0.663669228553772,
-0.6595406532287598,
0.29696014523506165,
0.2855953276157379,
0.20428228378295898,
0.33347228169441223,
-0.8668591976165771,
-0.053602561354637146,
0.0005579457501880825,
-0.702601432800293... |
def default _ value ( self ) : raise undefineddefaulterror | [
1.1126437187194824,
0.8149940371513367,
0.3628866672515869,
0.8392862677574158,
1.9169058799743652,
0.029088959097862244,
0.18636354804039001,
0.9914979934692383,
-0.6803435683250427,
-1.2295632362365723,
0.17047639191150665,
0.011536579579114914,
0.280817449092865,
1.0291614532470703,
-... |
def get _ selections _ from _ artist ( self, artist, progress = progress ( ) ) : selections = [ ] tracks = self. get _ top _ tracks _ from _ artist ( artist ) selections. extend ( tracks ) progress. set _ percent ( 0. 5 ) albums = self. get _ albums _ from _ artist ( artist ) selections. extend ( albums ) progress. set... | [
-0.7375940084457397,
-0.34742021560668945,
0.41058021783828735,
0.3764207661151886,
-0.11939346045255661,
0.00970365945249796,
0.597678542137146,
-1.2091786861419678,
0.4287632703781128,
0.07633692026138306,
-0.47412872314453125,
-0.2056155502796173,
0.165070578455925,
0.7988556027412415,
... |
def brocher _ vp ( f ) : f = np. asarray ( f ) * 0. 001 f = 0. 9409 + f * ( 2. 0947 - f * ( 0. 8206 - f * ( 0. 2683 - f * 0. 0251 ) ) ) f * = 1000. 0 return f | [
0.5396947860717773,
0.16953332722187042,
0.7139502763748169,
0.6287907361984253,
-0.16862113773822784,
-0.07178562134504318,
0.11340650171041489,
-0.05520021542906761,
0.4310862421989441,
0.5946956276893616,
-0.051710400730371475,
0.3126079738140106,
-0.480145663022995,
0.17680642008781433... |
def close ( self, ticket _ id, reject = false ) : closed = " rejected " if reject else " resolved " return self. update ( ticket _ id, { " status " : closed } ) | [
-0.2834830582141876,
0.08951276540756226,
0.4286420941352844,
-0.36332687735557556,
-1.5531675815582275,
1.0081559419631958,
-1.5511841773986816,
0.5390257835388184,
0.22619785368442535,
-0.572350800037384,
-0.159833624958992,
-0.48013487458229065,
-1.1629139184951782,
-0.03458132222294807... |
def _ write _ htuple ( self, value, subtypes ) : s = stringstream ( ) nitems = len ( value ) s. _ write _ int ( nitems ) ntypes = len ( subtypes ) for i in xrange ( nitems ) : s. write _ value ( value [ i ], subtypes [ i % ntypes ] ) data = s. getstring ( ) self. _ write _ int ( len ( data ) ) self. _ write ( data ) | [
-1.1166467666625977,
0.9710342884063721,
0.683845043182373,
-0.4057053029537201,
0.3038761019706726,
-0.049152716994285583,
0.3379453420639038,
-0.39023563265800476,
-0.958498477935791,
0.0478036142885685,
-0.9162358045578003,
-0.7041545510292053,
-0.9209643602371216,
-0.15526454150676727,... |
def add _ style ( self, s ) : self. add _ header ('< style > \ n { } \ n < / style > '. format ( s ) ) | [
0.07398579269647598,
-0.10352004319429398,
0.40577492117881775,
0.5081204771995544,
-0.31699132919311523,
-0.4847993552684784,
-1.0068862438201904,
-0.03537692129611969,
0.7587992548942566,
-0.38725563883781433,
0.05842773988842964,
0.25083985924720764,
-0.5576710104942322,
-0.332960218191... |
def test _ raise _ error _ if _ na _ in _ df ( df ) : data = df. copy ( ) data. loc [ 15, " var _ 3 " ] = np. nan transformer = drophighpsifeatures ( missing _ values = " raise " ) with pytest. raises ( valueerror ) : transformer. fit ( data ) | [
0.6937134265899658,
0.9920393228530884,
0.3234800696372986,
0.7513791918754578,
1.1294597387313843,
-0.47942477464675903,
0.08377192169427872,
0.5291144847869873,
-0.26291540265083313,
0.2418607473373413,
-0.7298339605331421,
0.559109628200531,
0.3641781210899353,
0.534336507320404,
0.62... |
def test _ atomic _ hex _ binary _ min _ length _ 2 _ nistxml _ sv _ iv _ atomic _ hex _ binary _ min _ length _ 3 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - minlength - 3. xsd ", instance ... | [
0.09971558302640915,
-0.07354969531297684,
0.5268293023109436,
0.830528736114502,
-0.17647391557693481,
0.9021198153495789,
-1.0200694799423218,
0.19072730839252472,
0.6119996309280396,
0.4826354384422302,
-0.3114175498485565,
-0.1485273540019989,
-0.26779308915138245,
-0.12733905017375946... |
def create _ pairs _ list ( all _ samples ) : dfs = [ ] # find match normals for tumor samples only tumor _ samples = all _ samples [ all _ samples. sample _ type = = " tumor " ] i = 0 for index, row in tumor _ samples. iterrows ( ) : # find all samples from same individual ( same individual _ id, different sample _ id... | [
-0.18480008840560913,
-0.4738689661026001,
0.7191821336746216,
-0.40951472520828247,
-0.703366756439209,
-0.3245276212692261,
0.7651850581169128,
0.5610461831092834,
0.45540857315063477,
0.20414294302463531,
0.9374158382415771,
-0.9998607039451599,
0.7379459142684937,
0.6169841885566711,
... |
def flatten ( self ) : xact = self. xactive yact = self. yactive ne = len ( xact ) nf = len ( yact ) n, m, p = self. n, self. m, self. p npar = n * * 2 + n * m + p * n + p * m + ne + nf x0 = np. empty ( npar ) x0 [ : n * * 2 ] = self. a. ravel ( ) x0 [ n * * 2 + np. r _ [ : n * m ] ] = self. b. ravel ( ) x0 [ n * * 2 +... | [
0.22951675951480865,
-0.4772530198097229,
0.6298017501831055,
-1.1835120916366577,
0.5564544200897217,
-0.10461573302745819,
0.9661075472831726,
0.45779019594192505,
0.22350311279296875,
-0.2533780038356781,
-0.10679656267166138,
0.18532274663448334,
-0.5877840518951416,
-0.103050768375396... |
def gettextlineatcaret ( self, obj, offset = none, startoffset = none, endoffset = none ) : try : text = obj. querytext ( ) except notimplementederror : return [ " ", 0, 0 ] # the caret might be positioned at the very end of the text area. # in these cases, calling text. gettextatoffset on an offset that's # not positi... | [
-0.1672256588935852,
-1.188284158706665,
0.6745951175689697,
-0.696847677230835,
-0.30886632204055786,
-0.19439014792442322,
-0.8869582414627075,
-0.688672661781311,
-0.255309522151947,
0.10728876292705536,
-0.23831075429916382,
0.22511835396289825,
0.15279367566108704,
-0.2204057723283767... |
def test _ split _ using _ cut _ off ( col, cut _ off, expected, df _ mixed _ types ) : test = drophighpsifeatures ( split _ col = col, cut _ off = cut _ off ) a, b = test. _ split _ dataframe ( df _ mixed _ types ) pd. testing. assert _ frame _ equal ( a, df _ mixed _ types. loc [ expected ] ) pd. testing. assert _ fr... | [
-0.5679816007614136,
0.33210182189941406,
0.4598275423049927,
0.22870375216007233,
0.14236129820346832,
0.6425941586494446,
1.079785943031311,
0.5055184364318848,
0.11079449206590652,
0.2934463918209076,
-0.5224185585975647,
-0.09324697405099869,
-0.4446149170398712,
-0.530031681060791,
... |
def cleansol ( self, sol, curx, cury, curtheta ) : self. logger. debug ( " cleansol was given sol : { } ". format ( str ( sol ) ) ) # iterate over solution for i in range ( len ( sol ) ) : # if this is not the first step of the solution if i! = 0 : # find the dimension that changed between the previous step and this on... | [
-0.4114249646663666,
-0.6880567669868469,
0.6798757314682007,
-0.48513782024383545,
0.3373703956604004,
-0.2809668481349945,
1.0386383533477783,
-0.434457927942276,
-0.5241555571556091,
0.25909096002578735,
-0.07928568124771118,
-0.13054510951042175,
-0.02791895903646946,
0.669722557067871... |
def _ check _ new _ postname ( self, req, name ) : warnings = [ ] name = name. lower ( ) # reserved names for rn in self. reserved _ names : if name = = rn : warnings. append ( ('', "'% s'is a reserved name. please change. " % name ) ) if name. startswith ( rn +'/') : warnings. append ( ('', " name cannot start with a ... | [
-0.7952131628990173,
0.1390574723482132,
0.7313861846923828,
0.13316072523593903,
-0.45504799485206604,
-0.13998883962631226,
-0.7327548265457153,
-0.8222165107727051,
-0.03326210007071495,
0.7747012376785278,
-0.2281162589788437,
-0.13544528186321259,
0.12101951986551285,
1.03580152988433... |
def get _ old _ filenames ( self ) : files = [ ] for file in self. filename _ objects : files. append ( file. get _ old ( ) ) files. sort ( ) return files | [
0.4127386212348938,
-1.100951075553894,
0.7610465884208679,
0.3374997675418854,
0.6842088103294373,
-0.09536706656217575,
-0.08443328738212585,
-0.3185390532016754,
-0.11404471844434738,
0.1300908327102661,
0.09456093609333038,
0.8660925030708313,
0.3216709494590759,
1.1014503240585327,
... |
def test _ atomic _ base64 _ binary _ pattern _ 3 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ pattern _ 4 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - pattern - 4. xsd ", instance ... | [
-0.14275811612606049,
-0.5005794763565063,
0.45980608463287354,
1.0579283237457275,
-0.16441461443901062,
-0.004752001725137234,
-0.04998796060681343,
-0.33737194538116455,
-0.470218300819397,
0.41193535923957825,
-0.5804782509803772,
-0.05870089679956436,
-0.4517529010772705,
-0.024898553... |
def fit ( self, x, y ) : x = self. ensure _ input _ format ( x, sparse _ format ='csr ', enforce _ sparse = true ) self. classifier. fit ( self. ensure _ input _ format ( x ), self. transform ( y ) ) return self | [
-0.03350678086280823,
-0.6056756973266602,
0.3336765468120575,
0.045456551015377045,
0.09240544587373734,
0.6672780513763428,
-0.9990878105163574,
-0.05707809701561928,
-0.07141025364398956,
-0.8096904754638672,
-0.2529301047325134,
1.400337815284729,
-0.01859443634748459,
-0.2636296749114... |
def two _ prime _ factors ( pfix = 65537 ) : for p in eratosthenes ( ) : yield pfix * p | [
-0.10427071154117584,
-0.46928825974464417,
0.35205787420272827,
-0.3558383584022522,
0.4249300956726074,
-0.12247174978256226,
-0.852532148361206,
0.007871322333812714,
-0.2287447452545166,
-0.6898844838142395,
-1.2854093313217163,
0.2657497525215149,
0.6226081848144531,
-0.51803994178771... |
def testgotoprofilefunction ( self ) : self. utils. account. login _ as ( self. username, self. password ) self. po. goto _ page ( ) startpageurl = self. po. current _ url ( ) self. po. set _ page _ load _ marker ( ) self. po. goto _ profile ( ) self. po. wait _ for _ page _ to _ load ( ) endpageurl = self. po. current... | [
0.23458832502365112,
0.735015332698822,
0.4917171597480774,
0.26823294162750244,
0.9406610131263733,
0.34282705187797546,
0.8489949107170105,
-0.44873228669166565,
-0.027944987639784813,
-0.06772734969854355,
-0.8406512141227722,
0.004700991325080395,
-0.13746848702430725,
-0.4370963573455... |
def _ _ init _ _ ( self, phenotype = none ) : self. phenotype = phenotype | [
0.9362185597419739,
-0.21925541758537292,
0.27879440784454346,
0.7138591408729553,
0.08499450236558914,
-0.5720739960670471,
-0.29240381717681885,
1.6909728050231934,
0.372192919254303,
-0.3213118016719818,
-1.2737832069396973,
0.30936944484710693,
-0.7695983052253723,
0.544005811214447,
... |
def get _ owner _ repo ( self, git _ url ) : split = git _ url. split ('/') owner = split [ - 2 ] repo = split [ - 1 ] if '. git'= = repo [ - 4 : ] : repo = repo [ : - 4 ] return owner, repo | [
-0.4213341176509857,
-0.5142602920532227,
0.6326611042022705,
0.4168095886707306,
0.03424626961350441,
-0.4768061935901642,
-0.05277620628476143,
0.00588617380708456,
0.14340943098068237,
0.16581252217292786,
-0.04638790711760521,
0.31235408782958984,
0.10299708694219589,
-0.60321116447448... |
def put ( self, topic _ id : str ) - > none : assert self. user _ id is not none assert self. normalized _ payload is not none topic = topic _ fetchers. get _ topic _ by _ id ( topic _ id, strict = true ) version = self. normalized _ payload ['version'] self. _ require _ valid _ version ( version, topic. version ) comm... | [
-0.0772336944937706,
-0.6347044706344604,
0.6427080631256104,
0.022119440138339996,
0.02626391313970089,
0.8846595883369446,
0.4787333905696869,
-0.7123442888259888,
0.06184503808617592,
0.3877602815628052,
0.09589368104934692,
1.0496562719345093,
0.302902489900589,
0.2847538888454437,
0... |
def compare _ outputs ( torch _ outputs, ort _ outputs, atol = 1e - 06, verbose = true ) : same = numpy. asarray ( [ numpy. allclose ( ort _ outputs [ i ], torch _ outputs [ i ]. cpu ( ). numpy ( ), atol = atol, rtol = 0 ) for i in range ( len ( ort _ outputs ) ) ] ) max _ abs _ diff = [ diff _ outputs ( torch _ output... | [
0.04346977919340134,
-1.2140238285064697,
0.7905638813972473,
0.2625799775123596,
-0.29290130734443665,
-0.10267951339483261,
0.4193911850452423,
-0.5277307033538818,
-0.3196370601654053,
0.21010291576385498,
0.4073850214481354,
-0.18726369738578796,
0.4092752933502197,
0.28122562170028687... |
def teardown ( self ) : self. app = none | [
0.8642492294311523,
-1.0828651189804077,
0.014455795288085938,
-0.4735051393508911,
0.5020575523376465,
1.2005382776260376,
1.2884118556976318,
-0.461961030960083,
0.8341407775878906,
-0.04379313066601753,
0.17414145171642303,
0.612906277179718,
-0.7956107258796692,
0.021944701671600342,
... |
def test _ disable _ hooks ( self ) : example _ py2 _ check = false standard _ library. enable _ hooks ( ) # deprecated name old _ meta _ path = copy. copy ( sys. meta _ path ) standard _ library. disable _ hooks ( ) standard _ library. scrub _ future _ sys _ modules ( ) if utils. py2 : self. asserttrue ( len ( old _ m... | [
0.05524439364671707,
0.22593337297439575,
0.513272225856781,
0.8881940245628357,
0.5440042018890381,
0.8035028576850891,
0.6857574582099915,
0.33081331849098206,
-0.29798388481140137,
-0.28358766436576843,
-0.45902693271636963,
-0.15744648873806,
-0.18560007214546204,
0.06704481691122055,
... |
def hour _ sample ( x ) : enc = onehotencoder ( sparse ='false ', categories = [ list ( range ( 0, 24 ) ) ] ) array = enc. fit _ transform ( np. array ( x. index. hour ). reshape ( - 1, 1 ) ) array = array. toarray ( ) columns = ['hour _'+ str ( i ) for i in range ( 0, 24 ) ] return pd. dataframe ( array, index = x. in... | [
-0.5619723796844482,
0.03773334622383118,
0.7002503871917725,
0.370694100856781,
-0.9029762744903564,
0.14043253660202026,
-0.2701196074485779,
0.08137543499469757,
0.39626258611679077,
0.649630069732666,
-0.3302740156650543,
-0.0196446031332016,
0.16682127118110657,
-0.691501259803772,
... |
def test _ atomic _ qname _ length _ 4 _ nistxml _ sv _ iv _ atomic _ qname _ length _ 5 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - length - 5. xsd ", instance = " nistdata / atomic / qname / schem... | [
0.2197956144809723,
-0.4384574294090271,
0.268931120634079,
-0.3247455358505249,
-0.5008217096328735,
-0.08096561580896378,
0.028589310124516487,
-0.9258600473403931,
-0.10953618586063385,
0.6076224446296692,
-0.9007737040519714,
-0.3685116767883301,
-0.314167857170105,
0.09735249727964401... |
def from _ iter ( cls, iterator ) : title, test _ row, * rows = iterator table = cls ( * zip ( title, map ( type, test _ row ) ) ) table. insert ( * test _ row ) for row in rows : table. insert ( * row ) return table | [
0.2163640558719635,
-0.08970598876476288,
0.2784411609172821,
0.2818213999271393,
-0.7328983545303345,
0.20641276240348816,
0.21015280485153198,
-0.14022187888622284,
-0.053136419504880905,
0.2423986941576004,
0.4440799057483673,
-0.7558355927467346,
-0.22664326429367065,
0.228657305240631... |
def _ _ get _ location ( self, function, column ) : row = self. _ _ data _ area [ function ( self. _ _ data _ area ) ] if column is none : return tuple ( row [ index ] for index in sorted ( row ) ) return row [ self. _ _ columns [ column ] [ 1 ] ] | [
-0.8019384741783142,
0.7197996377944946,
0.609256386756897,
-0.1034359335899353,
-0.1500687301158905,
-0.8203071355819702,
0.2802204191684723,
-0.6011317372322083,
-1.2610262632369995,
0.2729964852333069,
0.7299957871437073,
0.6823722124099731,
0.6710346341133118,
-0.34786784648895264,
0... |
def one _ time ( self ) : if self. schedule _ freq _ type = ='one _ time': return {'active _ start _ date': schedulepattern. _ time _ converter ( self. _ pattern ['active _ start _ date'],'% m / % d / % y ', false ),'active _ start _ time': schedulepattern. _ time _ converter ( self. _ pattern ['active _ start _ time']... | [
-0.8980323076248169,
-0.3624778389930725,
0.559029221534729,
-0.8044881224632263,
-0.2838359773159027,
-0.48852911591529846,
0.1256745606660843,
-0.16522929072380066,
0.39856651425361633,
1.2132489681243896,
-0.21429985761642456,
-0.4122094213962555,
-0.10558005422353745,
0.351108461618423... |
def postprocessing ( batch, vocab ) : return batch | [
0.3680415451526642,
-1.7209528684616089,
0.15334096550941467,
-0.16015787422657013,
-0.5531014204025269,
-0.6776236295700073,
-0.7561596632003784,
0.4933871626853943,
0.3301798403263092,
0.10648021101951599,
-0.5636406540870667,
0.37209025025367737,
-0.6484315395355225,
0.20454415678977966... |
def forcast ( self, x, n _ steps ) : if len ( x. shape ) = = 1 : x = x. reshape ( - 1, 1 ) r = x. shape [ 0 ] window = self. clone _ window ( ) for i in range ( r ) : window. add _ element ( np. asarray ( [ x [ i ] ] ), np. asarray ( [ x [ i ] ] ) ) forecasts = [ ] for i in range ( n _ steps ) : next _ element = self. ... | [
-0.652751088142395,
-0.10157523304224014,
0.7759584784507751,
0.6161684393882751,
-0.8986939787864685,
-0.19824272394180298,
-0.06126224994659424,
-0.44213220477104187,
0.11316981911659241,
0.4644351005554199,
0.6729511618614197,
0.8617326617240906,
0.21479517221450806,
1.7089158296585083,... |
def newline ( self ) : self. x _ position = 0 self. y _ position + = self. checkbounds ('y') | [
0.30779242515563965,
-1.3173350095748901,
0.363028883934021,
0.09794200211763382,
1.1626864671707153,
0.2742052376270294,
-0.5157656073570251,
-0.2838627099990845,
-0.07756651937961578,
-0.9309898018836975,
-0.41458961367607117,
0.2602212429046631,
0.5895127058029175,
0.6650442481040955,
... |
def skew ( a ) : return np. array ( [ [ 0, - a [ 2 ], a [ 1 ] ], [ a [ 2 ], 0, - a [ 0 ] ], [ - a [ 1 ], a [ 0 ], 0 ] ] ) | [
-0.2890203893184662,
-0.48416683077812195,
0.7820015549659729,
-0.030101926997303963,
0.28976842761039734,
0.13995903730392456,
-0.06470026820898056,
0.3795890808105469,
1.3644205331802368,
0.6040514707565308,
0.2847472131252289,
0.45353665947914124,
-0.0347139947116375,
-0.293760150671005... |
def rewrite ( self, source _ bucket : str, source _ object : str, destination _ bucket : str, destination _ object : str | none = none, ) - > none : destination _ object = destination _ object or source _ object if source _ bucket = = destination _ bucket and source _ object = = destination _ object : raise valueerror ... | [
-0.6880394220352173,
-0.441701740026474,
0.7195236086845398,
0.03660382702946663,
0.796960711479187,
-0.4251655638217926,
0.5195138454437256,
-0.065990149974823,
-0.7143128514289856,
0.5467028021812439,
-1.0042529106140137,
0.5159025192260742,
0.824940025806427,
-0.4479275345802307,
0.53... |
def plot _ var ( var, _ dir ='ret _ code ', axes = none, point ='508 _ med') : post = nc. dataset ( _ dir +'/ controlvector _ post. nc ','r') pri = nc. dataset ( _ dir +'/ controlvector _ prior. nc ','r') field _ laican = mlab. csv2rec ('data / field _ obs / mni _ lai _ canht _ field _'+ point + '. csv ', comments ='%'... | [
0.366172730922699,
0.23047548532485962,
0.7752078771591187,
-0.35859403014183044,
-0.9098910689353943,
0.44892609119415283,
0.6203750967979431,
-0.6952389478683472,
-0.8381021022796631,
0.027708610519766808,
0.46477416157722473,
0.9813915491104126,
0.48206663131713867,
0.6918562054634094,
... |
def model _ lmer ( self ) : # goals of the modelling and hypothesis testing ; main questions to answer : # - is there a baseline difference between ctrl and trmt or resp / nonresp groups # - is there a visit - time slope associated with the resp group? # notes on model design : # - visit - time is numerical and our mai... | [
0.2527865767478943,
-0.3060084879398346,
0.7382069826126099,
-0.468288779258728,
0.10509449243545532,
0.5970242023468018,
1.0970330238342285,
-0.2809761166572571,
0.22940625250339508,
-0.08855346590280533,
0.088455431163311,
-0.7583024501800537,
-0.14744718372821808,
0.2697657346725464,
... |
def test _ atomic _ hex _ binary _ length _ 1 _ nistxml _ sv _ iv _ atomic _ hex _ binary _ length _ 2 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - length - 2. xsd ", instance = " nistdata / ... | [
0.2416117787361145,
-0.5479643940925598,
0.40906044840812683,
0.6739146709442139,
0.11280230432748795,
0.16833025217056274,
-0.17547789216041565,
0.04079320281744003,
-0.5697512626647949,
0.011095996014773846,
-0.6810481548309326,
-0.4561102092266083,
0.06594602018594742,
0.940304577350616... |
def list _ words _ to _ vector ( words = none, word _ vectors = none ) : if words is none : raise runtimeerror ( " the words list is none " ) m = len ( words ) vector = np. zeros ( 300 ) for word in words : if word in word _ vectors. vocab : vector + = word _ vectors. get _ vector ( word ) return vector / m | [
0.14462700486183167,
0.38833701610565186,
0.3596075773239136,
0.3851546347141266,
0.9239667057991028,
-0.488793283700943,
0.09869586676359177,
0.670261025428772,
0.9933062791824341,
1.1591805219650269,
-0.050715599209070206,
0.9489591717720032,
-0.6909482479095459,
1.539151906967163,
-1.... |
def get _ spectral _ mapping ( header1, header2, specaxis1 = none, specaxis2 = none ) : wcs1 = wcs ( header1 ) wcs2 = wcs ( header2 ) if specaxis1 is none : specaxis1 = wcs1. wcs. spec if specaxis2 is none : specaxis2 = wcs2. wcs. spec # functions to give the spectral coordinate from each fits header w1 = lambda x : sp... | [
0.07204767316579819,
-0.8161720633506775,
1.210831880569458,
-0.015261242166161537,
-1.2936774492263794,
0.1414385586977005,
0.262474000453949,
-0.4071274697780609,
-0.30448031425476074,
0.12562279403209686,
0.8054473400115967,
1.3281351327896118,
-0.5230645537376404,
0.04910147935152054,
... |
def move _ train ( self, train _ idx, speed, line _ idx ) : with self. _ lock : if train _ idx not in self. trains : return result. resource _ not _ found if train _ idx in self. _ next _ train _ moves : del self. _ next _ train _ moves [ train _ idx ] train = self. trains [ train _ idx ] if line _ idx not in self. map... | [
-0.4150676727294922,
-0.6615186333656311,
1.004067301750183,
0.17345218360424042,
0.23913517594337463,
-0.20407401025295258,
-0.08556441217660904,
-0.351386696100235,
-0.685194194316864,
-0.012401115149259567,
-0.32338130474090576,
-0.4370878040790558,
-0.3873624801635742,
-1.0962697267532... |
def scripttest2 ( ) : print ( colors. bold + " appel du script a deux teams " + colors. endc ) data = const. defaultdata ( activityname = " generatedactivityteam2. 36 " ) rmurray = sessionserpico ( " rmurray @ yopmail. com " ) rmurray. createactivity ( data = data. datacreationactivity ) rmurray. addcriterion ( data. g... | [
0.18658135831356049,
-0.5926616191864014,
0.8793668150901794,
-0.004130043555051088,
0.207131490111351,
0.3880116045475006,
0.8451783061027527,
-0.9351220726966858,
-0.0716850534081459,
-0.1470634490251541,
-0.4901055693626404,
0.663508415222168,
-0.16231007874011993,
0.032521504908800125,... |
def get _ entities _ from _ elas4rdf ( query, size = 1000 ) : url = " https : / / demos. isl. ics. forth. gr / elas4rdf / entities _ json " payload = { " query " : query, " size " : str ( size ) } headers = { " accept " : " application / json " } response = requests. get ( url, params = payload, headers = headers ) try... | [
-0.7008995413780212,
-0.2102428674697876,
0.42695069313049316,
-1.2563575506210327,
0.37087178230285645,
-0.33749037981033325,
-0.7745271325111389,
-0.26386573910713196,
0.1850443184375763,
0.16226057708263397,
0.23205380141735077,
-0.060961928218603134,
-0.21913668513298035,
0.32718247175... |
def ls ( name : str ) : cfg = utils. load _ config ( ) names = cfg. keys ( ) if name not in names : echo ( f " destination { name } not found. " ) echo ( " available destinations : " ) echo ( " \ n ". join ( names ) ) return dest = cfg [ name ] echo ( f " listing files in { dest. path } " ) files = [ f for f in path ( ... | [
-0.24571974575519562,
0.060957081615924835,
1.0034500360488892,
-0.8483926057815552,
-0.4957398474216461,
-0.4995620548725128,
-0.12399975210428238,
0.05021493509411812,
-0.35600629448890686,
1.1265721321105957,
-0.5573847889900208,
0.4028695523738861,
0.9837745428085327,
0.540825784206390... |
def test _ list _ integer _ pattern _ 3 _ nistxml _ sv _ iv _ list _ integer _ pattern _ 4 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - pattern - 4. xsd ", instance = " nistdata / list / integer / sc... | [
-0.5960858464241028,
-0.1050245389342308,
0.49434784054756165,
0.311739981174469,
-0.17861513793468475,
-0.06954098492860794,
-0.19204336404800415,
0.4116676151752472,
1.096557378768921,
0.6189470291137695,
-0.7722274661064148,
-0.7831739187240601,
-0.6242668032646179,
0.08479046821594238,... |
def close _ connection ( self, conn ) : # close the connections in the connection pool self. connection _ pool. close _ all _ connections ( ) conn. quit ( ) | [
0.04622432217001915,
-0.9038022756576538,
0.32062244415283203,
0.6152023077011108,
0.7846639156341553,
0.30899578332901,
-0.09198832511901855,
0.20187842845916748,
-0.631476640701294,
-0.7903023958206177,
0.10007273405790329,
-0.4542815089225769,
-0.3060140013694763,
0.6188652515411377,
... |
def draw _ vertical ( x = 1, y = 1 ) : print ( " { } { } ; { } h│ ". format ( csi, y, x ), end = " ", flush = true ) | [
0.5415425300598145,
0.16180270910263062,
0.6345011591911316,
0.015335554257035255,
-0.021759934723377228,
0.39211031794548035,
-0.6427054405212402,
-0.4891728162765503,
-0.7524225115776062,
-0.14336559176445007,
-0.7981635928153992,
1.734930396080017,
-0.22296246886253357,
-0.2845259904861... |
def predict ( self, words : np. array ) - > np. array : pass | [
-0.6880201697349548,
-0.16549062728881836,
0.1320001482963562,
0.2595413029193878,
-0.0836062952876091,
0.2100273221731186,
-0.178833469748497,
0.1941370666027069,
0.009436315856873989,
0.5467668771743774,
0.24235285818576813,
1.169676661491394,
-0.777123749256134,
1.1906979084014893,
-1... |
def test _ list _ integer _ pattern _ 1 _ nistxml _ sv _ iv _ list _ integer _ pattern _ 2 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - pattern - 2. xsd ", instance = " nistdata / list / integer / sc... | [
-0.7902058362960815,
-0.4905722439289093,
0.5570977926254272,
0.6882182359695435,
-0.5530440807342529,
-0.07809590548276901,
0.38460662961006165,
0.4935767948627472,
0.3453172445297241,
0.6686202883720398,
-1.291100025177002,
-0.0164535753428936,
-0.18348334729671478,
0.8462556004524231,
... |
def get _ ground _ truth ( ax, fig, x, y, s, tick _ size, axes _ x _ pos, axes _ y _ pos ) : point _ boxes = get _ data _ pixel ( ax, fig, x, y, s ) x _ tick _ boxes, y _ tick _ boxes = get _ tick _ pixel ( ax, fig, tick _ size, axes _ x _ pos, axes _ y _ pos ) x _ label _ boxes, y _ label _ boxes = get _ label _ pixel... | [
-0.2789307236671448,
0.2990540564060211,
0.5749187469482422,
-0.46268028020858765,
0.059059638530015945,
0.597411036491394,
-0.012719767168164253,
-0.4948972463607788,
-0.518765389919281,
0.5118604302406311,
-0.2263249158859253,
0.7537611126899719,
0.6475316286087036,
-0.7514479756355286,
... |
def _ _ init _ _ ( self, book _ data, x, ind _ to _ char, char _ to _ ind, nunique ) : self. book _ data = book _ data self. x = x self. ind _ to _ char = ind _ to _ char self. char _ to _ ind = char _ to _ ind self. nunique = nunique | [
-0.49171480536460876,
-0.5643813014030457,
0.21978884935379028,
0.03305979445576668,
-0.15472017228603363,
0.3521130681037903,
-0.588351845741272,
0.7653741836547852,
-1.0170832872390747,
0.18230633437633514,
-0.9350042343139648,
0.6713898777961731,
0.40528783202171326,
-1.4379361867904663... |
def _ one _ time ( self, pattern _ dict ) : pattern _ dict ['freq _ type'] = 1 self. _ pattern _ json ( pattern _ dict ) | [
-1.3844722509384155,
0.6688046455383301,
0.34569525718688965,
-1.021903157234192,
0.9101768732070923,
-0.5615705847740173,
0.7646146416664124,
0.3392504155635834,
0.9211878776550293,
0.41095060110092163,
-0.35496366024017334,
0.34278082847595215,
0.2910151183605194,
0.6248246431350708,
0... |
def _ ffixx ( func _ str : str, custom _ x : str ) - > str : # identifying the independent variable in the function string x _ str = custom _ x if type ( custom _ x ) = = str else'x'custom _ x = re. search ( r'(? < = \ [ ) \ w [ \ w \. \ ( \ ) ] * (? = \ ] ) ', func _ str ) # square brackets notation overrides custom _... | [
0.21249587833881378,
-0.68394935131073,
0.6148225665092468,
-0.2193228155374527,
-0.7568263411521912,
-0.9600111246109009,
-0.5556411147117615,
0.8472977876663208,
-0.23671194911003113,
0.009283091872930527,
-0.030400868505239487,
1.4459786415100098,
0.32393941283226013,
-0.716888248920440... |
def extract _ occupancy _ to _ ray _ pos ( ray _ voxel _ indices, ray _ to _ occupancy _ accumulated _ pon, ray _ to _ occupancy _ messages _ pon ) : # retain only the voxels through which each ray intersects ray _ to _ occupancy _ accumulated _ pon = k. tf. gather _ nd ( ray _ to _ occupancy _ accumulated _ pon, ray _... | [
0.2701209485530853,
-0.779447615146637,
0.7047293782234192,
-0.1667523980140686,
0.3597221374511719,
-0.46777984499931335,
0.33065906167030334,
0.3555016815662384,
-0.26414889097213745,
1.56112802028656,
0.7875921130180359,
-0.45138993859291077,
-0.14091317355632782,
-0.5679475665092468,
... |
def create _ group ( name ) : return group. objects. create ( name = name ) | [
-0.03006008453667164,
1.2304812669754028,
0.20247948169708252,
-0.20941568911075592,
-0.3725343942642212,
0.5924742221832275,
-0.8439674377441406,
-0.7736578583717346,
-1.2370601892471313,
-0.06669294089078903,
-0.82828688621521,
-0.8961747884750366,
-0.5988955497741699,
0.0482706911861896... |
def getfeaturesfromservicebygeometry ( self, url, querytext, geometrytouse, geometrytype, spatialquerytype, fields, usecustomheaders = false, additionalparameters = none ) : # initialize a master list, we will append each querie's features to this featurelist = [ ] # for geometry type, see http : / / resources. esri. c... | [
-0.1911448985338211,
-0.4643228054046631,
0.8066076040267944,
0.11222603172063828,
-0.20381926000118256,
-0.2042648047208786,
-0.1757783442735672,
-1.1123769283294678,
-0.015828782692551613,
-0.0090634161606431,
-0.6134976148605347,
0.712102472782135,
-0.6540583372116089,
-0.05043322592973... |
def example _ reader ( vocab, config ) : from jtr. jack. tasks. mcqa. simple _ mcqa import simplemcinputmodule, simplemcmodelmodule, simplemcoutputmodule shared _ resources = sharedvocabandconfig ( vocab, config ) input _ module = simplemcinputmodule ( shared _ resources ) model _ module = simplemcmodelmodule ( shared ... | [
0.37057822942733765,
-0.5433726906776428,
0.3468654751777649,
-0.4351944327354431,
-1.685752272605896,
-0.32859817147254944,
0.301125168800354,
-0.19900637865066528,
0.7451850175857544,
0.39917802810668945,
-0.2882792353630066,
-0.2953232228755951,
-0.5357210040092468,
-0.161249041557312,
... |
def sentencetoindexes ( voc, sentence ) : return [ voc. word2index [ word ] for word in sentence. split ('' ) ] + [ 2 ] | [
-0.08015359938144684,
-0.6958237886428833,
0.35630306601524353,
0.12714067101478577,
0.2999436855316162,
-0.6935341358184814,
-0.16036385297775269,
1.016809344291687,
0.051869530230760574,
1.3609373569488525,
-1.0434315204620361,
0.27679333090782166,
0.3372911512851715,
-0.2997888922691345... |
def resolve _ table _ alias ( _ table _ name : str ) - > str : if _ table _ name in tables _ aliases : return tables _ aliases [ _ table _ name ] return _ table _ name | [
0.038712598383426666,
0.050573933869600296,
0.4974776804447174,
0.43931567668914795,
-0.5122612714767456,
0.12607748806476593,
-0.12885050475597382,
0.5862545371055603,
-0.970677375793457,
0.6607859134674072,
0.08892284333705902,
-0.22178088128566742,
0.43935978412628174,
0.463369250297546... |
def updatebraillefornewcaretposition ( self, obj ) : if not _ settingsmanager. getsetting ('enablebraille') \ and not _ settingsmanager. getsetting ('enablebraillemonitor') : debug. println ( debug. level _ info, " braille : update caret disabled " ) return brailleneedsrepainting = true line = braille. getshowingline (... | [
0.9010449051856995,
-1.4116861820220947,
0.7158574461936951,
-0.07548113167285919,
-0.7745007872581482,
0.8114318251609802,
-0.16269339621067047,
-0.73279869556427,
-0.10102738440036774,
0.6887929439544678,
-0.5092396140098572,
0.19819313287734985,
-0.8652733564376831,
0.6486083269119263,
... |
def interpolate _ over _ grid ( x, y, u, v, n = 100, return _ coords ='linspace ', method ='cubic') : # from : # https : / / stackoverflow. com / questions / 33637693 / how - to - use - streamplot - function - when - 1d - data - of - x - coordinate - y - coordinate - x - vel nx = ny = n # - - ( n, 2 ) arrays of input x... | [
-0.3374541997909546,
0.47539395093917847,
0.7070905566215515,
-0.017615942284464836,
-0.1266246736049652,
-0.11980472505092621,
-0.04643290862441063,
-0.30043700337409973,
-0.13433797657489777,
-0.3190464377403259,
0.16653023660182953,
0.6342384815216064,
-0.7042174935340881,
-0.0913170650... |
def source _ db _ server _ fully _ qualified _ domain _ name ( self ) - > optional [ str ] : return pulumi. get ( self, " source _ db _ server _ fully _ qualified _ domain _ name " ) | [
0.0045745112001895905,
0.45308780670166016,
0.5345461964607239,
0.09538555145263672,
-0.34837350249290466,
1.1440314054489136,
-0.385405570268631,
0.11813750118017197,
0.614929735660553,
-0.4778006374835968,
-1.0432040691375732,
1.1055774688720703,
0.26281243562698364,
0.2211020588874817,
... |
def mock _ run ( mockgrid, mock _ timedir, mockweights, esm _ analysis ) : run = esm _ analysis. rundirectory. gen _ weights ( mockgrid, mock _ timedir, prefix ='test ', model _ type ='dwd ', infile = mockweights ) yield run | [
-0.7681029438972473,
0.5590759515762329,
0.6827437281608582,
-0.07038795202970505,
0.3229645788669586,
0.41621434688568115,
0.7215215563774109,
-0.5857476592063904,
-0.28245916962623596,
-0.5355162024497986,
0.4750625491142273,
-0.07064054906368256,
-0.2353278398513794,
0.8006560206413269,... |
def _ _ gt _ _ ( self, other : block ) - > bool : if self. _ _ class _ _! = other. _ _ class _ _ : return notimplemented return hash ( self ). _ _ gt _ _ ( hash ( other ) ) | [
-0.27817100286483765,
0.23258353769779205,
1.1444880962371826,
0.9325067400932312,
-0.39940398931503296,
0.7633498907089233,
-0.614091157913208,
-1.257732629776001,
-0.34801897406578064,
0.17555980384349823,
-1.1283810138702393,
0.20448225736618042,
0.21626466512680054,
1.08852219581604,
... |
def img2img _ transformer2d _ q3 ( ) : hparams = img2img _ transformer2d _ q1 ( ) hparams. batch _ size = 2 hparams. query _ shape = ( 8, 16 ) hparams. memory _ flange = ( 8, 32 ) return hparams | [
-0.285946249961853,
-0.33669015765190125,
0.319937139749527,
-0.21057555079460144,
-0.5525879263877869,
0.3676701784133911,
-0.042758964002132416,
0.011395917274057865,
-0.4292706847190857,
-0.03798559308052063,
-0.16091878712177277,
0.6490757465362549,
0.45588403940200806,
0.5498203039169... |
def remove _ punctuations ( text ) : regex _ pattern = re. compile ( r'[ \, + \ : \? \! \ " \ ( \ )! \'\. \ % \ [ \ ] ] +') clean _ text = regex _ pattern. sub ( r'', text ) clean _ text = clean _ text. replace ('- ','' ) return clean _ text | [
-0.077423095703125,
-0.6805552840232849,
0.5345979928970337,
0.11155437678098679,
-0.47654882073402405,
0.2973962128162384,
-0.24418121576309204,
1.6515223979949951,
0.27130764722824097,
0.43291187286376953,
-0.6989710330963135,
-0.3195074200630188,
-0.6890548467636108,
0.03901726379990578... |
def get _ url _ file ( ad _ id, index, show _ pushid _ set, bidres _ pushid _ set, show _ url _ dict, unshow _ url _ dict, file _ name ) : if ( none = = show _ pushid _ set or none = = bidres _ pushid _ set or none = = file _ name or 0 = = len ( file _ name ) ) : return # print ( " filter = " + string. join ( id _ filt... | [
0.5470988154411316,
0.16497378051280975,
0.7006253004074097,
-0.7587117552757263,
-0.4609692096710205,
-0.0853542685508728,
0.3894226551055908,
0.838957667350769,
-0.8885650038719177,
0.5502519011497498,
0.5082632303237915,
0.6462407112121582,
0.17610634863376617,
0.22600333392620087,
1.... |
def maxent _ fs ( p _ value ) : if p _ value = = 0 : fs = 1000 else : fs = ceil ( min ( sqrt ( 1 / p _ value ) / 10, 1000 ) ) return fs | [
0.7097843885421753,
-0.05467988923192024,
0.3681110739707947,
0.31100764870643616,
-0.2268316149711609,
-0.3827379047870636,
-0.4932074248790741,
0.2621414363384247,
0.7133562564849854,
-0.32018816471099854,
0.7185284495353699,
-0.7805333733558655,
-0.3222634196281433,
0.4644318222999573,
... |
def shutdown ( self ) : self. send _ shutdown ( ) | [
-0.49933668971061707,
-0.42516982555389404,
0.10493314266204834,
0.581765353679657,
0.7181466221809387,
-0.3984491229057312,
0.7932100296020508,
0.1269269585609436,
-0.1393243819475174,
0.4525921642780304,
-0.16908439993858337,
0.5088929533958435,
-0.7748311161994934,
-0.09519194066524506,... |
def get _ cbr _ daily _ currencies ( ) : cbr _ response = requests. get ( daily _ currency _ link ) if not cbr _ response. ok : abort ( 503 ) currency _ dict = parse _ cbr _ currency _ base _ daily ( cbr _ response. text ) return jsonify ( currency _ dict ) | [
-1.29792058467865,
-0.10454802960157394,
0.16871410608291626,
0.15731476247310638,
0.21757695078849792,
-1.4910380840301514,
-0.32777494192123413,
-1.1412570476531982,
-0.71769779920578,
0.024841779842972755,
-0.42551520466804504,
-0.5215616822242737,
-1.2570730447769165,
0.426070868968963... |
def weight _ ht ( self ) : return self. structural _ weight _ per _ area * self. s _ h | [
0.8974039554595947,
0.009866084903478622,
0.4205687642097473,
0.1766328066587448,
0.28030577301979065,
1.1282557249069214,
0.6588902473449707,
-0.11270668357610703,
-0.833057701587677,
0.3009353280067444,
0.3270319104194641,
-0.49081116914749146,
-0.09462441504001617,
0.25918975472450256,
... |
def to _ dict ( self ) : versions = { } for ( key, value ) in iteritems ( self. _ _ dict _ _ ) : if isinstance ( key, str ) and key. isupper ( ) and isinstance ( value, types. functiontype ) : versions [ key ] = value return versions | [
-0.7474835515022278,
-0.5222607254981995,
0.5846943259239197,
-0.1789243221282959,
-0.47133761644363403,
-0.10087759792804718,
-0.2584742307662964,
-0.7469202876091003,
-0.6266734004020691,
0.5308200716972351,
-0.8356221914291382,
0.8921186923980713,
-0.1524510681629181,
1.2808648347854614... |
def convert ( number, table ) : converter = " " if table = = 10 : converter = decimal elif table = = 16 : converter = hex elif table = = 2 : converter = binary elif table = = 8 : converter = octal else : print ( " choose another base " ) output = converter. get ( str ( number ) ) # if number > 16 : # num = number - 16 ... | [
-0.5654324889183044,
-0.4808965027332306,
0.9750039577484131,
0.5635056495666504,
-0.26048070192337036,
-0.04882346838712692,
-0.44279003143310547,
-0.2681417167186737,
-0.8065609931945801,
-0.0021603899076581,
-0.5800992250442505,
-0.16745054721832275,
0.0349477082490921,
-0.1177894249558... |
def test _ example _ input _ one _ add _ valid _ title ( 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. entity1. exampl... | [
0.2680026590824127,
0.2500116527080536,
0.6100455522537231,
0.4164203405380249,
0.07249473035335541,
1.0079028606414795,
-0.791028618812561,
-0.3859727084636688,
1.0859991312026978,
0.22204135358333588,
-0.02077358588576317,
-0.668725848197937,
-0.4541983902454376,
-0.13257354497909546,
... |
def findprediction ( sample, centroiddata ) : shortestdist = - 1 prediction = none # traverse through each feature in our test list and subtract from class's feature data for i in range ( 2, len ( sample ) ) : centroiddata [ int ( sample [ 1 ] ) ] [ 0 ] [ i - 2 ] - = sample [ i ] # subtract 1 from total # of samples in... | [
0.2372393161058426,
-0.9099797606468201,
0.6156444549560547,
0.11879292875528336,
-1.1884162425994873,
-0.10570045560598373,
0.8332179188728333,
0.23048196732997894,
0.26154768466949463,
0.2754635214805603,
-0.03703571483492851,
0.6046656370162964,
-0.7128918766975403,
0.13349750638008118,... |
def all _ quotes ( stock, all _ dates = none ) : assert len ( stock ) > = 3 if all _ dates is none : all _ dates = desired _ dates ( start _ date = 30 ) quotes = quotation. objects. filter ( asx _ code = stock ) \. filter ( fetch _ date _ _ in = all _ dates ) \. exclude ( error _ code = " id - or - code - invalid " ) r... | [
-0.7038025259971619,
0.6544713973999023,
0.4796094000339508,
0.649112343788147,
-0.2292284369468689,
0.012639159336686134,
-0.6287721991539001,
0.03583236411213875,
-0.3435460925102234,
0.0624624527990818,
0.4343053698539734,
0.5071730613708496,
0.4181175231933594,
0.31648752093315125,
0... |
def twotothen ( n ) : import time import math # set up timer start = time. time ( ) val = 2 * * n wait = math. log10 ( n ) timer = time. time ( ) # loop until time elapsed meets threshold while timer - start < = wait : timer = time. time ( ) # update timer | [
-0.2719014286994934,
-0.1251944750547409,
0.6847382187843323,
-0.34899425506591797,
0.38407108187675476,
-0.4966965913772583,
-0.17108601331710815,
-0.750686764717102,
-1.0422279834747314,
-0.2805507481098175,
-1.3483470678329468,
0.110575832426548,
0.9735501408576965,
0.07317954301834106,... |
def test _ atomic _ id _ enumeration _ 4 _ nistxml _ sv _ iv _ atomic _ id _ enumeration _ 5 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / id / schema + instance / nistschema - sv - iv - atomic - id - enumeration - 5. xsd ", instance = " nistdata / atomic / id / schem... | [
-0.41231727600097656,
-0.8038232326507568,
0.36691445112228394,
0.5788671374320984,
-0.3679197430610657,
-0.053942516446113586,
0.5725712776184082,
-0.6820821762084961,
0.19381223618984222,
1.0699987411499023,
-0.3754741847515106,
0.09998421370983124,
-0.48464855551719666,
0.10932291299104... |
def get _ module _ path _ for _ fqdn ( module _ fqdn ) : # type : ( str ) - > str module _ path = module _ fqdn. replace ( ". ", os. path. sep ) + ". py " module _ path = os. path. abspath ( module _ path ) return module _ path | [
0.0729779377579689,
-1.0055115222930908,
0.2584625482559204,
-0.7356481552124023,
0.1740463823080063,
0.19037659466266632,
0.764263391494751,
-0.4422707259654999,
0.25165295600891113,
-0.2837739586830139,
0.43961766362190247,
0.322956919670105,
0.3953869640827179,
0.6316553354263306,
0.4... |
def write _ new _ files _ and _ dynamically _ scrape _ combined _ data ( data _ filename, sales _ filename, interval, num _ retries = 10 ) : write _ new _ files ( data _ filename, sales _ filename ) dynamically _ scrape _ combined _ data ( data _ filename, sales _ filename, interval, num _ retries ) | [
-0.399154394865036,
-0.48704802989959717,
0.48968207836151123,
1.539868712425232,
1.8002545833587646,
0.4992033839225769,
0.7774332165718079,
0.020682353526353836,
-0.8628168106079102,
-0.6018642783164978,
0.6882169842720032,
0.09196297824382782,
0.6274975538253784,
-0.23449288308620453,
... |
def _ remotevideorecorder ( device, local _ output _ path, megabits _ per _ second ) : assert device if megabits _ per _ second > 100 : raise valueerror ('android video capture cannot capture at % dmbps.'' max capture rate is 100mbps.'% megabits _ per _ second ) assert local _ output _ path. endswith ( '. mp4') recorde... | [
0.7759169936180115,
0.03960385173559189,
0.5586565732955933,
0.6019017696380615,
-0.9480639696121216,
-0.46653154492378235,
-0.5049155354499817,
-0.5093561410903931,
-0.13185390830039978,
0.060720499604940414,
0.31269294023513794,
0.003894200548529625,
0.456740140914917,
-0.101801134645938... |
def run _ update ( self, sql _ command ) : try : self. cursor. execute ( sql _ command ) self. connection. commit ( ) return'successful'except : messagebox. showerror ( " error! ", " something went wrong " ) return'successful ' | [
-0.5230996012687683,
-0.0579373762011528,
0.809673011302948,
0.3427755534648895,
-0.461840957403183,
0.9465229511260986,
-0.5979082584381104,
0.3238987624645233,
-0.20772092044353485,
0.3802672028541565,
-0.09829098731279373,
-0.02702154964208603,
-0.7745029926300049,
-0.1437220275402069,
... |
def test _ atomic _ boolean _ pattern _ 3 _ nistxml _ sv _ iv _ atomic _ boolean _ pattern _ 4 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / boolean / schema + instance / nistschema - sv - iv - atomic - boolean - pattern - 4. xsd ", instance = " nistdata / atomic / bo... | [
-0.04475151747465134,
-0.18492718040943146,
0.5437470078468323,
0.7444525361061096,
-0.3215312659740448,
0.6425344347953796,
0.2838512659072876,
0.022033385932445526,
-0.7249445915222168,
0.9478700160980225,
-0.8473409414291382,
-0.19421367347240448,
-0.33038145303726196,
-0.73953115940093... |
def parasites _ assault _ on _ tick ( self ) : rand _ percent = random. randint ( 1, 100 ) if rand _ percent < = game _ config. parasites _ assault _ probability : parasites _ power = random. randint ( * game _ config. parasites _ power _ range ) log ( log. info, " parasites assault happened, parasites power : { } ". f... | [
-0.48048168420791626,
-0.7319067716598511,
0.5611770749092102,
0.397072970867157,
0.20630908012390137,
0.34235382080078125,
0.408203125,
-0.19766290485858917,
0.03898881748318672,
0.7124219536781311,
-0.11992339044809341,
0.4406290650367737,
0.03992121294140816,
0.09947347640991211,
-0.3... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.