text
stringlengths
25
2.19k
embedding
listlengths
768
768
def wait _ for _ copying _ to _ begin ( self ) : self. _ _ copying _ semaphore. acquire ( true ) return
[ -0.019253790378570557, -0.37169960141181946, 0.5022809505462646, 0.4937569797039032, -0.7773038744926453, 1.0399118661880493, 0.5188283920288086, 0.7127269506454468, 0.38674646615982056, 0.2765561044216156, 0.07232901453971863, 0.7194520235061646, -0.04583371430635452, 0.00545108737424016,...
def forward ( self, x : torch. tensor ) - > list [ torch. tensor ] : out = [ ] for i in range ( self. num _ heads ) : out. append ( getattr ( self,'prototypes'+ str ( i ) ) ( x ) ) return out
[ -1.2256234884262085, 0.5909465551376343, 0.5378956198692322, 0.02484862133860588, 0.42779430747032166, 0.1451367735862732, -0.35247910022735596, -0.5450332760810852, 0.17039427161216736, 0.06909380108118057, -0.9245476722717285, 0.30851423740386963, 0.47743767499923706, 0.19611459970474243...
def test _ submit _ record _ rejection ( ) : res = requests. post ( f'{ env. awg _ base _ url } / api / cve - id ', headers = utils. base _ headers, params = {'amount': 1,'cve _ year': 2000,'short _ name':'mitre'} ) id _ num = json. loads ( res. content. decode ( ) ) ['cve _ ids'] [ 0 ] ['cve _ id'] # obtain id number ...
[ -0.20320169627666473, 0.013614925555884838, 0.6414485573768616, -0.28109923005104065, 0.25453782081604004, 0.5369188189506531, -0.6114421486854553, 0.40603959560394287, -0.08777835220098495, 0.23728226125240326, -0.94720858335495, 0.9580133557319641, -0.5705466866493225, -0.001645315554924...
def check _ keydown _ events ( event, ship, bullets, ai _ settings, screen, stats, aliens, sb ) : # quit game key shortcut if event. key = = pygame. k _ q : save _ high _ score ( stats ) sys. exit ( ) # ship movement keys elif event. key = = pygame. k _ right : ship. moving _ right = true elif event. key = = pygame. k ...
[ 0.22887524962425232, -0.3276462256908417, 0.9861817359924316, 1.0013724565505981, 0.21028317511081696, 0.26240041851997375, -0.12863105535507202, -0.9838338494300842, 0.4577917754650116, 0.782727062702179, -0.2430674433708191, -0.0611959844827652, 0.4095653295516968, 0.8545665740966797, ...
def listmethods ( self, request, timeout, metadata = none, with _ call = false, protocol _ options = none ) : raise notimplementederror ( )
[ -0.935464084148407, 0.3168085217475891, 0.43050113320350647, 0.5991772413253784, 0.29480597376823425, -0.3985704183578491, -0.8728504180908203, -0.717971920967102, 0.35318323969841003, 0.5228840112686157, 0.23347130417823792, 0.08200547844171524, -0.39861583709716797, 0.40001630783081055, ...
def make _ move ( game ) : d = {'1': 1,'2': 2,'3': 3,'4': 4,'5': 5,'6': 6,'7': 7,'8': 8,'9': 9,'10': 10, \'j': 11,'q': 12,'k': 13 } col _ from = int ( raw _ input ( " move from which column? " ) ) card _ from = raw _ input ( " which card? " ) if card _ from in d. keys ( ) : card _ from = d [ card _ from ] else : card _...
[ -0.7722052931785583, -0.3700428605079651, 1.1028532981872559, 0.022983280941843987, -0.5251033306121826, 0.11997437477111816, -0.3001859486103058, 0.06006878986954689, -0.699019730091095, 0.016543440520763397, -0.5005685687065125, -0.2626221776008606, 0.5081416964530945, -1.141754269599914...
def reduce _ any ( input _ tensor, axis = none, keepdims = false, name = none ) : keepdims = false if keepdims is none else bool ( keepdims ) return _ may _ reduce _ to _ scalar ( keepdims, axis, gen _ math _ ops. _ any ( input _ tensor, _ reductiondims ( input _ tensor, axis ), keepdims, name = name ) )
[ -0.011445144191384315, 0.5436833500862122, 0.9139038920402527, 0.9483016133308411, -0.3863172233104706, 0.1717880517244339, -0.14724363386631012, -0.10719767957925797, -0.5608121752738953, -0.2348979413509369, -0.07387476414442062, 0.12179727852344513, -0.14384913444519043, -0.060956370085...
def _ _ exit _ _ ( self, exc _ type, value, traceback ) : # skip everything if the container was not created if not self. create : return false # add all created nodes to the container cmds. container ( self. container _ node, edit = true, addnode = node. created _ nodes _ stack, includenetwork = false, includehierarch...
[ -0.5165936350822449, 0.12009625136852264, 0.9441114664077759, -0.41415345668792725, 0.21789413690567017, -0.6692945957183838, 1.389521598815918, -0.42076098918914795, -0.26548251509666443, 0.35312530398368835, 0.2105303555727005, 0.015791768208146095, 0.15665346384048462, 0.302123516798019...
def conv _ json _ to _ dict ( data ) : if isinstance ( data, str ) : return json. loads ( data ) if isinstance ( data, dict ) : return data return dict ( )
[ -0.7819686532020569, -0.31416162848472595, 0.5292966365814209, -0.8499017953872681, -1.5344815254211426, -0.20889626443386078, -0.9862186908721924, -0.5571076273918152, 0.35979780554771423, -0.11332479119300842, -0.017632517963647842, 1.0517799854278564, -0.07581081241369247, 0.57904613018...
def update _ discs ( discs ) : new _ discs = { } for disc, arrangement in discs. items ( ) : new _ discs [ disc ] = ( ( arrangement [ 0 ] + 1 ) % ( arrangement [ 1 ] ), arrangement [ 1 ] ) return ( new _ discs )
[ -1.4590785503387451, -0.4022664427757263, 0.37669140100479126, -0.6162555813789368, -1.0231895446777344, 0.026290874928236008, 1.1934436559677124, 0.05673343688249588, 0.5893563628196716, 0.39747634530067444, -0.7694733738899231, -1.1007163524627686, 0.42188504338264465, 0.4678598344326019...
def getcolor ( self ) : return self. color
[ 0.19802246987819672, -0.765002965927124, 0.11683039367198944, 0.3368806540966034, 0.7859340906143188, 1.1176056861877441, 0.3111056983470917, 0.5870389342308044, -0.08839307725429535, -0.982069730758667, 0.24022895097732544, 0.9636289477348328, -0.17923106253147125, 0.6007115840911865, -...
async def test _ set _ operation _ mode ( monkeypatch ) : teslamock ( monkeypatch ) _ controller = controller ( none ) await _ controller. connect ( ) await _ controller. generate _ energysite _ objects ( ) _ energysite = _ controller. energysites [ 67890 ] assert await _ energysite. set _ operation _ mode ( " autonomo...
[ -0.6049708127975464, 0.7576683163642883, 0.5205848217010498, -0.5004574060440063, 0.7983354330062866, 0.5668533444404602, 0.9294822216033936, -0.1085437461733818, -0.608609676361084, -0.17961280047893524, -0.8365889191627502, -0.894932210445404, 0.2959553599357605, -0.2942356765270233, 0...
def diametre ( self ) : maxdist = 0 for node1 in range ( len ( self. nodes ) ) : for node2 in range ( node1 + 1, len ( self. nodes ) ) : # no need to go through all nodes ( bc. distance is symetrical ) self. resetnodes ( ) dist = self. distance ( node1, node2 ) if dist is not none and dist > maxdist : maxdist = dist re...
[ 0.5231269001960754, 0.4461970925331116, 0.6793691515922546, 0.4134601652622223, 0.4314635097980499, -0.29347702860832214, 0.3608107566833496, 0.20742736756801605, -0.5866949558258057, 0.4207324683666229, -0.08695992082357407, -0.008583198301494122, -0.7663427591323853, -0.01468498446047306...
def _ dbn _ maxpool _ sample _ helper ( hid _ probs, pool _ probs ) : # store shapes for later hs, ps = hid _ probs. shape, pool _ probs. shape # first, we extract blocks and their corresponding pooling unit # we need to use doubles because of precision problems in np. random. multinomial. wow did this take me a while ...
[ 0.1971101611852646, -0.3756682872772217, 0.800861656665802, 0.04878285527229309, -0.6737539172172546, 0.005400382913649082, 0.3387058973312378, 0.10247493535280228, 0.8102430105209351, 0.3228456377983093, 0.15555794537067413, 0.7531078457832336, -0.38934752345085144, 0.323037713766098, -...
def test _ hawkessumexpkern _ model _ settings ( self ) : # single baseline learner = hawkessumexpkern ( self. decays ) np. testing. assert _ array _ equal ( learner. decays, self. decays ) np. testing. assert _ array _ equal ( learner. _ model _ obj. decays, self. decays ) self. assertequal ( learner. n _ baselines, 1...
[ 0.07269939035177231, 0.21935023367404938, 0.6559180021286011, 0.11904503405094147, 0.21704255044460297, 0.24216033518314362, 0.18061943352222443, -0.08019281923770905, 0.260617196559906, -0.5368354320526123, -0.8153355121612549, 0.5824385285377502, -0.044754866510629654, 0.8636254668235779...
def _ _ calc _ cutof ( self ) : top _ cont, _ = self. _ _ mapped _ shortlog [ 0 ] mean _ cut = top _ cont * 0. 05 summ = 0 numm = 0 for count, _ in self. _ _ mapped _ shortlog : if count > = mean _ cut : summ + = count numm + = 1 else : break return summ / numm
[ 0.40337178111076355, -0.46277916431427, 0.5054001212120056, -0.14158698916435242, -1.0133473873138428, 0.3202020525932312, 1.5932141542434692, -0.9894489645957947, 0.08082316815853119, 0.7082489132881165, 0.38437774777412415, 0.2338813990354538, 0.23682507872581482, -0.2682303488254547, ...
def caption _ eval _ collate ( data ) : # separate source and target sequences att _ feats, img _ masks, box _ feats, img _ ids = list ( zip ( * data ) ) # t2i def generate _ inputs ( ) : # sent = np. array ( sent ) x _ img = torch. stack ( att _ feats, dim = 0 ) img _ loc = torch. stack ( box _ feats, dim = 0 ) x _ im...
[ -1.0417687892913818, -1.0383278131484985, 0.8565827012062073, -0.4201720654964447, -0.20413751900196075, -0.18169651925563812, 0.4254280626773834, -0.1343355029821396, 0.029323972761631012, 0.3847808837890625, -0.3153364658355713, -0.2011020928621292, 0.9130499362945557, 0.3340421617031097...
def bind _ nodes ( self, object _ list, node _ name = " data " ) : object _ node _ list = [ ( i, getattr ( i, node _ name ) ) for i in object _ list if getattr ( i, node _ name ). id ] node _ ids = [ n. id for _, n in object _ node _ list ] if not node _ ids : return node _ results = nodestore. get _ multi ( node _ ids...
[ -1.098862648010254, -0.020986191928386688, 0.7095028758049011, 0.16524523496627808, 0.16187189519405365, 0.13007627427577972, -0.20790313184261322, 0.2311069816350937, 0.08710794150829315, 0.6781222820281982, -1.0315004587173462, 0.5698196291923523, 0.41065430641174316, 0.7899636030197144,...
def readdata2array ( filename ='dataspam ', delimiter = none, missing _ values = none ) : return np. genfromtxt ( data _ folder + filename, delimiter = delimiter, \ missing _ values = missing _ values )
[ 0.1859757900238037, -0.4534747302532196, 0.6125516295433044, -0.26735246181488037, -0.2302456498146057, 1.2690584659576416, -0.4528008997440338, 1.816875696182251, -0.542817234992981, -0.2592620849609375, -0.860833466053009, 1.0558462142944336, 0.4290430247783661, -0.25326403975486755, 0...
def clear ( self ) : logging. info ( " keithley. clear ( ) called. " ) self. keithley. clear ( ) logging. info ( " keithley. clear ( ) done. " ) return true
[ -0.16800497472286224, 0.4556695818901062, 0.6436672210693359, 0.21530146896839142, -0.026081038638949394, -0.27023327350616455, -0.8542041182518005, -0.473816841840744, -0.021130118519067764, 0.6454602479934692, -0.40174368023872375, -0.1770390272140503, 0.022156424820423126, 0.41286560893...
def _ updatebenchmarkspecwithflags ( benchmark _ spec ) : benchmark _ spec. depth = flags. resnet _ depth benchmark _ spec. mode = flags. resnet _ mode benchmark _ spec. train _ batch _ size = flags. resnet _ train _ batch _ size benchmark _ spec. eval _ batch _ size = flags. resnet _ eval _ batch _ size benchmark _ sp...
[ 0.5201551914215088, 0.17046605050563812, 0.6532343029975891, -0.5815378427505493, 1.1750129461288452, 0.4204307496547699, -0.14501476287841797, -0.26587867736816406, -1.2029019594192505, 0.5344789028167725, -0.4981171190738678, 0.2997135818004608, 0.35554081201553345, 0.3802350163459778, ...
def _ tag _ handle _ special ( self, text : str ) : # special tags vars setbold = " \ 033 [ 1m " unsetbold = " \ 033 [ 22m " setunderline = " \ 033 [ 4m " unsetunderline = " \ 033 [ 24m " setitalic = " \ 033 [ 3m " unsetitalic = " \ 033 [ 23m " setblink = " \ 033 [ 5m " setslowblink = " \ 033 [ 5m " unsetblink = " \ 03...
[ 0.7184812426567078, -0.08606407791376114, 0.9187862277030945, -0.497772216796875, -0.572853147983551, -0.299446702003479, -0.5095025897026062, 0.8099298477172852, 0.07069072872400284, -0.033479899168014526, -0.42366817593574524, 0.3476540148258209, -0.10976198315620422, 0.35587242245674133...
def perform _ request ( self, http _ client, operation, url, data = none, headers = none ) : if not headers : headers = { } headers. update ( self. getauthheader ( operation, url ) ) return http _ client. request ( operation, url, data = data, headers = headers )
[ -1.0751360654830933, 0.6694380044937134, 0.7564253211021423, 0.6990617513656616, -0.08633927255868912, -0.7234500646591187, -0.4258733093738556, 0.33979520201683044, 0.10020825266838074, -0.18406827747821808, 0.6262914538383484, 0.42939531803131104, -0.2898227572441101, -1.167131781578064,...
def load ( self, * args, * * kwargs ) : all _ files = self. _ list _ files ( ) matching _ files = [ ] for file _ name in all _ files : if all ( [ item in file _ name for item in args ] ) : matching _ files. append ( file _ name ) if len ( matching _ files ) = = 1 : file _ path = os. path. join ( self. directory, matchi...
[ -0.6007261872291565, 0.17919783294200897, 0.8443742990493774, 0.3785066604614258, -0.017654795199632645, 0.5590081810951233, -0.3860817849636078, 0.4719783365726471, -0.9825729131698608, 0.3468756675720215, 0.09858572483062744, -0.7699563503265381, -1.2854152917861938, 0.17187181115150452,...
def test _ retrieve _ recipes ( self ) : sample _ recipe ( user = self. user ) sample _ recipe ( user = self. user ) response = self. client. get ( recipes _ url ) recipes = recipe. objects. all ( ). order _ by ('- id') recipes _ data = recipeserializer ( recipes, many = true ). data self. assertequal ( response. statu...
[ 0.7471404671669006, 0.6304726600646973, 0.3130939304828644, 0.19090460240840912, 0.9497698545455933, -0.41863441467285156, -0.34805455803871155, 0.92941814661026, 0.008961634710431099, -1.3555943965911865, -0.6644285917282104, 0.03792603686451912, -0.23795129358768463, -0.37390944361686707...
def registerdevice ( self, typeid, deviceid, authtoken = none, deviceinfo = none, location = none, metadata = none ) : devicesurl = apiclient. devicesurl % ( self. host, typeid ) payload = {'deviceid': deviceid,'authtoken': authtoken,'deviceinfo': deviceinfo,'location': location,'metadata': metadata } r = requests. pos...
[ -1.6606556177139282, 0.11853885650634766, 0.7959450483322144, 0.07606562227010727, 0.254461407661438, 0.015200807712972164, -0.10100880265235901, -0.202936053276062, -0.5221615433692932, 0.17917107045650482, -0.30704793334007263, 1.1545547246932983, -1.218424677848816, 0.10774920135736465,...
def get _ port _ number ( self ) : return self. port
[ 0.11199808120727539, -0.3022059500217438, 0.5148097276687622, 0.4461651146411896, 0.6851127743721008, -0.2681809067726135, 1.5015767812728882, 0.5180854201316833, -0.23922398686408997, -1.0964924097061157, -0.5413216948509216, 0.5031262040138245, -0.23018845915794373, -0.06300445646047592,...
def fgsm _ attack ( self, data : torch. tensor ) : input _ grad = data. grad. data perturbed _ data = data + self. _ epsilon * input _ grad return torch. clamp ( perturbed _ data, 0, 1 )
[ -0.27986493706703186, -0.40444037318229675, 0.29583123326301575, 0.019114900380373, 0.1544615626335144, -0.0650816559791565, -0.0031860589515417814, -0.46642425656318665, -0.4588605761528015, -0.10996675491333008, 0.1840643733739853, 0.18483184278011322, -0.9049035310745239, -0.49102610349...
def test _ experiment _ config ( self ) : exp = quantumvolume ( [ 0, 1, 2 ], seed = 42 ) loaded _ exp = quantumvolume. from _ config ( exp. config ( ) ) self. assertnotequal ( exp, loaded _ exp ) self. assertequalextended ( exp, loaded _ exp )
[ 0.5115301609039307, -0.045614924281835556, 0.3045276701450348, -0.4107474386692047, -0.22764062881469727, 0.5898388028144836, -0.14701099693775177, 0.285631000995636, 0.6254668831825256, -0.3293038606643677, -0.5584752559661865, -0.11417048424482346, -0.8095635771751404, 0.2108682990074157...
def evaluation _ result ( self ) : eval _ loss = self. finalize _ loss ( ) eval _ scr = self. finalize _ metric ( ) self. export _ output ( ) return eval _ loss, eval _ scr
[ -0.3230310082435608, -0.6594468355178833, 0.4261136054992676, -0.724714457988739, -0.7236700057983398, -0.2199399173259735, 0.8110821843147278, -0.3170553743839264, -0.19296446442604065, 0.3328952491283417, 0.3131989538669586, 0.4459494948387146, 0.47013112902641296, 0.1918940246105194, ...
def find _ player ( player, game _ board ) : for x in game _ board. players : if x. id = = player : return x return none
[ 0.4069024324417114, -0.6083510518074036, 0.45449063181877136, 0.15563131868839264, 0.16552402079105377, -0.22899065911769867, 0.021534355357289314, -0.6376168131828308, -0.6134259104728699, 0.7188050150871277, 0.7049871683120728, -0.46861374378204346, -0.9361305236816406, -0.18866564333438...
def half _ branch _ to _ pants _ curve ( self, branch ) : switch = self. branch _ endpoint ( - branch ) pants _ curve = self. switch _ to _ pants _ curve ( switch ) if self. get _ switch _ turning ( switch ) = = left : return - pants _ curve else : return pants _ curve
[ -0.19759096205234528, -1.3688973188400269, 0.7646364569664001, 0.4454104006290436, 0.28214043378829956, 0.998030424118042, -0.1397942155599594, -0.7122205495834351, 0.07524635642766953, -0.35670554637908936, -0.27346399426460266, 1.4871608018875122, -0.6131224036216736, 0.797102689743042, ...
def readlastncluster ( self, ncluster ) : # return dataframe. head ( ncluster ) return self. df. tail ( ncluster )
[ -0.41361501812934875, -0.22714672982692719, 0.5838589668273926, -0.2551266551017761, 0.5440371632575989, -0.4771850109100342, -0.0944482833147049, -1.3591171503067017, -0.05203476548194885, -0.2699998617172241, 1.1731061935424805, 0.32889771461486816, -1.3402081727981567, -1.15128707885742...
def samplekl ( self, num _ xis, filename, size = 1 ) - > numpy. ndarray : # generate xis : xi = numpy. random. normal ( 0, 1, size = ( size, num _ xis ) ) with open ( filename, " wb + " ) as fin : xi. tofile ( fin ) # generate the random field return numpy. dot ( xi * numpy. sqrt ( self. eig _ values ), self. eig _ vec...
[ 0.20971688628196716, -0.01231818925589323, 0.4946627616882324, -0.3000990152359009, -0.7099814414978027, 0.4249591529369354, 0.21311743557453156, 0.4905025362968445, 0.8906089067459106, 0.734836995601654, -0.0793694257736206, -0.7071546912193298, -0.28719109296798706, -0.7118641138076782, ...
def get _ algo _ df ( algo _ name, key, environ = none, rel _ path = none ) : folder = get _ algo _ folder ( algo _ name, environ ) if rel _ path is not none : folder = os. path. join ( folder, rel _ path ) filename = os. path. join ( folder, key + '. csv') if os. path. isfile ( filename ) : try : with open ( filename,...
[ 0.370191365480423, 0.22025704383850098, 0.5373855233192444, 0.4837542474269867, -0.35483410954475403, -0.18016627430915833, 0.33505910634994507, 0.44605371356010437, -0.7228847742080688, 0.43637150526046753, 1.2322518825531006, 1.0534939765930176, 0.20763704180717468, -0.036965008825063705...
def small _ switch _ to _ large _ switch ( self, small _ switch ) : click = self. small _ switch _ to _ click ( small _ switch ) return self. click _ to _ large _ switch ( click )
[ -0.5474444031715393, 0.39633485674858093, 0.5519261360168457, -0.1852567493915558, -0.5714713335037231, -0.5752074122428894, 0.2250586599111557, -0.49492719769477844, 1.1863595247268677, -0.3825802803039551, -0.9545031785964966, -0.13076555728912354, -0.1329563409090042, 0.1342905908823013...
def create _ connection _ to _ db ( self ) : try : conn = sqlite3. connect ( self. db _ file ) return conn except error as e : print ( e ) return none
[ 0.2234833538532257, -0.2412194311618805, 0.4076858460903168, 0.10673396289348602, 0.6514127254486084, 0.5406237840652466, -0.6573119759559631, 0.06473276764154434, -0.7944003939628601, -0.17518217861652374, 0.8438319563865662, -0.7897469997406006, -1.0377376079559326, -0.3679312765598297, ...
def addcreator ( self ) : # define self. question as as a string with 2 random numbers self. question = " { } + { } ". format ( randint ( 10, 99 ), randint ( 2, 99 ) )
[ -0.469235360622406, -0.8458767533302307, 0.6295404434204102, -0.33863234519958496, -0.2578161358833313, 1.4333144426345825, -0.12102685868740082, 0.29507794976234436, 0.5888418555259705, -1.556329607963562, -0.11372880637645721, -0.12356078624725342, 0.1989886462688446, 0.6731066703796387,...
def test _ can _ hook _ url ( self ) : new _ url ='http : / / httpbin. org / new _ url'class myapiclient ( apiclient ) : @ apiclienthook. hook _ client _ url ( client ='httpbin _ 3 ', requests = ['*'] ) # register this for all the hooks in client 3 def overide _ url _ query ( self, url, * * kwargs ) : return new _ url ...
[ -0.6282044053077698, -0.06451103836297989, 0.511584997177124, 0.46926113963127136, -0.0029266001656651497, 1.0620933771133423, 0.32709240913391113, 0.012307710945606232, -0.50586998462677, -0.42297062277793884, -0.035650454461574554, 0.2872709631919861, -0.7599828839302063, -0.479519337415...
def cohorts _ index ( ) : return render _ template ('cohorts. html')
[ 0.697939932346344, 0.12765756249427795, 0.1169157475233078, -0.711540699005127, 0.16180337965488434, 0.3101156949996948, 0.7803844213485718, 0.6482147574424744, -0.47525596618652344, 0.5055673122406006, 0.5540096163749695, 0.48856404423713684, 0.13867373764514923, -0.029832875356078148, ...
def get _ all _ weights ( cls ) : return get _ list _ of _ variables ( cls. layers + cls. shared _ layers )
[ 0.31244269013404846, -0.48925191164016724, 0.5072876214981079, 1.2507259845733643, 0.935043215751648, 0.47790059447288513, -0.2293529361486435, -0.36558258533477783, -0.32364898920059204, -0.012349478900432587, -0.6303519010543823, 0.564682126045227, -0.4801923930644989, 1.3477861881256104...
def test _ atomic _ base64 _ binary _ min _ length _ 1 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ min _ length _ 2 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - minlength - 2. xsd ...
[ 0.17716431617736816, -0.8515487313270569, 0.4413873553276062, 1.076669692993164, -0.17905688285827637, -0.11670435220003128, -0.2358551323413849, -0.5224668979644775, -0.3076001703739166, 0.10672362148761749, -0.5426359176635742, 0.674485981464386, -0.31067216396331787, 0.37862154841423035...
def _ zeros _ like _ func ( x ) : # unused parameters are placeholders. return f. environ _ create ( )
[ -0.05773918330669403, -0.09622938185930252, 0.23731136322021484, -0.4962823987007141, 0.0674172192811966, -0.2101088911294937, 0.19908815622329712, -0.5254759192466736, -0.44185981154441833, -0.47200506925582886, 0.058101944625377655, 0.2807157337665558, 0.7586250305175781, 0.0995979979634...
def randomizer ( dict ) : return random. choice ( list ( dict. keys ( ) ) )
[ -1.3516005277633667, -0.12058262526988983, 0.13891081511974335, -1.69533109664917, -0.41436997056007385, 0.5112678408622742, -0.96522456407547, 0.6328988075256348, 1.0441899299621582, -0.00711842579767108, 0.5475646257400513, -0.3600914180278778, -0.34632018208503723, 0.3214358389377594, ...
def test _ add _ link ( self ) : self. login ( ) response = self. client. get ('/ admin / add / lext') entry _ data = {'title':'link entry ','slug':'link - entry ','tags':'tests ','published':'true ','content':'test ','publish _ date _ year': datetime. now ( ). year,'publish _ date _ month': datetime. now ( ). month,'p...
[ 0.42789214849472046, 0.43976864218711853, 0.545421838760376, 0.0482044443488121, 1.0688139200210571, 0.4919978082180023, -0.16650447249412537, 0.23369556665420532, 0.2727392911911011, -0.9784207344055176, 0.0910354033112526, 0.5416796207427979, -0.5734429955482483, 0.5050320625305176, -0...
def count ( f ) : def counted ( n ) : counted. c + = 1 return f ( n ) counted. c = 0 return counted
[ 0.03311144933104515, 0.4205102026462555, 0.2568565309047699, 0.2928988039493561, 0.4400707185268402, -0.03732575476169586, 1.1516820192337036, -0.056943949311971664, -0.5467101335525513, -1.0115149021148682, -1.3691173791885376, -0.8180781006813049, 1.1699645519256592, 0.427498996257782, ...
def result ( self, key ) : return self. _ results. get ( key, none )
[ -0.7956165075302124, 0.5653918981552124, 0.25024303793907166, 0.12246006727218628, -0.16405722498893738, -1.0797584056854248, -0.33029648661613464, -1.7954814434051514, -0.2451435625553131, -0.28590986132621765, -0.2907407581806183, -0.49997735023498535, -0.5679851770401001, -0.55078685283...
def msnerv _ grad ( x, sigma _ ij, n, n _ components, p _ h, t _ h, n _ perp, w _ cf ) : x = np. reshape ( a = x, newshape = ( n, n _ components ) ) # computing the pairwise squared euclidean distances in the lds dsm _ lds = pairwise _ dist ( x = x, metric ='sqeuclidean ', tomatrix = true ) # intermediate variable. np....
[ 0.11254170536994934, 0.1851867288351059, 1.038684606552124, -0.4628097712993622, -0.419259250164032, -0.21815374493598938, 0.13610613346099854, 0.5910400152206421, -0.42882007360458374, 0.49748021364212036, -0.1758250743150711, 0.18557071685791016, -0.3541043698787689, 0.4996950030326843, ...
def itksubtractconstantfromimagefilteriuc3diuc3 _ superclass _ cast ( * args ) : return _ itksubtractconstantfromimagefilterpython. itksubtractconstantfromimagefilteriuc3diuc3 _ superclass _ cast ( * args )
[ 1.0889219045639038, 0.8927963972091675, 0.3700801134109497, -0.6645997166633606, -0.40347960591316223, 1.0029844045639038, 0.345707505941391, 1.064772367477417, 0.17866748571395874, -0.6411203145980835, -0.519659161567688, -0.24907369911670685, 0.24385346472263336, -0.4735332429409027, 0...
def sig _ can _ hold ( amount ) : return signal ( max ( math. ceil ( math. log2 ( amount ) ), 1 ) )
[ 0.26396307349205017, 0.2749587297439575, 0.42403092980384827, 0.7929550409317017, -0.9256939888000488, -0.05078309029340744, -0.1844029575586319, -1.1342148780822754, -0.12805461883544922, -0.33641284704208374, -0.3312988877296448, 0.05516743287444115, 0.27320337295532227, 0.12612129747867...
def _ set _ max _ bw _ threshold _ percentage ( self, v, load = false ) : if hasattr ( v, " _ utype " ) : v = v. _ utype ( v ) try : t = yangdynclass ( v, base = restrictedclasstype ( base _ type = restrictedclasstype ( base _ type = long, restriction _ dict = {'range': ['0.. 4294967295'] }, int _ size = 32 ), restrict...
[ 0.4130677282810211, 0.24414712190628052, 0.2202557772397995, 0.5502060651779175, -0.36088818311691284, 0.048275865614414215, 0.19457723200321198, -0.8167210221290588, -0.2720852196216583, 0.6304173469543457, -0.584322452545166, -1.1490262746810913, -0.9288119673728943, 0.6141175627708435, ...
def add _ to _ node _ stack ( cls, node ) : cls. created _ nodes _ stack. append ( node )
[ -0.8314194083213806, 1.4867948293685913, 0.14527443051338196, -0.23503702878952026, 1.0667973756790161, 0.6031637787818909, 0.16083583235740662, -0.40866774320602417, -0.5116375088691711, 0.12161876261234283, -0.6391321420669556, 1.228117823600769, 0.4311630129814148, 0.5830763578414917, ...
def dbs _ to _ trigger _ cutover _ on ( self ) - > optional [ sequence [ str ] ] : return pulumi. get ( self, " dbs _ to _ trigger _ cutover _ on " )
[ -0.4039746820926666, 0.20122991502285004, 0.7225605845451355, 0.49509039521217346, 0.6302147507667542, 0.8307735919952393, -0.058108579367399216, 0.23252259194850922, 1.1586772203445435, 0.8271023631095886, -1.8475569486618042, 0.27952295541763306, -0.768146812915802, -0.6308382153511047, ...
def test _ atomic _ qname _ max _ length _ 2 _ nistxml _ sv _ iv _ atomic _ qname _ max _ length _ 3 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - maxlength - 3. xsd ", instance = " nistdata / atomic ...
[ 0.39845380187034607, -0.3973005712032318, 0.3487400710582733, 0.14709852635860443, -0.652160108089447, 0.5299350619316101, -1.0854908227920532, -0.3827536106109619, 0.542288064956665, 0.6846790313720703, -0.6084567904472351, 0.08358526974916458, 0.24621282517910004, -0.4546504318714142, ...
def affineparameters ( from _ pt, to _ pt ) : x1, y1 = from _ pt [ 0 ] x2, y2 = from _ pt [ 1 ] x3, y3 = from _ pt [ 2 ] x1 _, y1 _ = to _ pt [ 0 ] x2 _, y2 _ = to _ pt [ 1 ] x3 _, y3 _ = to _ pt [ 2 ] matrix _ x = [ [ x1, x2, x3 ], [ y1, y2, y3 ], [ 1, 1, 1 ] ] matrix _ y = [ [ x1 _, x2 _, x3 _ ], [ y1 _, y2 _, y3 _ ]...
[ -0.14796902239322662, -0.19227884709835052, 0.8487743735313416, -0.6951817870140076, 0.714916467666626, 0.1305621713399887, -0.12825284898281097, 0.13886302709579468, -0.6478174924850464, 0.8997315168380737, 0.2298586070537567, -0.019651344045996666, 0.0034229950979351997, 0.19721280038356...
def null _ minimizer ( fun, x0, * args, * * options ) : return scipy. optimize. optimizeresult ( x = x0, fun = fun ( x0, * args ), success = true, nfev = 1 )
[ 0.4181007742881775, 0.3125438392162323, 0.28999072313308716, 0.3724112808704376, 0.3397829532623291, -1.3251320123672485, -1.0712289810180664, -0.30845585465431213, -0.028367234393954277, -0.36233729124069214, -0.1444808393716812, -0.03907724469900131, -0.4685877859592438, 0.41758319735527...
def squashrng ( rng, apermol ) : if not checksymmetry ( rng ) : raise runtimeerror ( " graph is non - symmetrical " ) sh = rng. shape rng = rng. toarray ( ) newsh = ( int ( sh [ 0 ] / apermol ), int ( sh [ 1 ] / apermol ) ) # pdb. set _ trace ( ) # molrng = lil _ matrix ( newsh ) molrng = np. zeros ( newsh ) for i in r...
[ 0.33186987042427063, -0.3201195001602173, 0.5562304854393005, -0.8846538662910461, -0.4338657259941101, -0.42394089698791504, 0.0695396363735199, -0.17205902934074402, 0.5869702696800232, 0.5643540620803833, 0.0068479483015835285, 0.09677443653345108, -0.01753636635839939, -0.1029661372303...
def read _ from _ directory ( self, directory _ path ) : if directory _ path [ len ( directory _ path ) - 1 ]! ='/': directory _ path + ='/'video _ name, video _ resolution, prefix = \ self. parse _ config _ file ( directory _ path + " config. ini " ) self. _ video _ name = video _ name self. _ video _ resolution = vid...
[ -0.954392671585083, -0.23861250281333923, 0.3965394198894501, 0.4688268303871155, 0.004502051044255495, -0.3670368194580078, 0.18007294833660126, 0.2373419553041458, 0.21341492235660553, 0.3425794243812561, -0.3792060911655426, 0.9230236411094666, 0.49499937891960144, 0.5321945548057556, ...
def raises ( exceptions, function, message ='' ) : try : function ( ) except exceptions : return except exception as e : if message : raise assertionerror ( f " unexpected exception { e! r } ( expected { exceptions } ) : { message } " ) raise assertionerror ( f " unexpected exception { e! r } ( expected { exceptions } ...
[ 0.655993640422821, 0.6923797130584717, 0.3615778982639313, 0.043117545545101166, -0.025256190448999405, -0.002254968509078026, -0.5126727819442749, 0.8047692775726318, -0.10818322002887726, 0.3650796711444855, 1.1310995817184448, 0.23151791095733643, -0.5905529260635376, 0.1417596191167831...
def evaluate _ spline ( ts, tck ) : coords = splev ( ts, tck ) spline _ points = np. zeros ( ( len ( coords [ 0 ] ), 2 ) ) spline _ points [ :, 0 ] = coords [ 0 ] spline _ points [ :, 1 ] = coords [ 1 ] return spline _ points
[ -0.1294272094964981, -0.2227947860956192, 0.12255608290433884, -0.8328415751457214, 0.5448656678199768, -0.7569090127944946, -0.9231629371643066, 1.3368889093399048, -0.021634522825479507, 0.7529215812683105, -0.5421872138977051, 0.2021774798631668, 0.7495023012161255, -0.8374243378639221,...
def internal _ mask ( self ) - > np. ndarray : return util. make _ mask ( self. ndofs, self. dirichlet _ dofs )
[ -1.3413896560668945, -0.05054160952568054, 0.28883928060531616, -0.3441712260246277, 0.864831805229187, 0.06818750500679016, 0.6094822883605957, -0.8488876223564148, 0.22788865864276886, -0.39816901087760925, 0.44639697670936584, -0.03993486613035202, -0.7919261455535889, -0.20560036599636...
def getconsumer ( self ) : return self. _ consumer
[ 0.45702314376831055, -0.3131541311740875, 0.41364744305610657, 0.478646844625473, 0.06520206481218338, 0.2829417586326599, 0.6746261715888977, -0.5214208960533142, -0.49619317054748535, -0.43221256136894226, 0.5453780293464661, 1.2063868045806885, -0.6983174085617065, -0.43930748105049133,...
def pinta _ frontera _ curva ( x, y, theta, poly, lamb ) : plt. figure ( ) x1 _ min, x1 _ max = x [ :, 0 ]. min ( ), x [ :, 0 ]. max ( ) x2 _ min, x2 _ max = x [ :, 1 ]. min ( ), x [ :, 1 ]. max ( ) xx1, xx2 = np. meshgrid ( np. linspace ( x1 _ min, x1 _ max ), np. linspace ( x2 _ min, x2 _ max ) ) h = sigmoid ( poly. ...
[ 0.2119501680135727, -0.1486125886440277, 0.9226443767547607, -0.630090057849884, -0.2952510416507721, 0.8757729530334473, -0.1610228419303894, -0.2838951647281647, 0.28843602538108826, 0.3123546540737152, 0.249302938580513, 1.577208161354065, 0.3983480930328369, -0.08614184707403183, 0.5...
def convert _ to _ bio _ sequence ( document, char _ level ) : doc _ name = " " # i don't care about the document, will be added in later sentences = _ construct _ sentences ( doc _ name, document, char _ level ) bio _ document = biodocument ( doc _ name, document. text, sentences, char _ level ) return bio _ document....
[ -0.3051079511642456, -0.9259555339813232, 0.41897931694984436, 0.5563190579414368, -0.30088672041893005, -0.2636308968067169, 0.24669118225574493, 0.272203266620636, -0.7307887077331543, 0.6861522197723389, -0.8384642004966736, 0.3630600571632385, -0.7042405605316162, -0.18942305445671082,...
def get _ listening _ and _ recognition _ result ( recognizer : speech _ recognition. recognizer, microphone : speech _ recognition. microphone ) - > str : error _ indicator ='error :'try : audio = listen _ speech _ from _ mic ( recognizer, microphone ) except speech _ recognition. waittimeouterror : error ='can you ch...
[ 0.430715948343277, -0.6720396876335144, 0.5525352358818054, 0.8107791543006897, -0.6612406969070435, -0.23044733703136444, -0.6508749127388, -0.4524167478084564, -0.18698833882808685, -0.2444826364517212, 0.4311234652996063, 0.36182016134262085, -0.17269979417324066, 0.43818527460098267, ...
def process _ account _ request ( request, order _ id, receipt _ code ) : order = get _ object _ or _ 404 ( order, id = order _ id, receipt _ code = receipt _ code ) if request. method = = " post " : gateway _ name = request. post [ " gateway _ name " ] gateway = get _ object _ or _ 404 ( gateway, name = gateway _ name...
[ -0.40384718775749207, 0.2123117297887802, 0.8703809976577759, -0.12488242983818054, 0.26391512155532837, -0.32465121150016785, 0.9826545715332031, -0.5053571462631226, 0.8640446066856384, 0.25237172842025757, 1.1993733644485474, 0.061614058911800385, 0.7082401514053345, 0.7270270586013794,...
def test _ shape _ ignore _ msg _ in _ constructor ( self ) : # create a variable for the standard arguments to this function. fake _ specification = ordereddict ( ) fake _ specification [ " intercept " ] = [ 1, 2 ] fake _ specification [ " x " ] = [ [ 1, 2, 3 ] ] fake _ names = ordereddict ( ) fake _ names [ " interce...
[ 0.4813900291919708, -0.1626964509487152, 0.9102054834365845, -0.2518550455570221, -0.21737399697303772, 0.6408856511116028, -0.05046437680721283, -0.5562421083450317, -0.6069415211677551, -0.1521633267402649, -0.68031245470047, 0.4894399642944336, 0.04085621237754822, 0.31254705786705017, ...
def create _ ics _ file ( _ appointment, _ ics _ method ) : tz = pytz. timezone ( _ appointment. user. branch. time _ zone ) date _ start = tz. localize ( datetime. combine ( _ appointment. date, _ appointment. time ) ) date _ end = date _ start + timedelta ( hours = 1 ) filename = str ( _ appointment. id ) + ". ics " ...
[ 0.062381383031606674, -0.41048455238342285, 0.697192907333374, -0.13795481622219086, -0.3286187946796417, 0.26734334230422974, -0.05418013781309128, 0.16597872972488403, -0.6720807552337646, 0.8091700077056885, 0.17926856875419617, 0.13878308236598969, -0.5042780637741089, -0.0640307590365...
def get _ integer ( text = " enter an integer ", prompt = " 0 ", maximum = 0 ) : while true : clear _ line _ 23 ( ) response = input ( " { } [ { } ] : ". format ( text, prompt ) ) if not response : response = prompt try : integer = abs ( int ( response ) ) if integer > maximum : # print ( " invalid entry. please re - e...
[ -0.09526823461055756, -0.5410345792770386, 0.4615967571735382, 0.6874531507492065, -0.46214911341667175, 0.9533649682998657, 0.012066983617842197, -0.04590008407831192, -0.2774737477302551, -0.31512293219566345, 0.3855500817298889, 1.1597758531570435, -0.8780673146247864, -0.36891579627990...
def centinel _ cardholder _ auth _ result ( request, template = " centinel _ error. html " ) : from centinel import centinel logger. debug ( request. post ) cent = centinel ( request ) if request. post. get ('payres') and request. post. get ('transaction _ id') : return cent. centinel _ authenticate ( request. post ['p...
[ 0.12645909190177917, -0.1405918002128601, 0.535046398639679, 0.2404211312532425, -0.6577772498130798, -0.10012645274400711, -0.9428614377975464, 0.40475836396217346, 0.31095147132873535, 0.2260211855173111, 0.6991084814071655, -0.8577242493629456, -0.5663647651672363, -0.9615344405174255, ...
def next _ batch ( self, batch _ size ) : start = self. _ index _ in _ epoch self. _ index _ in _ epoch + = batch _ size if self. _ index _ in _ epoch > self. _ num _ examples : # finished epoch self. _ epochs _ completed + = 1 # shuffle the data perm = np. arange ( self. _ num _ examples ) np. random. shuffle ( perm )...
[ -1.0903830528259277, -0.25205135345458984, 0.5239245295524597, -0.056773748248815536, -0.9277694225311279, 0.05098968744277954, 0.15807341039180756, -0.12405045330524445, 0.34723159670829773, -0.5030050873756409, -0.13879984617233276, 0.745959997177124, 0.2310974895954132, 0.16870857775211...
def diagnostic _ table ( self, num _ years ) : assert num _ years > = 1 max _ num _ years = self. _ _ policy. end _ year - self. _ _ policy. current _ year + 1 assert num _ years < = max _ num _ years diag _ variables = dist _ variables + ['surtax'] calc = copy. deepcopy ( self ) tlist = list ( ) for iyr in range ( 1, ...
[ 0.04302605614066124, 0.3670329749584198, 0.7186082005500793, 0.3622322678565979, -0.3244710862636566, 0.33146071434020996, -0.0035987920127809048, 0.3693312406539917, -0.028916018083691597, -0.16631560027599335, 0.5856368541717529, 0.23521004617214203, 0.7175012230873108, -0.25339081883430...
def get _ event ( self, originator _ id : uuid, position : int ) - > tevent : sequenced _ item = self. record _ manager. get _ item ( sequence _ id = originator _ id, position = position ) return self. event _ mapper. event _ from _ item ( sequenced _ item )
[ -0.15125839412212372, -0.5261794328689575, 0.2976464331150055, -0.25475648045539856, -0.20133855938911438, -0.6100981831550598, -0.7111930251121521, 0.8571686744689941, 0.17474281787872314, 0.23788924515247345, -0.11253472417593002, 0.757649838924408, 0.33741775155067444, -1.68400144577026...
def load _ data ( path = ".. / data / cora / ", dataset = " cora " ) : print ('loading { } dataset... '. format ( dataset ) ) idx _ features _ labels = np. genfromtxt ( " { } { }. content ". format ( path, dataset ), dtype = np. dtype ( str ) ) features = sp. csr _ matrix ( idx _ features _ labels [ :, 1 : - 1 ], dtype...
[ -0.189314067363739, 0.45786038041114807, 0.6204818487167358, -0.6150780320167542, -0.338641881942749, -0.418117493391037, 0.49145784974098206, 0.30752769112586975, 0.6243383288383484, 0.365285187959671, 0.46380171179771423, 0.9032524824142456, 0.37165236473083496, -1.1259403228759766, 0....
def compile _ file ( self, filepath, write = true, package = false, * args, * * kwargs ) : set _ ext = false if write is false : destpath = none elif write is true : destpath = filepath set _ ext = true elif os. path. splitext ( write ) [ 1 ] : # write is a file ; it is the destination filepath destpath = write else : ...
[ -0.5565573573112488, -0.3163500428199768, 0.72154301404953, 0.40620318055152893, -0.1294226050376892, 0.31340286135673523, 0.9370619654655457, 0.3618130087852478, -0.4384523332118988, 0.4854089021682739, 0.3564472794532776, -0.5598243474960327, -0.2617795169353485, 0.2515011429786682, -0...
def normalize _ phone _ number ( phone ) : return re. sub ( " [ ^ \ d \ + ] ", " ", str ( phone ) )
[ 0.027878860011696815, -0.1114756166934967, 0.5274747014045715, 0.5370118021965027, -1.0361496210098267, 0.8857753872871399, -0.09836256504058838, 0.8981166481971741, 1.0862938165664673, -1.0571725368499756, -0.10744167864322662, -1.0157536268234253, -0.25817611813545227, -0.587593734264373...
def entry _ point _ manager ( args ) : app = luchador _ rl. env. remote. create _ manager _ app ( ) _ run _ server ( app, args. port )
[ 0.2131701111793518, -0.697230339050293, 0.5541173219680786, 0.6835460662841797, 0.9239898324012756, 0.7436354160308838, -0.4442025125026703, 0.20976735651493073, -0.5415634512901306, -0.5492721199989319, 0.2019154131412506, 0.5862521529197693, -0.17695727944374084, 0.6403934359550476, 0....
def add _ bot ( name : str, account : int, user : str ) : assert not utility. check _ empty _ string ( name ), " bot name cannot be empty or blank spaces " utility. is _ exist ( bot, exp _ message = " bot already exists! ", name _ _ iexact = name, account = account, status = true ) return bot ( name = name, account = a...
[ 0.3004053831100464, 0.3907364308834076, 0.6409003138542175, 0.43930667638778687, -0.20400312542915344, 1.3088215589523315, -0.4372113049030304, -0.25814124941825867, 0.2891538441181183, 0.4422060549259186, -0.7340292930603027, -0.21273057162761688, -0.9549856185913086, -0.5384182333946228,...
def best _ category _ item _ in _ bundle ( self, items : bundle, category _ index : int ) - > item : return self. sub _ agents [ category _ index ]. best _ item _ in _ bundle ( items )
[ 0.2433379888534546, -0.6878756880760193, 0.3311805725097656, 0.6047199368476868, 0.2620534598827362, 0.2871161699295044, -0.2351168543100357, -0.16719883680343628, -0.7743678092956543, -0.343167245388031, 0.9324764609336853, 0.34478941559791565, 0.6821190714836121, -0.6587321758270264, -...
def do _ svm _ sent _ pos _ ths ( data _ list, utterance _ unprocessed, lex, test _ utterance, file, column, matrix, mode ) : # make vector from the utterance of the test set vec _ test _ utterance = [ ] # vector of the utterance from the test _ set for line in open ( lex ) : line _ split = line. split ( ) n = 0 m = 0 ...
[ 0.5101538896560669, -0.22750791907310486, 0.886023759841919, -0.46788763999938965, -0.21838219463825226, -0.1117841899394989, 0.6832484602928162, 0.3769061267375946, 0.08284346759319305, 0.8226273059844971, -0.5420317053794861, 0.09033753722906113, -0.43449077010154724, -0.0354873612523078...
def test _ get _ existing _ client _ secret ( self ) : key = self. lti _ consumer. consumer _ key secret = signaturevalidator ( self. lti _ consumer ). get _ client _ secret ( key, none ) assert secret = = self. lti _ consumer. consumer _ secret
[ 1.3576195240020752, -0.4824482500553131, 0.3191663920879364, 0.20955093204975128, 1.0472365617752075, -0.4498775899410248, -0.310468465089798, -1.059014916419983, -0.8038320541381836, -0.16663706302642822, -1.337868332862854, 0.12901194393634796, -0.11128725111484528, -0.24742789566516876,...
def _ remove _ pr _ todo _ labels ( self, owner, repo, pr _ num ) : if not self. _ update _ remote : return url = " % s / repos / % s / % s / issues / % s / labels " % ( self. _ api _ url, owner, repo, pr _ num ) # first get a list of all labels data = self. get _ all _ pages ( url ) if not data : return # we could fil...
[ -0.49547576904296875, -0.4246024489402771, 0.6192147731781006, -0.6754478216171265, 0.2601017653942108, 0.17370188236236572, -0.9585785865783691, 0.32403120398521423, 0.48099008202552795, 0.506926953792572, -0.0811217799782753, -0.11443734169006348, -0.8854693174362183, -0.1522120982408523...
def run ( self, line, help _ disp = false ) : if help _ disp : self. parser. print _ help ( ) return returncodes. success try : ( options, args ) = self. rdmc. rdmc _ parse _ arglist ( self, line ) except ( invalidcommandlineerroropts, systemexit ) : if ( " - h " in line ) or ( " - - help " in line ) : return returncod...
[ -0.5740477442741394, -0.2843571603298187, 0.8366551399230957, 0.3412201702594757, 0.672099232673645, -0.1945466846227646, 0.38028484582901, -0.0441216342151165, 0.1314390003681183, 0.1117902398109436, -0.28252312541007996, 0.7953382134437561, -1.1968252658843994, 0.6715896725654602, -0.3...
def cast ( * args ) : return _ itksubtractconstantfromimagefilterpython. itksubtractconstantfromimagefilterius3dius3 _ superclass _ cast ( * args )
[ 0.7615028619766235, 0.00832731369882822, 0.4686376750469208, 0.02807876095175743, -0.3268209993839264, 1.107621192932129, -0.22773322463035583, 0.3812168836593628, 0.7666589021682739, 0.11438196897506714, -0.3948214054107666, 0.07982412725687027, -0.36404573917388916, -0.33527737855911255,...
def error _ popup _ sentence ( self ) : messagebox. showwarning ( " warning ", " enter sentence " )
[ 0.7619384527206421, 0.1729711890220642, 0.24629554152488708, -0.15832363069057465, -0.3928243815898895, -0.5599067211151123, 0.034334488213062286, 0.5200814604759216, -0.3088543117046356, 1.269531488418579, 0.4410429298877716, 0.46987348794937134, -0.39241835474967957, 0.2444223314523697, ...
def mean _ history ( history, history ) : for combination in [ " m1 ", " m2 ", " m3 ", " m1m2 ", " m2m3 ", " m1m3 ", " m1m2m3 " ] : for metric in [ " elbo ", " image1 _ bce ", " image1 _ rmse ", " image2 _ bce ", " image2 _ rmse ", " speech _ mse ", " speech _ rmse ", " label _ ce ", " label _ acc " ] : try : history [...
[ -0.541828453540802, 0.024498306214809418, 0.8449482917785645, 0.2541087865829468, 0.5672338008880615, 0.04988836497068405, 0.6981602311134338, 0.17690682411193848, 0.26701620221138, 1.2493329048156738, 0.25056421756744385, 0.342692494392395, 0.36229977011680603, 0.396858274936676, 0.9132...
def set _ body ( self, body ) : self. body = body
[ -0.666864275932312, 0.09662545472383499, 0.20163065195083618, -0.31006285548210144, 0.9109140634536743, 0.6264839768409729, -0.8651742339134216, -0.712041437625885, 0.5737184286117554, -0.06021175533533096, -1.1883010864257812, 0.6391505002975464, -0.5671016573905945, 1.3022570610046387, ...
def timer _ reset ( self, * args, * * kwargs ) : self. _ timer. stop ( ) self. _ timer. setinterval ( self. _ interval ) logger. info ( " timer reset : " ) self. _ timer. start ( )
[ -0.6611970067024231, -0.006115698721259832, 0.19272105395793915, -0.32007911801338196, 0.7604312896728516, -0.08967187255620956, 0.21613390743732452, 0.14555354416370392, -1.4399181604385376, 0.4516454339027405, -0.13879577815532684, 1.0645831823349, -0.780245840549469, -0.5454280972480774...
def save ( self, * args, * * kwargs ) : self. asset _ type = " bankaccount " super ( bankaccount, self ). save ( * args, * * kwargs )
[ 0.01747123897075653, 0.1478961855173111, 0.4762252867221832, -0.06020209193229675, 1.2111533880233765, -0.1617240309715271, 0.9537549018859863, -0.19880272448062897, -0.23683151602745056, 0.2064783275127411, -0.5304993987083435, 0.7715775966644287, -0.5619632601737976, 0.5275712609291077, ...
def get _ rectified _ resized ( left _ im, right _ im, dim, leftmapx, leftmapy, rightmapx, rightmapy ) : fixedleft = cv2. remap ( left _ im, leftmapx, leftmapy, cv2. inter _ linear ) fixedright = cv2. remap ( right _ im, rightmapx, rightmapy, cv2. inter _ linear ) # resize fixedleft = cv2. resize ( fixedleft, dim ) fix...
[ 0.19889038801193237, -0.7083597183227539, 0.8701984882354736, 0.08550307154655457, 0.19985628128051758, -0.37332937121391296, -0.6663363575935364, -0.28636425733566284, 0.5742155909538269, 0.07657407969236374, -0.48574578762054443, -0.2445898801088333, -0.5744852423667908, 0.33064296841621...
def setup ( hass : homeassistant, config : configtype ) - > bool : conf = config [ domain ] net _ id = conf [ conf _ device ] ip _ address = conf. get ( conf _ ip _ address ) port = conf [ conf _ port ] client = pyads. connection ( net _ id, port, ip _ address ) try : ads = adshub ( client ) except pyads. adserror : _ ...
[ -0.4658123254776001, 0.5248536467552185, 0.7242644429206848, -0.5881412625312805, 0.3208218216896057, 0.12397614866495132, 0.0393252857029438, 0.021800490096211433, 0.1578415185213089, 0.14583690464496613, -0.04346148669719696, -0.04766533523797989, 0.4435359239578247, 0.2989361584186554, ...
def x2 _ chain ( self, args ) : # extract parameters kwargs _ lens, kwargs _ source, kwargs _ lens _ light, kwargs _ ps = self. param. getparams ( args ) # generate image and computes likelihood self. multiband. reset _ point _ source _ cache ( ) logl = 0 if self. _ check _ bounds : penalty, bound _ hit = self. check _...
[ -0.345993310213089, -0.48708993196487427, 0.8047902584075928, -0.04931652918457985, -0.16128987073898315, -0.08825219422578812, -0.30095916986465454, -0.4341081380844116, -0.12440694123506546, 0.25842586159706116, -0.4694821536540985, 0.5205066204071045, 0.10867372155189514, 0.724041938781...
def _ _ collect _ help _ text ( self, hierarchy, text, level = 0 ) : if'this'in hierarchy : help _ str = hierarchy ['this'] ( ). help ( ) help _ str = textwrap. dedent ( help _ str ) for line in help _ str. split ('\ n') : text + ='' * level text + = line text + ='\ n'if len ( hierarchy ) > 1 : text + ='' * level +'* *...
[ 0.31326451897621155, -0.5766536593437195, 0.8443552851676941, -0.13125403225421906, -0.46788743138313293, 0.39337214827537537, -0.2876376211643219, -0.48275524377822876, -0.7458927035331726, 0.7756306529045105, 0.05790184810757637, 0.30680063366889954, 0.10593993961811066, 0.77076780796051...
def likelihood ( self, parameters ) : if not self. _ fallback : try : processed _ data = self. _ amplitude _ function ( self. _ data [ " data " ], parameters ) processed _ accepted = self. _ amplitude _ function ( self. _ accepted [ " data " ], parameters ) return - ( numpy. sum ( self. _ data [ " qfactor " ] * numpy. ...
[ 0.4811888337135315, -0.22145357728004456, 0.8786782622337341, -0.8575436472892761, -0.43135395646095276, 0.08711449056863785, -0.16611376404762268, -0.5886911749839783, 0.6028450131416321, -0.11373768746852875, -0.024603111669421196, 0.7712332606315613, -0.9899345636367798, 0.2158344537019...
def writeoutput ( trackid, trackdias, orbit, dias ) : # each d in dias is [ diaid, mjd, ssmid ] tds = map ( lambda x : dias [ x ], trackdias ) mjds = map ( lambda x : x [ 1 ], tds ) # print tds ssmids = map ( lambda x : x [ 2 ], tds ) if len ( set ( ssmids ) ) > 1 : ssmid = - 1 else : ssmid = ssmids [ 0 ] dt = max ( mj...
[ -0.7992408275604248, -0.7462202906608582, 0.609586775302887, -0.8115312457084656, -0.017931802198290825, 0.1742226928472519, 0.07890774309635162, -0.2445761263370514, -0.3222579061985016, -0.15132206678390503, 0.39184120297431946, 0.5704531669616699, -0.0035820682533085346, 0.0678069293498...
def _ _ init _ _ ( self, args, take _ amount = none, take _ amount _ seed = 13, add _ svhn _ extra = false, aux _ data _ filename = none, add _ aux _ labels = false, aux _ take _ amount = none, train = false, * * kwargs ) : dataset = get _ dataset ( args ) if not dataset. custom _ class : if train : data _ path = os. p...
[ 0.0010948405833914876, 0.17549572885036469, 0.8818632364273071, -0.8258686065673828, -0.30405253171920776, -0.3489745557308197, 0.2424236536026001, 0.11776691675186157, 0.7622589468955994, -0.5353248715400696, 0.1993776112794876, 0.34102699160575867, 0.7102729082107544, 0.5887011885643005,...
def clean ( self ) : if ( self. cleaned _ data ['password']! = self. cleaned _ data ['password _ repeat'] ) : raise validationerror ('niepoprawne hasło')
[ 0.17304618656635284, 0.49491193890571594, 0.5535926818847656, 0.2762375771999359, -0.40468335151672363, 1.0092674493789673, 0.2911889851093292, 0.03854209929704666, -0.31682440638542175, 0.3766959607601166, -0.6696669459342957, 0.018880905583500862, -0.023167172446846962, 0.582968413829803...
def test _ list _ decimal _ min _ length _ 3 _ nistxml _ sv _ iv _ list _ decimal _ min _ length _ 4 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - minlength - 4. xsd ", instance = " nistdata / list / ...
[ -0.05811409652233124, -0.29264816641807556, 0.4437312185764313, 0.18452571332454681, -0.11551779508590698, -0.23623307049274445, -0.5390817523002625, -0.18568097054958344, 1.077520489692688, -0.4189217686653137, -1.0406166315078735, -0.7069241404533386, -0.6107937097549438, -0.050370056182...
def log _ time _ stamp ( self, turn, file _ name, class _ name, function _ name, state, description, date _ stamp = none, time _ stamp = none ) : # check the state parameter if has a valid type or value if not isinstance ( state, ( str, int ) ) : raise attributeerror ( self. _ error _ message ) if isinstance ( state, s...
[ -0.35269099473953247, -0.2722448706626892, 0.8488139510154724, -0.34357714653015137, 0.5628446936607361, -0.03356466069817543, -0.6115335822105408, -0.13194748759269714, 0.14250944554805756, -0.22398708760738373, 0.41478782892227173, 0.648726224899292, 0.4381229281425476, 0.842060446739196...
def _ dict _ factory ( cursor, row ) : d = { } for idx, col in enumerate ( cursor. description ) : d [ col [ 0 ] ] = row [ idx ] return d
[ -0.0854167714715004, 0.35193443298339844, 0.20022113621234894, -0.971052885055542, -0.9738475680351257, -0.949897289276123, -0.4475994110107422, 0.046769630163908005, -0.851356029510498, 0.1729961782693863, 0.8248195648193359, -0.2303398847579956, 1.1525847911834717, -0.06307651102542877, ...