text
stringlengths
25
2.19k
embedding
listlengths
768
768
def begnaflti ( self, * args ) : return _ snap. pneanetmp _ begnaflti ( self, * args )
[ 0.8687846660614014, -0.4253779649734497, 0.14853423833847046, 0.12888573110103607, 0.630024790763855, 0.9327646493911743, -0.03783732280135155, -0.8442296385765076, -1.0835386514663696, -0.27542349696159363, -0.5798299908638, -0.6059767007827759, -0.5558534860610962, 0.6715221405029297, ...
def loadplugin ( plugin ) : plugmethod = {'mayatomr': loadmayatomr,'turtle': loadturtle } if plugin in plugmethod : plugmethod [ plugin ] ( ) else : cmds. loadplugin ( plugin, quiet = true ) pluginlist = cmds. plugininfo ( query = true, listplugins = true ) or [ ] if plugin in pluginlist : logger. info ( " plugin { } c...
[ -0.5021729469299316, -0.10551203787326813, 0.6586926579475403, -0.07405290752649307, -0.27024751901626587, -0.16012851893901825, -0.14832215011119843, 0.06125398352742195, 0.7261989712715149, -0.475563108921051, -0.7401251792907715, 0.23849661648273468, -0.9285855293273926, 0.0795707851648...
def dot ( attr _ a, attr _ b = 0, normalize = false ) : return _ create _ and _ connect _ node ('dot ', attr _ a, attr _ b, normalize )
[ -0.3922336995601654, 0.08928129822015762, 0.44352206587791443, -0.37133824825286865, -0.582421600818634, -0.3882116377353668, 0.3236249089241028, -0.3748469352722168, 0.3342161178588867, -0.1932169795036316, 0.5309554934501648, 0.5238922834396362, 0.45465537905693054, -0.4795357882976532, ...
def test _ train _ on _ the _ fly _ low _ memory ( self ) : input _ seqs _ file = namedtemporaryfile ( prefix ='rdptaxonassignertest _ ', suffix = '. fasta') input _ seqs _ file. write ( test _ seq _ coll. tofasta ( ) ) input _ seqs _ file. seek ( 0 ) exp _ assignments = rdp _ trained _ test1 _ expected _ dict app = rd...
[ 0.39140650629997253, -0.23963652551174164, 0.6628608107566833, -0.3099130094051361, -0.25842636823654175, 0.7190731763839722, 0.47915056347846985, 0.24891416728496552, 0.07550990581512451, -0.005416805390268564, -0.08683104813098907, 0.41408973932266235, -0.24721769988536835, 0.32934108376...
def splitonstr ( self, * args ) : return _ snap. tstr _ splitonstr ( self, * args )
[ -0.9686650037765503, 0.08942002803087234, 0.33765295147895813, -0.020854268223047256, -0.3561786711215973, -0.04426015913486481, 0.47439008951187134, 0.7865820527076721, -1.2752774953842163, 0.2474326193332672, -1.4438624382019043, -0.8243921399116516, -0.6092007756233215, 0.41464594006538...
def getdat ( self, * args ) : return _ snap. tinttrv _ getdat ( self, * args )
[ -0.558639645576477, -0.4271562397480011, 0.38629212975502014, -0.7464985251426697, 0.7997961640357971, 0.5683926939964294, 0.9108954668045044, -1.0377345085144043, -0.3312320113182068, -1.0935920476913452, -0.06984761357307434, 0.31212639808654785, -0.5908176898956299, -0.24975337088108063...
def warm _ up _ laser ( self ) : status = self. get _ status ( ) sbarray = self. get _ status _ array ( status ) self. oasis _ serial. sendbytes ( b'\ x01') # laser is already off. perfect case so we don't need to check anything else. uc is active so we have data even though 48v is off. if ( sbarray [ laser _ status _ ...
[ -0.12138911336660385, -0.7434680461883545, 0.7904415130615234, -0.31215137243270874, -0.0380813367664814, 0.15512408316135406, -0.08192997425794601, 0.8865232467651367, 0.6434588432312012, -0.2582430839538574, -0.21734128892421722, 0.4557047486305237, -0.17840781807899475, 0.61038142442703...
def _ _ eq _ _ ( self, * args ) : return _ snap. tintprintvhi _ _ _ eq _ _ ( self, * args )
[ -0.13058574497699738, -0.6404995918273926, 0.1917937994003296, 0.6145098209381104, 0.04098339378833771, 0.2338680922985077, -0.3908698856830597, 0.2136402428150177, -0.44962334632873535, 0.06577172130346298, -0.5821766257286072, 0.5388119220733643, -1.1761882305145264, 1.2405779361724854, ...
def test _ delete _ token ( client, session, model, tokens ) : response = client. delete ( " / models / 1 ", headers = { " authorization " : f " bearer { tokens ['admin'] } " } ) assert response. status _ code = = 204 # verify that the model was deleted response = client. get ( " / models / 1 ", headers = { " authoriza...
[ -0.09278987348079681, 0.3808175027370453, 0.2863447368144989, -0.07343580573797226, 1.164900541305542, 0.3742850422859192, -0.6889954805374146, -0.018274271860718727, 0.7193151116371155, -0.5246831774711609, -0.949196457862854, 0.4420259892940521, 0.282986581325531, -0.14483097195625305, ...
def num _ category _ items _ in _ bundle ( self, items : bundle, category _ index : int ) - > int : return self. sub _ agents [ category _ index ]. num _ items _ in _ bundle ( items )
[ -0.06661485880613327, -0.20328517258167267, 0.34848448634147644, 0.142801895737648, 0.46574223041534424, -0.1639339178800583, 0.3098379075527191, 0.44973066449165344, -0.5488340258598328, -0.1928924173116684, -0.39344921708106995, -0.3289441168308258, 0.7087918519973755, -0.282334357500076...
def zapisz _ zestaw ( pary _ tupli, nazwa _ pliku ) : with open ( nazwa _ pliku,'w') as f : f. write ( konfiguracja [ " klucz _ zabezpieczajacy _ zestaw " ] +'\ n') for item in pary _ tupli : f. write ( " % s \ n " % ', '. join ( map ( str, item ) ) ) f. close ( )
[ -0.9472365379333496, -1.0052160024642944, 0.057287584990262985, 0.06768860667943954, -0.17569462954998016, 0.8099164962768555, 0.17716442048549652, 0.5680790543556213, -0.5687541365623474, 0.8014549016952515, -1.199522852897644, -0.31575435400009155, 0.40846002101898193, -0.175812438130378...
def log _ writer ( self ) - > torch. utils. tensorboard. summarywriter : if self. _ log _ writer is none : self. _ log _ writer = torch. utils. tensorboard. summarywriter ( pathlib. path ( self. _ log _ dir ) / cast ( " buddy ", self ). _ experiment _ name ) return self. _ log _ writer
[ -0.2643067240715027, 0.3129414916038513, 0.46255436539649963, -0.4398747980594635, 0.41426748037338257, -0.4492833614349365, 0.8955472707748413, 0.3061605989933014, -0.035946961492300034, -0.27016329765319824, 0.448273628950119, 0.30556511878967285, -0.1693623811006546, -0.6534831523895264...
def bezier _ kurve ( self, points = object, ntimes : object = 250 ) - > object : # based on car class, the exact number of curves is object - 1!!!!!!!! npoints = len ( points ) xpoints = np. array ( [ p [ 0 ] for p in points ] ) ypoints = np. array ( [ p [ 1 ] for p in points ] ) t = np. linspace ( 0. 0, 1. 0, ntimes )...
[ -0.10990706831216812, -0.21637080609798431, 0.7949385643005371, 0.5854718685150146, -0.5890045762062073, -0.3887086808681488, -0.733760416507721, 0.19462113082408905, -0.0022815552074462175, 1.1547520160675049, -0.03938744217157364, 0.0902118980884552, -0.38464850187301636, 0.4104225039482...
def _ iscachestale ( self, cache, current _ time = none ) : if versionchecker. _ iscachemalformed ( cache ) : logger. debug ('encountered malformed or empty cache : % s ', cache ) return true # if the gcutil version has changed since the last cache write, then # the cache is stale. if cache ['current _ version']! = sel...
[ -1.4090150594711304, -0.14243115484714508, 0.728240430355072, -0.3864334523677826, 0.07976388186216354, -0.13759180903434753, -0.558596134185791, -0.938872754573822, -0.012005161494016647, 0.8690014481544495, -0.15038004517555237, 0.12183314561843872, -0.22193849086761475, 0.54622888565063...
def smooth _ dapi ( self ) : reload ( nucssegmenter3 ) self. busy _ indicator ( ) qtwidgets. qapplication. processevents ( ) qtwidgets. qapplication. processevents ( ) try : self. nucs _ 2d _ smooth = nucssegmenter3. nucssegmenter3smooth ( self. nucs _ 2d _ det. nucs _ sgm, self. nucs _ 2dsegm _ first _ value, self. nu...
[ -0.47613364458084106, -0.2912231385707855, 0.342585951089859, -0.7803993225097656, 0.005861432757228613, 0.43123364448547363, 0.7862260937690735, -0.24805058538913727, 0.2534533143043518, -0.8326514363288879, 0.05885143205523491, 0.5057406425476074, 0.40249699354171753, 0.49572524428367615...
def build _ part1 _ rnn ( window _ size ) : model = sequential ( ) model. add ( lstm ( units = 5, input _ shape = ( window _ size, 1 ) ) ) model. add ( dense ( units = 1 ) ) return model
[ -0.014672392047941685, 0.07505173236131668, 0.514981746673584, 0.45396876335144043, -0.2975028157234192, -0.047264691442251205, 0.5624282956123352, 0.30903035402297974, 0.5788562297821045, 0.062229618430137634, -0.748718798160553, 0.8138903975486755, -0.9691013097763062, -0.015899378806352...
def _ _ lt _ _ ( self, * args ) : return _ snap. tintpr _ _ _ lt _ _ ( self, * args )
[ 0.15629300475120544, -0.8220627903938293, 0.4969603717327118, -0.6580462455749512, -0.18505042791366577, -0.14100806415081024, -1.0265260934829712, -0.5442555546760559, -0.6981027126312256, -0.6056922674179077, -0.9450283050537109, -0.7114437222480774, -1.231292486190796, 0.901615440845489...
def close ( self ) : gc. collect ( ) # should handle refs better instead of calling collect ( ) # flush is probably unnecessary self. _ h5file. flush ( ) self. _ h5file. close ( )
[ 0.203781858086586, -1.0031310319900513, 0.5096113681793213, -1.159777283668518, -0.21972693502902985, 1.4836868047714233, 1.4795953035354614, -1.4558392763137817, -1.8019424676895142, -0.4345514178276062, 0.8268696069717407, 0.036461763083934784, -0.18628326058387756, 1.0361368656158447, ...
def show _ birthday _ date _ picker ( self ) : try : init _ date = datetime. strptime ( jsonstore ('info. json'). get ( " birthday " ) [ " date " ],'% y : % m : % d') except keyerror : init _ date = datetime. strptime ( " 2000 : 01 : 01 ",'% y : % m : % d'). date ( ) date _ dialog = mddatepicker ( callback = self. set ...
[ -0.05088958144187927, -0.14195096492767334, 0.8265101313591003, -0.06715484708547592, -0.826406717300415, 0.618979275226593, 0.2501917779445648, 0.4974742531776428, -0.16411815583705902, 0.1510365903377533, -0.14150336384773254, 1.1751667261123657, 0.26801061630249023, 0.7784053087234497, ...
def create _ alias ( hostname, username, password, database, directory, alias, config _ root = none ) : dbmarshal. talk ( " setting up alias : " + alias ) directory = os. path. abspath ( directory ) if os. path. exists ( directory +'/ revisions') = = false : os. makedirs ( directory +'/ revisions') dbmarshal. done ('cr...
[ -0.024858620017766953, 0.10508337616920471, 0.7475414872169495, -0.2819598317146301, 0.051106154918670654, 0.35809090733528137, -0.09936638921499252, 0.6638206243515015, 0.10127272456884384, 0.018982723355293274, -0.14287304878234863, 0.09618933498859406, -0.24761652946472168, 0.2240807414...
def flush ( self ) : return self. byte _ source. flush ( )
[ 0.30762743949890137, 0.7495489120483398, 0.2281201332807541, -0.7822431325912476, -0.10460825264453888, 0.17740648984909058, 0.44847139716148376, -0.05532262101769447, -0.11197208613157272, -0.8199589848518372, -0.5875746607780457, 0.6998392343521118, -1.1762030124664307, 0.473936796188354...
def changestr ( self, * args ) : return _ snap. tstr _ changestr ( self, * args )
[ -0.9957324862480164, 0.5255648493766785, 0.4526906907558441, 0.05741872638463974, 0.31514060497283936, 0.32014524936676025, 0.6525273323059082, 0.4855547547340393, -1.6457253694534302, 0.1386682689189911, -0.46346014738082886, 0.14371778070926666, -0.2730949819087982, 0.7041428089141846, ...
def add _ matrix _ weighted ( * attrs, * * kwargs ) : wtaddmatrix _ node _ obj = _ create _ and _ connect _ node ('add _ matrix _ weighted ', * attrs ) num _ inputmatrix = len ( attrs ) weightlist = kwargs. get ( " weightlist ", kwargs. get ( " w ", [ 1 ] * num _ inputmatrix ) ) for i, weight in enumerate ( weightlist ...
[ -1.0032824277877808, 0.10026533901691437, 0.5794181227684021, -0.07069627940654755, -0.2678896486759186, 0.5108655095100403, 0.8433638215065002, -0.4465083181858063, -0.3025617003440857, 0.1627425253391266, 0.38332897424697876, 0.24585773050785065, -0.6894927024841309, 0.5218159556388855, ...
def parse _ lines ( self, data ) : return data. splitlines ( )
[ 0.09273102879524231, -0.409965455532074, 0.3062726855278015, -0.6173011660575867, 0.28118249773979187, 0.14485183358192444, -1.5982434749603271, 0.07402180135250092, 0.5221450924873352, -0.8725202083587646, 0.2524755299091339, -0.8907595872879028, -0.31160038709640503, 0.3513244390487671, ...
def config _ list ( self, commands, rpc = u'2. 0 ', method = u'cli') : return _ list = self. _ cli _ command ( commands, rpc = rpc, method = method ) log. debug ( " config commands sent are : " ) log. debug ( commands ) log. debug ( " result got was : " ) log. debug ( return _ list ) return return _ list
[ -1.7022151947021484, 0.13418562710285187, 0.5546399354934692, 0.8296409249305725, 0.7031859755516052, -0.6377527117729187, -0.45325055718421936, 0.05046508461236954, -0.33059510588645935, 0.9389940500259399, -0.4131070077419281, -0.3557983338832855, -0.4139643609523773, 0.8317610025405884,...
def _ create _ worker _ session ( self, configuration, worker _ config _ entry, worker _ session _ id ) : # type : ( configuration, dict, six. text _ type ) - > copyingmanagerworkersessioninterface # we set'is _ daemon'as true in order to be able to stop the # worker session's thread if the manager's main thread is exi...
[ 0.1737777292728424, -0.46152740716934204, 0.30889105796813965, -0.296551913022995, -0.44661206007003784, 0.15392349660396576, -0.07896731793880463, -0.9094890356063843, 0.34248241782188416, 0.5498784780502319, -0.27416321635246277, -0.36791476607322693, -0.34260162711143494, -0.52407711744...
def save _ model ( self, json _ filename ) : model _ json = self. _ _ model. to _ json ( ) with open ( json _ filename,'w') as json _ file : json _ file. write ( model _ json )
[ -1.8792747259140015, -1.3866921663284302, 0.40300530195236206, -0.4434346854686737, 0.4477318227291107, 0.4985499978065491, 0.6428382396697998, -0.006027250550687313, -0.7710364460945129, 0.8705586194992065, -1.9743108749389648, -0.03204449638724327, 0.49831148982048035, 0.4334883987903595...
def results ( self, type ='list') : if type = ='list': return self. _ _ results elif type = ='df': df = pd. dataframe ( self. _ _ 2json ( self. _ _ results ) ) return df elif type = ='json': return self. _ _ 2json ( self. _ _ results ) elif type = ='fasta': return self. _ _ 2fasta ( self. _ _ results )
[ -1.4614238739013672, -0.03749605640769005, 0.7392758131027222, 0.45931750535964966, 0.2059691697359085, -0.8073443174362183, 0.10167772322893143, -0.727886974811554, -0.07347995787858963, -1.0885306596755981, -0.10718540102243423, 0.6019713282585144, -0.4199744164943695, 0.525947630405426,...
def wx _ 3 _ przeciaganie _ zaznaczenia ( self, evt ) : if self. grid. getselectionblocktopleft ( ) : top _ left = self. grid. getselectionblocktopleft ( ) [ 0 ] bottom _ right = self. grid. getselectionblockbottomright ( ) [ 0 ] self. wx _ 3 _ wylicz _ kom _ zaznaczone _ przeciagnieciem ( top _ left, bottom _ right )
[ -0.0506814569234848, -0.39550456404685974, 0.4309670925140381, 0.7834521532058716, -0.21745528280735016, -0.10742871463298798, 0.7792078852653503, -0.6905359029769897, 0.3038344085216522, 0.816131055355072, -0.7271692752838135, 0.15874680876731873, 0.054551899433135986, 0.4399842321872711,...
def check ( possibly _ card ) : if not isinstance ( possibly _ card, card ) : raise valueerror ( " % s is not a card " % ( possibly _ card, ) ) return possibly _ card
[ -0.24728095531463623, 0.4275318682193756, 0.409283846616745, 0.481812447309494, 0.20815397799015045, 0.35617560148239136, -0.8319087028503418, 0.14452745020389557, 1.3559315204620361, -0.09531787037849426, 0.8802474737167358, 0.6617764234542847, -1.0341322422027588, 0.3590667247772217, 0...
def build ( min _ pool _ size = _ default _ pool _ size, max _ pool _ size = _ default _ pool _ size, is _ blocking = false, retry _ policy = 0 ) : return httpadapter ( pool _ connections = min _ pool _ size, pool _ maxsize = max _ pool _ size, pool _ block = is _ blocking, max _ retries = retry _ policy )
[ -0.3719078600406647, -0.3892141580581665, 0.5124849081039429, 0.5174075365066528, -0.5885450839996338, 0.5842359662055969, -0.9010940790176392, -0.38266247510910034, 0.11032270640134811, -0.1132383793592453, 0.20803765952587128, 1.4714564085006714, -0.4863300025463104, -1.051288366317749, ...
def divide _ data _ by _ vj _ combo ( self ) : vj _ data _ dic = { } for i in xrange ( len ( self. data ) ) : vgene = self. data [ i ] ['vgene'] jgene = self. data [ i ] ['jgene'] try : vj _ data _ dic ['% s _ % s'% ( vgene, jgene ) ]. append ( i ) except keyerror : vj _ data _ dic ['% s _ % s'% ( vgene, jgene ) ] = [ ...
[ -0.7713753581047058, -0.11031165719032288, 0.2955821454524994, -0.5476181507110596, -0.956130862236023, -0.23134762048721313, 0.2966778576374054, 0.6928918361663818, -0.5577868223190308, 0.9998594522476196, -0.6481232643127441, -0.09971152245998383, 0.12884052097797394, 0.5189618468284607,...
def start ( self, * args ) : # pylint : disable = w0613 if humano. ins _ no _ imp : print ( " utiliza las letras z, x, c, a, s, d, q, w, e " ) print ( " para marcar tu posicion en el tablero como sigue " ) print ( " q | w | e " ) print ( " a | s | d " ) print ( " z | x | c " ) humano. ins _ no _ imp = false
[ 0.15228116512298584, 0.4296092689037323, 0.4982295036315918, 0.30960220098495483, 0.6237711906433105, 0.24246667325496674, 0.44841259717941284, 0.15162958204746246, -0.5231671333312988, 0.1106702983379364, -0.08044005930423737, 0.5326219201087952, -0.2052258998155594, 0.06576084345579147, ...
def _ build _ add _ block _ ops ( blkw ) : out = [ ] blk _ id = blkw. identifier out. append ( ( blk _ id, blockstore. wrap _ block ( blkw ) ) ) for batch in blkw. batches : out. append ( ( batch. header _ signature, blk _ id ) ) for txn in batch. transactions : out. append ( ( txn. header _ signature, blk _ id ) ) ret...
[ -0.23816490173339844, -0.3195633888244629, 0.714534342288971, 0.6865584254264832, -0.17463885247707367, -0.4048023819923401, 0.43064314126968384, 0.008354740217328072, 0.4943076968193054, 0.38524723052978516, -0.7510366439819336, -0.5513997077941895, 0.10568475723266602, 0.4175496399402618...
def test _ prep _ split ( inp, exp ) : pytest. debug _ func ( ) prp = nldt. prepositions ( ) assert prp. split ( inp ) = = exp
[ -1.0449596643447876, 0.1603567898273468, 0.3527975380420685, -0.22418688237667084, -0.3360661268234253, 0.8726981282234192, 0.22037017345428467, 0.4669094979763031, 0.9662851095199585, -0.3319791555404663, -0.4608520269393921, -0.7386817932128906, -0.6035338640213013, -0.17189697921276093,...
def paned _ window _ resized ( self, event ) : # print ( " app publishing window - resize event " ) self. event _ publish ( [ " taskerapp : : paned _ window _ resized ", event ] ) # self. map. on _ mainframe _ configure ( event. width, event. height )
[ 0.8081398606300354, -0.6597711443901062, 0.5304526686668396, 1.1753140687942505, -1.0670989751815796, 0.5857284665107727, 0.12094210088253021, 0.3379513621330261, 0.43673786520957947, -0.043574169278144836, -0.6558496952056885, 0.2751530706882477, -0.052695680409669876, 0.9697043895721436,...
def send _ to _ org _ page ( self ) : plugins. toolkit. redirect _ to ( controller = " organization ", action = " index " )
[ -0.02344929426908493, 0.5101474523544312, 0.45193541049957275, 0.13443200290203094, 1.3632172346115112, 0.4184032678604126, 1.0671343803405762, 0.1979457288980484, -0.6191502809524536, 0.5495449900627136, -0.3957880735397339, 0.8204723000526428, 0.6746593713760376, -0.2526819705963135, -...
def _ _ setitem _ _ ( self, index, newitem ) : self. _ items [ index ] = newitem
[ -1.123541235923767, -0.4340699315071106, 0.19922302663326263, -0.5699588060379028, 0.5130115151405334, 0.532663881778717, -0.6459594964981079, -0.4390726089477539, -0.6879894137382507, 0.4030766189098358, -0.8579179644584656, 0.7808654308319092, 0.09616069495677948, -0.8558093309402466, ...
def main ( ) : conn = create _ connection ( conf. dbfilename ) with conn : # download homepage rows = select _ distinctcognomenome ( conn ) for row in rows : cognome = row [ 0 ] nome = row [ 1 ] print ( " % s - % s " % ( cognome, nome ) ) # download file # if nome = = " giuseppe " and cognome = = " di modica " : # prin...
[ 0.2107493132352829, 0.34736040234565735, 0.8609343767166138, 0.9161513447761536, 0.29388195276260376, 0.17175167798995972, 0.7368921637535095, 0.8453481197357178, -0.05308081582188606, 0.5522542595863342, -0.14721401035785675, -0.3626125752925873, -0.07950318604707718, 0.5179024934768677, ...
def getnbrnid ( self, * args ) : return _ snap. tungraphnodei _ getnbrnid ( self, * args )
[ 0.15912266075611115, 0.9703643918037415, 0.41149914264678955, 0.4716316759586334, 1.02415931224823, 0.16284288465976715, 0.00641579320654273, -0.4887138903141022, -0.07870204001665115, -0.6808963418006897, -0.3284580707550049, 0.7614064812660217, -1.3137781620025635, 0.7724573612213135, ...
def test _ undirected _ edge _ del _ attr ( self ) : v0 = undirectedvertex ( val ='v0') v1 = undirectedvertex ( val ='v1') e01 = undirectededge ( ( v0, v1 ), attrs = {'weight': 5, 0 : 1 } ) e01. del _ attr ('weight') self. assertequal ( e01. attrs, { 0 : 1 } ) e01. del _ attr ( 0 ) self. assertequal ( e01. attrs, { } )
[ -0.41450613737106323, -0.41717323660850525, 0.5058284997940063, -0.5327784419059753, -0.8749004602432251, 0.6644518375396729, 0.22367942333221436, 0.9506999850273132, 0.014079885557293892, 0.021260440349578857, 0.17015881836414337, -0.25038376450538635, 0.25170761346817017, 0.0422589555382...
def show _ details ( name, f, is _ partial = false ) : print ( f " { name } : " ) print ( " object : ", f ) if not is _ partial : print ( " _ _ name _ _ : ", f. _ _ name _ _ ) if is _ partial : print ( " func : ", f. func ) print ( " args : ", f. args ) print ( " keywordss : ", f. keywords ) return
[ 0.8007444739341736, -0.6882792115211487, 0.9958987236022949, -0.6721134781837463, -0.5396297574043274, 0.08205262571573257, -0.0418655201792717, -0.3907168507575989, -0.6310124397277832, -0.032889459282159805, 0.0912342220544815, 1.1138166189193726, 0.7963860630989075, 0.39214152097702026,...
def getmxsccsz _ pneanet ( * args ) : return _ snap. getmxsccsz _ pneanet ( * args )
[ 0.33050036430358887, 0.4219687581062317, 0.2598365247249603, 1.4391412734985352, -0.7954597473144531, 0.3507596552371979, -0.998676061630249, -0.8886783719062805, -0.6918806433677673, -1.3483481407165527, -0.16096344590187073, -0.4493410587310791, -0.10196243971586227, 0.6887438297271729, ...
def get _ score ( self ) : response = self. get _ page _ content ( self. site ) try : score = re. findall ( r'\ d + ', response. find _ all ( " span " ) [ 0 ]. text ) [ 0 ] except indexerror : raise accountdoesnotexist ( self. site, self. username ) return int ( score )
[ -0.08842778205871582, 0.6182664036750793, 0.7858635187149048, 0.22827307879924774, 0.5427727699279785, -0.45046165585517883, 0.9058234691619873, -0.4144567847251892, 0.45109105110168457, 0.2723524868488312, 0.675068199634552, -0.20670369267463684, -0.6649298071861267, -0.4266265332698822, ...
def loadmode ( * args ) : return _ snap. loadmode ( * args )
[ -0.7415221929550171, 0.5532518029212952, 0.5483751893043518, 0.9897096157073975, -0.03554551303386688, 0.43659383058547974, -0.21074829995632172, -0.4368067681789398, -0.4074335992336273, -0.1748770922422409, -0.8539730310440063, -0.7563368082046509, -0.5675252079963684, 0.9456726312637329...
def input _ embedding ( input _ sentence, emsize, n _ characters, counters, reuse = false, pretrain _ vec = none ) : if reuse : counters ['embedding'] = 0 name = get _ name ('embedding ', counters ) with tf. variable _ scope ( name ) : if reuse : tf. get _ variable _ scope ( ). reuse _ variables ( ) # use pretrain word...
[ 0.43490689992904663, 0.2651135325431824, 0.7726869583129883, 0.27496975660324097, -0.7042134404182434, 0.12813818454742432, 1.028396487236023, 0.06962508708238602, 0.5423256754875183, 0.704215943813324, -0.010615427978336811, 0.02923710085451603, -0.4082701802253723, -0.18077756464481354, ...
def createtable ( self ) : self. cursor. execute ('''create table if not exists channels ( channel _ id integer primary key, channel _ name text )''')
[ 1.2060623168945312, -0.05473855137825012, 0.38538122177124023, -0.9393975138664246, 1.0836211442947388, 0.12089754641056061, -0.37845924496650696, -0.48681333661079407, -1.3315602540969849, 0.3177170157432556, 0.17224617302417755, -0.1097588762640953, -0.838985800743103, 0.4563304483890533...
def _ check _ value ( self, action, value ) : # converted value must be one of the choices ( if specified ) if action. choices is none : return enum _ choices = [ ] for str _ val in action. choices : try : enum _ choices. append ( action. type ( str _ val ) ) except exception : # naughty to have an option in choices wh...
[ -0.8502476811408997, -0.5082111358642578, 0.6757723689079285, 0.06759707629680634, 0.4049842059612274, 0.36593982577323914, -0.36468690633773804, -0.1270151138305664, 0.23274129629135132, 1.3263427019119263, 1.0049190521240234, 0.8928372859954834, 0.23699375987052917, 0.7167961001396179, ...
def attrvalueei ( self, * args ) : return _ snap. tcrossnet _ attrvalueei ( self, * args )
[ 0.27797478437423706, 0.7296804189682007, 0.08763834834098816, 0.8029950261116028, 0.8273664116859436, 0.45196807384490967, 1.1361104249954224, 0.9838299751281738, -1.3667317628860474, -0.25299954414367676, 0.14520978927612305, -0.9690251350402832, 0.7184954881668091, 1.0582205057144165, ...
def test _ atomic _ base64 _ binary _ enumeration _ 4 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ enumeration _ 5 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - enumeration - 5. xsd ...
[ -0.5648953914642334, -0.7065685391426086, 0.47426435351371765, 1.0848227739334106, -0.09846120327711105, -0.1648847758769989, 0.6171453595161438, -0.6668896675109863, -0.4744420647621155, 0.759881317615509, -0.847405195236206, 0.08151233941316605, -0.8939296007156372, 0.32828113436698914, ...
def clean ( self ) : cleaned _ data = super ( ). clean ( ) item _ url = cleaned _ data. get ( " image _ url " ) cat _ choice = cleaned _ data. get ( " cat _ choice " ) items = item. objects. filter ( picture = item _ url ) cat = category. objects. get ( name = cat _ choice ) if any ( item in cat. item. all ( ) for item...
[ -0.5292782783508301, 0.05166163668036461, 0.48951226472854614, -0.2664809823036194, 0.9041286706924438, 0.38833409547805786, -0.6344939470291138, 0.20192541182041168, -1.3108936548233032, 0.5507670044898987, -0.3459879457950592, -0.2396802455186844, 0.8123085498809814, 0.8027378916740417, ...
def _ translate _ path ( self ) - > str : sep ='' name = str ( self ) if isinstance ( self, path ) and name and self. is _ dir ( ) : sep = self. _ flavour. sep return name + sep
[ -0.07205783575773239, 0.1409517228603363, 0.60475093126297, 0.2610148787498474, -0.8966935873031616, 0.2777612805366516, -0.0224828589707613, 0.010137086734175682, 0.9054012298583984, -0.21676792204380035, 0.20032642781734467, -0.871724009513855, -0.34307339787483215, -0.6275100111961365, ...
def _ _ eq _ _ ( self, other ) : if self is other : return true if type ( self )! = type ( other ) or \ len ( self )! = len ( other ) : return false for item in self : if item not in other : return false return true
[ -0.6874660849571228, -0.5965901613235474, 0.7148107886314392, 0.2858816087245941, 0.4437214732170105, 0.525844931602478, -0.101353719830513, -0.3709454834461212, 0.36934351921081543, -0.02183578535914421, -1.2928541898727417, -0.31743085384368896, -1.3243870735168457, 0.13362886011600494, ...
def getconfig ( user _ config ) : config = configs. loadconfig ( benchmark _ config, user _ config, benchmark _ name ) return config
[ 1.108412742614746, 0.5964105725288391, 0.21189706027507782, 0.7948699593544006, -0.38351571559906006, -0.4072464406490326, 0.3823593556880951, 0.28065893054008484, -0.5606474280357361, 1.2159897089004517, -0.7662053108215332, 0.3724210262298584, -0.2731778919696808, 0.1520518809556961, 0...
def user _ input ( ) - > tuple : try : year = int ( input ( " please enter a year you would like to have a map for : " ) ) coords _ str = input ( " please enter your location ( format : lat, long ) : " ) coords = [ float ( coord ) for coord in coords _ str. split ( ", " ) ] print ( " map is generating... \ nplease wait...
[ -0.7131629586219788, -0.6111223697662354, 0.7546035051345825, -0.23503580689430237, -0.5498066544532776, 1.1378968954086304, 0.4530385732650757, 0.19276370108127594, -0.09710602462291718, -0.259545236825943, -0.1626969277858734, -0.12232256680727005, 0.2894013524055481, -0.2527035772800445...
def create _ folder ( root _ dir ) : dir _ name = root _ dir print ( root _ dir ) try : print ('here') os. mkdir ( dir _ name ) print ( " directory ", dir _ name, " created " ) except fileexistserror : print ( " directory ", dir _ name, " already exists " )
[ 0.206240713596344, -0.653002142906189, 0.5125871896743774, 0.6578659415245056, 0.5507965087890625, 0.9109976887702942, 0.7054648399353027, -0.41376781463623047, -0.29438096284866333, -0.5898698568344116, 0.30373311042785645, 0.6171212196350098, 0.35511714220046997, 1.2870731353759766, 0....
def exclude _ targets ( * args ) : def wraps ( func ) : func. tvm _ excluded _ targets = args return func return wraps
[ -0.8690215945243835, 0.5304205417633057, 0.6999109387397766, 0.03588379919528961, -0.6979497671127319, 0.540581226348877, -0.2000076323747635, 0.1339203119277954, 0.7254670262336731, 0.3824695646762848, 0.6531660556793213, 0.2799251675605774, -0.41913336515426636, -0.23989559710025787, -...
def client ( app ) : return testing. testclient ( app )
[ 1.3316007852554321, -0.597555935382843, -0.1780940443277359, -0.19276097416877747, -0.14239948987960815, 0.3510078489780426, 0.42088979482650757, -0.7951117157936096, 0.2781657576560974, -0.44395941495895386, 0.5015597939491272, 0.18027743697166443, -0.6976394057273865, -1.319690227508545,...
def handle ( self, proto, command, user, channel, args ) : user = user [ 0 ] if len ( args ) < 1 : proto. msg ( channel,'% s : heh?'% user ) return line =''. join ( args [ 0 : ] ) rotated = rotate ( 13, line ) print rotated proto. msg ( channel,'% s : % s'% ( user, rotated ) )
[ 0.088104248046875, 0.34284064173698425, 0.5599708557128906, -0.13487549126148224, 1.3218291997909546, 0.4408815801143646, 0.3446334898471832, -0.27305009961128235, -0.3222483694553375, -0.9907135963439941, -0.4413661062717438, 0.543673574924469, -1.6153191328048706, -0.5538697838783264, ...
def next ( self ) : self. post _ api _ v1 ( " me / player / next " )
[ -1.4742406606674194, 0.35767343640327454, 0.27298951148986816, 1.522337555885315, 0.16386406123638153, 0.29322898387908936, -0.28960731625556946, -0.8875442147254944, 0.3588182330131531, -0.8562310338020325, -0.8143872618675232, 1.606576681137085, -1.1550861597061157, -0.3493399918079376, ...
def listinput ( self, rowreader, shortrowsallowed = false, headingpolicy = none ) : return self. _ _ class _ _. _ listinput ( self, rowreader, shortrowsallowed, headingpolicy )
[ -0.5079761743545532, -0.2791748344898224, 0.32295358180999756, 0.23256011307239532, -1.4462038278579712, 0.5442522168159485, -0.26979899406433105, -0.15712378919124603, 1.4243487119674683, -0.32448533177375793, 0.25016891956329346, 0.3250870108604431, -0.10365889966487885, 0.07220114767551...
def getstring ( self ) : raise notimplementederror
[ -0.13853269815444946, -0.9262654185295105, 0.4056425988674164, 0.27084463834762573, -0.09669534116983414, 0.5824898481369019, 0.05773536115884781, -1.038743257522583, 0.3676626682281494, -0.656645655632019, 0.49259206652641296, 0.6975448131561279, 0.3884698450565338, -0.4521387815475464, ...
def print _ all _ braces _ rec ( n, left _ count, right _ count, output, result ) : if left _ count > = n and right _ count > = n : result. append ( copy. copy ( output ) ) if left _ count < n : output + ='{'print _ all _ braces _ rec ( n, left _ count + 1, right _ count, output, result ) output. pop ( ) if right _ cou...
[ -0.025558870285749435, 0.26796212792396545, 0.8020476698875427, 0.9148522615432739, -0.6047144532203674, -0.15927214920520782, 0.7489724159240723, -1.536332607269287, -0.7426678538322449, -0.0898447185754776, -0.07747858762741089, -0.10314520448446274, -0.31375381350517273, 1.1383627653121...
def strip _ serial _ output ( value ) : # first of all let's strip all white space and return characters temp _ result = value. strip ( ) # after removing whitre space and return characters # remove everything before the " : " character. temp _ result = temp _ result. split ( " : " ) [ 1 ] return temp _ result
[ -0.05397345498204231, -1.038165807723999, 0.3027224540710449, -0.46352285146713257, -1.2598645687103271, -0.2345655858516693, 0.7528502345085144, -0.2575973570346832, 0.595139741897583, -0.059257686138153076, -0.10098237544298172, 0.09763073176145554, -0.5162997841835022, -0.77990627288818...
def string _ to _ array ( string ) : return np. array ( [ float ( x ) for x in string. split ( " " ) ] )
[ 0.5650699138641357, -1.3414340019226074, 0.38623785972595215, -0.9656649827957153, 0.5374430418014526, 0.19710707664489746, -0.41049689054489136, 0.3144294023513794, -0.8857677578926086, 0.7798653841018677, -0.640514612197876, 1.2984867095947266, -0.7442999482154846, -0.41567689180374146, ...
def test _ atomic _ language _ length _ 1 _ nistxml _ sv _ iv _ atomic _ language _ length _ 2 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - length - 2. xsd ", instance = " nistdata / atomic / l...
[ 0.29543665051460266, -0.7485155463218689, 0.40456536412239075, 0.49848467111587524, -0.3664929270744324, -0.0360279455780983, -0.18504197895526886, 0.028288131579756737, -0.40252411365509033, 0.5362982153892517, -0.5912681818008423, -0.07125025242567062, 0.48489880561828613, 0.533324480056...
def adjust _ summer _ time _ one _ day ( tday, fvalue, stimezone ) : global dyearsummertime # get julian day ( nyear, nmonth, nday ) = tday sdate = str ( nyear ) +'-'+ str ( nmonth ) +'-'+ str ( nday ) njulian = _ _ get _ julian ( sdate ) # check if this value have been asked before dcurrent = { } if nyear in dyearsumm...
[ -1.0216354131698608, -0.14850997924804688, 0.8657353520393372, -0.021068478003144264, -1.0499732494354248, 0.3734886646270752, 0.778477132320404, -0.10424323379993439, 0.30629345774650574, -0.13888397812843323, -0.21788381040096283, 0.9966854453086853, -0.748120903968811, 1.864355564117431...
def isempty ( self ) : return self. empty
[ -1.3941624164581299, -0.6359483003616333, 0.45665615797042847, 0.06893130391836166, 0.9929323792457581, 0.8156572580337524, -0.3505138158798218, -0.3462684452533722, -0.1843002885580063, 0.2988622486591339, -0.8270750641822815, 0.6934249401092529, -0.6560239195823669, -0.5210012793540955, ...
def calculate _ bmi ( weight, height, system ='metric') : if system = ='metric': bmi = ( weight / ( height * * 2 ) ) else : bmi = 703 * ( weight / ( height * * 2 ) ) return bmi
[ 0.6767385601997375, 0.33916327357292175, 0.41277340054512024, 1.7808899879455566, -0.05127415060997009, -0.12991677224636078, 0.16185057163238525, -0.6779235005378723, -0.5243771076202393, -0.1625540405511856, 0.4280044436454773, 0.32278916239738464, -0.747220516204834, 0.5052221417427063,...
def update _ current _ image ( self, data ) : self. most _ recent _ image = numpy. fromstring ( data. data, numpy. uint8 )
[ -1.1249090433120728, -1.08795166015625, 0.10595588386058807, -1.244062900543213, 0.1222769170999527, -0.2159958779811859, -0.3522287905216217, -0.22991156578063965, 0.39154180884361267, 0.5847983360290527, 0.7407493591308594, 1.1911523342132568, -0.5585777759552002, 0.28983360528945923, ...
def iterwindows ( self, count = 64, window _ shape = ( 256, 256 ) ) : if count is none : while true : yield self. randwindow ( window _ shape ) else : for i in range ( count ) : yield self. randwindow ( window _ shape )
[ -0.21776732802391052, -0.08932069689035416, 0.45460692048072815, 0.7849302887916565, -0.2160310000181198, 0.2328922152519226, 0.5173178911209106, -0.16640613973140717, 0.3548705279827118, -0.06210549548268318, 0.19069205224514008, 0.5821757316589355, -1.0040422677993774, 1.0548747777938843...
def isstrattrdeletede ( self, * args ) : return _ snap. tneanet _ isstrattrdeletede ( self, * args )
[ 0.2617427408695221, -0.18950091302394867, 0.4106884002685547, -0.5881593227386475, 0.6795422434806824, -0.29055434465408325, -0.2646760642528534, -0.06545623391866684, 0.1259564757347107, 0.3027612268924713, -0.023903556168079376, -0.889293909072876, -0.4914717674255371, 0.4959844946861267...
def do _ job ( self, job ) : if not self. do _ ocr ( job = job ) : return false if not self. do _ postprocesses ( job = job ) : return false return true
[ -0.5249972343444824, 0.4210263192653656, 0.6473814249038696, -0.1482071429491043, -0.17103353142738342, 0.6282095909118652, -0.4874661862850189, -0.5251690149307251, 0.26473498344421387, -0.2604655921459198, 0.018201110884547234, -0.6197251677513123, -0.9080681204795837, 1.1189508438110352...
def as _ weighted _ graph ( tracks _ manager : pymap. tracksmanager ) - > nx. graph : images = tracks _ manager. get _ shot _ ids ( ) image _ graph = nx. graph ( ) for im in images : image _ graph. add _ node ( im ) for k, v in tracks _ manager. get _ all _ pairs _ connectivity ( ). items ( ) : image _ graph. add _ edg...
[ -0.3151852786540985, -0.12644903361797333, 0.6645495891571045, -0.30521443486213684, -0.8833974003791809, -0.23927414417266846, -0.2116450071334839, -0.4632366895675659, 0.12002786248922348, 1.0252324342727661, 0.13873471319675446, 0.051660820841789246, -0.3714832365512848, 0.4708960950374...
def main ( filename, remove, select, identity, verbose, check, cpu ) : if check : checkpredefined ( ) sys. exit ( 0 ) select _ xml = getxmls ( select ) remove _ xml = getxmls ( remove ) showfilters ( select _ xml, remove _ xml ) fs = readfilters ( select _ xml, remove _ xml ) b = os. path. basename ( filename ) prefix ...
[ 0.14085379242897034, -0.11468484252691269, 0.8378597497940063, 0.6256214380264282, 0.04207416623830795, -0.8388047218322754, -0.04133381322026253, 0.5133739709854126, 0.05459389090538025, -0.09477778524160385, -0.08702151477336884, 0.2192564606666565, -0.6794873476028442, -0.48449760675430...
def paypal _ gateway ( data ) : pass
[ 0.053229253739118576, 0.11546409130096436, 0.20733734965324402, 0.03998718410730362, -0.009571453556418419, -0.357673704624176, -0.4086332321166992, 0.08313674479722977, 0.5568515658378601, -0.42103809118270874, 0.010821858420968056, -0.29021698236465454, -0.6033921241760254, 0.54937463998...
def clear _ booking ( request ) : redirect _ url = request. post. get ('redirect _ url') bag = request. session. get ('bag ', { } ) bag. clear ( ) request. session ['bag'] = bag messages. info ( request,'your booking has been cleared successfully!') return redirect ( redirect _ url )
[ -1.4214948415756226, 0.053801264613866806, 0.5351665616035461, 1.7416383028030396, -0.27787816524505615, 1.1714133024215698, 0.3975365459918976, 0.11778128147125244, 0.45427635312080383, 0.2815778851509094, -0.1823655515909195, -0.08292396366596222, 0.3376936912536621, -0.27919232845306396...
def glob _ string ( self ) : param _ glob = " " if self. params : param _ glob = " * / " return f " { self. dirpath _ glob } / { self. step } / { param _ glob } { self. filename } "
[ 0.02114485204219818, -0.2637800872325897, 0.4513399302959442, 0.5602359175682068, -0.13222485780715942, 1.0065581798553467, 1.2497384548187256, -0.1897185891866684, -1.555072546005249, 0.44745078682899475, 1.2058422565460205, 0.2397642582654953, -0.16161635518074036, 0.6136666536331177, ...
def countprimein _ list ( numlist ) : primecount = [ ] for number in numlist : if number = = 2 : primecount. append ( number ) elif number > = 2 : prime = true for index in range ( 2, number ) : if number % index = = 0 : prime = false break if prime : primecount. append ( number ) return len ( primecount )
[ -0.29532167315483093, -0.3654060363769531, 0.5702052116394043, 0.5795965790748596, -0.08544760942459106, 0.6435500383377075, -0.2915070950984955, 1.2804237604141235, 0.9437776803970337, 0.019777564331889153, -1.424564242362976, -0.7643951773643494, -1.006949782371521, 1.31582772731781, -...
def new ( * args ) : return _ snap. ttable _ new ( * args )
[ -1.039889931678772, -0.0031887392979115248, 0.4524874985218048, 0.29655879735946655, -0.32023605704307556, 0.24992334842681885, 0.40254655480384827, -0.4001452922821045, -1.9616094827651978, 0.0524238757789135, -0.4774531424045563, -1.2755831480026245, 1.0833313465118408, 0.768966197967529...
def delete ( ident ) : data = data _ manager. get _ table _ from _ file ( ) for row in data : if row [ 0 ] = = str ( ident ) : useless = row data. remove ( useless ) # id reorder for index, row in enumerate ( data ) : row [ 0 ] = str ( index + 1 ) data _ manager. write _ table _ to _ file ( data ) return redirect ( " /...
[ -0.7991033792495728, -0.45118772983551025, 0.5909148454666138, -0.32186251878738403, 0.2913326919078827, -0.2544820010662079, -0.049882370978593826, 1.038516879081726, 0.03940407931804657, -0.09360124170780182, -0.6452926397323608, -0.02392190508544445, 0.009529669769108295, -0.15214927494...
def test _ minimize _ quad2d _ bound ( self ) : # testing bounded optimization opt _ params = {'eta': 1,'eta _ min': 1,'eps': 1e - 12,'discrete': true,'bounds': cconstraintbox ( lb = - 2, ub = 3 ) } self. _ test _ minimize ( coptimizerpgdls,'quad - 2 ', opt _ params = opt _ params, label ='quad - 2 - discrete - bounded...
[ -0.08673247694969177, -0.7504400610923767, 0.6908813714981079, 0.39650958776474, 0.3791475296020508, 0.17409275472164154, -0.18529194593429565, -1.4837175607681274, 0.025157082825899124, -0.8300876617431641, -0.8710508346557617, -0.08799496293067932, -0.1280420571565628, -0.113979443907737...
def reset ( self ) : self. _ tiles = [ [ 0 for dummy _ col in range ( self. get _ grid _ width ( ) ) ] for dummy _ row in range ( self. get _ grid _ height ( ) ) ] for dummy _ num in range ( 2 ) : self. new _ tile ( )
[ -0.7958189249038696, 0.809831976890564, 0.4614814221858978, 0.36924681067466736, 0.9188397526741028, -0.5218145847320557, 0.8984310030937195, -0.4824555218219757, -0.7829233407974243, 0.05936074256896973, -1.1152218580245972, 1.0478382110595703, -0.3404485881328583, 0.44451645016670227, ...
def getkeyid ( self, * args ) : return _ snap. tintset _ getkeyid ( self, * args )
[ 0.21082283556461334, -0.05100257694721222, 0.5309129953384399, 0.980935275554657, 0.40283241868019104, 0.11203423887491226, 0.46451103687286377, -1.1109787225723267, -0.02183961309492588, -0.4111122786998749, -0.19636335968971252, 0.37811073660850525, -1.267568826675415, 0.4846124053001404...
def sync _ all ( target ) : sync _ grain ( target ) sync _ pillar ( target ) sync _ lowstate ( target )
[ -0.29854264855384827, 0.09799664467573166, 0.2751658856868744, 0.4381338655948639, 1.0132131576538086, -0.0982072725892067, -0.06922990083694458, -1.6759871244430542, -0.04385165497660637, 0.6977412104606628, -0.4728201925754547, 0.6631697416305542, 0.650100827217102, 0.47714659571647644, ...
def putfbase ( * args ) : return _ snap. tstr _ putfbase ( * args )
[ -0.7968140244483948, 0.8268998861312866, 0.6656161546707153, 0.17732566595077515, 0.6351715326309204, -0.5597880482673645, -0.08904710412025452, -0.8983566164970398, -1.0282433032989502, 0.18419784307479858, -0.35640406608581543, -0.5325086712837219, -1.4338873624801636, 1.0799564123153687...
def getrndval ( self, * args ) : return _ snap. tintprv _ getrndval ( self, * args )
[ -0.9822434186935425, 0.2322705239057541, 0.4712468385696411, 0.7900859117507935, -0.33239439129829407, 0.4034357964992523, -0.5602257251739502, 0.09793961048126221, -0.8205097317695618, -1.290602207183838, -0.626213788986206, 0.5927307605743408, -1.7342711687088013, 1.540299892425537, 0....
def upload ( ctx, dataset _ name, schema _ path, data _ path ) : # get the initialized prism class p = ctx. obj [ " p " ] # clean up the dataset name dataset _ name = dataset _ name. replace ( " ", " _ " ) # create an empty api dataset dataset = p. create _ dataset ( dataset _ name ) # read in your dataset schema schem...
[ 0.02874102257192135, 0.3905053436756134, 0.8751633167266846, -0.03307395428419113, 0.3076304793357849, 0.26749351620674133, -0.39222168922424316, 0.7535191178321838, -0.14404642581939697, -0.45239660143852234, -1.0117392539978027, 0.9319517612457275, -0.6683138012886047, -1.090858936309814...
def testgeterrorinfofunction2 ( self ) : po = self. catalog. load _ pageobject ('registerpage') po. goto _ page ( ) po. register _ account ( { } ) errorinfo = po. get _ error _ info ( ) assert len ( errorinfo ) > 0, \ " get _ error _ info ( ) returned % s, expected an error " % ( errorinfo )
[ 0.31572988629341125, 0.035082582384347916, 0.1961083561182022, 0.17825154960155487, 1.0696038007736206, 0.04426193609833717, -0.2907581627368927, 0.23495860397815704, -0.1183013916015625, -0.4501839876174927, -1.0240273475646973, 0.3542235493659973, 0.44566336274147034, -0.4531948864459991...
def read _ xml ( f ) : soup = beautifulsoup ( open ( f,'r'),'xml') data = { } for d in soup. find _ all ( " device " ) : data [ d ['name'] ] = [ ] for p in d. find _ all ('position') : g = p. find ('gpsat') l = p. find ('latitude') n = p. find ('longitude') t = parser. parse ( g. text ) timestamp = " { : 0 > 2d } { : 0...
[ -0.8382508158683777, -0.08050456643104553, 0.6509070992469788, -1.2887513637542725, -1.2970268726348877, 0.3380786180496216, -0.48637712001800537, -0.11912139505147934, -0.3165269196033478, -0.1755875051021576, -0.5316720604896545, -0.6912470459938049, 0.8489803671836853, 0.347201377153396...
def create _ token _ response ( self, request, token _ handler ) : try : # request. scopes is only mandated in post auth and both pre and # post auth use validate _ authorization _ request if not request. scopes : raise valueerror ('scopes must be set on post auth.') self. validate _ token _ request ( request ) # if th...
[ -0.6029452085494995, -0.5777577757835388, 0.557527482509613, -0.584272027015686, -0.5438283085823059, -0.23238228261470795, 0.7007628679275513, -0.3724762499332428, 0.24987012147903442, -0.5082454085350037, -0.43411874771118164, 0.12500163912773132, 1.0034964084625244, -0.29086822271347046...
def num _ ranks ( ) : return len ( card. rank _ display )
[ 0.2367812842130661, 0.5649135708808899, 0.3100852370262146, 0.007391386199742556, 0.4633338451385498, -0.5405172109603882, -0.2814645767211914, 1.2031148672103882, -0.08125945180654526, -0.4476231336593628, -0.7902185916900635, 0.3980276584625244, 0.4523497223854065, 0.6276805996894836, ...
def _ _ init _ _ ( self, mass _ prior _ model : af. priormodel ( mp. massprofile ) = mp. ellipticalpowerlaw, mass _ centre : ( float, float ) = none, align _ bulge _ mass _ centre : bool = false, ) : super ( ). _ _ init _ _ ( mass _ centre = mass _ centre ) self. mass _ prior _ model = self. _ cls _ to _ prior _ model ...
[ 0.8474870920181274, -0.4574052393436432, 0.7522367238998413, -0.1267598420381546, 0.11191855370998383, 0.8295558094978333, 0.09903540462255478, 0.470520555973053, -0.019286932423710823, 0.1285514086484909, 0.0024026203900575638, -0.13012127578258514, 0.19633331894874573, 1.4019135236740112...
def play ( self ) : self. _ metro. play ( ) self. _ trig _ fill. play ( ) self. _ osc. play ( ) return self
[ 0.45871904492378235, 0.4403125047683716, 0.34019866585731506, 0.28257444500923157, 1.2667227983474731, 0.9064518809318542, 1.010454535484314, -0.7700849175453186, 0.027608398348093033, -1.1577080488204956, 0.83426433801651, 0.3185780346393585, -0.1691589057445526, 0.29360589385032654, -0...
def searchbin ( self, * args ) : return _ snap. tintintvv _ searchbin ( self, * args )
[ -1.612288475036621, 0.4341369569301605, 0.6801704168319702, 1.7154682874679565, 0.38906756043434143, 0.3226920962333679, 0.26714566349983215, -1.0699445009231567, -0.44884175062179565, -0.2783578336238861, -0.5984864234924316, 0.6356309652328491, -1.9021166563034058, 0.5638489127159119, ...
def authenticate _ client ( self, request, * args, * * kwargs ) : raise notimplementederror ('subclasses must implement this method.')
[ -1.3948824405670166, -0.37801870703697205, 0.5758815407752991, 0.6278541684150696, -0.05093877390027046, 0.815252423286438, 0.048606619238853455, -0.9800504446029663, -0.09189310669898987, -0.0825667530298233, -0.39221739768981934, 0.3960794508457184, -0.1364104151725769, -0.44801768660545...
def proto _ user ( self ) : self. proto _ user = baker. make ( user ) self. proto _ user. set _ password ( " m = 9uak ^ c, tbq9n = t " ) self. proto _ user. save ( ) return self. proto _ user
[ 0.10658317059278488, 0.33029094338417053, 0.46358054876327515, 0.7228383421897888, -0.13989277184009552, 0.6388123035430908, 0.15324988961219788, -0.07680755108594894, -0.09418906271457672, -0.7989979386329651, -1.7621361017227173, -0.5158593058586121, -0.551380455493927, -0.81808298826217...
def to _ python ( self, value ) : value = super ( integerfield, self ). to _ python ( value ) if value in validators. empty _ values : return self. default if self. localize : value = formats. sanitize _ separators ( value ) try : value = float ( value ) except ( valueerror, typeerror ) : raise validationerror ( self. ...
[ 0.08323079347610474, 0.604521632194519, 0.41600364446640015, -0.31255701184272766, 0.5376554131507874, 0.0931825116276741, -0.3275792896747589, -0.5544247031211853, -0.4601227641105652, 0.21906623244285583, -0.3592301905155182, -0.7127799391746521, -0.5212479829788208, 0.2783782184123993, ...
def render _ wav ( self, duration = none, resample = none, split = false ) : labels = self. _ get _ receivers _ labels ( ) if split else none samplerate = resample if resample is not none else self. samplerate def func ( ) : samples = self. render _ receivers ( duration = duration, resample = resample ). result ( ) if ...
[ -0.13488627970218658, 0.39070194959640503, 0.7112123370170593, 0.4436172544956207, -0.4449663758277893, -0.8111463785171509, -0.1352337896823883, 0.7345377802848816, 0.8757843375205994, -0.9111206531524658, 0.36131811141967773, -0.23264294862747192, -0.6529919505119324, -0.174997478723526,...
def test _ atomic _ any _ uri _ pattern _ 1 _ nistxml _ sv _ iv _ atomic _ any _ uri _ pattern _ 2 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - pattern - 2. xsd ", instance = " nistdata / atomic / ...
[ -0.35874688625335693, -0.615666925907135, 0.540399968624115, 1.2134190797805786, -0.45692750811576843, -0.02654692716896534, 0.5489671230316162, 0.003206633497029543, -0.8247227668762207, -0.09505314379930496, -0.19098910689353943, -0.04091687127947807, -0.10008048266172409, 0.277126640081...