text
stringlengths
25
2.19k
embedding
listlengths
768
768
def getsubgraph ( * args ) : return _ snap. getsubgraph ( * args )
[ -0.07238246500492096, 1.1732878684997559, 0.615346372127533, 1.4583185911178589, -0.1398489624261856, -0.5717344284057617, 0.7807500958442688, -0.1615837663412094, -0.1523382067680359, -0.7845025658607483, -1.7079554796218872, 0.5014643669128418, -0.6748027801513672, -0.4821620285511017, ...
def line _ profile ( self, direction, xrange = none, yrange = none, plot _ data = false, ax = none, return _ data1d = false, * * kwargs ) : # having import here avoids circular import from py4xs. slnxs import data1d if xrange is none : xrange = [ self. xc [ 0 ], self. xc [ - 1 ] ] if yrange is none : yrange = [ self. y...
[ 0.38335275650024414, 0.33427906036376953, 0.6787610650062561, -0.11639362573623657, -0.12486670911312103, 0.3729473650455475, -0.19551028311252594, -0.5681069493293762, -0.21663649380207062, -0.6834267377853394, -0.08999496698379517, 0.5114068388938904, -0.3525906205177307, -0.449284136295...
def asdict ( self ) : data = { } if self. id : data ['id'] = self. id if self. name : data ['name'] = self. name if self. screen _ name : data ['screen _ name'] = self. screen _ name if self. location : data ['location'] = self. location if self. description : data ['description'] = self. description if self. default _...
[ -0.6235077381134033, -0.5038674473762512, 0.9026263356208801, -0.3968035578727722, -0.4633944630622864, 0.09973165392875671, -0.3053717613220215, -1.234544277191162, 0.305416077375412, -0.23520639538764954, -1.3138477802276611, -0.1237950474023819, 0.25573214888572693, 0.7755481004714966, ...
def next _ move _ available ( body, game _ blocks ) : def next _ move ( pos ) : return int ( pos [ 0 ] ), int ( pos [ 1 ] ) + 1 positions = [ b. pos for b in game _ blocks ] for piece in body : # if positions match if next _ move ( piece ) in positions : return false max _ y _ piece = max ( body, key = lambda pos : pos...
[ -0.5629872679710388, -0.23501530289649963, 0.6344355940818787, 0.30546826124191284, -0.9068742394447327, -0.1859302669763565, -0.23114389181137085, -0.36087265610694885, -0.09132461994886398, 0.2358490377664566, -0.5816683173179626, -0.4669041335582733, -0.4903627932071686, 0.4951503872871...
def saveedgelistnet ( * args ) : return _ snap. saveedgelistnet ( * args )
[ -1.7153953313827515, -0.03653326258063316, 0.49061718583106995, 0.2192092090845108, 1.139999270439148, -0.019554466009140015, -0.013692736625671387, -0.6219099760055542, 0.693997859954834, -0.04682368412613869, -2.4410064220428467, -1.5518732070922852, -0.14591747522354126, 1.1374322175979...
def compare _ changed _ files ( ) : git _ files _ list = sys. stdin. readlines ( ) git _ files _ list = [ line. strip ( ) for line in git _ files _ list ] # sort the two lists git _ files _ list. sort ( ) rb _ files _ list. sort ( ) # check that the list of changed files match if git _ files _ list = = rb _ files _ lis...
[ 0.35301199555397034, -0.18632721900939941, 0.7871682047843933, -0.035495251417160034, 0.05954085290431976, 0.6913316249847412, -0.16187268495559692, 0.18993403017520905, -0.3565724194049835, 0.19100748002529144, 0.12714584171772003, 0.6226338148117065, -1.038111686706543, 1.125101685523986...
def build _ item _ response ( spotify, user, payload ) : # noqa : c901 media _ content _ type = payload [ " media _ content _ type " ] media _ content _ id = payload [ " media _ content _ id " ] title = none image = none if media _ content _ type = = " current _ user _ playlists " : media = spotify. current _ user _ pl...
[ -0.548954963684082, -1.261279582977295, 0.591602623462677, -0.0777939110994339, 0.1009502187371254, -0.13937106728553772, -0.002842301968485117, -0.6025840640068054, 0.012803220190107822, 0.16392134130001068, -0.2446291148662567, 0.017926905304193497, -0.18479184806346893, -0.5364516973495...
def test _ getpaytopubkeyhashscript ( self ) : pubkeyhash ='abc'desiredscript = " dup hash160 < abc > equalverify checksig " assert smartcontractscripts. getpaytopubkeyhashscript ( pubkeyhash ) = = desiredscript
[ 0.9360252022743225, 0.08674859255552292, 0.2693057358264923, 0.5899710059165955, 0.07741738855838776, 0.10029685497283936, -0.6995094418525696, -0.31494638323783875, 0.36088377237319946, -0.37914609909057617, -0.7839479446411133, 1.0575346946716309, -0.34829849004745483, -0.077534206211566...
def isnode ( self, * args ) : return _ snap. tdirnet _ isnode ( self, * args )
[ -1.3204768896102905, 0.7619062066078186, 0.17747466266155243, 0.3568439185619354, 1.161063551902771, -0.2330964356660843, 0.274257093667984, -0.5800027847290039, 0.4603460729122162, 0.7676143646240234, -0.25813522934913635, -1.1759206056594849, -0.3323734402656555, 0.08949744701385498, -...
def validate _ srv _ port ( port ) : if port > 65535 or port < 0 : raise validationerror ( " srv port must be within 0 and 65535. " " see rfc 1035 " )
[ -0.5360642075538635, 0.2636917233467102, 0.442290723323822, -0.16518768668174744, -0.6933923959732056, 1.2701442241668701, 0.47796380519866943, -0.6222435832023621, -0.343036413192749, -0.13610166311264038, -0.176194965839386, -0.16640610992908478, -0.522339940071106, 0.07530005276203156, ...
def _ createfootikhierarchy ( self ) : ik _ main _ ctl = mc. circle ( n = " { } _ { } _ footik _ ctl _ { } ". format ( self. side, self. name, self. instance _ num ), r = 1 ) [ 0 ] ik _ main _ offset _ grp = mc. group ( ik _ main _ ctl, n = ik _ main _ ctl. replace ( " ctl ", " grp " ) ) ik _ offset _ ctl = mc. circle ...
[ -0.6833228468894958, 0.5986020565032959, 0.7774280309677124, -0.34716200828552246, -0.2505691647529602, 0.0286747794598341, 1.3410546779632568, -0.2796288728713989, -0.632209300994873, -0.16454489529132843, -0.13313010334968567, -0.6726646423339844, -0.0720234140753746, 0.6289311051368713,...
def getadjacencyanddegreematrix ( thresh ) : # correlation matrix correlation = np. zeros ( ( numsites, numsites ) ) corr = df. loc [ :, df. columns [ 1 ] : ]. corr ( ) for i in range ( 1, len ( lat _ long ) ) : for j in range ( 1, len ( lat _ long ) ) : correlation [ i - 1 ] [ j - 1 ] = corr [ lat _ long [ i ] ] [ lat...
[ -0.10898023098707199, -0.14764976501464844, 0.4404096007347107, -0.8189195990562439, 0.2013978511095047, 0.2938186824321747, 1.4385766983032227, -0.05266939103603363, 0.35286200046539307, 0.20079770684242249, 1.1763676404953003, 0.7355051040649414, 0.36790212988853455, -0.05274148657917976...
def compute _ variance ( inargs ) : # some preliminaries dx = float ( get _ config ( inargs,'domain ','dx') ) # make the pp netcdf file rootgroup = create _ netcdf ( inargs ) rootgroup. variables ['cond _ m _ hist'] [ : ] = 0 # load the raw _ data if inargs. var = ='m': # load data for mass flux calculation raw _ data ...
[ -0.37911292910575867, 0.3700963854789734, 0.8137444257736206, -0.18075494468212128, 0.18822012841701508, 0.011755102314054966, 0.4639317989349365, 0.4107714593410492, -0.7098825573921204, 0.011669274419546127, 0.1097603291273117, 0.7891865968704224, -0.14998763799667358, 0.8730944991111755...
def add ( self, * args ) : return _ snap. tinttrv _ add ( self, * args )
[ -1.8676948547363281, -0.7887183427810669, 0.3189224302768707, -0.28782588243484497, 0.3115455210208893, 0.5868415236473083, 0.6074467301368713, 0.17197835445404053, -0.19427184760570526, -0.4984693229198456, -0.015775762498378754, 0.36354920268058777, -0.9214767217636108, 0.371510535478591...
def get _ missing _ scores ( type2score _ 1, type2score _ 2 ) : missing _ types = set ( ) types = set ( type2score _ 1. keys ( ) ). union ( set ( type2score _ 2. keys ( ) ) ) for t in types : if t not in type2score _ 1 : type2score _ 1 [ t ] = type2score _ 2 [ t ] missing _ types. add ( t ) elif t not in type2score _ 2...
[ -0.6966691017150879, -0.6308313608169556, 0.9178548455238342, -0.1717391163110733, 0.9375190734863281, 0.7510046362876892, -0.15748077630996704, -0.956743597984314, -1.4751150608062744, 1.2799800634384155, -0.781428873538971, 0.6945169568061829, -0.304951548576355, 0.41656026244163513, 1...
def ping ( self ) - > " webhookevent " : return self. _ client. webhook. ping ( self. id )
[ 0.43269088864326477, 0.16725656390190125, 0.4285579323768616, 0.6043456792831421, 1.1206443309783936, -0.09676233679056168, -0.4278965890407562, 0.37018319964408875, 0.34065020084381104, 0.6153956055641174, -0.12807132303714752, 1.2076873779296875, -0.9817965030670166, 0.05071554332971573,...
def add _ trait ( self, trait _ name ) : trait = trait ( trait _ name ) person _ row = personrow ( self. name ) if person _ row is none : print ( " could not find " + self. name + " in the persons database. " ) return # print ( " person row is for " + self. name ) f = person _ row. friendliness d = person _ row. domina...
[ -0.03561066836118698, 0.026052895933389664, 0.5686957240104675, -0.25047552585601807, 0.044138070195913315, -0.20403286814689636, 0.48754552006721497, 0.5420833826065063, 0.09375791996717453, -0.7920528054237366, 0.056174881756305695, -0.6455672383308411, 0.1261470764875412, 0.234540194272...
def test _ basic ( push _ channel ) : msgs = [ { " foo " : " bar " }, { " bar " : " baz " }, { " baz " : " qux ", " list " : [ 1, 2, 3 ] }, ] for msg in msgs : ret = push _ channel. send ( dict ( msg ), timeout = 5, tries = 1 ) assert ret [ " load " ] = = msg
[ -0.4110836982727051, 0.539923906326294, 0.46966663002967834, -0.3841269612312317, 1.0276618003845215, -0.18104451894760132, -1.293381929397583, -1.2084500789642334, -0.6765155792236328, 0.1886020004749298, -0.7731220722198486, -0.024191467091441154, -0.7870449423789978, 0.410397469997406, ...
def check _ sts _ token ( self, profile ) : # don't check for creds if profile is blank if not profile : return false parser = safeconfigparser ( ) parser. read ( self. creds _ file ) if not os. path. exists ( self. creds _ dir ) : self. logger. info ( " aws credentials path does not exist. not checking. " ) return fal...
[ -0.22170908749103546, -0.25047197937965393, 0.9570099115371704, -0.14989541471004486, 0.5158840417861938, 0.7764736413955688, -0.7966073155403137, -0.4289565980434418, -0.22491267323493958, -0.10937954485416412, -0.44761455059051514, -0.08133912831544876, 0.07992838323116302, -0.4653722941...
def get _ tex _ source ( self, url, driver = none ) : if not os. path. exists ( url ) : path = download _ file ( url = url, dirname = gummy _ dir ) ext = ". " + path. split ( ". " ) [ - 1 ] if is _ compressed ( ext ) : extracted _ file _ paths = extract _ from _ compressed ( path, ext = ". tex ", dirname = gummy _ dir ...
[ -0.25342610478401184, -0.11815617978572845, 0.7061046957969666, 0.045521777123212814, -0.6769046783447266, -1.0494681596755981, 0.3736734390258789, 0.6441386342048645, 0.21262677013874054, 0.058606650680303574, -0.6938693523406982, -0.9081698060035706, -0.7796977162361145, -0.4036312699317...
def getshortpath _ pngraph ( * args ) : return _ snap. getshortpath _ pngraph ( * args )
[ -0.2939992845058441, 0.6434284448623657, 0.2364780455827713, 0.4475666582584381, -0.19447393715381622, 0.04171615466475487, 0.6861839890480042, -0.8045598268508911, -0.08251669257879257, -0.7635185122489929, -0.8226356506347656, 0.6471801996231079, -0.10999123752117157, -0.2525558471679687...
def marginal _ expectation ( distribution : tensor, axis : axeslike, integrals : union [ callable, sequence [ callable ] ] = polynomial, * args, * * kwargs ) : axis = axis _ from _ dim ( axis, distribution. ndim ) if callable ( integrals ) : integrals = [ integrals ] if len ( integrals ) = = 1 : integrals = [ integrals...
[ 0.6073508262634277, -0.22186167538166046, 0.8205302357673645, -0.4228038787841797, -0.39215096831321716, 0.6693781614303589, 0.35424304008483887, 0.1779467612504959, -0.3136349618434906, 0.3033786118030548, 0.2980521619319916, 0.5289740562438965, 0.08627396821975708, -0.2161700427532196, ...
def updatetable ( self, data _ to _ view ) : data _ to _ view = data _ to _ view [ ['id ','title ','genres ','score ','overview ','release _ date'] ] self. dataview = data _ to _ view. copy ( ) no _ chunks = math. ceil ( len ( data _ to _ view ) / 5 ) data _ to _ view = np. array _ split ( data _ to _ view, no _ chunks...
[ -1.0058101415634155, -0.32132360339164734, 0.7888159155845642, -0.7359110116958618, -0.5949927568435669, 0.3431243300437927, 0.2336210310459137, -0.00022130853903945535, -0.6046162843704224, 0.32997927069664, 0.4407089352607727, 0.8966079950332642, -0.16138198971748352, 0.26815757155418396...
def get _ split _ idx ( self, window _ idx ) : return self. splits [ window _ idx ]
[ -1.4565516710281372, -0.04617497697472572, 0.03250966966152191, -0.4110718369483948, -0.5593637228012085, -0.22044989466667175, 1.0972638130187988, -0.32563450932502747, 0.7966185808181763, -0.2263154238462448, 0.22377897799015045, 0.8537450432777405, -0.8275803923606873, -0.54396903514862...
def _ _ lt _ _ ( self, * args ) : return _ snap. tcncomv _ _ _ lt _ _ ( self, * args )
[ 0.4844975173473358, -0.17554433643817902, 0.08759855479001999, -1.260347604751587, 1.009211540222168, -0.7545526027679443, -0.02008632943034172, -0.8096376061439514, -0.5519005060195923, -0.9277533292770386, -0.8066816926002502, -1.1976836919784546, -0.15074247121810913, 1.3544952869415283...
def extract _ features ( config, signals, features, fs, meta _ data ) : # ( ndata, _ ) = np. shape ( signals ) ndata = np. shape ( signals ) [ 0 ] allfeatures = np. zeros ( ( ndata, ), dtype = object ) for i in range ( np. shape ( signals ) [ 0 ] ) : signature = signals [ i ] #... preprocessing # if config. preprocessi...
[ -0.3895328938961029, -0.11262170970439911, 0.5660807490348816, 0.8220615386962891, 0.27814409136772156, -0.6090744137763977, 0.09623850882053375, 1.1250110864639282, 0.0867479220032692, 0.1232042908668518, -0.7034761905670166, -0.09140229225158691, -0.007715824991464615, 0.8824931979179382...
def handleselectedhero ( self ) : if not self. attackchoice : self. hero _ bottom. selected = false self. hero _ top. selected = false
[ -0.2546260356903076, -0.5144630074501038, 0.3817382752895355, 0.9079241156578064, 1.184160828590393, 0.1429768204689026, 0.8762633204460144, 0.18863917887210846, 0.015016181394457817, -0.04451270401477814, -0.22254446148872375, 0.8310875296592712, -0.29154303669929504, 0.1629689484834671, ...
def upload _ cohort _ all _ samples ( paths _ to _ samples _ info, google _ bucket _ id, name, namespace, workspace, blacklist = [ ] ) : all _ samples = get _ samples _ multiple _ batches ( paths _ to _ samples _ info, google _ bucket _ id ) df = all _ samples [ ['entity : sample _ id'] ]. rename ( columns = {'entity :...
[ 0.016107682138681412, -0.6353850364685059, 0.6129284501075745, -0.2441323846578598, 0.03490350395441055, -0.19070570170879364, -0.043293312191963196, -0.21565285325050354, -0.48892542719841003, 0.9653671383857727, 0.11833914369344711, 0.3267021179199219, 0.08320807665586472, 0.345898747444...
def normalize _ image _ uint8 ( img ) : # cast image type to float img = np. array ( img, dtype = np. float32 ) # normalize dynamic range to [ 0, 255 ] img - = img. min ( ) img = img * 255. / img. max ( ) # cast type img = img. astype ( np. uint8 ) return img
[ -0.8044677972793579, -0.6882011294364929, 0.5255475640296936, 0.05331769585609436, 0.36636582016944885, 0.2745330035686493, 0.558503270149231, -0.5169188976287842, 1.128172516822815, 0.15676182508468628, 0.80923992395401, 0.3634115159511566, -0.646022617816925, 0.7838779091835022, 0.6293...
def getclustcf _ pneanet ( * args ) : return _ snap. getclustcf _ pneanet ( * args )
[ -0.6304367184638977, -0.058284856379032135, 0.4055127799510956, 0.3040721118450165, 0.45125308632850647, -0.18375933170318604, 0.2728827893733978, -0.3385094404220581, -1.4120256900787354, -0.5739582180976868, -0.39854374527931213, -0.006967051886022091, -0.4185529053211212, -0.75436276197...
def zeros _ like ( * symbols ) : return full _ like ( symbols, 0 )
[ -0.09028150886297226, 0.22052548825740814, 0.08852870762348175, -0.18530042469501495, 0.2565436363220215, -0.09193947166204453, -0.3053382635116577, -0.48098042607307434, -0.17465834319591522, -0.5668507218360901, -0.2967802882194519, 0.5656968951225281, -0.1952352225780487, 0.360511690378...
def smooth ( x, window _ len = 11, window ='hanning') : if x. ndim! = 1 : raise valueerror ( " smooth only accepts 1 dimension arrays. " ) if x. size < window _ len : raise valueerror ( " input vector needs to be bigger than window size. " ) if window _ len < 3 : return x if not window in ['flat ','hanning ','hamming '...
[ 0.324924498796463, -0.017009582370519638, 0.8905283212661743, 0.5961602926254272, -1.09658944606781, 0.40442079305648804, 1.066519021987915, -0.34669679403305054, 0.5700911283493042, 0.7232279777526855, 0.12172301858663559, 1.761291265487671, -0.19685818254947662, 0.46485522389411926, -0...
def validate _ verifier ( self, client _ key, token, verifier, request ) : raise notimplementederror ( " subclasses must implement this function. " )
[ 0.06048882380127907, -0.6636354327201843, 0.3071311414241791, 0.6711337566375732, -0.1379338502883911, 0.4770088493824005, -0.18421633541584015, 0.0005371888400986791, -0.695682168006897, -0.25079235434532166, -0.8925113081932068, 0.43932342529296875, -0.3081178069114685, 0.962475776672363...
def get _ key ( ) : key = 0 while true : print ( " \ t \ t \ t | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | " ) print ('\ t \ t \ t | enter the key number ( 1 - % s ) |'% ( max _ key _ size ) ) print ( " \ t \ t \ t | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -...
[ -0.4103967547416687, 0.03711256384849548, 1.0333250761032104, 0.7130625247955322, -0.6921128034591675, 0.3672938942909241, 0.38056832551956177, -0.6537273526191711, -0.9186218976974487, -0.5445685982704163, 0.4590495526790619, 0.7725632190704346, -1.3386057615280151, 0.34803101420402527, ...
def getnastri ( self, * args ) : return _ snap. tneanetmp _ getnastri ( self, * args )
[ 0.8169415593147278, -0.11094822734594345, -0.008581615053117275, -0.364971399307251, 1.4385287761688232, -0.6913549304008484, -0.14856480062007904, -0.6122627258300781, -0.45389047265052795, -0.17845171689987183, -0.9499666690826416, -1.0276107788085938, -0.39876705408096313, 0.52849984169...
def intattrnameni ( self, * args ) : return _ snap. pneanetmp _ intattrnameni ( self, * args )
[ -1.077676773071289, -0.2375524789094925, 0.2167184054851532, -0.003201069077476859, -0.4073251783847809, 0.5349946022033691, -0.08232919126749039, -0.35088682174682617, -0.8081334829330444, 0.15548761188983917, -0.38369691371917725, -0.37552157044410706, -1.074583649635315, 0.7916607260704...
def get _ parameters ( ) : for key, value in rotate. _ _ dict _ _. items ( ) : if isinstance ( value, property ) : print ( key )
[ -0.3167586326599121, -0.5439435243606567, 0.6541585326194763, -0.13980454206466675, 0.6838043928146362, -0.3938240110874176, -0.13691040873527527, -0.4794415831565857, -0.6611770987510681, 0.6425123810768127, 0.9338558912277222, 0.7986018657684326, -0.8423299789428711, 0.20280127227306366,...
def welcome ( ) : return ( f " available routes : < br / > " f " / api / v1. 0 / precipitation < br / > " f " / api / v1. 0 / stations < br / > " f " / api / v1. 0 / tobs < br / > " f " / api / v1. 0 / start / end " )
[ -0.22737988829612732, -0.536218523979187, 0.6432120203971863, -0.6782118678092957, 0.1515917330980301, -0.045146964490413666, -1.3375946283340454, 0.4610576927661896, -0.6106546521186829, 0.8728726506233215, -0.3367227017879486, 0.5954041481018066, 0.26222315430641174, 0.5622364282608032, ...
def isok ( self, throwexcept = true ) : return _ snap. tundirnet _ isok ( self, throwexcept )
[ -0.5866203308105469, 0.34611234068870544, 0.0404980294406414, 0.010348483920097351, 0.21825148165225983, 0.6980365514755249, 1.0002548694610596, -0.7304457426071167, -0.0773996114730835, 0.9633214473724365, -0.05029783397912979, -0.7603154182434082, -0.5091830492019653, -0.0593761280179023...
def command _ available ( self ) : process = subprocess. popen ( [ self. command, " - - version " ], stdout = subprocess. devnull, stderr = subprocess. stdout, ) process. communicate ( ) return process. returncode = = 0
[ -0.21044357120990753, -0.5169240832328796, 0.9447410702705383, 0.12188408523797989, 0.316895067691803, 0.773482084274292, -0.43514591455459595, 0.7331231236457825, -0.3484354615211487, 0.4381769597530365, 0.13324293494224548, 0.5028020143508911, -0.21690583229064941, 0.9753341674804688, ...
def test _ field _ class ( self ) : self. assertequal ( omnimultiplechoicefield. field _ class,'django. forms. multiplechoicefield')
[ -0.156810462474823, 0.11407238990068436, 0.14558222889900208, 0.24360956251621246, 1.2484487295150757, 1.1324397325515747, -0.5255864262580872, 0.4633827209472656, 0.9081206321716309, -0.6631794571876526, -0.9600868225097656, -0.5425675511360168, 0.10593956708908081, 0.19331637024879456, ...
def insert ( self, key : any, value : any ) - > none : self. _ length + = 1
[ -0.6737518310546875, 1.4293192625045776, 0.36455273628234863, -0.37736234068870544, 0.3117885887622833, 0.7119447588920593, -0.24672524631023407, 0.7806599736213684, -0.6066188216209412, -0.02344074659049511, -1.233278512954712, -0.052616287022829056, -0.6518376469612122, 0.542041778564453...
def tngraph _ new ( * args ) : return _ snap. tngraph _ new ( * args )
[ -0.5234604477882385, 0.20722292363643646, 0.2249559760093689, -0.5234599113464355, -0.7891365885734558, -0.28650572896003723, 0.1340923309326172, -0.27370357513427734, -1.484540343284607, 0.9058899879455566, -0.8585302233695984, -1.3726348876953125, 0.6649871468544006, 0.2851528823375702, ...
def get _ opt _ params ( self, param _ attr ) : p = getattr ( self, param _ attr ) l = [ ] for k, v in p. items ( ) : if k = = " regions " : self. regions = [ string for string in v ] if k = = " threads " : k = " @ " if v = = " threads " : v = str ( config. container _ threads ) if k. startswith ( " _ " ) : k = k [ 1 :...
[ -1.1904851198196411, -0.4312501847743988, 0.6947017312049866, -0.8108577728271484, 0.26815658807754517, -0.17629574239253998, -0.5507158637046814, -0.37184566259384155, -0.06926774233579636, 1.7136719226837158, 0.2572455108165741, 0.5409785509109497, 0.43945854902267456, 0.7603418827056885...
def getnbrnid ( self, * args ) : return _ snap. tngraphmpnodei _ getnbrnid ( self, * args )
[ 0.21352922916412354, 0.6527878642082214, 0.3172917366027832, 0.26794466376304626, 0.9054560661315918, 0.006224623881280422, 0.4442426860332489, -1.0097187757492065, -0.750694215297699, -0.48807644844055176, -0.07045415043830872, 0.39533352851867676, -1.6013025045394897, 1.2753300666809082,...
def mins2secs ( labfile, outfile ) : with open ( labfile,'r') as labfile, open ( outfile,'w') as outfile : output ='' for entry in labfile : entry = entry. split ( ) n = 2 i = 0 while i < 2 : time = entry [ i ]. split ( '.') time = int ( time [ 0 ] ) * 60 + int ( time [ 1 ] ) output =''. join ( ( output, str ( time ) +...
[ 0.5555331110954285, -0.7563037872314453, 0.8944574594497681, -0.588335394859314, -0.29593002796173096, 0.34148555994033813, -0.20448724925518036, -0.9936615824699402, -0.6280425786972046, 0.4917123317718506, -0.7622352838516235, 0.1426582932472229, -0.15318869054317474, 0.2680218517780304,...
def getweightoutedges ( self, * args ) : return _ snap. pneanetmp _ getweightoutedges ( self, * args )
[ -0.42644810676574707, 0.26286596059799194, 0.7220132946968079, 0.2222040444612503, 0.07055800408124924, 0.0313601978123188, 0.03643849864602089, -0.5716395974159241, -0.47347497940063477, 0.17656610906124115, -0.4127384424209595, -0.8253929615020752, -1.5142637491226196, -0.124815352261066...
def tflt _ getprcstr ( * args ) : return _ snap. tflt _ getprcstr ( * args )
[ 0.0988646149635315, 0.09698645025491714, 0.08549768477678299, 0.15312854945659637, 0.50726318359375, 0.5811393857002258, 0.286281555891037, -0.36681392788887024, -1.4875290393829346, -0.45969289541244507, 0.5565571784973145, -1.0053231716156006, -0.6512383222579956, 0.1413583755493164, 0...
def calc _ au ( model, test _ loader, delta = 0. 01 ) : means = [ ] for datum in test _ loader : batch _ data, _ = datum mean, _ = model. encode _ stats ( batch _ data ) means. append ( mean ) means = torch. cat ( means, dim = 0 ) au _ mean = means. mean ( 0, keepdim = true ) # ( batch _ size, nz ) au _ var = means - a...
[ 0.08405600488185883, -0.22553741931915283, 0.6746572256088257, 0.339130699634552, -0.8187932968139648, 0.7262396216392517, 0.9248745441436768, 0.01401480846107006, -0.051423173397779465, 0.5249496102333069, -0.7473289370536804, 0.6367440223693848, 0.2151113897562027, 0.8163845539093018, ...
def _ _ eq _ _ ( self, * args ) : return _ snap. tintintvv _ _ _ eq _ _ ( self, * args )
[ -1.3686110973358154, -0.285617470741272, 0.05186279118061066, 0.2958783805370331, 0.2508488595485687, -0.04484301060438156, 0.3134694993495941, -0.19932328164577484, -0.09348298609256744, 0.27557122707366943, -0.7262681722640991, 0.03550935909152031, -0.8446597456932068, 0.1531237065792083...
def addedge ( self, * args ) : return _ snap. pneanetmp _ addedge ( self, * args )
[ -1.010375738143921, 0.5276758074760437, 0.33082807064056396, 1.0888543128967285, 0.9997361898422241, 1.1091362237930298, -0.3517552614212036, -0.2058572769165039, -0.629461407661438, -1.0520366430282593, 0.18311987817287445, -1.4560331106185913, -1.6133207082748413, 1.3962149620056152, 0...
def watching ( self ) : return self. _ subscriber is not none
[ 1.1990649700164795, -0.10962753742933273, 0.5657779574394226, 0.11281905323266983, 0.4744279980659485, 0.0036853067576885223, -0.9377179145812988, -0.05346877872943878, -0.6306005120277405, -0.9617488384246826, -0.4727132320404053, 1.036578893661499, -0.15350472927093506, 0.557761549949646...
def updatefltfromtablemp ( self, * args ) : return _ snap. ttable _ updatefltfromtablemp ( self, * args )
[ -0.1497223973274231, -0.4078175127506256, 0.5393269062042236, 0.37793830037117004, -0.2701834440231323, -0.16232891380786896, 0.5599398612976074, -0.5019040107727051, -1.1141846179962158, -0.2913248538970947, -0.6416528224945068, -0.528552770614624, -0.589789092540741, 0.6900874376296997, ...
def split _ heads ( x, num _ heads ) : return tf. transpose ( tf _ utils. split _ last _ dimension ( x, num _ heads ), [ 0, 2, 1, 3 ] )
[ -0.7440289258956909, 0.5059845447540283, 0.5475289821624756, -0.023454630747437477, 0.23283813893795013, -0.6833622455596924, 0.21929298341274261, -0.3721500039100647, 0.09804955124855042, 0.7957279682159424, -1.1139543056488037, -0.35529765486717224, -0.38142335414886475, -1.5201637744903...
def addedgeunchecked ( self, * args ) : return _ snap. tngraph _ addedgeunchecked ( self, * args )
[ -0.38227328658103943, 0.8369108438491821, 0.322050005197525, 0.16259415447711945, 0.959722638130188, 0.7837337255477905, 1.386348843574524, 0.5190238356590271, -0.8027293086051941, 0.08531726896762848, -0.1490255743265152, -0.803220808506012, -0.5581134557723999, 0.1247841939330101, -0.0...
def describe _ health _ status ( self, blb _ id, listener _ port, marker = none, max _ keys = none, config = none ) : path = utils. append _ uri ( self. version,'blb ', blb _ id,'backendserver') params = { } params [ b'listenerport'] = listener _ port if marker is not none : params [ b'marker'] = marker if max _ keys i...
[ 0.05429563298821449, -0.15442946553230286, 0.9634334444999695, -0.4073295295238495, 0.7963413000106812, -0.2973026931285858, -0.7228452563285828, -0.01912742108106613, -0.4150350093841553, 0.1522214263677597, -0.3738577961921692, 1.8267300128936768, -0.9594069123268127, 0.22248466312885284...
def resnet101 ( ) : return resnet ( bottleneck, [ 3, 4, 23, 3 ] )
[ 0.07520832121372223, 0.4936772286891937, 0.29243236780166626, 0.5220954418182373, 1.1754388809204102, -0.2826959192752838, -0.4281415641307831, 0.6590147614479065, 0.2541976273059845, -0.3184308111667633, -0.9760324358940125, -0.2790555953979492, -0.219110906124115, -1.8247982263565063, ...
def set _ sqlite _ pragma ( dbapi _ connection, connection _ record ) : # pylint : disable = unused - argument cursor = dbapi _ connection. cursor ( ) cursor. execute ('pragma foreign _ keys = on ;') cursor. close ( )
[ -0.08049530535936356, 0.17333868145942688, 0.5089530348777771, -0.13284677267074585, 0.7651199698448181, 0.29540249705314636, -0.04157126694917679, 0.6379379630088806, -0.7451522350311279, 0.8247811198234558, 1.0419570207595825, -0.12492862343788147, -0.799534797668457, 0.15775837004184723...
def getadddat ( self, * args ) : return _ snap. tstrintprv _ getadddat ( self, * args )
[ -0.12778876721858978, -0.09574316442012787, 0.5223407745361328, -1.6976540088653564, 0.4182044565677643, 0.9843680262565613, -0.27575549483299255, -0.27148324251174927, -1.0310078859329224, -0.9604169130325317, 0.28463122248649597, 0.29829108715057373, -1.06875741481781, 0.0479026958346366...
def run _ select ( self, sql _ command ) : try : self. cursor. execute ( sql _ command ) results = self. cursor. fetchall ( ) return results except : messagebox. showerror ( " error! ", " something went wrong " ) return results
[ -0.309712678194046, 0.002262940164655447, 0.5663900971412659, 0.2757604122161865, 0.08055109530687332, -0.12626412510871887, -0.9703646898269653, -0.8709789514541626, 0.12637697160243988, -0.066749706864357, -0.0977989137172699, -0.05654012784361839, -0.44267478585243225, 0.593945801258087...
def write _ model _ updates _ action _ worker ( self, models : dict [ fqid, model ] ) - > none :
[ -2.052644968032837, -1.729103922843933, 0.13282297551631927, 0.2291887253522873, 0.9900946617126465, 0.2921559512615204, 0.37026023864746094, -0.43122318387031555, -0.15013545751571655, 0.4938255846500397, -1.164332628250122, -0.5246285796165466, -0.19628435373306274, 0.3844572901725769, ...
def getpivotvaln ( self, * args ) : return _ snap. tintintvv _ getpivotvaln ( self, * args )
[ -1.2947522401809692, -0.18003997206687927, 0.36375701427459717, 1.4144161939620972, -0.13424254953861237, -0.33900830149650574, -0.3717021346092224, 0.6463808417320251, -0.15162310004234314, -0.9287316203117371, -0.8236677050590515, 0.4530600905418396, -0.48958444595336914, 0.2528078258037...
def getdat ( self, * args ) : return _ snap. tstrstrprhi _ getdat ( self, * args )
[ 0.0980469211935997, -0.32040396332740784, 0.4511561691761017, -1.2163670063018799, 1.1598631143569946, 1.0039300918579102, 0.04059508442878723, -1.1959422826766968, -1.307532548904419, -0.6167169809341431, -0.15996496379375458, -0.7461259365081787, -1.0639151334762573, -0.36054080724716187...
def _ get _ path ( src, dst, first _ port, final _ port ) : # start with a raw path... if src = = dst : path = [ src ] else : path = _ get _ raw _ path ( src, dst ) if path is none : return none path = [ src ] + path + [ dst ] # now add the ports r = [ ] in _ port = first _ port for s1, s2 in zip ( path [ : - 1 ], path...
[ -0.08503033965826035, 0.585014820098877, 0.6634193658828735, 0.1248883455991745, 0.3632553815841675, -0.5940458178520203, 0.5207559466362, -0.3317950367927551, -0.3375435769557953, 0.4043228328227997, 0.536654531955719, 0.19285236299037933, 0.19614987075328827, -0.588310718536377, 0.4519...
def xml _ path _ completion ( xml _ path ) : return xml _ path if xml _ path. startswith ( " / " ) else os. path. join ( robosuite. models. assets _ root, xml _ path )
[ 1.083778977394104, -0.7635183930397034, 0.42905232310295105, 0.5627530813217163, 0.06328527629375458, 0.7979980707168579, 0.5325115323066711, -0.9171301126480103, 0.04822288453578949, -0.1085444763302803, 1.0693291425704956, -0.9627087116241455, 0.30459463596343994, 0.13780765235424042, ...
def run ( self ) : self. logger. debug ( " run method called " ) self. alive = true # create rrds for itempath in self. _ rrds : rrd = self. _ rrds [ itempath ] if not os. path. isfile ( rrd ['rrdb'] ) : self. _ create ( rrd ) offset = 100 # wait 100 seconds for 1 - wire to update values self. scheduler _ add ('rrdtool...
[ -0.6638414263725281, -0.09585174173116684, 0.605265200138092, 0.1574428826570511, 0.404707133769989, 1.2900886535644531, 0.20633043348789215, -0.12306659668684006, -1.3709304332733154, 0.24794115126132965, -0.5399883389472961, -0.4452698826789856, -0.4720596671104431, 0.7015144228935242, ...
def check _ bracket _ placement ( self ) : brc = 0 for char in self. program : if char = = " [ " : brc = brc + 1 elif char = = " ] " : brc = brc - 1 if brc < 0 : return ( self. flags | 0b0010 ) return ( self. flags | 0b0010 ) if not brc = = 0 else self. flags
[ 0.5607791543006897, -0.06285355985164642, 0.806596040725708, -0.27896058559417725, 0.9120607376098633, 0.25012239813804626, 0.7630773782730103, 0.2792222499847412, 0.07622626423835754, -0.18023383617401123, 0.05578785017132759, 0.7717739343643188, -1.8112047910690308, 1.5192166566848755, ...
def test _ excerpt _ limit _ fields ( self, sphinx _ client ) : ( sphinx _ client. expects _ call ( ). returns _ fake ( ). is _ a _ stub ( ). expects ('buildexcerpts'). with _ args ( ['has sesame foo'],'biscuit ','foo ', {'before _ match':'< i > ','after _ match':'< / i >'} ). returns ( ['has sesame < i > foo < / i >']...
[ 0.5718204379081726, 0.7405505776405334, 0.6755663156509399, -0.5501269698143005, -0.5096758604049683, 0.001421064487658441, 0.12762697041034698, 0.502190351486206, 0.32955917716026306, -0.3456913232803345, -0.8342013955116272, -0.3427150845527649, -0.5904091596603394, -0.7647100687026978, ...
def getrndei ( self, * args ) : return _ snap. pneanet _ getrndei ( self, * args )
[ -0.5583732724189758, 0.7262803912162781, 0.4240269660949707, 0.8580851554870605, 0.7188701629638672, 0.5269017219543457, -0.5233696699142456, -0.9292821884155273, -0.9135704040527344, -1.427903652191162, -1.1262190341949463, -1.3849735260009766, -1.0645062923431396, 1.0659658908843994, -...
def test _ atomic _ base64 _ binary _ min _ length _ 2 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ min _ length _ 3 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - minlength - 3. xsd ...
[ 0.6312037706375122, -0.27164849638938904, 0.43083882331848145, 0.78337562084198, 0.1206258162856102, 0.19191357493400574, -0.4287129044532776, -0.5290729999542236, 0.4087422788143158, 0.2887973487377167, -0.35027119517326355, 0.1409544050693512, -0.8888822197914124, -0.15366102755069733, ...
def merge _ train _ test ( ) : trn = " stl _ 96x96 _ train _ rgb. h5 " tst = " stl _ 96x96 _ test _ rgb. h5 " fname = " stl _ 96x96 _ merged _ rgb. h5 " print " writing to ", fname trn = h5py. file ( trn, " r " ) tst = h5py. file ( tst, " r " ) merged = h5py. file ( fname, " w " ) totals _ trn = trn ['inpts']. shape [ ...
[ 0.012374009937047958, -0.2417551577091217, 0.7712122201919556, -0.7997521162033081, -0.19566403329372406, 0.3875008821487427, 1.1002535820007324, -0.13639412820339203, 0.11654235422611237, -0.5680026412010193, -0.8867104053497314, -0.07356284558773041, -0.07135777175426483, -0.726167917251...
async def muteme ( self, ctx : commands. context, duration : timedurationseconds = 60 ) : author = ctx. message. author muted _ role = discord. utils. get ( ctx. guild. roles, id = config. muted _ role _ id ) if muted _ role in author. roles : await ctx. reply ( " shut, you are already supposed to be muted ", mention _...
[ -0.45435261726379395, -0.11160330474376678, 0.9298220872879028, 0.4690260887145996, 0.1561271697282791, 0.17659097909927368, -0.7881859540939331, 0.034345682710409164, 0.324880450963974, 0.002913569798693061, -0.6108171939849854, 1.1327396631240845, -0.4268498718738556, -0.3300963342189789...
def getallpieces ( self, color ) : pieces = [ ] for row in self. board : for piece in row : if piece and piece. color = = color : pieces. append ( piece ) return pieces
[ 0.1661214679479599, 0.2735477387905121, 0.21015115082263947, 0.6527873277664185, 0.041202567517757416, 0.11052335053682327, -1.0954724550247192, 0.1524377316236496, 0.020207297056913376, 0.7690920829772949, -0.453582763671875, 0.7357715368270874, -0.4171319305896759, 1.207621693611145, -...
def geteid ( self, * args ) : return _ snap. pneanetmp _ geteid ( self, * args )
[ 0.3423250913619995, -0.21499183773994446, 0.5977039933204651, 0.8348167538642883, 1.824507236480713, 1.3140279054641724, 0.39238792657852173, -0.4106919467449188, -0.2790301740169525, -0.5313612818717957, -0.02799234539270401, -1.3448132276535034, -1.126701831817627, 1.3907406330108643, ...
def setup _ nets ( self ) : pass
[ 0.14981670677661896, -0.21167466044425964, 0.22337600588798523, 0.6483638286590576, 0.8759549856185913, 0.9368398189544678, 1.095670223236084, -0.8967580795288086, 0.8793454766273499, -0.8669195771217346, -0.27366241812705994, -0.1835511177778244, 0.4241906404495239, 0.877568781375885, -...
def getrndval ( self, * args ) : return _ snap. tstrintprv _ getrndval ( self, * args )
[ -0.290365606546402, 0.23495006561279297, 0.16997015476226807, -0.8524729609489441, -0.019825002178549767, 0.37958070635795593, -0.6075529456138611, 0.3844664990901947, -1.7152254581451416, -0.5702595710754395, -0.1053117886185646, 0.6640855073928833, -0.9641862511634827, 0.7016141414642334...
def reduce _ mean _ v1 ( input _ tensor, axis = none, keepdims = none, name = none, reduction _ indices = none, keep _ dims = none ) : axis = deprecation. deprecated _ argument _ lookup ( " axis ", axis, " reduction _ indices ", reduction _ indices ) keepdims = deprecation. deprecated _ argument _ lookup ( " keepdims "...
[ -0.3520272970199585, 0.3656947910785675, 1.031197428703308, 0.480080246925354, -0.5748417377471924, 0.11728420853614807, -0.21388640999794006, 0.13300199806690216, 0.016871128231287003, 1.3843286037445068, -0.3212614059448242, 0.7587311267852783, 0.20699523389339447, -0.5188471674919128, ...
def tmem _ loadmem ( * args ) : return _ snap. tmem _ loadmem ( * args )
[ -0.3469276428222656, 0.19434823095798492, 0.09908577799797058, 0.6396067142486572, -0.6426759958267212, 0.20481987297534943, 0.8062872290611267, -0.4174298942089081, -0.322223037481308, 0.18315067887306213, -0.0762011930346489, -0.8637162446975708, -0.8121842741966248, -0.00187836890108883...
def revolve ( self ) : # set values for the radius and frequecy of circular motion radius = 2 frequency = 0. 5 # calculate linear and angular speeds angular _ speed = 2 * math. pi * frequency linear _ speed = angular _ speed * radius # update the linear velocity component of the twist message self. twist. linear. x = l...
[ 0.16970038414001465, -0.559981107711792, 0.5066710710525513, -0.7312485575675964, 0.9890718460083008, 0.028158975765109062, 0.7336081862449646, 0.13560469448566437, -0.5302149653434753, -0.1502184420824051, 0.1503797173500061, 1.0554687976837158, -0.8874413967132568, 0.012451828457415104, ...
def _ create _ add _ events _ request ( self, client _ session _ info = none, max _ size = none ) : return self. _ _ scalyr _ client. add _ events _ request ( session _ info = client _ session _ info, max _ size = max _ size )
[ -0.4257819354534149, 0.08933921903371811, 0.5577022433280945, 0.1197165846824646, -0.04300606623291969, -0.49523162841796875, -0.3928113281726837, -0.2039722055196762, 0.4909885823726654, -0.385412335395813, 0.3081130385398865, 0.48052334785461426, 0.004430880304425955, -0.2358894199132919...
def test _ send _ v2 _ trap ( self, mock _ call ) : snmp _ settings = {'traphost':'localhost ','community':'eosplus ','version':'2c ', } msg = " this is a test message " send _ trap ( snmp _ settings, msg, uptime = 0, test = true ) mock _ call. assert _ called _ with ( ['snmptrap ','- v ', snmp _ settings ['version'],'...
[ -0.5108523964881897, -0.15468694269657135, 0.6278721690177917, 0.08613326400518417, 0.05857962742447853, 0.13247695565223694, -0.9048646688461304, -0.6814733743667603, 0.37896645069122314, 0.8471227288246155, -0.6961272358894348, 0.2204178273677826, -0.11890905350446701, 0.0020355861634016...
def get _ value _ from _ view ( context, field ) : view = context ['view'] obj = none if'object'in context : obj = context ['object'] value = view. lookup _ field _ value ( context, obj, field ) # it's a date if type ( value ) = = datetime : return format _ datetime ( value ) return value
[ -0.43408095836639404, 0.12465871870517731, 0.6012791395187378, 0.16358362138271332, -0.4956945478916168, -0.4964553415775299, -0.3210579454898834, -0.7575170993804932, 0.8755643963813782, -0.3272213637828827, 0.8122907876968384, 0.8292317986488342, 0.5813474059104919, 0.22121496498584747, ...
def addmerged ( self, * args ) : return _ snap. tfltv _ addmerged ( self, * args )
[ -0.5929889678955078, 0.44634920358657837, 0.39182132482528687, 0.08688963949680328, 1.4471592903137207, 0.1320415884256363, 0.47271886467933655, 0.6985556483268738, -0.4161171615123749, -1.6808665990829468, -0.9967681169509888, -0.4359673857688904, -0.9336833953857422, 2.1903653144836426, ...
def add _ tag ( pid ) : # gwet the tag from user and enter in database con = true while ( con ) : choice = input ( " enter the tag you would like to add or exit ( e ) : " ) while choice in nothing or ord ( choice [ 0 ] ) in invalid _ char _ array : print ( " invalid input " ) choice = input ( " enter the tag you would ...
[ -0.06646722555160522, -0.18872417509555817, 0.6321252584457397, 0.028344670310616493, 0.7066394090652466, 0.8374354839324951, -0.3250329792499542, -0.6011536121368408, -0.8158036470413208, -0.06311911344528198, -0.22224891185760498, -0.3438146710395813, -0.6575830578804016, 0.8379259705543...
def begnaflti ( self, * args ) : return _ snap. tneanet _ begnaflti ( self, * args )
[ 0.7318265438079834, -0.23407341539859772, 0.04881245642900467, -0.42305809259414673, 0.5113670825958252, 0.23352093994617462, 0.24274712800979614, -0.8815840482711792, -1.0996153354644775, 0.10771377384662628, -0.026373520493507385, -0.7534648180007935, 0.08993273228406906, 0.8608860969543...
def description ( request, id ) : book = bookdescription. objects. get ( id = id ) available _ nos = len ( list ( book. objects. filter ( details = book, available = true ) ) ) if available _ nos > 0 : available = true else : available = false base = get _ base ( request ) context = { " book " : book, " base " : base, ...
[ -0.008802562020719051, -0.1730574071407318, 0.499021053314209, 0.3312925696372986, -0.1294609010219574, 1.0866843461990356, -0.2967606782913208, 1.0132912397384644, -0.38426530361175537, 0.7349180579185486, 0.8598999381065369, 0.2292620837688446, 0.13454635441303253, 1.0360230207443237, ...
def get _ largest _ subgraph _ embedding ( graphs, num _ dimensions = 64 ) : largest = [ g. to _ undirected ( ). subgraph ( max ( nx. connected _ components ( g. to _ undirected ( ) ), key = len ) ). copy ( ) for g in graphs ] largest = [ nx. convert _ node _ labels _ to _ integers ( g ) for g in largest ] model = grap...
[ -0.08455773442983627, 0.3543858826160431, 0.6407609581947327, 1.0470314025878906, -0.08589526265859604, 0.3572113513946533, 0.0978882759809494, -0.06824076920747757, -0.23208017647266388, -0.28609582781791687, -0.22139808535575867, 0.44947588443756104, 0.45077207684516907, -0.7540396451950...
def normalizecolname ( * args ) : return _ snap. ttable _ normalizecolname ( * args )
[ -1.0365631580352783, 0.21837149560451508, 0.4616200923919678, 1.1049658060073853, -0.8050743937492371, -0.2900640666484833, 0.7996190190315247, -0.0207893755286932, -0.8915333151817322, 0.5005524754524231, -0.7069143652915955, -1.2606217861175537, -0.8078505992889404, 0.15773476660251617, ...
def gcmi _ 1d _ cc ( x, y ) : x, y = np. atleast _ 2d ( x ), np. atleast _ 2d ( y ) if x. ndim > 2 or y. ndim > 2 : raise valueerror ( " x and y must be at most 2d " ) nvarx, ntrl = x. shape if y. shape [ 1 ]! = ntrl : raise valueerror ( " number of trials do not match " ) # copula normalization cx, cy = copnorm _ nd (...
[ 0.4739293158054352, 0.08539898693561554, 0.711299479007721, -0.10844026505947113, -0.9982697367668152, 0.3261626362800598, -0.12117936462163925, -0.7902300953865051, -0.6755491495132446, 1.185840129852295, 1.074553370475769, 0.5817161202430725, -0.5387675762176514, -0.09887254983186722, ...
def white _ move ( self, start, end ) : if self. turn = = player. white and not self. ended : try : self. board. step ( start, end ) self. turn = player. black except winexception : # white won pass except loseexception : # white lost ( shouldn't happen after a white move right now ) # fixme : stuck player? pass except...
[ -0.7253944277763367, 0.09716831147670746, 0.6568276286125183, 0.3285559117794037, 0.49354827404022217, -0.10520259290933609, 0.3640463352203369, -0.34019967913627625, -0.24898284673690796, 0.530990481376648, 0.010931677184998989, 0.8301373720169067, -0.3205230236053467, 0.8910101056098938,...
def input _ ranges ( self, input _ ranges ) : self. _ input _ ranges = input _ ranges
[ -0.7826011776924133, -0.28100666403770447, -0.1182120069861412, 0.864632248878479, 0.3231411278247833, 1.0634026527404785, 0.0030131882522255182, 0.08918406814336777, -0.7367591857910156, -0.2256634384393692, -0.8538561463356018, 0.03200093284249306, -1.3806935548782349, 0.3177981674671173...
def layout ( ) : layout _ dict = { # every layout needs a run _ id param " run _ id " : 0, " env " : 0, " dirname " : " out ", " action _ space _ limits " : ( [ - 10. ], [ 10. ] ), " buffer _ size " : 10000, " batch _ size " : 64, " is _ quanser _ env " : true, " gamma " :. 99, " batch _ norm " : true, " tau " : 1e - 2...
[ 0.5052582025527954, -0.527032732963562, 0.5840686559677124, -0.7848529815673828, -0.8670305609703064, 0.14716558158397675, 0.7023837566375732, -0.15845215320587158, -0.06003498286008835, -0.24652068316936493, -0.43368619680404663, 0.24374428391456604, -0.07467616349458694, 0.86751466989517...
def cmpi ( * args ) : return _ snap. trstr _ cmpi ( * args )
[ -0.44923755526542664, -0.8067839741706848, 0.23507796227931976, -0.15321822464466095, -0.18833307921886444, 1.2946274280548096, 0.29906225204467773, -0.38618817925453186, -0.8527557849884033, 0.5925158858299255, -0.25144386291503906, -1.3644362688064575, -0.9395279288291931, -0.90311813354...
def bsort ( self, * args ) : return _ snap. tinttrv _ bsort ( self, * args )
[ -1.1507936716079712, -0.19365356862545013, 0.3786460757255554, 0.2767162322998047, -0.08096395432949066, -0.33506786823272705, 0.9059361815452576, -1.2131866216659546, -1.3432608842849731, -0.5738381147384644, -0.38304880261421204, 1.3674116134643555, -1.6160264015197754, 0.494119316339492...
def tuint _ getrnd ( range = 0 ) : return _ snap. tuint _ getrnd ( range )
[ -0.9080789089202881, 0.36313146352767944, 0.24000747501850128, 0.2581489682197571, 0.28486382961273193, 0.5383558869361877, -0.4227956533432007, -0.683232307434082, -0.6720961928367615, -0.995791494846344, -0.15291669964790344, -0.10089865326881409, -0.5943455696105957, 0.14105524122714996...
def process _ request ( self, request ) : # to exclude the public urls from token authentication path = request. path _ info. lstrip ('/') if not any ( m. match ( path ) for m in exempt _ urls ) : try : token _ id = request. meta. get ( " http _ authorization ", none ). split ( ) [ 1 ] except : return httpresponsebadre...
[ -0.9555157423019409, -0.5457502007484436, 0.7506003975868225, 0.2260560840368271, 0.34836193919181824, 0.1728692352771759, -0.7571021914482117, -0.09114351123571396, 0.15712478756904602, 0.023469315841794014, 0.1657417267560959, 0.08682955056428909, 0.01240090373903513, 0.06969191133975983...
def get _ file _ obj ( self ) : return self. file _ obj
[ 0.6788805723190308, -1.2422682046890259, 0.2706834375858307, -0.022878190502524376, 0.24010907113552094, 0.6853812336921692, 0.9551740288734436, -0.2216949462890625, -0.9835608005523682, -2.2225730419158936, 0.5562798976898193, 0.5910316705703735, 0.3110642731189728, -0.17023470997810364, ...
def tcncom _ savetxt ( * args ) : return _ snap. tcncom _ savetxt ( * args )
[ -0.39768344163894653, 0.8075174689292908, 0.045146193355321884, -0.803397536277771, 0.2561599016189575, -0.40638989210128784, 0.2785104811191559, 0.08885720372200012, -0.3463912606239319, 0.6730297803878784, -1.8987164497375488, -2.0993154048919678, -0.8235079646110535, 0.06941577047109604...
def test _ atomic _ language _ min _ length _ nistxml _ sv _ iv _ atomic _ language _ min _ length _ 1 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - minlength - 1. xsd ", instance = " nistdata /...
[ 0.36032119393348694, -0.5757811665534973, 0.3242673873901367, 0.320904940366745, -0.7966318726539612, 0.09085400402545929, 0.29625552892684937, -0.46850404143333435, 0.482873797416687, 0.6798732876777649, -0.48119398951530457, 0.01898089610040188, -0.6130256056785583, 0.22306601703166962, ...
def geti ( self, * args ) : return _ snap. tintinth _ geti ( self, * args )
[ 0.25146403908729553, -0.16178953647613525, 0.4662053883075714, 0.9700391888618469, 0.8941109776496887, 0.25913748145103455, 0.20768627524375916, -0.7028035521507263, -1.3223851919174194, -0.5759207606315613, -1.2228108644485474, -0.04373028501868248, -1.2174370288848877, -0.554865062236785...