text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def set _ checkbox _ on ( self, name ) : selector = self. wait _ for _ element _ found ( name,'select ','previous') self. select _ checkbox ( selector ) | [
-0.04854946210980415,
-0.45323657989501953,
0.48542559146881104,
0.10716726630926132,
0.8594188690185547,
-0.4029059112071991,
0.13718900084495544,
-0.5306282639503479,
0.29084789752960205,
0.8766365051269531,
-1.2658523321151733,
0.7816017270088196,
-0.43764373660087585,
0.166463986039161... |
def shift _ xy ( self, x, y, loglam ) : if y. ndim = = 1 : ny = len ( y ) y = n. tile ( y, self. nspec ). reshape ( self. nspec, ny ) assert x. shape = = y. shape assert x. shape = = loglam. shape for i in range ( self. nspec ) : self. param ['x'] [ i ] = n. interp ( self. loglam ( i ), loglam [ i ], x [ i ] ) self. pa... | [
0.1477319449186325,
0.37651193141937256,
0.9689247012138367,
-0.4999072849750519,
0.08950084447860718,
0.44168615341186523,
-0.4362550973892212,
-0.27672675251960754,
-0.16899241507053375,
0.6382794976234436,
0.1763402372598648,
0.913010835647583,
-0.12799783051013947,
-0.10935580730438232... |
def mmkinetics ( t, x, v _ max = 1. 5, k _ m = 0. 3, j _ in = 0. 6 ) : return j _ in - v _ max * x / ( k _ m + x ) | [
0.841191291809082,
0.1389797031879425,
0.337455689907074,
0.724206268787384,
-1.0742684602737427,
-0.16603343188762665,
-1.2233433723449707,
0.48538264632225037,
-0.1682247370481491,
1.571735143661499,
0.23870249092578888,
0.236077681183815,
0.17591561377048492,
-0.623573362827301,
-1.13... |
def get _ record _ header _ string ( dir _ name, file _ name ) : fp = open ( os. path. join ( dir _ name, file _ name ),'rb') fields = get _ fields ( fp ) record _ fields = [ ] for i in fields : field = resolve1 ( i ) name, value = field. get ('t'), field. get ('v') record _ fields. append ( ", % s " % name ) fp. close... | [
-0.18482910096645355,
-0.694513201713562,
0.6990088820457458,
-0.6213485598564148,
0.0033465500455349684,
0.08924895524978638,
-0.29915839433670044,
0.2707885801792145,
-1.2956727743148804,
1.155290961265564,
-0.2713301479816437,
0.35948488116264343,
0.053248330950737,
-1.3518871068954468,... |
def acs _ url ( year : int = typer. option (..., " - - year ", help = " year of survey ( 2000 - 2019 ) ", ), state : str = typer. option (..., " - - state ", help = " one of the 50 us states or district of columbia " ), survey : str = typer. option ( " 1 - year ", " - - survey ", help = " one of'1 - ','3 -'or'5 - year'... | [
-0.1440604329109192,
-0.20885683596134186,
0.5636233687400818,
-0.6694884896278381,
0.06794232875108719,
0.6104438900947571,
0.10246359556913376,
-0.44736188650131226,
0.11579575389623642,
-0.3861027956008911,
0.5985100865364075,
1.18997061252594,
0.5999756455421448,
-0.6109843254089355,
... |
def hector _ header ( header ) : # to fit actual pykoala header format header. rename _ keyword ('cenra ','racen') header. rename _ keyword ('cendec ','deccen') return header | [
0.38064345717430115,
-0.9800023436546326,
0.36341896653175354,
0.2653183043003082,
0.09078075736761093,
-0.6480401158332825,
-0.9315522909164429,
0.07111985981464386,
-0.27539893984794617,
0.12211288511753082,
0.1476977914571762,
0.09520216286182404,
0.7568531632423401,
0.3488645851612091,... |
def test _ get _ review _ ct ( self ) : counter = get _ review _ ct ( " pj0vl4dildcche80df40yw " ) self. asserttrue ( counter > = 0 ) | [
0.25003311038017273,
0.26872149109840393,
0.3453258275985718,
-0.07412108033895493,
0.426163911819458,
0.8873522877693176,
-0.6970222592353821,
0.06258393079042435,
-0.4291684329509735,
-1.0445070266723633,
0.15017317235469818,
-0.4968501627445221,
-0.5468371510505676,
-0.23086737096309662... |
def isdone ( self ) : done = true for enemy in self. enemylist : if enemy. destroyed = = false : done = false return done return done | [
-1.2607556581497192,
-0.23701070249080658,
0.8042006492614746,
0.29798343777656555,
1.0403529405593872,
0.025445187464356422,
-0.9980441927909851,
0.9054087996482849,
-0.4983888566493988,
1.0068429708480835,
-1.3159819841384888,
-1.154473900794983,
-0.694044291973114,
1.0744061470031738,
... |
def _ get _ col _ widths ( self, padding = _ default _ cell _ padding ) : tot _ padding = 2 * padding symbol _ widths = [ tot _ padding + len ( symbol ) for symbol in self. _ ordering ] return symbol _ widths + [ tot _ padding + 1 ] | [
-1.0416407585144043,
1.4293694496154785,
0.5867795944213867,
0.12266925722360611,
0.3453986644744873,
-1.057800054550171,
-0.1758556216955185,
-0.5839970707893372,
-0.3877359628677368,
0.2085607349872589,
-0.3961273431777954,
0.18039065599441528,
0.5654482841491699,
0.7131573557853699,
0... |
def lab07 _ practice _ problems ( ) : okpy _ email = " my _ examil @ berkeley. edu " okpy _ secret _ key = " xxxx... xxxxx " return ( okpy _ email, okpy _ secret _ key ) | [
-0.39009201526641846,
-0.31990429759025574,
0.36604079604148865,
-0.12967361509799957,
0.7514068484306335,
0.36695191264152527,
-0.5971004366874695,
-0.45747193694114685,
0.3349709212779999,
0.4583451449871063,
-0.039513397961854935,
0.3203502893447876,
-0.10728681832551956,
-0.88761204481... |
def remove _ all _ none ( a _ list ) : # type : ( list ) - > list return [ item for item in a _ list if item is not none ] | [
0.4654145836830139,
-1.1967096328735352,
0.35331690311431885,
0.6621876955032349,
0.16279350221157074,
-1.0982398986816406,
-1.0224056243896484,
1.6452516317367554,
0.9359472990036011,
0.9902340769767761,
-1.0105547904968262,
-0.3299688696861267,
-0.43768319487571716,
1.0696163177490234,
... |
def get _ assets _ info ( ) : good _ asset _ names = request. args. getlist ('name') assets _ list = [ ] for asset in app. bank. assets : if asset. name in good _ asset _ names : assets _ list. append ( [ asset. char _ code, asset. name, \ round ( asset. capital, 8 ), round ( asset. interest, 8 ) ] ) return jsonify ( s... | [
-0.5840676426887512,
-0.4068097472190857,
0.4066876471042633,
-0.8098351955413818,
-0.28025442361831665,
-0.05207924172282219,
-0.3990574777126312,
-1.599787712097168,
-0.589231014251709,
0.6476898193359375,
-0.4525063931941986,
-0.12491607666015625,
0.09824434667825699,
0.2396441549062729... |
def get _ short2long ( ) : short2long = none if os. path. exists ( short2long _ json ) : with open ( short2long _ json,'r') as f : short2long = json. load ( f ) else : raise filenotfounderror ( " missing team nickname to full name data file : % s " % ( short2long _ json ) ) return short2long | [
0.5443494319915771,
-0.7598544955253601,
0.6211444735527039,
-1.0620595216751099,
-1.17695951461792,
0.11539961397647858,
-0.9479670524597168,
-0.4525883197784424,
-0.30632948875427246,
0.5472570061683655,
-1.123060703277588,
0.4576587378978729,
1.3301435708999634,
-1.301740050315857,
0.... |
def test _ atomic _ boolean _ white _ space _ 4 _ nistxml _ sv _ iv _ atomic _ boolean _ white _ space _ 5 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / boolean / schema + instance / nistschema - sv - iv - atomic - boolean - whitespace - 5. xsd ", instance = " nistdat... | [
-0.23468191921710968,
-0.0768255963921547,
0.3789016902446747,
0.33452919125556946,
-0.1471172720193863,
-0.0011590677313506603,
0.49724194407463074,
-1.008558750152588,
-0.1729467213153839,
0.8427180051803589,
-0.21154087781906128,
0.09877447038888931,
-0.5728200674057007,
0.6168201565742... |
def _ video _ enabled ( self ) : is _ enabled = self. record _ video _ trigger ( self. step _ id ) assert isinstance ( is _ enabled, bool ) return is _ enabled | [
0.5136286616325378,
0.6075195670127869,
0.458770751953125,
1.788129448890686,
0.4065449833869934,
-0.7355836629867554,
-0.6341978311538696,
0.9148973226547241,
0.5123375058174133,
0.26548460125923157,
-1.2345411777496338,
0.7356798648834229,
-0.7773199677467346,
0.6274440884590149,
-1.05... |
def cities _ by _ states ( ) : states = storage. all ( state ). values ( ) cities = storage. all ( city ). values ( ) return render _ template ('8 - cities _ by _ states. html ', states = states, cities = cities ) | [
-0.05855794623494148,
-0.11958156526088715,
0.23024120926856995,
-0.8296958804130554,
-0.5856068134307861,
-0.41476112604141235,
-0.05200612545013428,
0.4691580533981323,
-0.0036120291333645582,
0.34886205196380615,
0.14308708906173706,
-0.704422116279602,
0.8355724215507507,
-0.0565761700... |
def getcor ( self ) : return [ ( v [ 0 ], v [ 1 ] ) for v in self. cor ] | [
-1.438915491104126,
-0.16294850409030914,
0.3704693615436554,
0.2445426881313324,
0.35673341155052185,
-0.3335411548614502,
-0.4640280306339264,
0.38163676857948303,
-0.31118959188461304,
0.5371755361557007,
-0.5375058054924011,
-0.6861782670021057,
-0.6220431923866272,
0.6616207361221313,... |
def get _ workflow _ image _ thumb ( workflow, img _ num ) : try : img _ path = workflow. images [ img _ num ] except indexerror : abort ( 404 ) thumbnail = get _ thumbnail ( img _ path ) return response ( thumbnail, mimetype ='image / jpeg') | [
-1.2098077535629272,
0.18323387205600739,
0.5038264393806458,
0.23015765845775604,
0.4663185775279999,
-1.1694910526275635,
0.6482378840446472,
-0.1099042072892189,
0.4171377420425415,
0.5977292656898499,
0.4091951549053192,
-0.12188257277011871,
0.22931720316410065,
0.15390342473983765,
... |
def classify ( self, data _ point ) : if not self. root : raise exception ( " you must build the tree before classifying. " ) current _ node = self. root while not current _ node. is _ leaf ( ) : current _ node = current _ node. get _ child ( data _ point [ current _ node. get _ attribute ( ) ] ) return current _ node.... | [
-0.18261219561100006,
0.0013736390974372625,
0.5762885212898254,
0.08202466368675232,
-0.6667163968086243,
0.10027863830327988,
-0.15537068247795105,
-0.23204892873764038,
0.10980331152677536,
-0.917153000831604,
0.7302747964859009,
1.6834967136383057,
0.028512943536043167,
0.6199413537979... |
def set _ function ( self, name, memory _ bytes ) : name = auto _ bytes ( name ) self. _ _ functions [ name ] = memory _ bytes | [
0.06664235889911652,
-0.020112721249461174,
0.39421775937080383,
-0.3028722107410431,
-0.10890883952379227,
-0.8041159510612488,
-0.3765159249305725,
-0.4824414551258087,
-0.14832282066345215,
-0.3561098873615265,
-2.0826783180236816,
0.6818904876708984,
-0.7643091082572937,
0.270480692386... |
def getphysicalinterfaceondevicetype ( self, typeid, draft = false ) : if draft : req = apiclient. onedevicetypephysicalinterfaceurl % ( self. host, " / draft ", typeid ) else : req = apiclient. onedevicetypephysicalinterfaceurl % ( self. host, " ", typeid ) resp = requests. get ( req, auth = self. credentials, headers... | [
-1.5980010032653809,
-0.3043728470802307,
0.7026069164276123,
-0.024970807135105133,
-0.6648737192153931,
0.12011908739805222,
-0.2632199823856354,
-1.6127605438232422,
0.2818004786968231,
0.05821378901600838,
0.09671318531036377,
0.019007621333003044,
-1.9765294790267944,
0.54501020908355... |
async def set _ charging _ amps ( self, value : float ) - > none : # only wake car if the value is different wake _ if _ asleep = value! = self. _ vehicle _ data. get ( " charge _ state ", { } ). get ( " charge _ current _ request " ) data = await self. _ send _ command ( " charging _ amps ", charging _ amps = int ( va... | [
-1.1646169424057007,
-0.4923941195011139,
0.7322310209274292,
0.13230454921722412,
-0.11763280630111694,
0.08950285613536835,
-0.6250197887420654,
-1.4852840900421143,
0.2028985619544983,
0.14685389399528503,
0.05881979689002037,
0.31325477361679077,
-0.535586416721344,
0.49901798367500305... |
def test _ example _ input _ one _ clone _ frontend _ validation ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper, add _ input _ one ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) input _ page. table. wait _ for _ rows _ to _ appear ( 1 ) input _ pa... | [
0.06972292810678482,
0.9761433005332947,
0.735431969165802,
0.9136606454849243,
0.279470831155777,
0.5826728940010071,
0.3588609993457794,
-0.2135561853647232,
0.43208038806915283,
0.4758981168270111,
-0.23489753901958466,
0.33191442489624023,
0.2765439450740814,
0.178879976272583,
0.654... |
def limit ( self, lim ) : magnitude = self. mag ( ) if ( magnitude > lim ) : self. normalize ( ) self. multiplication ( lim ) | [
0.3932636082172394,
0.5485985279083252,
0.5577996373176575,
0.17693758010864258,
-0.6605702638626099,
0.18852020800113678,
0.33462783694267273,
-0.6182592511177063,
1.1713151931762695,
-0.7704868912696838,
0.637203574180603,
0.034227512776851654,
-0.6411479711532593,
-0.11455947905778885,
... |
def test _ atomic _ qname _ min _ length _ 3 _ nistxml _ sv _ iv _ atomic _ qname _ min _ length _ 4 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - minlength - 4. xsd ", instance = " nistdata / atomic ... | [
0.41006454825401306,
-0.43397703766822815,
0.4131613075733185,
-0.34495818614959717,
-0.5023797154426575,
0.214435875415802,
-0.5907827615737915,
-0.8042364716529846,
0.8529998660087585,
-0.07541859894990921,
-0.3224347233772278,
-0.44760212302207947,
-0.6469166278839111,
-0.55490279197692... |
def test _ atomic _ boolean _ white _ space _ nistxml _ sv _ iv _ atomic _ boolean _ white _ space _ 1 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / boolean / schema + instance / nistschema - sv - iv - atomic - boolean - whitespace - 1. xsd ", instance = " nistdata / ... | [
-0.23600248992443085,
-0.07239808142185211,
0.44943612813949585,
0.48539745807647705,
0.12943239510059357,
0.15623468160629272,
0.508158802986145,
-0.5624164342880249,
0.2102484256029129,
0.816545307636261,
0.17019161581993103,
0.11189142614603043,
-0.3087458312511444,
0.6275190114974976,
... |
def get _ nonphylogenetic _ metric ( name ) : for metric in nonphylogenetic _ metrics : if metric. _ _ name _ _. lower ( ) = = name. lower ( ) : return metric raise attributeerror | [
0.2716835141181946,
-0.41806909441947937,
0.4568447768688202,
-0.24405066668987274,
-0.8289270997047424,
0.9344291687011719,
0.1354379951953888,
-1.229905605316162,
-0.9495691061019897,
0.992412269115448,
0.5621337294578552,
0.17927955090999603,
-0.9131213426589966,
-0.17724759876728058,
... |
def processbraillecutbegin ( self, inputevent = none ) : obj, caretoffset = self. getbraillecaretcontext ( inputevent ) if caretoffset > = 0 : self. utilities. cleartextselection ( obj ) self. utilities. setcaretoffset ( obj, caretoffset ) return true | [
0.21852688491344452,
-0.4248996675014496,
0.6265215873718262,
0.13896718621253967,
-0.32181745767593384,
1.50972580909729,
1.0522572994232178,
-0.8551927804946899,
0.5354936122894287,
0.5685380697250366,
0.04631573706865311,
0.36558154225349426,
-0.6829144954681396,
-0.17065921425819397,
... |
def _ speck ( obj ) : # type : ( speck ) - > hnode _ t p _ node = runtime. newrecord ('' ) # don't show node type p _ node. abbrev = true n1 = runtime. newleaf ( id _ str ( obj. id ), color _ e. otherconst ) p _ node. unnamed _ fields. append ( n1 ) return p _ node | [
0.6095948219299316,
0.13909892737865448,
0.5172502994537354,
-0.6193676590919495,
0.23499593138694763,
0.5580635070800781,
0.39625996351242065,
-0.677416980266571,
0.22009269893169403,
0.21230365335941315,
-0.04213524982333183,
0.4180546700954437,
0.2329297810792923,
-0.3039979040622711,
... |
def event _ in ( self, d, keys ) : if'event'in d : return d ['event'] in keys return false | [
-0.25712016224861145,
0.351786345243454,
0.4700179100036621,
0.024653693661093712,
-0.3111328184604645,
0.1136072427034378,
-1.146393895149231,
0.7951833009719849,
-0.39394888281822205,
0.5534241795539856,
0.480353444814682,
0.22521425783634186,
0.135742649435997,
0.21069784462451935,
-1... |
def input _ relation ( cls, op, input _ idx ) : return cls. get _ prim ( op ). relation _ func ( op, input _ idx ) | [
-0.5547510981559753,
0.6741425395011902,
0.2583507001399994,
0.17593757808208466,
0.044269073754549026,
-0.12078903615474701,
0.5233958959579468,
-0.604218065738678,
0.6724017858505249,
-0.4627513885498047,
0.409677654504776,
0.6565163135528564,
-0.48476657271385193,
-1.4385948181152344,
... |
def summary ( self ) : model _ summary = " " " model summary : \ n = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = \ n { } \ n " " ". format ('\ n '. join ( layer. name + " : " + str ( layer. size ) for layer in self. layers ) ) return model _ summary | [
-0.09461233019828796,
-0.5938764214515686,
0.8429200649261475,
-0.7422211170196533,
-0.24024732410907745,
0.028880586847662926,
-0.09314361214637756,
-0.7413047552108765,
-0.4720649719238281,
0.8057907819747925,
-0.7875145673751831,
-0.12212461233139038,
0.7160864472389221,
0.3693522810935... |
def plot _ weights ( bin, width, bias, disc _ layer _ configs, true _ values = none, label = none ) : activation _ fn = disc _ layer _ configs ['pre _ sm _ activation'] def activation ( x ) : if activation _ fn = ='elu': return np. exp ( x ) - 1 if x < 0 else x elif activation _ fn = ='lelu': return x * 0. 2 if x < 0 e... | [
0.1041642501950264,
0.8502042889595032,
0.6087666749954224,
0.39944395422935486,
-0.42058444023132324,
-0.35970941185951233,
0.31572842597961426,
0.06239832192659378,
-0.16360682249069214,
-0.4278617203235626,
-0.17224425077438354,
1.0633306503295898,
-0.3125859200954437,
-0.18914163112640... |
def test _ settings _ initialization ( self ) : client _ settings = {'bot _ name':'test - bot'} with client _ manager ( settings = client _ settings ) as test _ client : assert isinstance ( test _ client. settings, dict ) assert test _ client. settings = = client _ settings with pytest. raises ( assertionerror ) : for ... | [
-0.04066026583313942,
0.2651304304599762,
0.19033227860927582,
-0.20085348188877106,
0.8116700053215027,
0.01127159409224987,
0.43575116991996765,
-0.9209297299385071,
-0.6237807869911194,
0.045722875744104385,
-0.7079349756240845,
-0.3121100068092346,
-0.17828716337680817,
0.8980001807212... |
def load _ binfile ( binfile ) : global species _ whitelist data = { } with open ( binfile,'rb') as fp : # get the number of msis in the bin file msi _ count = struct. unpack ('i ', fp. read ( 4 ) ) [ 0 ] # get the data for each msi for i in range ( msi _ count ) : msi _ id = struct. unpack ('i ', fp. read ( 4 ) ) [ 0 ... | [
-0.09352663904428482,
-0.2891128361225128,
0.7334333658218384,
-0.9239540696144104,
-1.2124611139297485,
0.7231815457344055,
-0.0881224125623703,
0.01347128301858902,
-0.6269702911376953,
0.31629645824432373,
-1.171142816543579,
0.5482863187789917,
-1.0473870038986206,
0.39052560925483704,... |
def test _ total _ population ( self ) : self. cell. animals = [ ] pop _ list = [ {'species':'herbivore ','age': 5,'weight': 10 }, {'species':'carnivore ','age': 4,'weight': 20 }, {'species':'herbivore ','age': 7,'weight': 80 } ] self. cell. add _ population ( pop _ list ) assert self. cell. total _ population = = 3 | [
-0.09259107708930969,
0.6433014273643494,
0.5935129523277283,
-0.3634050190448761,
1.1114838123321533,
0.2821178734302521,
-0.41435953974723816,
-0.12007706612348557,
-0.2283613681793213,
1.1993154287338257,
-0.8877752423286438,
-1.0741711854934692,
0.1682066172361374,
-0.42603299021720886... |
def _ _ file _ _ ( self ) : return _ _ file _ _ | [
-0.013103272765874863,
-1.7902843952178955,
0.8117877244949341,
-0.8021945953369141,
-0.2653330862522125,
0.8027631044387817,
1.1491408348083496,
-0.08343540132045746,
-0.16424588859081268,
-1.2047064304351807,
0.5293682813644409,
0.46107906103134155,
0.8582262992858887,
-0.257605016231536... |
def test _ list _ decimal _ pattern _ 1 _ nistxml _ sv _ iv _ list _ decimal _ pattern _ 2 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - pattern - 2. xsd ", instance = " nistdata / list / decimal / sc... | [
-0.4914573132991791,
-0.19556941092014313,
0.643372118473053,
0.7763676643371582,
0.11926307529211044,
0.13895578682422638,
-0.40915635228157043,
0.5505270957946777,
0.8218797445297241,
-0.009242218919098377,
-1.0169700384140015,
-0.32763704657554626,
0.1569899469614029,
0.3907150328159332... |
def test _ atomic _ qname _ length _ 3 _ nistxml _ sv _ iv _ atomic _ qname _ length _ 4 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - length - 4. xsd ", instance = " nistdata / atomic / qname / schem... | [
0.12497463077306747,
-0.12389687448740005,
0.32191914319992065,
0.07164184749126434,
-0.3065543472766876,
0.49479973316192627,
-0.32076624035835266,
-0.23586268723011017,
0.2736680805683136,
0.6042960286140442,
-0.5086008906364441,
-0.5177748799324036,
-0.07271770387887955,
-0.537591814994... |
def test _ list _ integer _ max _ length _ 3 _ nistxml _ sv _ iv _ list _ integer _ max _ length _ 4 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - maxlength - 4. xsd ", instance = " nistdata / list / ... | [
-0.362596720457077,
-0.003366807010024786,
0.16983135044574738,
0.4909715950489044,
-0.4400588870048523,
0.09880253672599792,
-0.7217774391174316,
0.20046891272068024,
1.0593528747558594,
0.6228175163269043,
-0.9528218507766724,
-0.7422746419906616,
-0.6323581337928772,
0.23285852372646332... |
def test _ default _ channel ( self, patch _ put, patch _ upload, _ ) : with self. create _ mock _ protocol ( ) as wire _ protocol : wire. hostpluginprotocol. is _ default _ channel = false wire _ protocol. client. update _ goal _ state ( ) # act wire _ protocol. client. upload _ status _ blob ( ) # assert direct route... | [
-0.004142495337873697,
0.4924141466617584,
0.5577775835990906,
-0.12520018219947815,
1.8115214109420776,
0.43711283802986145,
0.5269668102264404,
-0.10792145878076553,
-0.6794681549072266,
0.0740320235490799,
-0.4076058864593506,
-0.003445893758907914,
-0.9828179478645325,
0.18862654268741... |
def task _ 5 _ 2 _ 2 ( ) : results = [ none, none, none, none ] # todo task 5. 2. 2 : your code goes here conf _ level =. 0015 sim = simulation ( ) sim. sim _ param. rho = 0. 9 sim. sim _ param. s = 4 i = 0 tic = timeindependentcounter ( ) for batch _ size in [ 100, 1000 ] : for alpha in [ 0. 1, 0. 05 ] : tic. reset ( ... | [
0.20969712734222412,
0.07350773364305496,
0.9259387254714966,
0.901775598526001,
-0.15418271720409393,
-0.09359467774629593,
0.607456624507904,
-0.45368143916130066,
-0.9164960384368896,
0.9211320281028748,
-1.1667678356170654,
-0.13150429725646973,
-0.45350807905197144,
0.602170467376709,... |
def entity _ attributes ( self, entity _ attributes ) : self. _ entity _ attributes = entity _ attributes | [
0.04291492700576782,
-0.6510430574417114,
-0.03115413337945938,
0.0742492750287056,
0.801150381565094,
0.6923374533653259,
0.14009590446949005,
1.7145787477493286,
-0.4982861280441284,
-0.0031825928017497063,
0.11874336749315262,
-0.6322645545005798,
-0.1489458829164505,
0.8081458806991577... |
def test _ install _ aliases ( self ) : from future. standard _ library import remove _ hooks, install _ aliases remove _ hooks ( ) install _ aliases ( ) from collections import counter, ordereddict # backported to py2. 6 from collections import userdict, userlist, userstring # requires python dbm support : # import db... | [
-0.15094970166683197,
0.06416688859462738,
0.580625593662262,
0.020733488723635674,
0.5274415612220764,
0.5966213941574097,
0.837319016456604,
0.37320032715797424,
-0.09416574239730835,
-0.0859254002571106,
-0.9775150418281555,
-0.44722646474838257,
0.033023737370967865,
0.5233975648880005... |
def read _ seq _ from _ file ( filename ) : files = open ( filename, " r " ) lines = files. readlines ( ) seq = " " for l in lines : seq + = l. replace ( " \ n ", " " ) files. close ( ) return seq | [
-0.19882512092590332,
-0.9589633941650391,
0.5405738353729248,
-0.6426565647125244,
-0.5318331122398376,
0.23060114681720734,
-0.5180878043174744,
1.0506806373596191,
-0.4452677369117737,
0.5420039296150208,
-0.030075209215283394,
-0.23516495525836945,
0.07635963708162308,
-0.1737203001976... |
def test _ list _ decimal _ max _ length _ 4 _ nistxml _ sv _ iv _ list _ decimal _ max _ length _ 5 _ 3 ( 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.30204614996910095,
0.22766734659671783,
0.2991606295108795,
0.3657909631729126,
-0.35833436250686646,
-0.031139913946390152,
-0.4683064818382263,
-0.06281309574842453,
0.9089452624320984,
0.17674948275089264,
-1.28572416305542,
-0.5941162109375,
-0.3215445280075073,
0.2693675458431244,
... |
def get _ executable _ steps ( self ) - > list [ step ] : return list ( map ( lambda s : s [ 0 ], # unwrap the steps filter ( lambda s : s [ 1 ] = = 0, # get all steps with 0 depedencies # wrap the steps with their dependency counter map ( lambda s : ( s [ 0 ], len ( s [ 1 ] ) ), self. dependency _ graph. items ( ) ) )... | [
-0.17867442965507507,
-0.3188765048980713,
0.42399463057518005,
0.6032015681266785,
0.6313334107398987,
0.54937344789505,
-0.02524697780609131,
0.3943586051464081,
-0.1990874856710434,
-0.4257262051105499,
-0.36915743350982666,
0.16059917211532593,
0.49061936140060425,
1.3000775575637817,
... |
def _ _ init _ _ ( self, listening _ port, listening _ ip ) : super ( app, self ). _ _ init _ _ ( listening _ ip, listening _ port,'index. html') | [
1.5473837852478027,
0.06044336035847664,
0.5594679117202759,
0.5171021223068237,
0.20152899622917175,
0.7986459732055664,
0.2841844856739044,
0.09928538650274277,
-0.6586011648178101,
0.051448892802000046,
0.6678632497787476,
-0.4871636927127838,
0.6915366053581238,
-0.1804133504629135,
... |
def get _ color ( key ) : r = ( key & 0xff0000 ) > > 16 g = ( key & 0x00ff00 ) > > 8 b = ( key & 0x0000ff ) return r, g, b | [
-0.2364574819803238,
-0.05583803728222847,
0.39116257429122925,
-0.24922053515911102,
0.22958199679851532,
-0.36237040162086487,
-0.6622856855392456,
-0.5182900428771973,
-0.476000040769577,
0.8692587614059448,
-1.011304259300232,
0.23253969848155975,
-0.8825433254241943,
0.557185828685760... |
def gcd ( self, x, y ) : return x if y = = 0 else self. gcd ( y, x % y ) | [
0.5298535227775574,
0.7833214402198792,
0.5935876369476318,
0.10768324881792068,
-0.052076514810323715,
1.1217867136001587,
-0.9390210509300232,
-1.5990383625030518,
0.06430140137672424,
0.03469015657901764,
1.5923426151275635,
0.5401054620742798,
-0.5991396307945251,
0.4765738248825073,
... |
def setup ( self ) : rng = np. random. default _ rng ( 465234543084621232141567865641323 ) discrimnation = rng. uniform ( - 2, 2, ( 20, 2 ) ) thetas = rng. standard _ normal ( ( 2, 1000 ) ) difficulty = - 1 * np. sort ( rng. standard _ normal ( ( 20, 3 ) ) *. 5, axis = 1 ) syn _ data = create _ synthetic _ irt _ polyto... | [
0.29827848076820374,
0.4940236210823059,
0.6084839105606079,
-0.4909207224845886,
0.25507479906082153,
0.20006728172302246,
0.15378828346729279,
0.5149512887001038,
-0.31304261088371277,
-0.15712469816207886,
-0.5964827537536621,
0.5863918662071228,
-0.00447563361376524,
-0.310348093509674... |
def chunks ( l ) : # pad l to n + 60 bytes long n = 60 padded _ l = l + ( ( n - len ( l ) % n ) * [ 0 ] ) for i in range ( 0, len ( padded _ l ), n ) : yield padded _ l [ i : i + n ] | [
-0.2323988676071167,
0.40948817133903503,
0.7411168217658997,
-0.6330009698867798,
-0.27488642930984497,
0.6973525881767273,
-0.8857784271240234,
-0.6440141201019287,
0.8929545283317566,
-0.2800990343093872,
-0.7413468360900879,
-0.1425343006849289,
-0.3151455521583557,
0.9821541905403137,... |
def test _ n _ user _ config _ dir ( self ) - > none : author ='fake author'appname ='fake app'home = path. home ( ) # directory may exist of not ( only way to get its name without tricks ) config _ dir = user _ config _ dir ( app _ author = author, app _ name = appname ) config _ path = path ( config _ dir ) author _ ... | [
-0.2519269287586212,
0.3230338990688324,
0.596470832824707,
1.1185559034347534,
0.4504721164703369,
0.40877726674079895,
0.5543782114982605,
-0.03754645213484764,
0.5880500078201294,
-0.20768192410469055,
-0.31466323137283325,
0.009688522666692734,
0.01705046184360981,
0.5628159046173096,
... |
def _ set _ nonplasma ( self, mesh ) : for idx, mat in np. ndenumerate ( mesh. mat ) : if mat : self. se [ idx ] = 0. 0 self. si [ idx ] = 0. 0 | [
0.1033167615532875,
-0.48677870631217957,
0.2854813039302826,
-0.2747259736061096,
0.2703021764755249,
1.0806865692138672,
0.51902836561203,
0.5053120255470276,
0.5696582198143005,
0.6660418510437012,
0.17404216527938843,
0.20192338526248932,
-0.5321811437606812,
1.9746246337890625,
0.11... |
def discount ( self, discount ) : self. _ discount = discount | [
1.1865227222442627,
-0.5586132407188416,
-0.04985462874174118,
1.3630586862564087,
0.15583254396915436,
1.4366509914398193,
0.15437516570091248,
0.21091295778751373,
-0.08745960146188736,
-0.8294674754142761,
-0.6422286033630371,
-1.055643081665039,
0.13842834532260895,
1.1232713460922241,... |
def about ( ) : try : with open ( " txt / about. html ", encoding = " utf8 " ) as f : data = f. read ( ) except : return jsonify ( { " status " : " error ", " data " : " error open about file " } ) return jsonify ( { " status " : " ok ", " data " : data } ) | [
-0.10401217639446259,
-0.6343450546264648,
0.9678922891616821,
0.28159111738204956,
-0.8842118978500366,
0.44144704937934875,
-0.3077565133571625,
0.5205981135368347,
-1.481607437133789,
0.7809747457504272,
-0.09039716422557831,
0.149211123585701,
0.09701762348413467,
-0.06464032828807831,... |
def plt _ roi _ data ( df, ax, sortkey = none ) : # drop unwanted rois if drop _ rois : df = df. drop ( columns = self. dropped _ rois ) if sortkey is none : # sort rois by mean ctrl value roi _ cmeans = df [ self. subj _ bools _ data ['ctrl'] ]. mean ( ) sortkey = np. argsort ( roi _ cmeans. values ) # means _ tile = ... | [
0.6888620853424072,
0.7154124975204468,
0.7922868132591248,
-0.2731722295284271,
-0.9475077986717224,
0.3498668074607849,
0.6592117547988892,
-0.23413226008415222,
0.4610590636730194,
0.564598023891449,
0.7065033316612244,
1.4696773290634155,
0.129068061709404,
-0.23156793415546417,
0.59... |
def _ read _ regional _ scalars ( parent _ dir : str ) - > pd. dataframe : return read _ cached _ hdf ( _ get _ regional _ scalars _ path ( parent _ dir ), keys. regional _ scalars, columns = [ columns. year _ id, columns. location _ id, columns. mean ] ) | [
0.2503075897693634,
0.1749914288520813,
0.2718449532985687,
-0.44702818989753723,
-0.5083621144294739,
-0.03707457706332207,
-0.11605965346097946,
-0.7420041561126709,
-0.6763107776641846,
0.5992094874382019,
0.30234330892562866,
1.538132667541504,
0.03293585404753685,
-0.9929149746894836,... |
def get ( self, org, sddc, network _ id, ) : return self. _ invoke ('get ', {'org': org,'sddc': sddc,'network _ id': network _ id, } ) | [
-0.05722785368561745,
0.7657294273376465,
0.31913214921951294,
0.28292304277420044,
0.7348475456237793,
-0.7711027264595032,
-1.2496181726455688,
-0.68828946352005,
0.523615837097168,
-0.8590694665908813,
0.5836828351020813,
0.7354677319526672,
-0.3049760162830353,
-0.20000021159648895,
... |
def _ _ init _ _ ( self, features ) : self. features = tuple ( features ) | [
-1.1824268102645874,
0.3500206172466278,
0.215702623128891,
0.3583563566207886,
0.6387481689453125,
-0.010481471195816994,
-0.19891119003295898,
0.6461809873580933,
-0.4035409092903137,
-0.5996610522270203,
-0.8459771871566772,
-0.9262679815292358,
0.0912783145904541,
-0.14612437784671783,... |
def create _ panel _ of _ normals _ from _ batch ( batch _ id, paths _ to _ samples _ info, n = 20 ) : paths _ to _ samples = pd. read _ excel ( paths _ to _ samples _ info, index _ col = 0 ) path _ to _ samples _ info = paths _ to _ samples. loc [ batch _ id,'path _ to _ samples _ info'] all _ samples = pd. read _ tab... | [
-0.36906078457832336,
-0.5262450575828552,
0.5549883246421814,
-0.3330932855606079,
-0.814251184463501,
0.21214653551578522,
0.07171553373336792,
-0.07621694356203079,
0.034260377287864685,
0.3277893662452698,
-0.01125379279255867,
-0.48039743304252625,
0.11863811314105988,
0.1073879972100... |
def update ( self, dt ) : self. proj. update ( dt ) center = self. marker. getcenter ( ) dx = self. proj. getx ( ) - center. getx ( ) dy = self. proj. gety ( ) - center. gety ( ) self. marker. move ( dx, dy ) | [
-0.8125227689743042,
-0.9274340867996216,
0.46330612897872925,
-0.2970622479915619,
-0.3051563799381256,
0.8598672151565552,
0.11199706792831421,
0.16909757256507874,
-0.3627733588218689,
0.6702454090118408,
-0.19664856791496277,
-0.2561831772327423,
0.09732311218976974,
-0.153491050004959... |
def merge ( * tasks : task, flow = none, mapped : bool = false, * * kwargs ) - > task : return merge ( * * kwargs ). bind ( * * { " task _ { } ". format ( i + 1 ) : t for i, t in enumerate ( tasks ) }, flow = flow, mapped = mapped ) | [
-0.6099262237548828,
0.7750725746154785,
0.6417787075042725,
0.8377769589424133,
-0.38112035393714905,
0.5633606910705566,
-0.057756293565034866,
0.2959551215171814,
0.08218145370483398,
-0.8618193864822388,
-1.0795116424560547,
-0.35675668716430664,
-0.03319910168647766,
-0.01490879058837... |
def get _ slider _ value ( self, locator ) : slider = self. state. _ get _ typed _ item _ by _ locator ( slider, locator ) return slider. value | [
-0.7890142798423767,
-0.9157674908638,
0.3623054325580597,
-0.09989896416664124,
0.13007639348506927,
-0.6879215836524963,
-0.4347321093082428,
-0.6073936820030212,
0.19774898886680603,
0.17674478888511658,
-0.45925387740135193,
0.06267065554857254,
0.31614944338798523,
0.31578153371810913... |
def update ( x, * * entries ) : if isinstance ( x, dict ) : x. update ( entries ) else : x. _ _ dict _ _. update ( entries ) return x | [
-0.6341831684112549,
-0.4282827377319336,
0.42132213711738586,
-0.022817539051175117,
-0.9749402403831482,
0.27582186460494995,
-1.3572756052017212,
0.2176862359046936,
0.7904615998268127,
-0.25411584973335266,
-0.1284029334783554,
0.09180375933647156,
0.06925377249717712,
0.08654332906007... |
def setup ( self ) : db. drop _ all ( ) db. create _ all ( ) self. client = app. test _ client ( ) # add states s1 = state ( name = " oh " ) s2 = state ( name = " ca " ) s3 = state ( name = " ny " ) s4 = state ( name = " nc " ) db. session. add _ all ( [ s1, s2, s3, s4 ] ) db. session. commit ( ) # add test users self.... | [
0.44244450330734253,
0.4223282039165497,
0.8276680111885071,
0.0068158493377268314,
0.5166231989860535,
0.18719428777694702,
0.8796918988227844,
-0.14250075817108154,
0.3725334107875824,
0.022632231935858727,
-0.3725699484348297,
-0.356558233499527,
0.018940851092338562,
-0.377627193927764... |
def test _ list _ integer _ length _ 3 _ nistxml _ sv _ iv _ list _ integer _ length _ 4 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - length - 4. xsd ", instance = " nistdata / list / integer / schem... | [
-0.22212804853916168,
-0.03494834899902344,
0.33090338110923767,
0.27019330859184265,
-0.39528951048851013,
0.07183026522397995,
-0.1129489317536354,
0.4168263375759125,
0.5250524878501892,
0.8310585021972656,
-1.4313864707946777,
-0.5910459160804749,
-0.5861548781394958,
0.381803929805755... |
def cancelgroupclone ( ctx, # mandatory main parameter groupcloneid ) : " " " a group clone operation, the system completes and removes the operation's associated asynchandle. " " " cli _ utils. establish _ connection ( ctx ) ctx. logger. info ( " " " : " " " " " " groupcloneid = " " " + str ( groupcloneid ) + " " " ; ... | [
-0.6118993759155273,
-0.18919898569583893,
0.8086169958114624,
0.474471777677536,
-0.7763426303863525,
0.7189966440200806,
1.2568039894104004,
-0.7650594711303711,
-0.19850756227970123,
1.3006563186645508,
0.23160718381404877,
1.1224323511123657,
-1.0576757192611694,
0.1527286022901535,
... |
def software _ update ( self ) - > dict : return self. _ vehicle _ data. get ( " vehicle _ state ", { } ). get ( " software _ update " ) | [
-0.8277126550674438,
-1.024825930595398,
0.2687634825706482,
0.004848056938499212,
-1.022233247756958,
-0.20987877249717712,
-0.7059878706932068,
-0.05758511275053024,
0.5817857980728149,
0.5293872952461243,
-0.5632779002189636,
-0.13613097369670868,
0.04425574094057083,
0.1976385116577148... |
def exception _ detail ( self, exception _ detail ) : self. _ exception _ detail = exception _ detail | [
1.270064115524292,
-0.10721297562122345,
0.047753509134054184,
0.28785812854766846,
0.48351356387138367,
0.7899246215820312,
-0.18443606793880463,
1.3248975276947021,
0.18839940428733826,
-0.3163779079914093,
-0.5820688605308533,
0.0944061279296875,
-0.13727159798145294,
0.1871429532766342... |
def to _ str ( self ) : return pformat ( self. _ json ) # pragma : no cover | [
-0.5444209575653076,
-1.6350847482681274,
0.4711574912071228,
-1.1717724800109863,
-0.30981260538101196,
0.387578547000885,
-0.8877590298652649,
-0.9611005187034607,
0.36582064628601074,
0.3659955859184265,
1.0353838205337524,
0.31007006764411926,
-0.076665960252285,
-0.2557317018508911,
... |
def vary _ degree ( list _ deg, x, y, fit _ method = " vec " ) : l = [ ] for degree in list _ deg : include _ bias = true poly = polynomialfeatures ( degree, include _ bias = include _ bias ) x _ trans = [ ] for i in range ( len ( x ) ) : ar = np. array ( [ x [ i ] ] ) x _ trans. append ( poly. transform ( ar ) ) # pri... | [
0.21621672809123993,
0.15016748011112213,
0.7011315822601318,
0.012740948237478733,
-0.06474444270133972,
0.1407976597547531,
-0.028063097968697548,
-0.005566149018704891,
-0.027089353650808334,
0.5545492768287659,
-0.32994601130485535,
0.34136179089546204,
0.0066579412668943405,
0.5045921... |
def split _ data ( self, to _ learn, split ) : labels = self. data. loc [ :, to _ learn ] split _ index = int ( self. data. shape [ 0 ] * split ) x _ train = self. data. iloc [ : split _ index, : ]. drop ( to _ learn, axis = 1 ) x _ test = self. data. iloc [ split _ index : self. data. shape [ 0 ], : ]. drop ( to _ lea... | [
-1.2697168588638306,
0.03977862372994423,
0.55727618932724,
-0.8431438207626343,
0.29723671078681946,
-0.20611518621444702,
0.3037409782409668,
0.4684188663959503,
-0.3075842261314392,
0.06456184387207031,
-0.13262192904949188,
0.5545499920845032,
0.10439927130937576,
-2.0224361419677734,
... |
def likelihood ( self, parameters ) : if not self. _ fallback : try : processed _ data = self. _ amplitude _ function ( self. _ data [ " data " ], parameters ) return - ( numpy. sum ( self. _ data [ " qfactor " ] * self. _ data [ " binn " ] * numpy. log ( processed _ data ) ) ) except floatingpointerror : self. _ fallb... | [
0.23307070136070251,
-0.5058804750442505,
0.725314736366272,
-0.619098424911499,
0.07213064283132553,
0.08839792758226395,
-0.36916276812553406,
-0.7599778175354004,
0.4775233268737793,
-0.3384525179862976,
-0.005414989776909351,
0.6332677006721497,
-1.233430027961731,
0.1323792189359665,
... |
def extract _ meta ( self, response _ body : str ) - > models. snippetbody :... | [
-0.3447580337524414,
0.06497512012720108,
0.4590888023376465,
0.4268243610858917,
0.28634288907051086,
-0.6799042224884033,
-0.26961493492126465,
0.10297095030546188,
0.8485991954803467,
0.3717901408672333,
-0.6531413793563843,
-0.5573084950447083,
-0.0670989528298378,
-0.3123714029788971,... |
def divide ( array ) : elements = len ( array ) if elements = = 1 : return array lim = elements / / 2 return conquer ( divide ( array [ 0 : lim ] ), divide ( array = [ lim : ] ) ) | [
0.03634738549590111,
-0.06605666875839233,
0.7840985655784607,
1.5452585220336914,
0.08020641654729843,
0.871834397315979,
0.6101970076560974,
-0.04247711971402168,
1.5871323347091675,
-0.135969877243042,
0.19195860624313354,
-0.13909652829170227,
-0.7340299487113953,
0.7866212725639343,
... |
def dispatch ( intent _ request ) : logger. debug ('dispatch userid = { }, intentname = { } '. format ( intent _ request ['userid'], intent _ request ['currentintent'] ['name'] ) ) intent _ name = intent _ request ['currentintent'] ['name'] # dispatch to your bot's intent handlers if intent _ name = ='bitcoinspotpricei... | [
-0.3521363437175751,
-1.0079617500305176,
0.7267025709152222,
0.18910670280456543,
-0.3721480369567871,
0.671821117401123,
-0.29879072308540344,
-0.6984173655509949,
0.457661509513855,
0.2850581109523773,
-0.20546342432498932,
0.3829071819782257,
0.14543691277503967,
-0.609874427318573,
... |
def sne _ implem ( x _ hds, perp, init ) : global sim _ dr _ nitmax, sim _ dr _ gtol, sim _ dr _ ftol # defining the random state rand _ state = np. random. randomstate ( 0 ) # number of data points n = x _ hds. shape [ 0 ] # dimension of the lds n _ components = 2 # maximum number of gradient descent iterations. nit _... | [
0.2233034074306488,
0.2709179222583771,
0.8271472454071045,
-0.3587762117385864,
-0.3770301938056946,
0.11589605361223221,
-0.26952311396598816,
0.08879735320806503,
-0.16237322986125946,
0.28107133507728577,
-0.14304499328136444,
0.17322072386741638,
0.30550605058670044,
-0.17249543964862... |
def etag ( self ) - > optional [ pulumi. input [ str ] ] : return pulumi. get ( self, " etag " ) | [
0.8094868063926697,
0.6591389179229736,
0.44225189089775085,
-0.13398700952529907,
1.3543016910552979,
1.211859941482544,
0.05157695710659027,
0.10214269906282425,
0.36490172147750854,
0.46221575140953064,
0.2488444745540619,
0.1249130368232727,
0.7307310104370117,
-0.3136853873729706,
-... |
def getcounters ( self ) : self. send _ getcounters ( ) return self. recv _ getcounters ( ) | [
0.11957758665084839,
0.02054229937493801,
0.5074123740196228,
0.34830784797668457,
0.5404533743858337,
-0.3299008309841156,
0.4108337163925171,
-0.7946285605430603,
0.40887174010276794,
-0.7372922301292419,
-0.9803363680839539,
0.49049797654151917,
-1.383564829826355,
0.6938307881355286,
... |
def parameters ( self ) : channel _ = self. get _ channel ( ) isdbt = self. get _ isdbt ( ) try : name = channel _. attrib ['name'] self. dict _ params ['channel'] = name except : self. dict _ params ['channel'] = 0 try : self. dict _ params ['frequency'] = channel _. attrib ['frequency'] except : self. dict _ params [... | [
-0.3338736295700073,
-0.2076304405927658,
0.8047149181365967,
-1.1503369808197021,
0.1874101758003235,
-0.2972702980041504,
0.11474498361349106,
0.13089033961296082,
-1.1460868120193481,
0.4165496230125427,
-0.05258823186159134,
0.5175253748893738,
-0.0894518718123436,
1.6136757135391235,
... |
def test _ list _ integer _ pattern _ 2 _ nistxml _ sv _ iv _ list _ integer _ pattern _ 3 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - pattern - 3. xsd ", instance = " nistdata / list / integer / sc... | [
-0.8997256755828857,
0.11132942885160446,
0.643186628818512,
0.7683634757995605,
-0.2569936513900757,
0.7040654420852661,
-0.5420513153076172,
0.9028297066688538,
1.5870281457901,
1.259695291519165,
-0.6498454809188843,
-0.02216225489974022,
-0.12356190383434296,
-0.026354651898145676,
-... |
def test _ add _ an _ order ( self ) : date = datetime. now ( ) orders = order. all ( ) self. assertequal ( orders, [ ] ) order = order ( customer _ id = 1, date = date, shipped = true ) self. assertequal ( order. id, none ) order. save ( ) self. assertequal ( order. id, 1 ) orders = order. all ( ) self. assertequal ( ... | [
-0.33062756061553955,
0.49567070603370667,
0.37131935358047485,
0.34473109245300293,
1.411189317703247,
0.12081435322761536,
-0.8167867064476013,
0.38917574286460876,
0.3665405213832855,
-0.5882802605628967,
-1.0327024459838867,
-0.5966998338699341,
-0.12328170239925385,
0.770379900932312,... |
def maximize ( self, x _ cand ) : # number of dimensions. k = self. models [ 0 ]. x. shape [ 1 ] # bounds on the search space used by the bfgs algorithm. bounds = [ ( 0., 1. ) ] * k # call the bfgs algorithm to perform the maximization. res = fmin _ l _ bfgs _ b ( self. _ _ negative _ acquisition _ function, x _ cand, ... | [
0.14023885130882263,
0.3785931468009949,
0.7306661009788513,
0.7897539734840393,
0.07518397271633148,
-0.27188941836357117,
-0.859035074710846,
-0.6925826072692871,
0.14447984099388123,
0.042824916541576385,
0.17698131501674652,
0.48897674679756165,
-1.1586374044418335,
0.6994007229804993,... |
def _ createikfootattrs ( self, ctl ) : mc. addattr ( ctl, at = " enum ", ln = " _ _ _ _ _ _ _ _ _ ", k = 1, en = " settings " ) mc. addattr ( ctl, ln = " ikfk ", at = " float ", k = 1, min = 0, max = 1, dv = 1 ) mc. addattr ( ctl, ln = " autohock ", at = " float ", k = 1, min = 0, max = 1, dv = 1 ) mc. addattr ( ctl, ... | [
-0.24818401038646698,
0.2269899994134903,
0.8147467970848083,
0.17185676097869873,
-0.11601859331130981,
0.03068653866648674,
0.5932141542434692,
-0.4411003887653351,
0.10723106563091278,
-0.631160318851471,
-0.20307525992393494,
-1.2002211809158325,
0.6104681491851807,
1.5395019054412842,... |
def test _ todos ( self ) : reporter = yield self. get _ reporter _ with _ suite _ run ( ) result = self. get _ result _ by _ test _ name ( reporter. expectedfailures,'statustest _ todo') self. assertnotequals ( result, none ) result = self. get _ result _ by _ test _ name ( reporter. unexpectedsuccesses,'statustest _ ... | [
0.24971379339694977,
1.0987231731414795,
0.35885944962501526,
0.2815532088279724,
1.023669958114624,
0.5560802221298218,
0.07029009610414505,
0.26063019037246704,
0.08399147540330887,
-0.9400967359542847,
-1.2194374799728394,
-0.7688968777656555,
0.006356756668537855,
-0.06708125025033951,... |
def read _ plan _ library ( plan _ library ='both') : # define file paths to load from plan _ library _ filename _ test ='input / plan _ libraries / plan _ library _ test. json'plan _ library _ filename _ custom ='input / plan _ libraries / plan _ library _ custom. json'plan _ library _ test = [ ] plan _ library _ cust... | [
-0.4639659821987152,
-1.5806858539581299,
0.6249306797981262,
-0.5492211580276489,
-0.7142305970191956,
1.381942629814148,
0.378202348947525,
-0.15086941421031952,
-0.09792527556419373,
0.4983934164047241,
0.2196928858757019,
0.28478187322616577,
-0.1317112296819687,
-0.20330363512039185,
... |
def calculate _ revenue ( self, years : int ) - > float : revenue = self. capital * ( ( 1. 0 + self. interest ) * * years - 1. 0 ) return revenue | [
-0.9949042797088623,
0.04155504330992699,
0.4330056309700012,
-0.07093298435211182,
0.340736985206604,
-0.2840571105480194,
0.3000483512878418,
-0.28643253445625305,
0.6441686749458313,
-0.20507535338401794,
-0.12149710953235626,
0.2771855890750885,
-0.9444391131401062,
-0.2284451723098755... |
def lastsensor ( content, folder ) : # print list of vms in the specified folder folder = get _ obj ( content, [ vim. folder ], folder ) # if the folder was found list it's contents if folder is not none : listtemplates = " " templatelist = [ ] # print folder. parent. name # we will add all of the childobjects of the f... | [
0.19406287372112274,
-0.5596460103988647,
0.7589216232299805,
-0.33507826924324036,
-0.6888406276702881,
-0.44205090403556824,
-0.5061846971511841,
0.12288837134838104,
0.23326285183429718,
0.5353854894638062,
0.0891231968998909,
-0.7270103693008423,
-0.6912029385566711,
0.5268400311470032... |
def sequencederivation ( cls, record ) : # make a managed dependent yield from cls. manageddependentderivation ( ) # if the record has anything to say if record. sequence : # this is its spot yield record. sequence # my sequences know how to compute their values yield cls. sequence # and whatever else my superclass say... | [
0.20839034020900726,
-0.00790395773947239,
0.7462213635444641,
0.17397844791412354,
-0.20737050473690033,
-0.2853386700153351,
0.3312930762767792,
0.39853355288505554,
0.40181076526641846,
-0.5727935433387756,
-0.2111440747976303,
-0.039456866681575775,
0.024758409708738327,
0.990672826766... |
def url ( self ) : return " https : / / archiveofourown. org / users / % s " % self. username | [
0.1366584599018097,
-0.16650839149951935,
0.24326825141906738,
0.43231001496315,
0.37171486020088196,
0.24895554780960083,
0.49477630853652954,
1.0734649896621704,
-0.1447352021932602,
-0.9239351749420166,
-0.24013447761535645,
0.788723349571228,
-0.27222105860710144,
-0.36326801776885986,... |
def boolean _ intersection _ mesh _ mesh ( a, b ) : raise notimplementederror | [
0.8146862983703613,
0.2883450388908386,
0.6009622812271118,
1.623533844947815,
-0.11783554404973984,
1.2821569442749023,
0.046144064515829086,
0.4353959560394287,
-0.7397114038467407,
0.974757969379425,
-0.0006019913707859814,
0.3509634733200073,
-0.553409993648529,
-0.11560538411140442,
... |
def format _ datetime ( time ) : # see if a user _ time _ zone is specified timezone = getattr ( settings,'user _ time _ zone ', none ) if timezone : db _ tz = pytz. timezone ( settings. time _ zone ) local _ tz = pytz. timezone ( settings. user _ time _ zone ) time = time. replace ( tzinfo = db _ tz ). astimezone ( lo... | [
0.042089879512786865,
-0.36181584000587463,
0.42869070172309875,
0.8327470421791077,
-0.44321128726005554,
0.6256223320960999,
0.06134980544447899,
-0.1247909739613533,
0.7593241333961487,
1.2684210538864136,
0.29409071803092957,
0.017869899049401283,
-0.3393561542034149,
0.700536072254180... |
def get _ player _ num _ right _ of _ dealer ( self ) : player _ num = self. dealer _ num - 1 player _ num % = len ( self. players ) return player _ num | [
-0.9670397043228149,
-0.6239056587219238,
0.7718666791915894,
0.7538086175918579,
0.41926026344299316,
-0.5400345921516418,
0.7450517416000366,
0.4459831416606903,
-0.22187961637973785,
-0.21172718703746796,
0.0650419071316719,
0.1654718667268753,
-0.7781860828399658,
0.8101429343223572,
... |
def period _ neighborhood _ probability ( self, radius, smoothing, threshold, stride, x, y, dx ) : neighbor _ x = x [ : : stride, : : stride ] neighbor _ y = y [ : : stride, : : stride ] neighbor _ kd _ tree = ckdtree ( np. vstack ( ( neighbor _ x. ravel ( ), neighbor _ y. ravel ( ) ) ). t ) neighbor _ prob = np. zeros... | [
0.6977595090866089,
0.25124049186706543,
0.8421234488487244,
0.43271303176879883,
-1.1919533014297485,
0.4024222493171692,
-0.06437315791845322,
-0.48766323924064636,
-0.30467653274536133,
0.7401098608970642,
0.7807835936546326,
1.1822655200958252,
-0.2817783057689667,
-0.7714252471923828,... |
def path _ cassette _ dirname ( vcr _ path, cassettes _ dirname = " vcr _ cassettes " ) : paths = vcr _ path. split ( " / " ) filename = paths. pop ( ) vcr _ path = " / ". join ( paths + [ cassettes _ dirname ] + [ filename ] ) return vcr _ path | [
-0.1596573144197464,
-0.7606722116470337,
0.5685821771621704,
0.4256618022918701,
-0.23583479225635529,
-0.03957032784819603,
0.9191651344299316,
0.49542292952537537,
0.020482134073972702,
0.306682825088501,
0.24013400077819824,
-0.04409743845462799,
-0.20336146652698517,
-0.82201802730560... |
def test _ bootstrap _ composability ( self ) : m1 = evo _ app. model ( " f81 " ) m2 = evo _ app. model ( " hky85 " ) hyp = evo _ app. hypothesis ( m1, m2 ) with temporarydirectory ( dir = ". " ) as dirname : dirname = pathlib. path ( dirname ) out _ dstore = open _ data _ store ( dirname / " delme. sqlitedb ", mode = ... | [
-0.3197748064994812,
0.5575060248374939,
0.6693320870399475,
0.6939474940299988,
1.224037528038025,
0.35400718450546265,
0.7280614376068115,
0.7282319068908691,
-0.1783626675605774,
0.05903780087828636,
-0.07294017821550369,
-0.5465116500854492,
0.061529338359832764,
0.028696371242403984,
... |
def _ process _ input _ contexts ( input _ contexts : list [ dict [ str, any ] ] ) - > dict [ str, dict [ str, any ] ] : contexts = { } for context in input _ contexts : name = context. get ('name ','' ). rsplit ('/ ', 1 ). pop ( ) contexts [ name ] = context return contexts | [
-0.7105249166488647,
-0.36930590867996216,
0.5725585222244263,
-0.43734750151634216,
-0.8719127774238586,
-0.4539014399051666,
0.5698292851448059,
-0.6274093389511108,
0.22389082610607147,
0.9179196953773499,
-0.4983176290988922,
-1.170109748840332,
-0.31102651357650757,
0.0358468517661094... |
def new _ element ( self, obj, params = none, element _ id = none, root _ id = none, parent _ id = none, new _ root = false ) : method ='put'if element _ id else'post'endpoint ='/ elements / { } '. format ( element _ id ) if element _ id else'/ elements'return self. _ request ( method, endpoint, body = {'obj': obj,'par... | [
-0.47192496061325073,
0.04047274962067604,
0.8479300141334534,
1.0208046436309814,
0.11544449627399445,
0.3741935193538666,
-0.28765738010406494,
-0.3928263187408447,
0.5982062816619873,
0.4188443422317505,
-0.5017665028572083,
1.3145586252212524,
-0.7944585084915161,
0.8270441293716431,
... |
def read _ centroid _ list ( filename ) : try : centroid _ file = open ( filename,'r') centroid _ list = [ ] for line in centroid _ file : try : row, column = line. split ( ", " ) centroid _ list. append ( [ float ( row ), float ( column ) ] ) except : # ignore other lines in the file pass # print centroid _ list excep... | [
0.45522570610046387,
-1.4173465967178345,
0.2517950236797333,
0.37324050068855286,
-0.07434304058551788,
0.7856205701828003,
-0.24227173626422882,
1.2422486543655396,
0.12102308869361877,
0.834256112575531,
0.04139280319213867,
-0.2553175091743469,
-0.47047099471092224,
0.31138184666633606... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.