text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def description ( self ) - > str : return pulumi. get ( self, " description " ) | [
1.051303505897522,
0.21712249517440796,
0.3739326000213623,
0.3536829352378845,
0.9418705105781555,
0.957271933555603,
-0.7033527493476868,
-0.21850544214248657,
0.4318402409553528,
0.6254552602767944,
0.7948818206787109,
0.8172891139984131,
0.24282538890838623,
-0.9694749712944031,
-1.0... |
def _ _ init _ _ ( self ) : self. f = open ('/ home / alex / документы / out _ err. txt ','w') | [
0.3750881850719452,
-0.7423152923583984,
0.48465630412101746,
-0.026578228920698166,
-0.37731125950813293,
0.3116137385368347,
1.1694165468215942,
1.6135138273239136,
-0.8177849054336548,
-0.8106138706207275,
0.3823601305484772,
0.28603366017341614,
0.6109140515327454,
-0.01977895200252533... |
def generateoauthrequesttokenurl ( oauth _ input _ params, scopes, request _ token _ url ='https : / / www. google. com / accounts / oauthgetrequesttoken ', extra _ parameters = none ) : scopes _ string =''. join ( [ str ( scope ) for scope in scopes ] ) parameters = {'scope': scopes _ string } if extra _ parameters : ... | [
-1.019277572631836,
-0.33940938115119934,
0.6945322751998901,
0.3330543041229248,
0.05453489348292351,
0.127956822514534,
-0.4452087879180908,
0.3768603503704071,
0.017558056861162186,
0.19029778242111206,
0.42132729291915894,
1.0716458559036255,
0.33685556054115295,
-0.4707114100456238,
... |
def marginal _ likelihood ( self ) : return np. log ( multivariate _ normal ( self. mean _ vector, self. cov _ matrix ). pdf ( self. y ) ) | [
0.23528964817523956,
-1.049264907836914,
0.3221786320209503,
-0.4354042112827301,
-1.1904237270355225,
0.8735500574111938,
-0.17588424682617188,
0.024748235940933228,
0.3529854714870453,
0.08107760548591614,
1.3337576389312744,
1.28262197971344,
-0.423881858587265,
-0.07265160977840424,
... |
def train ( self, messagelist ) : assert false, " not implemented yet " # - - - save to _ messages, and compute their hashcodes for simhash self. _ messagemap = dict ( ( ( v ['id'], v ) for v in messagelist ) ) self. _ simhashlist = [ ( v ['id'], simhash ( unicodetoascii ( v ['description'] ) ) ) for v in messagelist ]... | [
-0.9559116363525391,
0.8685816526412964,
0.4846743941307068,
0.34558966755867004,
0.2775624394416809,
-0.769144594669342,
0.7340157628059387,
0.35235166549682617,
-0.3909953832626343,
-0.7642277479171753,
-1.5037966966629028,
-0.3748110830783844,
-0.28905704617500305,
1.0129046440124512,
... |
def to _ str ( self ) : return pprint. pformat ( self. to _ dict ( ) ) | [
-0.11679229140281677,
-0.9131585359573364,
0.5253970623016357,
-1.2576525211334229,
-0.17642568051815033,
0.5209487676620483,
-1.102938175201416,
-0.5069779753684998,
0.09333008527755737,
0.0525115467607975,
0.8043856024742126,
0.46302059292793274,
-0.02955469861626625,
-0.2601685822010040... |
def eofs ( * objects, sample _ dim = none, weight = none, n _ modes = none, center = true ) : # currently, mixed xarray and plain array inputs are not supported. is _ xarray _ input = _ check _ either _ all _ xarray _ or _ plain _ arrays ( objects ) sample _ dim = _ check _ sample _ dim ( sample _ dim, objects ) if is ... | [
-0.21945858001708984,
0.25031566619873047,
0.8474925756454468,
0.6594325304031372,
-0.81595379114151,
-0.481145977973938,
0.1470838338136673,
-0.4890285134315491,
0.2000522017478943,
0.19102433323860168,
0.4554571211338043,
0.16459310054779053,
0.20764388144016266,
0.12701529264450073,
0... |
def image ( self, image ) : self. _ image = image | [
-0.9714787602424622,
0.19429531693458557,
-0.28041109442710876,
0.02675049565732479,
0.10528820008039474,
0.9716476798057556,
0.09259398281574249,
0.8450106382369995,
-0.7553514838218689,
-0.24964196979999542,
-0.049477286636829376,
0.1673218011856079,
-0.08873597532510757,
1.4589612483978... |
def create _ parking _ lot ( args ) : total _ slots = int ( args [ 1 ] ) status = parkinglot. initialize ( total _ slots ) if status = ='success': print ( f'created parking of { total _ slots } slots') | [
0.25569388270378113,
0.34501686692237854,
0.25732481479644775,
-0.4777357280254364,
0.37072524428367615,
0.9079877138137817,
0.6312429904937744,
0.26402753591537476,
-0.9063128232955933,
-0.37803223729133606,
-0.35339120030403137,
-0.7589362859725952,
-0.2971378266811371,
0.498632043600082... |
def getreply ( self ) : resp = [ ] if self. file is none : self. file = self. sock. makefile ('rb') while 1 : try : line = self. file. readline ( _ maxline + 1 ) except oserror as e : self. close ( ) raise smtpserverdisconnected ( " connection unexpectedly closed : " + str ( e ) ) if not line : self. close ( ) raise sm... | [
-0.07323989272117615,
-0.40430307388305664,
0.8786956667900085,
-0.30922284722328186,
-0.2548059821128845,
-0.744005024433136,
0.09262436628341675,
0.47585195302963257,
0.15250800549983978,
0.4741348326206207,
-0.08338139951229095,
0.10322284698486328,
-0.7183025479316711,
0.15986062586307... |
def proselint ( session, dilibraries = dilibraries ) : session. log ( f'run proselint for { lib _ name }') standard _ di _ proselint ( session, dilibraries = dilibraries ) | [
-0.24747437238693237,
0.13937383890151978,
0.30064690113067627,
0.04892153665423393,
-0.18507570028305054,
0.0640433058142662,
0.14117631316184998,
-0.04139426723122597,
1.1239255666732788,
-0.057138796895742416,
0.4727848768234253,
-0.22259736061096191,
-0.20724177360534668,
-0.2040911912... |
def _ cropmodeleftmouseup ( self, ev, canvas, mousepos, canvaspos ) : if self. _ _ overlay is none or self. _ _ dragaxis is none : return self. _ _ dragaxis = none self. _ _ draglimit = none | [
0.20119303464889526,
-0.20441551506519318,
0.8985428214073181,
-0.8304732441902161,
-0.05507469177246094,
-0.07982789725065231,
0.05430421978235245,
0.08932015299797058,
0.5804624557495117,
-0.349321573972702,
-0.4430452585220337,
-0.7653881311416626,
0.732671320438385,
-0.4013971090316772... |
def send ( self, command, timeout = none ) : logging. info ( " keithley. send ( ) called. " ) logging. info ( " command = [ % s ] " % command ) answer = self. keithley. send ( command, timeout = timeout ) logging. info ( " answer = [ % s ] " % answer ) logging. info ( " keithley. send ( ) done. " ) return answer | [
-0.7025038599967957,
0.22473864257335663,
0.6680064797401428,
0.3155628442764282,
-0.20663203299045563,
-0.4036147892475128,
-1.1556963920593262,
-0.5545264482498169,
0.5402466654777527,
0.9528217911720276,
-0.588320255279541,
0.37296006083488464,
-0.753337025642395,
0.5425184369087219,
... |
def compute _ bound ( self, x, col ) : q1 = x [ col ]. quantile ( 0. 25 ) q2 = x [ col ]. quantile ( 0. 75 ) iqr = q2 - q1 low = q1 - 1. 5 * iqr up = q2 + 1. 5 * iqr return low, up | [
0.0686793327331543,
-0.4447508454322815,
0.5309266448020935,
0.14152325689792633,
-0.5473874807357788,
0.3765464425086975,
-0.1832655817270279,
-1.2584755420684814,
-0.05909885838627815,
0.21303829550743103,
-0.0046611991710960865,
0.8867944478988647,
-0.10659942775964737,
-0.6033439636230... |
def make _ dithers ( center, scale, angle = 0 * u. deg ) : diag = np. hypot ( scale, scale ) posangle = angle + 45 * u. deg tl = center. directional _ offset _ by ( posangle, diag ) tr = center. directional _ offset _ by ( posangle - 90 * u. deg, diag ) bl = center. directional _ offset _ by ( posangle - 90 * u. deg, -... | [
-0.3497263193130493,
-0.037900492548942566,
0.5577720999717712,
-0.8032978773117065,
-0.6031150817871094,
0.9822752475738525,
0.5599185228347778,
-0.31879642605781555,
-0.3501373529434204,
0.5450934171676636,
-0.9934742450714111,
-0.7870924472808838,
0.6073300838470459,
0.2417302429676056,... |
def quality _ check ( session, extras, dilibraries = dilibraries ) : session. log ( f'run quality _ check in { lib _ name }') standard _ di _ quality _ check ( session, extras = extras, dilibraries = dilibraries ) | [
-1.0866539478302002,
-0.18309107422828674,
0.4080045521259308,
0.7982496619224548,
-0.3155895471572876,
-0.16276773810386658,
0.22826676070690155,
0.9270264506340027,
0.5765610933303833,
-0.16713333129882812,
-0.057670291513204575,
-0.32041239738464355,
0.6916321516036987,
-0.4282659888267... |
def makeorglist ( inputstring ) : # hope user can follow instructions orglist = inputstring. split ('' ) # but check all the easy ways they could mess up if len ( orglist ) = = 1 : orglist = inputstring. split ( ',') if len ( orglist ) = = 1 : orglist = inputstring. split ('/') if len ( orglist ) = = 1 : orglist = inpu... | [
-0.7932649850845337,
0.39089059829711914,
0.5486871004104614,
0.7728334069252014,
-0.1486271172761917,
0.31310176849365234,
0.3655382990837097,
0.4478851854801178,
0.27262935042381287,
-0.009471009485423565,
0.03365037962794304,
-0.5707127451896667,
-1.2996290922164917,
-0.4269563257694244... |
def test _ itertools _ filterfalse ( self ) : from itertools import filterfalse not _ div _ by _ 3 = filterfalse ( lambda x : x % 3 = = 0, range ( 8 ) ) self. assertequal ( list ( not _ div _ by _ 3 ), [ 1, 2, 4, 5, 7 ] ) | [
-0.570585310459137,
0.7316988110542297,
0.3670658469200134,
0.336770236492157,
0.6895883679389954,
1.0547754764556885,
-0.014447066001594067,
-0.22086042165756226,
-0.2460998147726059,
-0.09117547422647476,
-0.4519861936569214,
0.05585857108235359,
-1.3068877458572388,
-0.06832648813724518... |
def validate _ protected _ resource _ request ( self, uri, http _ method ='get ', body = none, headers = none, realms = none ) : try : request = self. _ create _ request ( uri, http _ method, body, headers ) except errors. oauth1error : return false, none try : self. _ check _ transport _ security ( request ) self. _ c... | [
-1.0540916919708252,
0.0456647165119648,
1.0015593767166138,
0.3144315779209137,
-0.24888354539871216,
-0.03784523531794548,
0.12765493988990784,
-0.60124272108078,
-0.13023462891578674,
-0.16120648384094238,
0.3668992817401886,
0.7884782552719116,
0.06664623320102692,
0.15307477116584778,... |
def test _ atomic _ base64 _ binary _ max _ length _ 4 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ max _ length _ 5 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - maxlength - 5. xsd ... | [
0.2354007065296173,
0.007240090519189835,
0.22561612725257874,
1.1107925176620483,
-0.21822500228881836,
-0.19461582601070404,
-0.009813426993787289,
-0.6002218723297119,
-0.26823028922080994,
0.5283490419387817,
-0.776975691318512,
-0.1781443953514099,
-0.9474002718925476,
0.3067872226238... |
def cluster _ name _ as _ subdomain ( self ) : return self. _ cluster _ name _ as _ subdomain | [
0.03916940838098526,
-0.06878647953271866,
0.5232783555984497,
0.09641062468290329,
-0.4918776750564575,
0.9068145155906677,
-0.5088221430778503,
-0.46000537276268005,
0.9377315640449524,
-0.5964298844337463,
-0.14597606658935547,
2.3450825214385986,
0.3804701268672943,
-0.8165522813796997... |
def _ _ init _ _ ( self, default _ capcity = 10, sourcecollection = none ) : self. default _ capcity = default _ capcity self. _ items = array ( self. default _ capcity ) self. _ size = 0 if sourcecollection : for item in sourcecollection : self. add ( item ) | [
-0.43325361609458923,
0.7621572613716125,
0.47878772020339966,
0.32083386182785034,
0.5434853434562683,
0.500410795211792,
-0.38638046383857727,
0.6630666255950928,
0.4060870110988617,
-0.2796892821788788,
-1.3197284936904907,
-0.5481686592102051,
-0.3523006737232208,
0.6461145877838135,
... |
def freeze ( ) : global config, frozen if frozen : raise runtimeerror ( " already frozen " ) # load secrets into config from a file secrets = new _ module ('config') secrets. _ _ file _ _ = os. path. expanduser ( config [ " secrets _ file " ] ) try : execfile ( secrets. _ _ file _ _, secrets. _ _ dict _ _ ) except ioer... | [
-0.5390769839286804,
0.26999059319496155,
0.5160120725631714,
0.26905307173728943,
0.6286263465881348,
0.43123629689216614,
0.08926030248403549,
0.11855406314134598,
-0.9464465379714966,
0.5202133059501648,
-1.2412751913070679,
0.38241541385650635,
-0.052007000893354416,
1.0863218307495117... |
def describe _ numerical _ array ( array : union [ np. ndarray, np. void ], skip _ nans : bool = true ) - > dict [ str, union [ int, float, np. ndarray ] ] : if not fuav. is _ 1d _ like ( array ) : raise incorrectshapeerror ('the input array should be 1 - dimensional.') classic _ array = fuat. as _ unstructured ( array... | [
-0.40741556882858276,
0.29651519656181335,
0.664985179901123,
0.04566425457596779,
-0.8170664310455322,
0.33814701437950134,
0.725126326084137,
-0.35857290029525757,
-0.48608481884002686,
0.47518259286880493,
0.24001769721508026,
0.8558517098426819,
0.9720113277435303,
0.9040131568908691,
... |
def _ _ init _ _ ( self, channel, voltagerange = ( - 10, 10 ) ) : self. _ channel = channel self. _ voltagerange = voltagerange self. _ frequency = 1000. 0 self. _ offset = 0. 0 self. _ amplitude = 1. 0 self. _ external _ amplification = 1. 0 self. _ number _ of _ periods = 0 self. _ stop _ requested = false self. _ wa... | [
0.4216851592063904,
-0.0008964737062342465,
0.6358732581138611,
-0.029790086671710014,
0.41400644183158875,
-0.4206145703792572,
0.6373809576034546,
0.33231207728385925,
0.7082417011260986,
-0.12583193182945251,
-1.0034050941467285,
0.2256193608045578,
-0.1794566810131073,
0.72995978593826... |
def test _ get _ blast _ hits ( self ) : # build the blast database and keep track of the files to clean up blast _ db, files _ to _ remove = \ build _ blast _ db _ from _ fasta _ path ( self. reference _ seqs _ fp ) self. _ paths _ to _ clean _ up + = files _ to _ remove p = blasttaxonassigner ( { } ) seq _ coll _ bla... | [
0.19654247164726257,
0.05048419535160065,
0.6573253273963928,
0.4241967797279358,
0.7906700372695923,
0.12697625160217285,
0.6416792869567871,
0.09491463750600815,
-0.049437765032052994,
-0.2939912676811218,
-0.37063097953796387,
-0.8452971577644348,
-0.35609978437423706,
-0.25805118680000... |
def kms _ key _ id ( self ) - > str : return pulumi. get ( self, " kms _ key _ id " ) | [
1.137474775314331,
-0.4082818627357483,
0.25721415877342224,
0.4543350636959076,
0.10307051241397858,
1.196866750717163,
-0.6857659220695496,
0.43028321862220764,
0.9902319312095642,
0.5664485096931458,
0.3484014570713043,
1.0226202011108398,
-0.30170637369155884,
-0.3909803628921509,
-0... |
def memcache _ full _ version ( self ) - > str : return pulumi. get ( self, " memcache _ full _ version " ) | [
1.2696433067321777,
-0.648585855960846,
0.4544264078140259,
0.41225242614746094,
-0.21389715373516083,
0.7323771119117737,
-0.28331971168518066,
-0.15178008377552032,
0.6123725771903992,
0.7110251188278198,
-0.05548722296953201,
0.6418561935424805,
0.44588398933410645,
-0.6261786818504333,... |
def predict _ proba ( self, x ) : lp _ prediction = self. classifier. predict _ proba ( self. ensure _ input _ format ( x ) ) result = sparse. lil _ matrix ( ( x. shape [ 0 ], self. label _ count ), dtype ='float') for row in range ( len ( lp _ prediction ) ) : assignment = lp _ prediction [ row ] for combination _ id ... | [
-0.8038429617881775,
-0.3642188310623169,
0.5742236971855164,
0.5450599789619446,
-0.16941781342029572,
0.3074103593826294,
-0.1089775562286377,
-0.0635748878121376,
-0.41196945309638977,
0.22849225997924805,
0.44318294525146484,
0.5124648809432983,
0.09782710671424866,
-0.393321692943573,... |
def _ _ init _ _ ( self, * * kwargs ) : load _ dotenv ( find _ dotenv ( ) ) self. _ _ config = { k : os. environ. get ( v ) for k, v in conf _ map. items ( ) } for key, value in kwargs. items ( ) : if value is not none : self. _ _ config [ key ] = value | [
-0.19551429152488708,
-0.42630746960639954,
0.5712069869041443,
-0.0654032751917839,
-0.2829890549182892,
0.05712786316871643,
-0.195866197347641,
-0.08124873787164688,
-0.5576328039169312,
0.3030771017074585,
-1.0974894762039185,
-0.313869446516037,
0.11181449890136719,
1.151253342628479,... |
def cog _ check ( self, ctx : context ) - > bool : perms = ctx. author. permissions _ in ( ctx. channel ) return perms. manage _ messages | [
0.28823813796043396,
0.44433531165122986,
0.6128957867622375,
0.38772428035736084,
0.31685009598731995,
0.33050721883773804,
-0.3689611256122589,
-0.20259590446949005,
-0.552201509475708,
0.028960175812244415,
0.6934933066368103,
1.0877974033355713,
-0.8827930688858032,
0.4200041592121124,... |
def zipconstraint ( params ) : # extract parameters from tuple. # a1, a2, a3, b1, b2, b3 = params # derive fractions ( and power factors, but not using those ) from the # polynomial coefficients. f, _ = getfracandpf ( np. array ( params [ 0 : 3 ] ), np. array ( params [ 3 : ] ) ) # return the sum of the fractions, minu... | [
-0.28479674458503723,
-0.2804141342639923,
0.6846579313278198,
-0.056030645966529846,
0.050926052033901215,
-0.24261175096035004,
0.48533204197883606,
-0.3699309825897217,
0.14871709048748016,
0.048301633447408676,
-0.12259194254875183,
-0.3961998224258423,
-0.6388724446296692,
-1.03889942... |
def _ add _ neuron ( bkd, desc, neuron, x = none ) : # preliminary checks if neuron. network ( )! = desc. ml _ model ( ) : raise valueerror ('the neuron does not belong to the correct network') # if neuron. idx ( ) not in desc. _ neurons : # desc. _ neurons. add ( neuron. idx ( ) ) # else : # raise valueerror ('the neu... | [
0.17518998682498932,
-0.24541300535202026,
0.8974063396453857,
0.1276906132698059,
0.18391567468643188,
-0.5802657604217529,
0.05956850200891495,
0.8008195757865906,
0.07067619264125824,
0.023873221129179,
-0.3564411401748657,
0.6748329997062683,
-0.21378424763679504,
-0.12129466235637665,... |
def simple _ mock _ home _ fixture ( ) : mock _ home = mock ( spec = asynchome, name = " demo ", devices = [ ], groups = [ ], location = mock ( ), weather = mock ( temperature = 0. 0, weathercondition = weathercondition. unknown, weatherdaytime = weatherdaytime. day, mintemperature = 0. 0, maxtemperature = 0. 0, humidi... | [
0.0439169704914093,
-0.41636645793914795,
0.8391017913818359,
0.14612436294555664,
0.49645236134529114,
0.17859914898872375,
0.47728219628334045,
0.6082725524902344,
0.4014589786529541,
-0.28804346919059753,
0.13944479823112488,
-1.0083510875701904,
-0.1505773514509201,
-0.5803526639938354... |
def update _ database ( rssi _ value, noise _ value ) : try : sql _ connection = sqlite3. connect ('wifi _ db. db') cursor = sql _ connection. cursor ( ) print ( " connected to database " ) qry = " insert into wifi _ data ( signal, shor, dated ) values (?,?,? ) " val = ( rssi _ value, noise _ value, get _ timestamp ( )... | [
-0.32699665427207947,
0.03793075308203697,
0.8481393456459045,
-0.20084287226200104,
0.3255790174007416,
0.5612763166427612,
-0.4499019682407379,
0.4224427044391632,
-0.6761415600776672,
0.7534340023994446,
-0.4730081856250763,
-0.4109781086444855,
-0.9765498042106628,
0.728670597076416,
... |
def test _ atomic _ boolean _ white _ space _ 4 _ nistxml _ sv _ iv _ atomic _ boolean _ white _ space _ 5 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / boolean / schema + instance / nistschema - sv - iv - atomic - boolean - whitespace - 5. xsd ", instance = " nistdat... | [
-0.34425854682922363,
-0.3550848662853241,
0.37897101044654846,
0.4302496314048767,
-0.4144103527069092,
-0.08051542192697525,
0.43058812618255615,
-0.9579175114631653,
-0.4723406136035919,
0.9686214923858643,
-0.4239962100982666,
0.3333415389060974,
-0.20075678825378418,
0.748334705829620... |
def _ yearly ( self, pattern _ dict ) : try : _ freq _ recurrence _ factor = 1 _ freq _ interval = 10 if self. _ pattern ['freq _ type'] = = 64 : _ freq _ recurrence _ factor = self. _ pattern ['freq _ recurrence _ factor'] _ freq _ interval = self. _ pattern ['freq _ interval'] if'on _ month'in pattern _ dict : _ freq... | [
-0.6030587553977966,
0.6076613068580627,
1.0717211961746216,
-0.18576492369174957,
-0.4556412100791931,
-0.6005991697311401,
0.4573248028755188,
0.29453104734420776,
0.10035058110952377,
0.5530768632888794,
0.2435045838356018,
0.3503628373146057,
0.7302111387252808,
0.045463062822818756,
... |
def _ extract _ ids ( text ) : ids _ list = [ ] for sent in nltk. sent _ tokenize ( text ) : for word in nltk. word _ tokenize ( sent ) : if len ( word ) > = 4 and any ( char. isdigit ( ) for char in word ) : ids _ list. append ( ( " id ", word ) ) return ids _ list | [
-0.032958611845970154,
-0.029256438836455345,
0.3643435537815094,
-0.2951047122478485,
-0.14494925737380981,
-0.39290595054626465,
-0.6941141486167908,
0.43753933906555176,
0.4854152500629425,
0.9558866024017334,
-1.6187270879745483,
-1.2179585695266724,
-1.1377918720245361,
0.773533284664... |
def filter _ oauth _ params ( params ) : is _ oauth = lambda kv : kv [ 0 ]. startswith ( " oauth _ " ) if isinstance ( params, dict ) : return list ( filter ( is _ oauth, list ( params. items ( ) ) ) ) else : return list ( filter ( is _ oauth, params ) ) | [
-1.160488486289978,
-0.039132289588451385,
0.6903435587882996,
1.0510038137435913,
-0.07195664197206497,
-0.019115077331662178,
-0.553026020526886,
-0.18167215585708618,
0.5348485708236694,
1.612825870513916,
0.5428141951560974,
0.9502342939376831,
-0.09788622707128525,
0.7865554094314575,... |
def safe _ execute ( script : str, * * kwargs ) : requirejs = requirejs ( ) script = " { " + script + " } " # provide local scope script = jstemplate ( script ). safe _ substitute ( * * kwargs ) if requirejs. safe _ execution _ comm is none : raise commerror ( " comm'execute'is not open. " ) # noinspection pyprotecteda... | [
0.017734605818986893,
-0.11752141267061234,
0.49514374136924744,
-0.4973490536212921,
-0.603500485420227,
-0.8209218382835388,
0.0018967146752402186,
-1.0078173875808716,
0.3573673367500305,
0.4778255820274353,
-0.5706626772880554,
0.5849087238311768,
-0.9610245227813721,
-0.32047340273857... |
def bad _ hosts _ service ( self, service, mydata = false ) : if mydata : endpoint = " { } / { } / mydata ". format ( service, self. ep _ bad _ hosts ) else : endpoint = " { } / { } ". format ( self. ep _ bad _ hosts, service ) return self. _ make _ request ( endpoint = endpoint ) | [
-1.7050808668136597,
0.3165695071220398,
0.25007715821266174,
-0.4497281312942505,
-0.09844400733709335,
-0.14990711212158203,
-1.6067836284637451,
-0.11428855359554291,
-0.2660491168498993,
-0.33287733793258667,
0.034325432032346725,
1.9746949672698975,
-0.8529729247093201,
0.437798500061... |
def write _ directory _ structure ( self, file _ path : str ) - > int : try : ( dir _ string, filename _ base, ext ) = self. get _ path _ components ( file _ path ) if self. all _ files or any ( [ re. match ( r, filename _ base ) for r in replaceable _ patterns ] ) : filename _ dir _ string = dir _ string if not self. ... | [
-1.0150072574615479,
-0.045284342020750046,
0.8496871590614319,
-0.26445916295051575,
-0.7384467720985413,
-0.5832118988037109,
1.5767759084701538,
0.6861607432365417,
-0.12831999361515045,
0.21561111509799957,
0.315260112285614,
-0.16825853288173676,
0.19425013661384583,
0.392443865537643... |
def monthly ( self ) : if self. schedule _ freq _ type = ='monthly': return {'active _ start _ time': schedulepattern. _ time _ converter ( self. _ pattern ['active _ start _ time'],'% h : % m ', false ),'repeat _ months': self. _ pattern ['freq _ recurrence _ factor'],'on _ day': self. _ pattern ['freq _ interval'] } ... | [
-0.2448940873146057,
-0.15083752572536469,
0.6956160664558411,
-0.19169852137565613,
-0.8163314461708069,
0.060212284326553345,
-0.024774013087153435,
-0.260394811630249,
0.17490634322166443,
0.06283789873123169,
0.018660277128219604,
0.2599519193172455,
-0.385468453168869,
0.2857364714145... |
def test _ ensure _ interface _ not _ exist ( self ) : onboarding _ kwargs = { " netdev _ hostname " : " device1 ", " netdev _ nb _ role _ slug " : plugin _ settings [ " default _ device _ role " ], " netdev _ nb _ role _ color " : plugin _ settings [ " default _ device _ role _ color " ], " netdev _ vendor " : " cisco... | [
-0.22089128196239471,
0.6291070580482483,
0.6279945969581604,
0.7615045309066772,
0.6459025144577026,
0.8382320404052734,
0.7626018524169922,
-0.4407937824726105,
0.33590519428253174,
-0.9251841306686401,
-0.8239094614982605,
-0.5358591079711914,
-0.787947952747345,
1.0563064813613892,
0... |
def get _ summer _ time _ days ( ssummercode, nyear ) : syear = str ( nyear ) # i know, it is not beautiful. no can do. if ssummercode = ='ir': # start : march 21 ndaystart = _ _ get _ julian ( syear +'- 03 - 21') # end : september 22 ndayend = _ _ get _ julian ( syear +'- 09 - 22') elif ssummercode = ='jd': # start : ... | [
-0.3480861783027649,
-0.43122488260269165,
1.0582596063613892,
-0.14684677124023438,
-0.9409563541412354,
-0.5100531578063965,
0.09569668769836426,
-0.5161586403846741,
0.7990478277206421,
0.39101988077163696,
-0.8993373513221741,
1.0656952857971191,
-0.5386407375335693,
1.449313759803772,... |
def generage _ tar _ file ( from _ path, to _ path ='/ ', workdir ='/ ', contextpath = ". / " ) : # temp file in with tar will be generated tarfile = os. path. join ( tempfile. gettempdir ( ), const + " _ " + next ( tempfile. _ get _ candidate _ names ( ) ) + ". tar " ) fileobj = shabytesio ( none, filename = tarfile )... | [
0.24806760251522064,
-0.4007404148578644,
1.011597752571106,
0.6139494776725769,
-0.5083129405975342,
1.0989341735839844,
0.904806911945343,
-0.11038193851709366,
-0.5192127823829651,
0.524476170539856,
-0.10095725953578949,
-0.6882539391517639,
0.9296254515647888,
0.18703553080558777,
0... |
def check _ token ( self, newsletter _ recipient, token ) : # parse the token try : ts _ b36, hash = token. split ( " - " ) except valueerror : return false try : ts = base36 _ to _ int ( ts _ b36 ) except valueerror : return false # check that the timestamp / uid has not been tampered with if not constant _ time _ com... | [
-0.1256660521030426,
-0.035848468542099,
0.5575243234634399,
-0.0063359602354466915,
-0.30451542139053345,
0.22198818624019623,
-1.479584813117981,
0.3291492462158203,
0.25577011704444885,
-0.3788326382637024,
-0.5156386494636536,
-0.022768182680010796,
-0.12568221986293793,
-0.27325543761... |
def record ( self, * args, * * kwargs ) : raise notimplementederror ( " record method has not been implemented " ) | [
-0.37724360823631287,
0.057796772569417953,
0.5018481016159058,
-0.007873184978961945,
0.38445931673049927,
0.9313178658485413,
-0.0495292954146862,
0.12469246983528137,
-0.4067521393299103,
0.018541619181632996,
-0.2515283524990082,
0.7497079372406006,
-0.18851254880428314,
0.638486504554... |
def comments ( self ) : return comments | [
-0.5156733989715576,
-1.5497539043426514,
0.19217993319034576,
0.1501549482345581,
0.8609759211540222,
0.2930081784725189,
0.4531041383743286,
-0.36016130447387695,
-0.028347432613372803,
-0.5091321468353271,
-0.9013902544975281,
-0.6680811047554016,
-0.47075921297073364,
0.011497620493173... |
def split _ df ( df, label _ col ) : return df. drop ( label _ col, axis = 1 ), df [ label _ col ] | [
-0.8261100649833679,
-0.003346817335113883,
0.5131529569625854,
-0.11814138293266296,
0.42981016635894775,
0.5400402545928955,
-0.25202956795692444,
0.3464125096797943,
-0.656306803226471,
1.0487303733825684,
0.38707074522972107,
0.8092299699783325,
0.04759238660335541,
-1.2266860008239746... |
def getsgsfromshape ( shape ) : shadingengines = cmds. listsets ( object = shape, type = 1, extendtoshape = true ) # faster than cmds. listconnections ( shape, destination = true, source = false, plugs = false, type = " shadingengine " ) return list ( set ( shadingengines ) ) if shadingengines else [ ] | [
0.02632363885641098,
0.5448414087295532,
0.5151875019073486,
0.3473631739616394,
-0.11461310088634491,
0.33005139231681824,
-0.45536425709724426,
-1.0032483339309692,
0.8486291170120239,
0.37116825580596924,
-0.5261209607124329,
0.3879335820674896,
0.1654667854309082,
0.812485933303833,
... |
def get _ dataset _ version ( self, no _ version = false ) : if'version'in self. attributes and not no _ version : return self. get ('version') else : return none | [
-0.4553241729736328,
0.35997331142425537,
0.1944880336523056,
0.5661261081695557,
-0.13006995618343353,
-0.24316224455833435,
0.1075783222913742,
0.24300716817378998,
-0.5206323862075806,
0.37946614623069763,
0.008690289221704006,
0.46581414341926575,
-0.008545896969735622,
-0.044698294252... |
def test _ list _ decimal _ max _ length _ 2 _ nistxml _ sv _ iv _ list _ decimal _ max _ length _ 3 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - maxlength - 3. xsd ", instance = " nistdata / list / ... | [
-0.16967988014221191,
-0.10871102660894394,
0.4459059536457062,
0.6705594658851624,
-0.26050877571105957,
0.28313931822776794,
-1.078597068786621,
0.41467636823654175,
0.9962685704231262,
0.2819899022579193,
-1.1751179695129395,
-0.020399920642375946,
0.3939650356769562,
0.0697814077138900... |
def from _ snbt _ blockstate ( cls, blockstate : str ) : namespace, block _ name, properties = cls. parse _ blockstate _ string ( blockstate, true ) return cls ( namespace, block _ name, properties ) | [
1.0578707456588745,
-0.3406693637371063,
0.3047887086868286,
0.6995595693588257,
-0.9012603759765625,
0.11420375853776932,
-0.6277790665626526,
-0.6733123660087585,
0.6180382966995239,
-0.01818881742656231,
-0.9765954613685608,
0.23241855204105377,
-0.25140225887298584,
-0.6199440956115723... |
def first ( self, column = none ) : return self. _ _ get _ location ( min, column ) | [
-0.08266943693161011,
0.4946189224720001,
0.673923671245575,
0.76273512840271,
0.1554417759180069,
-0.5833860635757446,
0.4522814452648163,
-0.9021000266075134,
-0.7067004442214966,
-0.921455979347229,
0.11223380267620087,
0.4742310643196106,
-0.27141064405441284,
-0.6662365198135376,
-0... |
def treerepr _ scores ( self, tree ) : # every leaf gets initial _ probs for leaf in tree. get _ leaves ( ) : leaf. set _ initial _ potentials ( np. log ( self. initial _ probs ) ) # every node except root gets emission _ probs for node in tree. get _ nonroots ( ) : node. set _ potentials ( np. log ( self. emission _ p... | [
-0.018715357407927513,
-0.3897719979286194,
0.9126632809638977,
-0.9860920906066895,
0.1708013415336609,
0.17649853229522705,
-1.0253592729568481,
0.43031877279281616,
-0.06043582782149315,
0.6436079144477844,
0.5465277433395386,
0.7279120087623596,
0.08799049258232117,
0.6080412864685059,... |
def stimulus _ conditions ( self ) : if self. _ stimulus _ conditions is none : condition _ list = self. stim _ table ['stimulus _ condition _ id']. unique ( ) self. _ stimulus _ conditions = self. ecephys _ session. stimulus _ conditions [ self. ecephys _ session. stimulus _ conditions. index. isin ( condition _ list ... | [
0.3743080794811249,
-0.5508922338485718,
0.3374800980091095,
-0.19081173837184906,
-0.37481480836868286,
-0.17796510457992554,
1.013372778892517,
-0.6097089052200317,
0.9477740526199341,
0.46886616945266724,
-0.3327816128730774,
0.15887898206710815,
-0.607111930847168,
-0.26873648166656494... |
def testnoupdates ( self ) : conf = xml _ configuration. configuration. emptyconfiguration ( ) properties _ to _ update = { } optional _ properties _ to _ add = { } conf. update ( properties _ to _ update, optional _ properties _ to _ add ) self. assertequal ( 0, conf. getnumproperties ( ) ) | [
-0.6538206338882446,
-0.24227532744407654,
0.33120810985565186,
-0.4010346829891205,
0.26302123069763184,
0.4325632154941559,
-0.4990052580833435,
0.7393162250518799,
-0.20205210149288177,
-1.0096379518508911,
-0.0489768348634243,
-1.2867594957351685,
-0.4630031883716583,
-0.41596537828445... |
def get _ currency _ detail ( self, currency ) : return self. get _ request ('/ api / v1 / currencies /'+ currency ) | [
-0.9455007910728455,
0.7547963261604309,
0.11318003386259079,
0.38913512229919434,
0.7248297929763794,
-0.6956865787506104,
-0.26064789295196533,
-0.5234388709068298,
0.7085004448890686,
-0.1212821677327156,
-0.12382179498672485,
1.1347345113754272,
-1.0737223625183105,
0.40619736909866333... |
def add _ messages ( self, request, message ) : if hasattr ( request, " _ messages " ) : return request. _ messages. append ( message ) | [
-1.1469447612762451,
1.1774556636810303,
0.8409796357154846,
-0.24773570895195007,
1.0206265449523926,
0.07380196452140808,
-0.8470776081085205,
-1.867231845855713,
0.3100261688232422,
-1.2284047603607178,
0.8745855689048767,
-0.21607030928134918,
-0.3180122375488281,
1.4581573009490967,
... |
def sendshares ( self, msg, n, k, prime, nodes, mode = no _ verification ) : try : if type ( msg )! = str : raise typeerror ( " invalid msg : str expected " ) elif len ( msg ) > 159 : raise valueerror ( " invalid msg : expected 159 characters or less " ) elif type ( n ) not in [ int, long ] : raise typeerror ( " invali... | [
-0.45615941286087036,
1.3106380701065063,
0.8981019258499146,
0.5028230547904968,
0.8204434514045715,
-0.2597750723361969,
0.5728394985198975,
-0.2893148958683014,
-0.7058262228965759,
0.3337865471839905,
-0.6960936784744263,
0.462510883808136,
-0.5674499273300171,
1.1611454486846924,
0.... |
def example _ 6 ( ) : even _ fltr = lambda x, y : x + [ y ] if y % 2 = = 0 else x even _ fltr. _ _ name _ _ = " is _ even " x : list [ int ] = [ i for i in range ( 1, 4 ) ] x0 : list = [ ] res = fold ( x, even _ fltr, x0, debug = true ) print ( f " fold ( { x }, { even _ fltr. _ _ name _ _ }, { x0 } ) = { res } " ) | [
-0.4248213768005371,
0.20290137827396393,
0.5205697417259216,
0.3779880404472351,
-0.21589478850364685,
0.03298730403184891,
0.1918366253376007,
0.5990210771560669,
0.07021917402744293,
0.10119939595460892,
-1.333445429801941,
0.29625001549720764,
0.6810578107833862,
1.0602740049362183,
... |
def stop _ trap _ listener ( self, system _ name ) : status = true wdesc = " stop trap listener " utils. testcase _ utils. psubstep ( wdesc ) snmp _ parameters = ['ip ','snmp _ trap _ port'] snmp _ param _ dic = utils. data _ utils. get _ credentials ( self. datafile, system _ name, snmp _ parameters ) ip = snmp _ para... | [
-0.860528826713562,
-0.7113457322120667,
0.5022500157356262,
-0.6597938537597656,
-0.1715523600578308,
0.8633167147636414,
0.08894988894462585,
-0.20353975892066956,
-0.02724691666662693,
0.098920539021492,
-0.5766680240631104,
-0.15098437666893005,
-0.7257176637649536,
0.3919253349304199,... |
def norm _ allcolumns _ perrow ( df, index _ ='datetime') : df _ = df. set _ index ( index _ ). copy ( ) for i in df _. index. values : df _. loc [ i ] = df _. loc [ i ] / np. max ( np. abs ( df _. loc [ i ]. values ) ) df _ = df _. reset _ index ( ) return df _ | [
-0.07517969608306885,
0.14924156665802002,
0.8510482311248779,
0.6140652298927307,
-0.386233389377594,
-0.02585131861269474,
0.2177315652370453,
0.09092891216278076,
0.00538651505485177,
0.04657042399048805,
0.9201326966285706,
-0.48793408274650574,
1.000974416732788,
-0.36255478858947754,... |
def shopify _ export _ products ( self, instance, is _ set _ basic _ detail, is _ set _ price, is _ set _ images, is _ publish, templates ) : common _ log _ obj = self. env [ " common. log. book. ept " ] common _ log _ line _ obj = self. env [ " common. log. lines. ept " ] model = " shopify. product. product. ept " mod... | [
-0.6954373121261597,
0.13696809113025665,
0.6021537184715271,
0.6414103507995605,
0.09741058945655823,
0.5855178236961365,
0.11084726452827454,
-0.6614800095558167,
0.7015601992607117,
1.00079345703125,
-1.0652493238449097,
-0.26831933856010437,
0.07217848300933838,
0.49404191970825195,
... |
def is _ train _ at _ point ( self, train : train, point _ to _ check : point = none ) : line = self. map. line [ train. line _ idx ] if train. position = = line. length or train. position = = 0 : point _ id = line. point [ self. get _ sign ( train. position ) ] point = self. map. point [ point _ id ] if point _ to _ c... | [
-0.5796018242835999,
-0.3153703510761261,
0.6890999674797058,
0.29286304116249084,
0.19479142129421234,
0.31127533316612244,
-0.4096361994743347,
-0.04524010792374611,
-0.3019152581691742,
0.07238790392875671,
0.2740814983844757,
0.03995904326438904,
0.0442931167781353,
-0.869871973991394,... |
def _ do _ search ( self, data, topic ) : if not data : raise exception ('no data received from yaml file.') if self. opts ['links'] and'links'in data : filtered _ data = {'links': data ['links'] } elif self. opts ['cheats'] and'cheats'in data : filtered _ data = {'cheats': data ['cheats'] } elif self. opts ['glossary'... | [
-0.08937209099531174,
0.0782020166516304,
0.6160753965377808,
-0.48676249384880066,
0.5647510886192322,
-0.15003930032253265,
-0.7045337557792664,
-0.06751818209886551,
-0.33015957474708557,
-0.516998827457428,
0.6629000902175903,
0.6588507294654846,
-0.40496861934661865,
0.809631645679473... |
async def setup ( self, ctx ) : server = ctx. message. server. id if server not in self. json : # setup the'server'block in in the dict self. json [ server ] = {'toggle': true } dataio. save _ json ( self. location, self. json ) log. debug ('wrote server id ( { } ) '. format ( server ) ) | [
-0.7691637873649597,
-0.021715577691793442,
0.3745547831058502,
-0.7981422543525696,
0.5425838828086853,
0.2529809772968292,
0.2706010937690735,
0.5388240814208984,
0.4006870687007904,
0.47299832105636597,
-0.9261189699172974,
0.8304529786109924,
-0.8631610870361328,
1.1796846389770508,
... |
def extract _ auth _ sub _ token _ from _ url ( url, scopes _ param _ prefix ='auth _ sub _ scopes ', rsa _ key = none ) : if isinstance ( url, ( str, unicode ) ) : url = atom. url. parse _ url ( url ) if'token'not in url. params : return none scopes = [ ] if scopes _ param _ prefix in url. params : scopes = url. param... | [
-0.5186587572097778,
-0.39808130264282227,
0.5645458102226257,
0.4688217043876648,
-0.6352410316467285,
-0.6247683763504028,
-0.08247533440589905,
0.8996183276176453,
1.2497974634170532,
0.0377722829580307,
-0.6680502891540527,
1.6228175163269043,
0.4806763231754303,
-0.5318976640701294,
... |
def get _ folder ( self, id ) : return self. client. folder ( id ). get ( ) | [
-0.9622963666915894,
-0.05722581967711449,
0.0397392138838768,
0.10355289280414581,
-0.015032611787319183,
-0.5583860874176025,
-0.8323264122009277,
-1.3376532793045044,
-0.2492157518863678,
-0.7258158326148987,
0.3373601734638214,
1.1271204948425293,
-0.4856919050216675,
0.067733742296695... |
def forward ( self, data _ tuple ) : embs = [ ] for field, data in zip ( self. targets, data _ tuple ) : embs. append ( self. _ select ( self. embeddings [ field ], data ) ) if len ( embs ) = = 1 : return embs [ 0 ] embedded = torch. cat ( embs, dim = - 1 ) if self. strategy. do _ linear _ layer : embedded = self. line... | [
-0.3452569246292114,
0.6091923117637634,
0.4621974229812622,
-0.13384376466274261,
0.6136162281036377,
0.6595531105995178,
0.48246243596076965,
-0.8326869606971741,
0.05084090307354927,
-0.40507519245147705,
0.33825230598449707,
-0.3873574435710907,
-0.044075895100831985,
-0.88946729898452... |
def log ( self, description ) : def wrap ( func ) : def log _ wraper ( * args, * * kwargs ) : # discover the name of the function that the decorator was used file _ name = inspect. getfile ( func ) # discover if it was a function or a method. if is a method, discover the name of the class spec = inspect. getargspec ( f... | [
-0.5120473504066467,
0.29847294092178345,
0.9110940098762512,
-0.3621603846549988,
0.2572847604751587,
-0.06981358677148819,
-0.36277085542678833,
0.21908217668533325,
0.5396652817726135,
-0.2443743795156479,
0.5289995074272156,
0.33326417207717896,
0.6792528033256531,
-0.05386199057102203... |
def find _ first _ header ( df _ : object ) : header = [ ] outer _ len = len ( list ( filter ( lambda each : true if each = = " outer " else false, df _ ['inner _ outer'] ) ) ) if outer _ len = = 1 and df _ ['inner _ outer']. iloc [ 0 ] = ='outer': print ('first _ header is the outer - - - - - - - - - - - - - - - - - -... | [
-0.9485316872596741,
-0.859348475933075,
1.1389353275299072,
-0.1325995773077011,
0.12626029551029205,
-0.15145407617092133,
-0.03430460765957832,
0.18985380232334137,
-0.9736307859420776,
0.7010859251022339,
0.15689820051193237,
-0.1422533094882965,
-0.5668808221817017,
1.284469723701477,... |
def cli ( ctx, history _ id, tool _ id, tool _ inputs ) : return ctx. gi. tools. run _ tool ( history _ id, tool _ id, json _ loads ( tool _ inputs ) ) | [
-0.15067031979560852,
0.017216293141245842,
0.3017463982105255,
0.0129992151632905,
0.47808465361595154,
-0.12942934036254883,
-0.2580995261669159,
-0.7603173851966858,
-1.0882296562194824,
-0.14424662292003632,
-0.07356742769479752,
1.498462200164795,
0.7838413715362549,
-0.45215737819671... |
def _ colour _ to _ escape _ sequence ( self, colour _ tag : str, foreground _ colour = true ) : colour _ name = colour _ tag. replace ('< ','' ). replace ('> ','' ) r, g, b = self. _ get _ rgb _ value ( colour _ name ) if foreground _ colour : return f " \ 033 [ 38 ; 2 ; { r } ; { g } ; { b } m " else : return f " \ 0... | [
-0.2936895191669464,
-0.4833190143108368,
0.3500078618526459,
-0.8200087547302246,
-0.349774032831192,
-0.6493135094642639,
-0.9041135311126709,
0.2733082175254822,
-0.4537242352962494,
0.9599980115890503,
-0.6738365888595581,
-0.13636775314807892,
0.10618329048156738,
0.4473918676376343,
... |
def test _ atomic _ base64 _ binary _ length _ 4 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ length _ 5 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - length - 5. xsd ", instance = "... | [
0.07271622121334076,
-0.218370720744133,
0.3465157449245453,
1.1561042070388794,
0.07115490734577179,
-0.06075185909867287,
0.5528037548065186,
-0.3008057177066803,
-0.31848639249801636,
0.7692970633506775,
-0.7268356680870056,
-0.09504222869873047,
-0.804731011390686,
0.4318602681159973,
... |
def authsubtokenfromhttpbody ( http _ body ) : token _ value = token _ from _ http _ body ( http _ body ) if token _ value : return'% s % s'% ( authsub _ auth _ label, token _ value ) return none | [
0.18195459246635437,
-0.5010110139846802,
0.37458616495132446,
0.1577010303735733,
-0.18389952182769775,
0.5141978859901428,
-0.7722660303115845,
0.29922595620155334,
0.32956400513648987,
-0.10318250209093094,
-0.40523871779441833,
1.324317455291748,
0.8933174014091492,
-0.6610663533210754... |
def interfacematcher ( clazz, subclass, protocol ) : interface = ( clazz, subclass, protocol ) def matcher ( device ) : for setting in device. itersettings ( ) : if getinterface ( setting ) = = interface : return setting return matcher | [
-0.3466470241546631,
0.3323814868927002,
0.36688485741615295,
0.3061003088951111,
-0.392045259475708,
0.5374114513397217,
0.34239861369132996,
-0.9499351978302002,
-0.07374781370162964,
0.19928884506225586,
0.3415655791759491,
-0.4148424565792084,
-1.1690478324890137,
0.3336985111236572,
... |
def getpolicy ( self, state, hand _ index, ingame ) : # list of legal actions actions = self. actionswithhandindex ( state, hand _ index, ingame ) # check if at terminal state if len ( actions ) = = 0 : return none tuplelist = [ ] for action in actions : # compute q values for each action tuplelist. append ( ( self. ge... | [
-0.2801286578178406,
0.010634789243340492,
0.46719929575920105,
0.011648816987872124,
0.31380316615104675,
0.26973336935043335,
-1.0888097286224365,
-0.33750221133232117,
0.17615672945976257,
-0.03682456165552139,
0.2801658511161804,
0.23994317650794983,
-0.39864447712898254,
-0.3461104035... |
def set _ up _ iteration ( self, name : str, events = [ ] ) : iterations = lapi. list _ iterations ( self. lasif _ comm, output = true, verbose = false ) if isinstance ( iterations, list ) : if name in iterations : warnings. warn ( f " iteration { name } already exists ", inversionsonwarning ) event _ specific = false ... | [
0.04527139291167259,
0.9193674921989441,
0.6447425484657288,
-0.06559346616268158,
0.23627685010433197,
0.07888909429311752,
0.1953076869249344,
-0.44718047976493835,
-0.03299756720662117,
0.8544491529464722,
-0.4492533802986145,
-0.31454354524612427,
-0.1231466606259346,
0.904497563838958... |
def do _ single _ loop ( self ) : pass | [
-0.3821457028388977,
-0.5313820242881775,
0.12721581757068634,
0.6439003944396973,
1.0867871046066284,
1.3025233745574951,
1.3349604606628418,
0.22947092354297638,
-0.18911609053611755,
-0.3018453121185303,
0.3037618100643158,
0.15990711748600006,
-0.4721820056438446,
1.06126868724823,
-... |
def extract ( self, item ) : values = item. get _ identifiers ( self. property ) if self. prefix : values = [ self. prefix + value for value in values ] return values | [
-0.6284602880477905,
-0.6430982947349548,
0.4238486886024475,
0.3890404999256134,
0.4318840503692627,
-0.4146021008491516,
-0.9284890294075012,
0.5906325578689575,
1.4149107933044434,
0.6207820773124695,
-0.716475784778595,
-0.4435254633426666,
0.2630264163017273,
-0.5534080266952515,
0.... |
def min _ ( self, column ) : index = self. _ _ columns [ column ] [ 1 ] return min ( map ( row [ index ], self. _ _ data _ area. values ( ) ) ) | [
0.017858875915408134,
-0.5119442343711853,
0.3521241843700409,
-0.26702770590782166,
-0.7650385499000549,
-0.5692917704582214,
0.211276113986969,
-1.4139751195907593,
-0.144419327378273,
-0.27556025981903076,
0.0663079246878624,
0.2949813902378082,
0.17806048691272736,
0.015780361369252205... |
def test _ target _ small ( self, graph ) : with pytest. raises ( valueerror, match = " target must be greater than two and less than " ) : strawberryfields. gbs. dense. resize ( subgraphs = [ [ 0, 1 ] ], graph = graph, target = 1 ) | [
0.11152896285057068,
0.9376553893089294,
0.4364725649356842,
0.4665849208831787,
0.6046377420425415,
0.3387625217437744,
0.10079579055309296,
-0.39135223627090454,
-0.2594727873802185,
-0.9579760432243347,
-0.11483170092105865,
0.568113386631012,
0.09878317266702652,
-0.6606460213661194,
... |
def elaborate ( xbar ) : # xbar : xbar - > bool # condition check if len ( xbar. nodes ) < = 1 or len ( xbar. edges ) = = 0 : log. error ( " # of nodes is less than 2 or no edge exists. cannot proceed. " ) return false for host in xbar. hosts : process _ node ( host, xbar ) log. info ( " node processed : " + repr ( xba... | [
-0.9141556024551392,
1.3017046451568604,
0.6870063543319702,
-0.5855194926261902,
0.30106350779533386,
0.22101108729839325,
0.7293421030044556,
0.26744771003723145,
-0.44224923849105835,
0.3417888581752777,
0.06373649090528488,
-0.4149320721626282,
0.04599691182374954,
0.16304723918437958,... |
def validation _ split ( self, validation _ split ) : self. _ validation _ split = validation _ split | [
-0.6359395384788513,
0.1859515756368637,
0.06951852142810822,
0.9108362197875977,
-0.13052266836166382,
1.0753798484802246,
0.5815181732177734,
0.6171131134033203,
-0.8411184549331665,
-0.36432239413261414,
-0.8043785095214844,
-1.0727622509002686,
-0.12290812283754349,
0.10553829371929169... |
def owner ( self ) : return self. _ get _ attribute ( self. _ sdm _ att _ map [ " owner " ] ) | [
-0.7955194115638733,
-0.1994480937719345,
0.5523614883422852,
1.3305869102478027,
-0.10137196630239487,
0.22250118851661682,
1.4946974515914917,
-0.641933262348175,
0.44435328245162964,
-1.3267359733581543,
0.4734678268432617,
0.26427116990089417,
0.608044445514679,
-1.0483757257461548,
... |
async def celebrate ( self, ctx, user : discord. user = none ) : author = ctx. author channel = ctx. channel if channel. id in self. messager or channel. id in self. messagem : return await ctx. send ( " oops! i'm still paying celebrated in this channel, you'll have to wait until i'm done. " ) def check _ message ( m )... | [
0.5703590512275696,
0.1608806997537613,
0.9182030558586121,
0.34647122025489807,
0.14328059554100037,
-0.2893665134906769,
-0.04251113161444664,
0.24108609557151794,
0.5766286253929138,
-0.41503217816352844,
0.23727038502693176,
0.38469985127449036,
-0.6857419610023499,
1.1240354776382446,... |
def test _ view _ create _ user _ profile _ uses _ correct _ template ( self, client ) : response = client. get ( reverse ( " register " ) ) assert response. status _ code = = 200 asserttemplateused ( response, " registration / register. html " ) | [
0.6408638954162598,
1.1142138242721558,
0.3796636164188385,
0.6884070038795471,
0.5577487349510193,
0.31416207551956177,
0.8041442632675171,
0.03799329325556755,
-0.036624759435653687,
-0.12166611850261688,
-0.6261997818946838,
-0.4036833643913269,
0.44445452094078064,
0.37637314200401306,... |
def set _ size ( self, x, y ) : x, y = coord2pix ( x, y, self. samplerate, self. c ) return self. set _ size _ in _ pixels ( x, y ) | [
-0.7641451954841614,
0.7191148996353149,
0.6099199056625366,
-1.0620088577270508,
-0.5055215358734131,
-0.6125959157943726,
-0.49381887912750244,
-1.4585644006729126,
0.11720142513513565,
0.3632146716117859,
-0.24589066207408905,
0.3382110893726349,
-0.23659701645374298,
-0.040046464651823... |
def add _ file _ to _ list ( cls, item : notetonlistitemfile ) : return cls. instance. db. add _ list _ item ( item ) | [
-0.7684130668640137,
-0.47763580083847046,
0.4536413550376892,
0.11587030440568924,
1.0028018951416016,
1.198024034500122,
-0.7645848393440247,
0.28906744718551636,
0.4185906946659088,
-0.3442014455795288,
-1.5714480876922607,
-0.5972422361373901,
-0.583034873008728,
0.5322518944740295,
... |
def _ time _ converter ( _ time, time _ format, utc _ to _ epoch = true ) : try : if utc _ to _ epoch : date _ time = datetime. strptime ( _ time, time _ format ) return int ( ( date _ time - datetime. utcfromtimestamp ( 0 ) ). total _ seconds ( ) ) utc _ time = datetime. utcfromtimestamp ( _ time ) return utc _ time. ... | [
-0.6887615919113159,
0.07454777508974075,
0.6816753149032593,
-0.37752747535705566,
-0.8009360432624817,
-0.7083064913749695,
-1.4229061603546143,
0.5728512406349182,
-0.46302637457847595,
1.114850401878357,
0.43568477034568787,
-0.5204855799674988,
0.7474668622016907,
-0.05810084939002991... |
def get _ metrics ( project _ id : str, recaptcha _ site _ key : str ) - > none : client = recaptchaenterprise _ v1. recaptchaenterpriseserviceclient ( ) metrics _ name = f " projects / { project _ id } / keys / { recaptcha _ site _ key } / metrics " request = recaptchaenterprise _ v1. getmetricsrequest ( ) request. na... | [
-0.4417893588542938,
0.8657597899436951,
0.5461801886558533,
0.5400405526161194,
0.9256380796432495,
-0.43307846784591675,
0.5038476586341858,
-0.8590386509895325,
-0.20488159358501434,
0.1449134796857834,
-0.11613286286592484,
-0.1149730533361435,
0.15808556973934174,
0.348482608795166,
... |
def get _ current _ result ( self ) : # determine whether there's a maximum size docs _ max _ size = none if self. only _ smaller _ checkbox. is _ checked ( ) : try : docs _ max _ size = float ( self. only _ smaller _ entry. get ( ) ) # mb - > kb - > bytes docs _ max _ size * = 1024 * 1024 except valueerror : pass # de... | [
-0.8875512480735779,
-0.16713912785053253,
0.6300782561302185,
-0.30702221393585205,
-0.4409717619419098,
-0.4205205738544464,
0.4490175247192383,
-0.19410356879234314,
-0.4060085415840149,
-0.16115136444568634,
-0.030680546537041664,
0.3190135359764099,
-0.15999238193035126,
0.56909424066... |
def text _ dollar ( x ) : millions = x / / 1000000 x = x % 1000000 thousands = x / / 1000 x = x % 1000 out = [ ] if millions > 0 : out. append ( _ textify _ number _ hundreds ( millions ) + " million " ) if thousands > 0 : out. append ( _ textify _ number _ hundreds ( thousands ) + " thousand " ) out. append ( _ textif... | [
-0.32877853512763977,
0.433427095413208,
0.7212729454040527,
0.20066392421722412,
-1.024304986000061,
-0.42398715019226074,
-0.31437575817108154,
-0.26886361837387085,
0.9697971343994141,
0.49407413601875305,
-0.538529634475708,
-0.1422058790922165,
0.2685143053531647,
0.681000292301178,
... |
def replacespecchar ( string ) : temp _ string = string for i in " / " : # "! @ # $ % ^ & * ( ) / [ ] \ { } ; :,. < >? | ` ~ - = _ + " : if i in temp _ string : temp _ string = temp _ string. replace ( i,'\ \'+ i ) return temp _ string | [
0.2476239800453186,
-1.0319547653198242,
0.638857364654541,
-0.31218627095222473,
-0.23180578649044037,
-0.3659578561782837,
0.947970986366272,
0.6286849975585938,
-1.0585023164749146,
0.4710608124732971,
-0.31598401069641113,
0.32714223861694336,
-0.4040508568286896,
-0.09001757204532623,... |
def lmer _ fdr ( self, view = true ) : assert ( self. lmer _ pvals is not none ), " run model _ lmer ( ) first. " # define and refresh log file and results table logfile = self. roidata _ dir + " lmer _ fdr _ " + self. metric + " _ log. txt " if os. path. isfile ( logfile ) : os. remove ( logfile ) restable _ file = se... | [
0.05517437681555748,
-0.16414642333984375,
0.5580889582633972,
-0.6640036702156067,
-0.5895131826400757,
0.4811529815196991,
0.43667319416999817,
0.09114744514226913,
-0.8747143745422363,
-0.46587473154067993,
1.111716628074646,
-0.03107970394194126,
-0.5303702354431152,
1.3984549045562744... |
def send _ message ( self, msg, from _ addr = none, to _ addrs = none, mail _ options = ( ), rcpt _ options = ( ) ) : #'resent - date'is a mandatory field if the message is resent ( rfc 2822 # section 3. 6. 6 ). in such a case, we use the'resent - *'fields. however, # if there is more than one'resent -'block there's no... | [
0.2650887966156006,
0.5453453063964844,
0.8874630331993103,
-0.3365219533443451,
0.3282623291015625,
-0.9757381677627563,
-0.06930506974458694,
-0.019370781257748604,
0.3411433696746826,
0.2143813520669937,
-0.08032893389463425,
0.8074343800544739,
-0.11004649847745895,
-0.0181765053421258... |
def begin _ create _ or _ update _ environment ( self, project _ name : str, environment _ name : str, body : union [ json, io ], user _ id : str = " me ", * * kwargs : any ) - > lropoller [ json ] : _ headers = case _ insensitive _ dict ( kwargs. pop ( " headers ", { } ) or { } ) _ params = kwargs. pop ( " params ", {... | [
-0.29654085636138916,
-0.3002298176288605,
0.9080896973609924,
-0.21344463527202606,
-0.2014133483171463,
-0.09276561439037323,
-0.23890896141529083,
-0.46808335185050964,
-0.38127371668815613,
0.6792035102844238,
-0.08733148872852325,
0.39443835616111755,
-0.10842683911323547,
0.057344865... |
def load ( filename, dataframe = false, vocab = false, model = false ) : if dataframe : return pd. read _ json ( filename ) if vocab : return pickle. load ( open ( filename,'rb') ) if model : return torch. load ( filename ) | [
-0.48314860463142395,
0.42214569449424744,
0.4434986412525177,
-0.28252753615379333,
0.2452820986509323,
-0.5579777359962463,
-0.4072323143482208,
0.5053448677062988,
-0.776951014995575,
0.15677042305469513,
0.24410811066627502,
-0.2683990001678467,
0.14394181966781616,
-1.133088231086731,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.