text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def update _ data ( what, data, new ) : conn = sqlite3. connect ('bsp. db') cursor = conn. cursor ( ) sql = " update daten set % s =? where % s =? " % ( what, what ) cursor. execute ( sql, ( new, data ) ) conn. commit ( ) cursor. close ( ) conn. close ( ) | [
-0.861487090587616,
-0.5257334113121033,
0.556682288646698,
-0.03984445333480835,
-0.4697752296924591,
0.6627070903778076,
-1.5281816720962524,
-0.2228795886039734,
-0.9537460207939148,
0.3853413164615631,
-0.45564746856689453,
0.3020547330379486,
-0.37276411056518555,
-0.7620856165885925,... |
def build _ stopping _ hooks ( max _ steps, max _ epochs, patience ) : hook _ objects = [ ] if patience : hook _ objects. append ( get _ early _ stopping _ hook ( ) ) if max _ epochs is not none : hook _ objects. append ( ( maxepochhook ( max _ epochs ) ) ) if max _ steps is not none : hook _ objects. append ( maxsteph... | [
-1.2454253435134888,
-0.11431356519460678,
0.37511327862739563,
1.2493388652801514,
0.866016685962677,
0.7264420390129089,
-0.6482816934585571,
0.5855681896209717,
-0.9489167332649231,
0.41183170676231384,
-0.06372712552547455,
-0.08789025247097015,
0.31476351618766785,
-0.1905164867639541... |
def test _ get _ ratings _ anonymous ( self ) : data _ string, status _ code = self. get _ ratings ( ) self. assertin ('ratings ', data _ string ) self. assertequal ( 200, status _ code ) | [
-0.36614224314689636,
1.025028109550476,
0.32104015350341797,
0.3773040175437927,
0.6151964664459229,
0.9991157054901123,
-1.1581406593322754,
0.09577934443950653,
-0.4233558773994446,
0.1748853474855423,
-0.2607659101486206,
0.28597861528396606,
-0.3923376500606537,
0.016290508210659027,
... |
def confirm _ sign _ up ( clientid = none, secrethash = none, username = none, confirmationcode = none, forcealiascreation = none ) : pass | [
-0.3045590817928314,
0.077911376953125,
0.44012531638145447,
1.0753095149993896,
-0.012543829157948494,
-0.14352861046791077,
0.6280194520950317,
0.7911744117736816,
-0.49690666794776917,
0.3823918402194977,
-0.6890155673027039,
0.7102763056755066,
-0.262327641248703,
0.1691599190235138,
... |
def dump ( self, * args ) : return _ snap. pneanetmp _ dump ( self, * args ) | [
-1.3283569812774658,
0.28960368037223816,
0.3076592683792114,
0.2926170527935028,
0.6258617043495178,
1.500554084777832,
0.5973609685897827,
-0.5664508938789368,
-0.41891685128211975,
-0.21117006242275238,
-0.7097612023353577,
-1.4085419178009033,
-0.9920399188995361,
1.5862542390823364,
... |
def floatx ( ) : return _ floatx | [
0.6841757893562317,
0.5617615580558777,
0.3561386168003082,
0.48531484603881836,
-0.17679733037948608,
0.15834634006023407,
0.2674471437931061,
-0.9445034265518188,
-0.5591381192207336,
-1.153801679611206,
-0.6101697087287903,
0.16720497608184814,
-0.25717371702194214,
-0.40899085998535156... |
def flag _ thumbnail ( self, flag = true ) : if self. regenerate _ thumbnail! = flag : self. update ( regenerate _ thumbnail = flag ) | [
-0.5283311009407043,
0.9091503620147705,
0.46022355556488037,
1.3016407489776611,
0.7836828231811523,
1.0600615739822388,
0.3006643056869507,
0.8690336346626282,
-0.22570018470287323,
-0.11271468549966812,
-0.9793936014175415,
0.07233926653862,
-0.3221374452114105,
0.5530755519866943,
-1... |
def test _ vertical _ interpolation _ at _ surface ( vertical _ values ) : u _ target _ depth, v _ target _ depth = vertical _ interpolation ( vertical _ values. u, vertical _ values. v, vertical _ values. s _ rho, vertical _ values. mask _ rho, vertical _ values. mask _ u, vertical _ values. mask _ v, vertical _ value... | [
-0.3535047471523285,
0.01590336486697197,
0.7200071811676025,
0.8910558223724365,
1.6695773601531982,
0.9165297746658325,
0.8657131791114807,
-0.2439761757850647,
-0.27141183614730835,
-0.3511340022087097,
-0.2800912857055664,
0.8264888525009155,
-0.29655352234840393,
0.3781161308288574,
... |
def add ( self, args ) : params = locations ( * * args ) session = db. session ( ) session. add ( params ) try : session. commit ( ) return ok _ message except exception as e : trace = traceexception ( " locationcontroller : ", " insert db fail ", e. _ _ str _ _ ( ) ) raise customcontrollerexception ( trace. get _ mess... | [
-0.8965999484062195,
0.49560412764549255,
0.6561903357505798,
0.09978515654802322,
0.95505291223526,
1.1720353364944458,
0.9549069404602051,
0.45062756538391113,
-0.10608310252428055,
0.16180318593978882,
0.4228116571903229,
-0.7771701812744141,
-1.3745094537734985,
0.44617438316345215,
... |
def format ( self ) : # produce error message name = utils. get _ message ('attribute _ name ', self. attribute. key ( ). name ( ),'en') error _ msg = errors _ by _ type [ self. attribute. type ] % \ {'attribute': name } # if the attribute does not have specific values the user may # choose from, return the error as is... | [
-0.5802710056304932,
-0.3219257593154907,
0.5375000834465027,
-0.8613030910491943,
-0.4880700409412384,
-0.06398909538984299,
-0.08797872811555862,
-0.6433528661727905,
0.07254745811223984,
0.6051696538925171,
1.1804546117782593,
0.9900705218315125,
0.9896470308303833,
0.4391283690929413,
... |
def test _ header _ teaser ( ) : site = _ load _ site ( ) for entry in site : content _ type = site [ entry ] ['content _ type'] if entry not in ignored _ files and content _ type! ='posts': if header _ teaser _ not _ set = = site [ entry ] ['header _ teaser'] : assert header _ teaser _ not _ set = = entry | [
0.16760936379432678,
-0.17587843537330627,
0.32051289081573486,
0.3166336119174957,
0.055958330631256104,
1.1540108919143677,
0.4098844528198242,
-0.6740202903747559,
-0.3443848192691803,
-0.13049735128879547,
-0.6264426708221436,
-0.33696675300598145,
-0.6483751535415649,
0.79778647422790... |
def ex _ img ( ) : global ex _ file ex _ win = toplevel ( root, bg ='# edaa82') ex _ win. title ('image steno - extract') ex _ win. geometry ('515x310') ex _ win. wm _ iconbitmap ('images / l2. ico') ex _ lb = label ( ex _ win, text ='image - stenography [ extract ] ', bg ='# edaa82 ', fg ='# fa05bd ', font = cas _ big... | [
0.8776631951332092,
-0.10724002867937088,
1.1843228340148926,
0.11041256040334702,
-0.07448135316371918,
0.27159687876701355,
1.0538980960845947,
0.04618195444345474,
-0.07158765941858292,
0.021061504259705544,
-0.40870505571365356,
0.5495796799659729,
0.5424017310142517,
0.772282838821411... |
def check ( self, guess ) : if len ( guess )! = self. length : return false, [ " wrong length " ] if guess = = self. password : return true, [ " access granted! " ] else : matching = 0 for num in guess : for pw _ num in self. password : if num = = pw _ num : matching + = 1 self. attempts = self. attempts - 1 return fal... | [
-1.0692968368530273,
0.027352353557944298,
0.8104194402694702,
0.20700082182884216,
0.016288604587316513,
0.20045866072177887,
0.880165696144104,
0.44920071959495544,
-0.17367281019687653,
0.14040781557559967,
-0.3793870806694031,
0.01284569688141346,
-1.1780126094818115,
0.859097003936767... |
def terminate _ self ( ) : sys. exit ( - 1 ) | [
-0.42209142446517944,
-0.7601500153541565,
0.4667963683605194,
1.028099775314331,
1.083013892173767,
0.20895351469516754,
0.4011602997779846,
-0.37497177720069885,
-0.5880102515220642,
-0.5951865911483765,
-0.5820308923721313,
-0.040679916739463806,
-0.00807748269289732,
0.7560948729515076... |
def geturl ( self ) : return self. _ url | [
-0.17288219928741455,
-0.2293490618467331,
0.08927021920681,
0.4068462550640106,
0.4217739701271057,
1.1753594875335693,
0.5778642296791077,
0.3469252586364746,
0.16980335116386414,
-0.9115195274353027,
-0.07147924602031708,
0.6294711232185364,
-0.5192492604255676,
-0.3471441864967346,
-... |
def load ( self, * args ) : return _ snap. ptable _ load ( self, * args ) | [
-1.0231411457061768,
0.8763903975486755,
0.6663403511047363,
0.5750216841697693,
-0.027102604508399963,
0.800567090511322,
0.9035247564315796,
-0.5163975358009338,
-1.1553229093551636,
0.27531352639198303,
-0.22456961870193481,
-1.495729684829712,
-0.8826757669448853,
-0.3580883741378784,
... |
def count ( self, * args ) : return _ snap. tstrintprv _ count ( self, * args ) | [
-0.314166396856308,
-0.34046295285224915,
0.4358472228050232,
-1.6611827611923218,
0.36569640040397644,
0.4834170341491699,
0.10961446911096573,
0.4677770435810089,
-1.7254246473312378,
0.347188800573349,
-0.15909695625305176,
-0.5157313942909241,
-0.4696314036846161,
-0.08118174970149994,... |
def test _ getextensionsextensionslocalisoptional ( self ) : self. writeemptysetup ( " twisted. necromancy ", " topfiles " ) self. assertextensions ( [ ] ) | [
0.04907810315489769,
-0.041814081370830536,
0.24367229640483856,
0.9754869937896729,
1.2080755233764648,
-0.5961876511573792,
-0.08951879292726517,
0.3649546504020691,
1.3730189800262451,
0.38901984691619873,
-0.48037904500961304,
-0.4989274740219116,
0.13131283223628998,
-0.51472473144531... |
def calculate _ l0 ( possible _ signals _ array, distances, choice _ alphas, minimize _ distance = false ) : # find for each ( possible _ signal, state ) the expected distance # between the guess based on the signal and the state. # this is identical for all participants because it only depends on # the literal listene... | [
0.5844020247459412,
-0.8530962467193604,
0.6304270625114441,
-1.0173746347427368,
-0.48615503311157227,
0.38105422258377075,
0.1657717525959015,
1.129022240638733,
0.45943716168403625,
0.8750158548355103,
-0.23452557623386383,
-0.2439284771680832,
-0.4278271794319153,
0.5540463924407959,
... |
def percentmxscc _ pneanet ( * args ) : return _ snap. percentmxscc _ pneanet ( * args ) | [
-0.4905456006526947,
0.3870542049407959,
0.3470792770385742,
0.37713804841041565,
-0.2440522015094757,
0.4992403984069824,
-1.1677000522613525,
-1.2592089176177979,
-0.8451228737831116,
-0.8803238272666931,
0.20587483048439026,
-0.3971257209777832,
0.2557624578475952,
0.7891532182693481,
... |
def set ( self, name : str, lifespan _ count : optional [ int ] = none, parameters : optional [ dict [ str, any ] ] = none ) - > none : if not isinstance ( name, str ) : raise typeerror ('name argument must be a string') if name not in self. contexts : self. contexts [ name ] = {'name': name } if lifespan _ count is no... | [
-0.4404659867286682,
0.07661706954240799,
0.6996028423309326,
-1.0943316221237183,
-0.3524756133556366,
0.283214807510376,
-0.4593948721885681,
0.04997813329100609,
0.1745181679725647,
0.9182255864143372,
-0.8605568408966064,
0.3762194514274597,
-0.2475639283657074,
0.269541472196579,
-0... |
def load ( input _ path : path ) - > dict : with input _ path. open ( ) as input _ file : return jsonref. replace _ refs ( yaml. yaml ( ). load ( input _ file ), base _ uri = input _ path. resolve ( ). as _ uri ( ), loader = _ yaml _ loader, ) | [
0.17509251832962036,
-0.5633695125579834,
0.501974880695343,
-1.0729323625564575,
-1.1991424560546875,
-1.1102176904678345,
0.1690819412469864,
0.30895206332206726,
-0.5082558393478394,
0.007267063483595848,
-0.6500673890113831,
0.5819054841995239,
0.3896544277667999,
0.07467435300350189,
... |
def get _ pybites _ top _ tags ( n = 10 ) : tag _ list = [ ] final _ list = [ ] lines = content. split ( " < category > " ) for texte in lines : if " < / category > " in texte : tag _ list. append ( texte. split ( " < / category > " ) ) for element in tag _ list : final _ list. append ( element [ 0 ] ) print ( counter ... | [
0.12685728073120117,
0.5882336497306824,
0.5508744120597839,
0.2541300058364868,
1.0658451318740845,
-0.5252079367637634,
-0.27227696776390076,
-0.3866087794303894,
-1.0162231922149658,
0.10614781826734543,
-0.31199368834495544,
-0.6027552485466003,
0.4032727777957916,
1.1029863357543945,
... |
def post ( self, request ) : form = cardamageform ( request. post ) if form. is _ valid ( ) : added _ damage = cardamage. objects. create ( car = form. cleaned _ data [ " car " ], driver = form. cleaned _ data [ " driver " ], date = form. cleaned _ data ['date'], d _ status = form. cleaned _ data ['d _ status'], title ... | [
-0.5019623637199402,
0.14650894701480865,
0.8752806186676025,
-0.244930237531662,
0.3826294541358948,
0.42702800035476685,
-1.3746715784072876,
0.3895837068557739,
-0.26899057626724243,
-0.7147074341773987,
0.3677239716053009,
-0.4603918492794037,
-0.15095429122447968,
0.20157568156719208,... |
def isinbin ( self, * args ) : return _ snap. tintprv _ isinbin ( self, * args ) | [
-1.0910383462905884,
-0.628974974155426,
0.9047536253929138,
0.73210608959198,
0.05427008122205734,
0.43685635924339294,
-0.26374581456184387,
-0.5155733823776245,
-0.5793368220329285,
-0.4726683795452118,
-0.4920291304588318,
0.761183500289917,
-2.2353053092956543,
0.6160455942153931,
0... |
async def install ( self ) - > none : _ logger. info ( " open peer power setup " ) while true : # read openpeerpower tag and install it if not self. sys _ openpeerpower. latest _ version : await self. sys _ updater. reload ( ) if self. sys _ openpeerpower. latest _ version : try : await self. instance. update ( self. s... | [
-0.29374080896377563,
-1.3299641609191895,
0.9566143751144409,
-0.09035076200962067,
-0.011151482351124287,
0.3929639160633087,
0.09518446028232574,
-0.008373127318918705,
0.0038612596690654755,
0.03140450268983841,
0.21359138190746307,
-0.3685019910335541,
-0.3223726749420166,
0.803045809... |
def _ close _ connections ( self, connection = none, timeout = 5 ) : all = [ ] if connection : waiter = connection. event ('connection _ lost'). waiter ( ) if waiter : all. append ( waiter ) connection. close ( ) else : connections = list ( self. _ concurrent _ connections ) self. _ concurrent _ connections = set ( ) f... | [
-0.19089838862419128,
0.08085183054208755,
0.7240566611289978,
-0.13004721701145172,
-0.2584313154220581,
-0.5059296488761902,
-0.04622451961040497,
0.008830491453409195,
-0.14955440163612366,
0.2513447403907776,
0.7498183846473694,
-1.0285611152648926,
-0.5929564237594604,
0.6860386133193... |
def logarithmic ( x, y ) : lnx = np. log ( x ) xmat = linear ( lnx ) return linearregression ( xmat, y ) | [
1.376783847808838,
0.010214991867542267,
0.43561026453971863,
-0.9058999419212341,
-0.5361044406890869,
-0.05638017877936363,
-2.7287063598632812,
-1.075452208518982,
-0.3511030375957489,
-0.12347549945116043,
0.09310474991798401,
0.804694652557373,
0.13986414670944214,
-1.8102713823318481... |
def test _ inheritance ( self ) : self. asserttrue ( issubclass ( omnichoicefield, omnifield ) ) | [
0.4597950875759125,
0.4886302351951599,
0.4274267852306366,
1.3220016956329346,
0.6598002910614014,
1.7460795640945435,
-0.2337406426668167,
0.26212435960769653,
0.9861272573471069,
-0.2553549110889435,
-0.8694031834602356,
0.09297198802232742,
-1.3867813348770142,
-0.3352600634098053,
-... |
def getcomponents ( self ) : return self. components | [
-1.0162532329559326,
-1.1153512001037598,
0.25277990102767944,
-0.7969380617141724,
0.42674511671066284,
0.5476349592208862,
-0.5154141783714294,
-0.6328473687171936,
1.0939191579818726,
-1.1733919382095337,
-0.1726469248533249,
0.046045687049627304,
-0.6623525023460388,
0.0691294223070144... |
def getstrmapbyname ( self, * args ) : return _ snap. ttable _ getstrmapbyname ( self, * args ) | [
-0.7886672616004944,
-0.4000071883201599,
0.2047397494316101,
0.13687460124492645,
0.1670929491519928,
-0.6823788285255432,
0.4611983299255371,
-1.207992672920227,
-0.9731693863868713,
-0.13088925182819366,
-0.747955322265625,
-0.9180439710617065,
-0.8641238808631897,
0.19091442227363586,
... |
def _ _ lt _ _ ( self, * args ) : return _ snap. tuch _ _ _ lt _ _ ( self, * args ) | [
-0.14542555809020996,
-0.31213119626045227,
0.2492808699607849,
-0.7898091673851013,
0.30641382932662964,
-0.10676223784685135,
-0.2236289232969284,
-1.0813676118850708,
-0.9922866821289062,
-0.9187441468238831,
-0.3984898328781128,
-1.5335149765014648,
0.46892866492271423,
0.3147793412208... |
def show _ services ( self, name : str, node _ index : int = 0 ) - > dict [ str, serviceinstance ] : service _ instances _ dict = self. _ runs _ operations. _ operation. get _ run _ service _ instances ( self. _ subscription _ id, self. _ operation _ scope. resource _ group _ name, self. _ workspace _ name, name, node ... | [
-0.5525046586990356,
0.5806229114532471,
0.7061693072319031,
-1.6415538787841797,
-1.1692650318145752,
-0.5735476016998291,
-0.200255885720253,
-1.4743480682373047,
-0.2572270929813385,
0.39417165517807007,
0.42128458619117737,
0.9596248269081116,
-0.44374510645866394,
-0.3463808298110962,... |
def delete ( self, request, pk, * args, * * kwargs ) : try : comment = comment. objects. get ( pk = pk ) except comment. doesnotexist : raise validationerror ( " the comment you are trying to delete does not exist " ) comment. delete ( ) return response ( { " msg " : " you have deleted the comment " } ) | [
0.7147492170333862,
-0.30265772342681885,
0.5701324939727783,
0.2998127043247223,
1.4178537130355835,
0.16441068053245544,
0.5819164514541626,
0.19491058588027954,
0.2788749039173126,
0.21459300816059113,
0.5049910545349121,
-0.8158481121063232,
-0.20171968638896942,
0.34854498505592346,
... |
def freetime ( start, end, intervals ) :... return... | [
0.5062391757965088,
0.1407710462808609,
0.4934349060058594,
0.48271963000297546,
-0.8944666385650635,
0.19255566596984863,
0.2865070402622223,
-1.2702217102050781,
-0.24697314202785492,
0.5822805762290955,
-0.9511462450027466,
0.2559593915939331,
-1.6003159284591675,
-0.393669992685318,
... |
def _ _ init _ _ ( self, * args ) : _ snap. tstrin _ swiginit ( self, _ snap. new _ tstrin ( * args ) ) | [
-0.880031168460846,
-0.10727421939373016,
0.04042163863778114,
-0.6808368563652039,
0.39264118671417236,
-0.09069066494703293,
0.25698569416999817,
0.7158128619194031,
-1.1697293519973755,
0.09394559264183044,
-1.5740636587142944,
-0.349723756313324,
0.32886990904808044,
0.2850655019283294... |
def getdatwithdefault ( self, * args ) : return _ snap. tintflth _ getdatwithdefault ( self, * args ) | [
1.0127559900283813,
0.20174045860767365,
0.4168422520160675,
0.9888718128204346,
1.8110946416854858,
0.1279384195804596,
-0.4464552104473114,
-0.3612997233867645,
-0.5051478147506714,
-1.6191498041152954,
-0.7157784700393677,
-0.2178773432970047,
-0.5618272423744202,
0.46925419569015503,
... |
def treeerror ( new ) : features = new. loc [ :, new. columns! ='emission'] labels = new ['emission'] features = pd. get _ dummies ( features ) labels = pd. get _ dummies ( labels ) features _ train, features _ test, labels _ train, labels _ test = \ train _ test _ split ( features, labels, test _ size = 0. 2, random _... | [
-0.30566802620887756,
0.32288309931755066,
0.47574949264526367,
-0.23703865706920624,
-0.1004241332411766,
-0.2757568955421448,
-0.10819412767887115,
0.7390375733375549,
-0.21640856564044952,
0.22677013278007507,
-0.17042303085327148,
0.6583241820335388,
0.3421061038970947,
0.7732968926429... |
def setup ( self ) : log. init _ log ( ". / log / test " ) self. spider = spider ('conf / spider. conf') | [
1.1702290773391724,
-0.8334478735923767,
0.280307799577713,
0.4574400782585144,
0.8386390209197998,
0.48527535796165466,
0.5685740113258362,
1.2379873991012573,
0.041576649993658066,
-0.11015669256448746,
-0.9588823318481445,
0.7058851718902588,
0.35552558302879333,
0.38943904638290405,
... |
def create ( cls, env : completeenvironmentvars, working _ dir : str, options _ bootstrapper : optionsbootstrapper, options _ initializer : optionsinitializer | none = none, scheduler : graphscheduler | none = none, cancellation _ latch : pysessioncancellationlatch | none = none, ) - > localpantsrunner : global _ boots... | [
-0.19667990505695343,
-0.36738714575767517,
0.6858760714530945,
0.4992738664150238,
0.09918581694364548,
0.034135766327381134,
-0.1213405653834343,
-0.7745746970176697,
-0.30518612265586853,
-0.4342435896396637,
-0.17934437096118927,
0.8026613593101501,
0.41168051958084106,
0.8780559301376... |
def addendpointname ( self, endpoint _ name ) : self. sandbox _ spec. endpoint _ names. append ( endpoint _ name ) | [
0.026786288246512413,
-0.13401569426059723,
0.5805448889732361,
0.8032126426696777,
0.3305801451206207,
0.9094816446304321,
-1.1644953489303589,
0.6215773820877075,
0.8387501835823059,
0.5692679286003113,
-0.19226963818073273,
-0.4962262511253357,
-0.2749907672405243,
0.44418004155158997,
... |
def test _ retrieves _ post _ commentator ( self ) : user = make _ user ( ) headers = make _ authentication _ headers _ for _ user ( user ) post _ creator = make _ user ( ) post = post _ creator. create _ public _ post ( text = make _ fake _ post _ text ( ) ) post _ commentator = make _ user ( ) post _ commentator. com... | [
0.33663350343704224,
-0.4108467102050781,
0.4288579523563385,
-0.17986448109149933,
0.4241638779640198,
-0.10668807476758957,
-0.3983441889286041,
0.2878783643245697,
-0.37615320086479187,
-0.8717116713523865,
-0.7050042748451233,
-0.801665186882019,
-0.6411529779434204,
-0.391547322273254... |
def get _ testers ( test _ id ) : return testerpersisor ( ). get _ testers ( test _ id ) | [
0.08450283110141754,
0.052879542112350464,
0.1293158233165741,
0.746945858001709,
-0.08911041915416718,
-0.9407730102539062,
-0.6306120157241821,
-0.1411236673593521,
0.4569574296474457,
-0.16667968034744263,
-0.22974564135074615,
-0.04866742715239525,
-1.154365062713623,
0.584502279758453... |
def click ( self, f ) : self. add _ handler ( f, type ='click') | [
-0.05122166499495506,
0.44660118222236633,
0.3077196180820465,
0.6723200678825378,
0.26590558886528015,
0.28904518485069275,
0.6809378266334534,
0.4185018539428711,
-0.5834479928016663,
-1.0954464673995972,
-0.2934257984161377,
0.5068838000297546,
0.7384439706802368,
0.457088440656662,
-... |
def ibm _ hmc _ clusters _ delete ( context, hmc _ uuid, host _ name ) : return impl. ibm _ hmc _ clusters _ delete ( context, hmc _ uuid, host _ name ) | [
-0.1027853935956955,
0.07735177874565125,
0.3857085704803467,
0.5227507948875427,
-0.024656422436237335,
-0.1006406843662262,
0.7160951495170593,
0.4564287066459656,
-0.10386688262224197,
0.2855335772037506,
-0.3491911292076111,
1.1945340633392334,
-1.6228419542312622,
-0.597500205039978,
... |
def load _ laboratories ( filename ='laboratories. csv') : return pd. read _ csv ( filename ). set _ index ('lab _ id') | [
-0.4243631958961487,
-0.2030324935913086,
0.12906746566295624,
0.23707987368106842,
0.3305191099643707,
0.8484577536582947,
-0.069821298122406,
-0.06628388166427612,
-0.3413800299167633,
-0.5600044131278992,
0.5159752368927002,
-0.06669442355632782,
-0.7119720578193665,
-1.0089579820632935... |
def get _ core _ constraints ( nvars ) : # create the list of variables that we will optimise for. xs = variable ( nvars ) # start with the constraint that all must add to 1 constraints = [ sum _ entries ( xs ) = = 1 ] return xs, constraints | [
-1.0065916776657104,
0.4780192971229553,
0.3707415759563446,
0.5694185495376587,
0.1886197179555893,
-0.8725102543830872,
0.4621709883213043,
-0.010005309246480465,
0.3102671205997467,
1.187330722808838,
-1.1452275514602661,
-0.17854353785514832,
-1.1488322019577026,
0.48636722564697266,
... |
def test _ can _ edit _ own _ community _ post ( self ) : user = make _ user ( ) headers = make _ authentication _ headers _ for _ user ( user ) community _ creator = make _ user ( ) community = make _ community ( creator = community _ creator ) user. join _ community _ with _ name ( community _ name = community. name ... | [
0.5847263336181641,
-0.20880016684532166,
0.524715006351471,
0.35270416736602783,
-0.11344712227582932,
0.3580189645290375,
0.5625190734863281,
0.2197025716304779,
-0.22899164259433746,
-0.2871477007865906,
-0.6403265595436096,
-0.34546881914138794,
-0.6594029068946838,
-0.4531030058860779... |
def frame _ dapi _ raw _ change ( self ) : try : self. frame _ dapi _ 2d. setcurrentindex ( self. frame _ dapi _ raw. currentindex ) except attributeerror : pass try : self. frame _ dapi _ 2d _ sgm. setcurrentindex ( self. frame _ dapi _ raw. currentindex ) except attributeerror : pass try : self. frame _ dapi _ 3d. se... | [
-1.686551570892334,
-0.2309582680463791,
0.5638360977172852,
-0.16079045832157135,
-0.33799272775650024,
0.10157496482133865,
0.8508053421974182,
0.09464732557535172,
0.2641855478286743,
0.043295178562402725,
-0.16715694963932037,
0.7654237151145935,
0.547658383846283,
0.34042394161224365,... |
def _ _ init _ _ ( self ) : self. swagger _ types = {'realtime _ cic':'bool ','purecloud':'bool ','hipaa':'bool ','uc _ enabled':'bool ','pci':'bool ','purecloud _ voice':'bool ','xmpp _ federation':'bool ','chat':'bool ','informal _ photos':'bool ','directory':'bool ','contact _ center':'bool ','unified _ communicatio... | [
-0.09065967053174973,
-0.7168320417404175,
0.5746948719024658,
-0.4360802173614502,
0.31086766719818115,
-0.19846555590629578,
-0.05984770134091377,
0.32504725456237793,
0.25464650988578796,
-0.18030481040477753,
-0.5972006916999817,
0.13630753755569458,
-0.19287870824337006,
0.52667707204... |
def index ( request ) : return render ( request,'pizzas / index. html') | [
0.07830563187599182,
0.3287116587162018,
0.08174078166484833,
0.6400531530380249,
-0.5697125792503357,
0.3101261854171753,
0.9739343523979187,
1.48098886013031,
-0.03440370410680771,
-0.109156034886837,
-0.040433574467897415,
-0.40250730514526367,
-0.1393413245677948,
0.046669263392686844,... |
def test _ cant _ retrieve _ blocked _ user _ post ( self ) : user = make _ user ( ) user _ to _ block = make _ user ( ) headers = make _ authentication _ headers _ for _ user ( user ) post = user _ to _ block. create _ public _ post ( text = make _ fake _ post _ text ( ) ) user. block _ user _ with _ id ( user _ id = ... | [
0.43615788221359253,
1.0747421979904175,
0.6017014980316162,
1.5058860778808594,
0.2809416651725769,
0.9365142583847046,
-0.3773628771305084,
-1.1154065132141113,
-0.5494685769081116,
-0.9411699771881104,
-0.6669458150863647,
0.4130406081676483,
-0.2755729854106903,
-0.43809691071510315,
... |
def _ _ init _ _ ( self, filename, pztexdescriptoroffs ) : super ( ztexihxfile1, self ). _ _ init _ _ ( filename ) self. ztexdescriptoroffs = pztexdescriptoroffs if ihxdata [ self. ztexdescriptoroffs ]! = 40 or ihxdata [ self. ztexdescriptoroffs + 1 ]! = 1 or ihxdata [ self. ztexdescriptoroffs + 2 ]! ='z'or ihxdata [ s... | [
-0.1438237726688385,
-0.38339540362358093,
0.6255253553390503,
-0.2891918122768402,
-0.6607118844985962,
0.6723412275314331,
0.0764990895986557,
-0.028466124087572098,
-0.45190009474754333,
-0.1486491560935974,
-0.6472199559211731,
0.2102818489074707,
-0.11453644931316376,
0.03163681924343... |
def print _ table ( column _ names ) : if not column _ names : return # find the column indices for the requested columns indices = [ ] for header in column _ names : indices. append ( headers. index ( header ) ) # print the headers output = [ headers [ i ] for i in indices ] print ('\ t '. join ( output ) ) # print da... | [
0.07702446728944778,
-0.3124959170818329,
0.4811883270740509,
0.1417718380689621,
0.13610516488552094,
-0.19264572858810425,
-0.6525523662567139,
-0.14452241361141205,
-1.3987421989440918,
0.19118864834308624,
0.06651952862739563,
0.2803384065628052,
-0.24033240973949432,
-0.49331599473953... |
def test _ example _ input _ two _ edit _ uneditable _ field _ name ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper, add _ input _ two ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) input _ page. table. edit _ row ( " dummy _ input _ two " ) input ... | [
-0.2587399482727051,
0.34219181537628174,
0.5788214206695557,
0.19340190291404724,
0.20689676702022552,
0.8282637000083923,
0.31974858045578003,
-0.41749823093414307,
-0.3207928240299225,
0.3501071333885193,
-0.5792141556739807,
-0.21482416987419128,
0.2435585856437683,
-0.2129103690385818... |
def getfltnodepropertytable ( * args ) : return _ snap. ttable _ getfltnodepropertytable ( * args ) | [
-0.1702149361371994,
0.12654812633991241,
0.4852580428123474,
-0.04463735222816467,
0.6846553683280945,
-0.6155993342399597,
0.06347604840993881,
-0.4254927933216095,
-1.7492992877960205,
-0.4600771367549896,
0.18239183723926544,
0.2598584294319153,
-0.04945827275514603,
0.1941025704145431... |
def deledge ( self, * args ) : return _ snap. tngraphmp _ deledge ( self, * args ) | [
-0.10927720367908478,
0.6616783738136292,
0.3172221779823303,
0.24999164044857025,
1.0832159519195557,
0.3475051522254944,
0.42975369095802307,
0.47043249011039734,
-0.8851208686828613,
-0.580010712146759,
0.3010860085487366,
-0.9863677620887756,
-1.9281976222991943,
0.20982657372951508,
... |
def write _ subset _ of _ seqs _ to _ disk _ immune ( self, seq _ indices, output _ filepath ) : fileout = open ( output _ filepath,'w') for i in seq _ indices : self. write _ one _ seq _ entry _ to _ disk _ immune ( self, self. data [ i ], fileout ) fileout. close ( ) return | [
-0.4088079631328583,
-1.1206753253936768,
0.34559574723243713,
0.07403364032506943,
0.794516921043396,
0.24458803236484528,
0.882257878780365,
-0.18331028521060944,
0.36840197443962097,
1.2304569482803345,
-0.29361721873283386,
0.015666522085666656,
-0.5402219891548157,
-0.8362276554107666... |
def load _ policy ( self, model ) : if self. line = = " " : raise runtimeerror ( " invalid line, line cannot be empty " ) strs = self. line. split ( " \ n " ) for s in strs : if s = = " " : continue load _ policy _ line ( s, model ) | [
0.6620751619338989,
0.40152186155319214,
0.49872422218322754,
0.3206828534603119,
-0.11987896263599396,
0.3592466413974762,
-0.8038471341133118,
0.056584082543849945,
-0.027013203129172325,
-0.023808691650629044,
-0.31122180819511414,
0.04127002879977226,
-1.1323810815811157,
0.72411131858... |
def predict ( self, x _ test ) : predictions = [ ] distance, indices = self. kneighbors ( x _ test ) labels = [ ] # for row in indices list for row in indices : temp = [ ] for i in row : val = self. y _ train [ i ] temp. append ( val ) labels. append ( temp ) # for each row in labels for row in labels : predictions. ap... | [
-0.9073314070701599,
-0.19932174682617188,
0.5415701866149902,
0.46077486872673035,
-0.32033035159111023,
-0.37143751978874207,
-0.858343780040741,
0.04490075632929802,
-0.14782759547233582,
0.7814770340919495,
0.012507610023021698,
-0.5512029528617859,
0.13988135755062103,
-0.065860331058... |
def _ _ enter _ _ ( self ) - > handshakebrowser : self. _ browser. get ( self. _ login _ url ) if self. _ school _ is _ invalid ( ) : raise invalidurlerror ('invalid school in login url') # try to log in via the new style of login page if the old one fails login _ page = loginpage ( self. _ login _ url, self. _ browser... | [
-1.143054485321045,
-0.3851073980331421,
0.38105666637420654,
0.9183070063591003,
0.18299096822738647,
-0.2587999999523163,
0.11729104071855545,
0.1573389321565628,
0.7930086255073547,
-0.3418639004230499,
0.414857417345047,
0.23861531913280487,
-0.809903085231781,
-0.15985654294490814,
... |
def tile _ limits ( x _ min, x _ max, y _ min, y _ max, x _ tile, y _ tile ) : # modify the bounding box to be a multiple of the tile dimension x _ pad = ( x _ max - x _ min ) % x _ tile x _ min + = math. ceil ( x _ pad / 2 ) x _ max + = math. floor ( x _ pad / 2 ) x _ num _ tiles = int ( ( x _ max - x _ min ) / / x _ ... | [
-0.07722877711057663,
0.47949644923210144,
1.016331434249878,
-0.5112751126289368,
-0.411408007144928,
-0.38089221715927124,
-0.6033456921577454,
-0.03259178251028061,
-0.18190109729766846,
0.42413145303726196,
-1.019673228263855,
0.05079355835914612,
0.5199914574623108,
-0.221312090754508... |
def show _ students ( self ) : return self. request. user. semesters. exists ( ) | [
-0.17116011679172516,
-0.21017251908779144,
0.4465968608856201,
-0.008375789038836956,
-0.49650147557258606,
0.8236162066459656,
-0.7079229950904846,
0.1907425820827484,
0.5560455322265625,
0.04515264183282852,
-0.17514456808567047,
0.14782944321632385,
0.4545643627643585,
0.31409621238708... |
def getrndnid ( self, * args ) : return _ snap. pngraphmp _ getrndnid ( self, * args ) | [
0.5680992603302002,
0.36015045642852783,
0.5401068329811096,
-0.15948493778705597,
0.5221875905990601,
0.5296298861503601,
-0.03821742162108421,
-1.1666464805603027,
-0.8212524652481079,
-0.891785204410553,
-0.6665900349617004,
0.13213422894477844,
-1.2141590118408203,
0.7429497838020325,
... |
def drawzone ( thiszone ) : background = ( 240, 240, 240 ) zoneimage = image. new ('rgb ', canvas, background ) d = imagedraw. draw ( zoneimage ) capx, capy = thiszone. capital. coordinates # draw the close links for w in thiszone. veryclose + thiszone. close : d. line ( ( thiszone. capital. coordinates, w. coordinates... | [
-1.0796914100646973,
-0.06957053393125534,
0.8401932120323181,
-0.3343640863895416,
0.05314524099230766,
0.5968382954597473,
1.1482791900634766,
-0.4791181981563568,
0.6071396470069885,
-0.08841930329799652,
-0.7906627655029297,
0.37131357192993164,
-0.07728807628154755,
0.3303245604038238... |
def node _ distributed _ labeled _ abp ( node _ id, n, d, port, cores, m _ out, l _ out, m _ in, l _ in, alpha, k ) : # slsh parameters. h _ out = l1lsh ( [ ( 40, 120 ) ] * d ) h _ in = coslsh ( d ) # execute algorithm. table _ log, queries = execute _ node ( cores, k, m _ out, l _ out, m _ in, l _ in, h _ out, h _ in,... | [
0.19550709426403046,
-0.4135967195034027,
0.7483487725257874,
-1.067181944847107,
0.0472886860370636,
0.9390458464622498,
-0.43505972623825073,
0.19229388236999512,
0.01987847313284874,
0.7643280625343323,
0.7908467650413513,
1.1319682598114014,
0.6316253542900085,
0.19939187169075012,
0... |
def ai _ targeting _ update ( target, p _ row _ max, p _ col _ max, targeted _ list ) : target _ queue = [ ] # check above and below target if target [ 0 ] + 1 < p _ row _ max and ( target [ 0 ] + 1, target [ 1 ] ) not in targeted _ list : target _ queue. append ( ( target [ 0 ] + 1, target [ 1 ] ) ) if target [ 0 ] - ... | [
-1.6565604209899902,
-0.5828140377998352,
0.7955865859985352,
0.16777166724205017,
0.03477943316102028,
-0.06388779729604721,
-0.43097612261772156,
-0.3406495153903961,
0.06850679963827133,
1.272027850151062,
0.27063310146331787,
0.725372850894928,
0.44183945655822754,
-0.23638755083084106... |
def _ _ init _ _ ( self, suits ) : self. _ deck = [ ] self. undo = [ ] self. suits = suits self. init _ deck ( ) self. piles = [ ] self. board = [ [ ] for i in xrange ( 10 ) ] self. reset ( ) self. moves = 0 self. complete _ suits = 0 | [
0.2392844706773758,
0.6692289710044861,
0.58141028881073,
0.38393551111221313,
0.6327874064445496,
-0.44174444675445557,
0.65086430311203,
0.33784258365631104,
0.28756698966026306,
0.12190981954336166,
-0.8728763461112976,
-0.0057190218940377235,
0.3153522312641144,
0.6997897028923035,
0... |
def restore _ records ( self ) : assert isinstance ( self. _ _ stored _ records, records ) self. _ _ records = copy. deepcopy ( self. _ _ stored _ records ) del self. _ _ stored _ records self. _ _ stored _ records = none | [
0.8156625032424927,
-0.25499454140663147,
0.4211691617965698,
-0.7046263217926025,
0.4664772152900696,
-0.03576477989554405,
0.2802789509296417,
0.14507323503494263,
0.7298240065574646,
-0.3166181743144989,
-0.5519700646400452,
0.7802083492279053,
-1.2759318351745605,
-0.9244441986083984,
... |
def _ _ init _ _ ( self, * args ) : _ snap. tstrhi _ swiginit ( self, _ snap. new _ tstrhi ( * args ) ) | [
0.4627740681171417,
0.5836454629898071,
0.06593650579452515,
-0.20835404098033905,
0.5695825815200806,
-0.04042166844010353,
0.678871214389801,
0.6327803134918213,
-1.6370798349380493,
-0.1908138394355774,
-1.0758641958236694,
-0.8450039029121399,
0.032102808356285095,
0.32597583532333374,... |
def set _ mrr ( self, mrr _ in _ khz, pw _ in _ fs, rrdivisor = 1, pulsespermburst = 1 ) : self. _ write _ ( f'set = { mrr _ in _ khz }, { pw _ in _ fs }, { rrdivisor }, { pulsespermburst }') # declare initial parameters ( p6 - 14 ) | [
0.017613671720027924,
-0.07506715506315231,
0.4937122166156769,
-0.13611215353012085,
0.18516814708709717,
0.3236446678638458,
0.01600429229438305,
0.18316999077796936,
-0.2060714215040207,
-0.42151835560798645,
-0.42020055651664734,
0.10411228984594345,
-1.4334113597869873,
0.733173549175... |
def update _ input ( self ) : operation _ to _ string = { operation. multiply : " × ", operation. add : " + ", operation. subtract : " - ", operation. divide : " ÷ " } if self. current _ input = = " " : self. ui. lbl _ main _ input. settext ( " 0 " ) else : self. ui. lbl _ main _ input. settext ( self. current _ input ... | [
-0.6899946928024292,
-0.17057715356349945,
0.8174120783805847,
-0.20893053710460663,
-0.7435030937194824,
1.2139545679092407,
1.0967644453048706,
-0.3238680362701416,
0.6398873925209045,
0.12383474409580231,
0.836457371711731,
-0.30402204394340515,
-0.3720189332962036,
-0.02081822790205478... |
def test _ return _ error _ when _ text _ length _ exceeds _ max _ setting ( self ) : user = make _ user ( ) language = get _ language _ model ( ) user. translation _ language = language. objects. get ( code ='ar') user. save ( ) headers = make _ authentication _ headers _ for _ user ( user ) post = user. create _ publ... | [
-0.01859346218407154,
1.6633586883544922,
0.33357203006744385,
-0.006206799298524857,
-0.6094542145729065,
0.5850368142127991,
-1.1808505058288574,
-0.32965320348739624,
-0.6222279071807861,
0.43714094161987305,
-1.2608028650283813,
-0.3305729031562805,
-0.1886403113603592,
0.3111455738544... |
def custom _ domain ( self ) : return self. _ custom _ domain | [
0.3845430314540863,
-0.11152287572622299,
0.017029380425810814,
-0.18213774263858795,
-0.24881385266780853,
0.3019765615463257,
0.824187695980072,
-0.05670632794499397,
0.6165593266487122,
-1.4148286581039429,
-0.273725301027298,
2.4023590087890625,
0.14898140728473663,
-0.629891574382782,... |
def getadddat ( self, * args ) : return _ snap. tintfltkdv _ getadddat ( self, * args ) | [
0.36888885498046875,
0.2504613995552063,
0.4132118225097656,
-0.1455916315317154,
0.22323116660118103,
0.4685188829898834,
-0.18488097190856934,
-0.9603862166404724,
-0.4150957465171814,
-1.7018039226531982,
0.46460744738578796,
0.02391158789396286,
-0.39818230271339417,
1.4402679204940796... |
def get _ link _ geometric _ jacobian ( self, link : str, q : arraytype, base _ link : str ) - > casadiarraytype : j = self. get _ global _ link _ geometric _ jacobian ( link, q ) # transform jacobian to given base link r = self. get _ global _ link _ rotation ( base _ link, q ). t o = cs. dm. zeros ( 3, 3 ) k = cs. ve... | [
0.20684181153774261,
-0.20195940136909485,
0.2701858580112457,
0.32230740785598755,
0.1628921627998352,
0.23060493171215057,
0.017931535840034485,
-0.4894491136074066,
-0.27056464552879333,
-0.5247376561164856,
0.09914881736040115,
1.341079592704773,
-0.03240440785884857,
0.010431325994431... |
def setup ( self ) : self. receiverobj = receiver ( receiver _ config, rx _ data, bypass ) self. receiver _ config = self. receiverobj. receiver _ config self. rx _ data _ in = self. receiverobj. rx _ data _ in self. bypass = self. receiverobj. bypass pass | [
0.020226016640663147,
-1.0483930110931396,
0.42969846725463867,
-1.1522566080093384,
0.6661271452903748,
0.02297389879822731,
0.3041313588619232,
0.2793138921260834,
0.7345162034034729,
-0.45003408193588257,
-0.3766058087348938,
-0.09119066596031189,
-0.38204270601272583,
0.252173781394958... |
def solve ( self, sigma = 1j, n _ eigs = 50 ) : # define the linear operator to perform matrix - vector products of the # shifted generalised eigenvalue problem op = eig _ operator. generalisedeigenvalueproblemoperator ( self. a, - self. b, sigma ) # call arnoldi methods from scipy evals, evecs = eigs ( a = op, k = n _... | [
-0.18729138374328613,
0.05394049361348152,
0.8014687895774841,
0.4617769420146942,
0.45272088050842285,
0.08720620721578598,
0.3124455213546753,
-0.2819972336292267,
0.12824204564094543,
0.5567042827606201,
0.006653956137597561,
-0.4385455548763275,
-0.6248098015785217,
1.0811679363250732,... |
def create _ posts ( max _ posts : int, min _ posts : int ) : if isinstance ( max _ posts, str ) and max _ posts. isnumeric ( ) : max _ posts = int ( max _ posts ) if isinstance ( min _ posts, str ) and min _ posts. isnumeric ( ) : min _ posts = int ( min _ posts ) if not isinstance ( max _ posts, int ) : print ('max _... | [
-0.4798358976840973,
0.04315689578652382,
0.5446322560310364,
0.8627890348434448,
0.6013326048851013,
1.0567997694015503,
-0.6564949154853821,
0.20220422744750977,
0.014016153290867805,
0.37105774879455566,
-0.5265520215034485,
-0.534945547580719,
-0.5353001356124878,
0.22022458910942078,
... |
def unique _ multivariates _ and _ frequencies ( self, result _ dictionary ) : keys, frequencies = zip ( * result _ dictionary. items ( ) ) multivariate _ keys = np. vstack ( [ np. array ( [ int ( x ) for x in bin _ string ] ) for bin _ string in keys ] ) return multivariate _ keys, frequencies | [
-0.7185510396957397,
-0.2980716824531555,
0.25091463327407837,
-0.47358638048171997,
0.3594503402709961,
-0.35347527265548706,
0.12042369693517685,
-0.11449477821588516,
-0.15194693207740784,
0.5901458859443665,
-0.18455509841442108,
0.5409307479858398,
-0.391160249710083,
0.09151382744312... |
def new ( * args ) : return _ snap. tgstatvec _ new ( * args ) | [
-0.7803052067756653,
-0.5428146719932556,
0.327077716588974,
-0.011620434932410717,
-0.09993971139192581,
0.5541943907737732,
1.409483551979065,
-0.8550488948822021,
-1.8132944107055664,
-0.45589032769203186,
0.08812051266431808,
0.16866953670978546,
1.5496693849563599,
0.6849379539489746,... |
def test _ 05 ( self ) : set _ suppress _ error _ msg ( true ) self. assertfalse ( self. contract. push _ action ( " hi ",'{ " user " : " carol " } ', sess. alice ), " push _ action hi " ) set _ suppress _ error _ msg ( false ) | [
0.2900663912296295,
0.7801360487937927,
0.37822961807250977,
0.8345219492912292,
0.3107474446296692,
0.9329225420951843,
0.27033987641334534,
-0.5606516003608704,
0.1328170895576477,
0.7464284896850586,
-0.573115885257721,
0.275852233171463,
-0.4448290765285492,
-0.05552003160119057,
1.0... |
def get _ rsa _ key ( self, client _ key, request ) : raise notimplementederror ( " subclasses must implement this function. " ) | [
-0.5747443437576294,
-0.4249521791934967,
0.5230340957641602,
0.6511410474777222,
0.3856261372566223,
-0.40575021505355835,
0.47756147384643555,
-0.6065690517425537,
-0.1574629694223404,
0.4416559040546417,
0.24787002801895142,
0.7426853179931641,
-0.12404792010784149,
0.8195402026176453,
... |
async def process _ callback _ btn _ delete ( callback _ query : types. callbackquery ) : await handler _ delete _ reminder ( callback _ query = callback _ query, bot = bot ) # доделать появление списка при удалении | [
-0.12255195528268814,
-0.5378550291061401,
0.5059499144554138,
-0.041004836559295654,
0.3168260157108307,
0.18755894899368286,
0.05649184063076973,
0.34601154923439026,
1.393584966659546,
0.1288699209690094,
-0.40642938017845154,
0.7669338583946228,
-0.4905654788017273,
1.1834042072296143,... |
def _ _ bool _ _ ( self ) : ts = filestoragemanagersingleton. get ( self. _ id ) return bool ( abs ( ts ) ) | [
-0.26423051953315735,
-0.4480007290840149,
0.5780417919158936,
0.14040319621562958,
0.45195966958999634,
0.13069993257522583,
-1.0690912008285522,
0.41903433203697205,
-0.38522806763648987,
-0.03033243678510189,
-0.243500754237175,
-0.11524669826030731,
0.48038533329963684,
0.1776516586542... |
def post ( self, request, slug ) : try : article = article. objects. get ( slug = slug ) except objectdoesnotexist : response = { " message " : " the article does not exist ", } return response ( response, status = status. http _ 404 _ not _ found ) user = request. user if user in article. favourited. all ( ) : # user ... | [
0.10895338654518127,
-0.35225731134414673,
0.6517587304115295,
0.35297173261642456,
0.29562556743621826,
-0.2812716066837311,
0.16622108221054077,
0.840915322303772,
-0.1595522165298462,
0.39641040563583374,
-0.3448163866996765,
0.5699029564857483,
-0.8275885581970215,
0.30306389927864075,... |
def test _ get _ form _ class _ calls _ modelform _ factory ( self, modelform _ factory, _ get _ base _ form _ class ) : _ get _ base _ form _ class. return _ value = mock ( ) self. omniform. get _ form _ class ( ) modelform _ factory. assert _ called _ with ( self. omniform. content _ type. model _ class ( ), form = _... | [
-0.01912384293973446,
0.004768587648868561,
0.3183203339576721,
0.12952525913715363,
0.319629043340683,
-0.011858653277158737,
-0.601207971572876,
-0.7642021179199219,
0.017571713775396347,
-1.2649331092834473,
-0.9808864593505859,
-0.42705875635147095,
0.3538191616535187,
0.69570839405059... |
def get _ feature ( fname ) : ribo _ featdb = dict ( ) fh = open ( fname,'ru') for line in fh : line = line. strip ('\ n \ r'). split ('' ) if line [ 0 ] in ribo _ featdb : ribo _ featdb [ line [ 0 ] ] [ ( int ( line [ 1 ] ), int ( line [ 2 ] ) ) ] = line [ 3 ] else : ribo _ featdb [ line [ 0 ] ] = { ( int ( line [ 1 ]... | [
-0.08359193801879883,
-0.6363087296485901,
0.48198026418685913,
0.3768197000026703,
-0.8423097729682922,
-0.130296528339386,
0.7358115315437317,
1.3185702562332153,
-1.414858102798462,
0.13472174108028412,
-1.1940102577209473,
-0.18804925680160522,
-0.40631335973739624,
0.310728520154953,
... |
def place _ fruit ( self ) : while self. _ fruit in self. _ body or self. _ move > self. _ max _ move : x = randint ( 0, self. _ board - 1 ) y = randint ( 0, self. _ board - 1 ) self. _ fruit = ( x, y ) self. _ move = 0 | [
-0.8190847039222717,
0.8213998675346375,
0.5274059772491455,
-0.19213607907295227,
-0.02216067723929882,
0.41306832432746887,
0.508104681968689,
0.45388245582580566,
0.16718269884586334,
-0.40976598858833313,
-0.30880266427993774,
0.011180349625647068,
-0.26765137910842896,
-0.878355801105... |
def copy ( self ) : return pythontask. from _ dict ( self. to _ dict ( ) ) | [
-0.18911609053611755,
-0.7774725556373596,
0.6027821898460388,
0.0470646470785141,
-0.5857950448989868,
0.5875405669212341,
-0.48082610964775085,
-0.016310157254338264,
0.2781977355480194,
0.32124871015548706,
-1.1441514492034912,
0.5066682696342468,
0.7070459127426147,
-0.6764773726463318... |
def endelement ( self, name ) : # only deal with the tag if it is something we are # interested in and potentially have information for if self. _ collect _ characters : # add all of the information collected inside this tag self. info [ name ]. append ( " ". join ( self. _ cur _ content ) ) # reset our information and... | [
-0.057324640452861786,
-0.35120290517807007,
0.7408065795898438,
-0.54823899269104,
0.12327117472887039,
0.0851295217871666,
0.10580796748399734,
-0.6026063561439514,
-0.39498957991600037,
0.09504663944244385,
-0.521430253982544,
-0.02647441253066063,
-0.6390337944030762,
1.020961999893188... |
def test _ exits _ if _ regexstr _ has _ escaped _ backslash ( ) : rule _ obj = rule ( " 1 ", " n \ \ ow ", " a. txt ", " a. txt ", " 0 " ) with pytest. raises ( systemexit ) : rule _ obj. _ coerce _ source _ matchpattern _ as _ compiled _ regex ( ) | [
0.9918928146362305,
0.043229103088378906,
0.5237574577331543,
0.6938958168029785,
0.8871912956237793,
0.4912472069263458,
0.33069896697998047,
-0.15587548911571503,
-0.2689525783061981,
-0.4297926425933838,
-0.8770136833190918,
0.22011041641235352,
0.12577085196971893,
0.5589680671691895,
... |
def search ( request ) : base = get _ base ( request ) if request. method = ='post': query = request. post. get ('param') if not query : return render ( request, " search. html " ) books _ by _ name = bookdescription. objects. filter ( q ( name _ _ icontains = query ) | q ( author _ _ icontains = query ) | q ( descript... | [
0.004664865788072348,
-0.15105289220809937,
0.7433419823646545,
0.705288827419281,
0.221927210688591,
0.65816730260849,
-0.03653416410088539,
-0.15453346073627472,
-0.35035240650177,
-0.12418947368860245,
1.1983211040496826,
-0.32237711548805237,
-0.3832141160964966,
0.7997887134552002,
... |
def click ( event = none ) : global m _ or _ f message. withdraw ( ) m _ or _ f = t. get ( " 1. 0 ", " end - 1c " ) # after getting message we allow the user to enter password password _. config ( state = normal ) password _. focus ( ) | [
0.4590487778186798,
0.06927558779716492,
0.33369648456573486,
0.42699727416038513,
0.19805824756622314,
-0.2622140645980835,
0.8568797707557678,
0.7899835705757141,
-0.39795833826065063,
0.07241334021091461,
0.5210025906562805,
0.4159952998161316,
-0.6364113688468933,
0.533329427242279,
... |
def browser _ clear ( force = false ) : browser _ url ('file : / /'+ black _ page, force = force, cb = lambda buf :'load _ finish'in buf and black _ page in buf ) | [
-0.36325210332870483,
-0.2859250605106354,
0.43641477823257446,
-0.2500271201133728,
0.8499796986579895,
0.38667741417884827,
-0.17785081267356873,
-0.6364533305168152,
-0.41282880306243896,
1.2783877849578857,
0.22276544570922852,
1.2473640441894531,
0.10424859821796417,
0.545164644718170... |
def test _ other ( self ) : self. assertfalse ( dist. _ checkcpython ( platform = fakeotherplatform ) ) | [
0.3217931389808655,
1.0213099718093872,
0.17603768408298492,
0.674630343914032,
0.9345698952674866,
1.708561897277832,
0.7736193537712097,
-0.5998750329017639,
-0.2019718736410141,
-0.3613090217113495,
-1.2177828550338745,
0.031083842739462852,
-1.0241479873657227,
1.4204663038253784,
0.... |
def test _ atomic _ id _ enumeration _ 1 _ nistxml _ sv _ iv _ atomic _ id _ enumeration _ 2 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / id / schema + instance / nistschema - sv - iv - atomic - id - enumeration - 2. xsd ", instance = " nistdata / atomic / id / schem... | [
-0.22886700928211212,
-1.093526840209961,
0.4887932240962982,
0.6011447310447693,
-0.180649533867836,
-0.17632202804088593,
0.34267422556877136,
-0.5493099093437195,
-0.2184407263994217,
0.34250718355178833,
-0.20986725389957428,
0.1600763499736786,
0.1993435025215149,
0.1852712780237198,
... |
def test _ corresponding _ simu ( self ) : learner = hawkessumexpkern ( self. decays, max _ iter = 10 ) learner. fit ( self. events ) corresponding _ simu = learner. _ corresponding _ simu ( ) np. testing. assert _ array _ equal ( corresponding _ simu. decays, learner. decays ) np. testing. assert _ array _ equal ( cor... | [
0.8509318232536316,
0.09908696264028549,
0.6266387104988098,
0.19097907841205597,
0.6171054840087891,
0.2506811022758484,
0.28538253903388977,
0.7339538931846619,
1.0504711866378784,
-0.9731094241142273,
-0.972000241279602,
0.46674004197120667,
-0.1464661806821823,
-0.005538115743547678,
... |
def test _ retrieves _ post _ commentator _ by _ username ( self ) : user = make _ user ( ) headers = make _ authentication _ headers _ for _ user ( user ) post _ creator = make _ user ( ) post = post _ creator. create _ public _ post ( text = make _ fake _ post _ text ( ) ) post _ commentator = make _ user ( ) post _ ... | [
-0.2248792201280594,
-0.1835000216960907,
0.43642520904541016,
-0.22639904916286469,
0.3413085341453552,
0.04405534639954567,
0.05878265202045441,
-0.015026731416583061,
-0.4658694565296173,
-0.5738052129745483,
-0.9130434393882751,
-0.6810485124588013,
-1.1621874570846558,
-0.142696961760... |
def _ get _ or _ create _ child ( self, node _ id, context _ byte ) : assert 0 < = context _ byte < = 255 child _ arr = self. arr _ children [ :, context _ byte ] if child _ arr [ node _ id ] = = self. no _ child : child _ id = self. _ create _ leaf ( ) child _ arr [ node _ id ] = child _ id return child _ arr [ node _... | [
0.4457166790962219,
0.17977119982242584,
0.5258612036705017,
-0.3555290400981903,
0.5618910193443298,
0.12428908050060272,
-0.14919285476207733,
-0.9512725472450256,
0.835308849811554,
-0.36636045575141907,
0.23519514501094818,
0.3468802273273468,
-0.4830970764160156,
-0.31704312562942505,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.