text
stringlengths
25
2.19k
embedding
listlengths
768
768
def _ add _ strapdown ( mdfile ) : return " " " <! doctype html > < html > < title > don't curl http : / / example / install. sh | sh < / title > < xmp theme = " simplex " style = " display : none ; " > { } < / xmp > < script src = " http : / / strapdownjs. com / v / 0. 2 / strapdown. js " > < / script > < / html > " "...
[ 0.5076350569725037, -0.6161514520645142, 0.6715058088302612, -0.5496670603752136, -0.7053461074829102, 1.2584441900253296, -0.25068771839141846, -0.24315378069877625, 0.17625847458839417, -0.08290120214223862, 1.1733440160751343, -0.49446901679039, -0.5413034558296204, 0.8811293244361877, ...
def get _ codon _ count _ from _ relative _ position ( start _ codon _ absolute, rel _ codon _ pos, count _ vector ) : codon _ position _ in _ nt = start _ codon _ absolute + ( rel _ codon _ pos * 3 ) final _ count = np. nansum ( count _ vector [ codon _ position _ in _ nt - 1 : codon _ position _ in _ nt + 2 ] ) # get...
[ 0.829664945602417, -1.1500372886657715, 0.9099116325378418, 0.20603728294372559, -0.5248085856437683, 0.4732144773006439, 0.2927868068218231, 0.18233244121074677, -0.4402485489845276, 0.2416679859161377, -1.0861009359359741, 0.7755236029624939, 0.5052492618560791, -1.5194748640060425, 0....
def grand _ total ( self, grand _ total ) : self. _ grand _ total = grand _ total
[ -0.42840576171875, -0.20132388174533844, 0.3544691801071167, -0.49716898798942566, 1.2672064304351807, 1.322451114654541, 0.01192568615078926, 0.13812106847763062, -1.5053218603134155, 0.20051759481430054, -1.1171625852584839, -0.2320684790611267, 0.8105211853981018, -0.5584139227867126, ...
def test _ atomic _ language _ enumeration _ 2 _ nistxml _ sv _ iv _ atomic _ language _ enumeration _ 3 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - enumeration - 3. xsd ", instance = " nistda...
[ -0.06221338361501694, -0.6461453437805176, 0.5269853472709656, 0.31471747159957886, -0.10697673261165619, 0.19533146917819977, -0.19276216626167297, -0.13755951821804047, 0.451263427734375, 0.9343854784965515, -0.1260247826576233, -0.3320424258708954, 0.007521292194724083, -0.3398129940032...
def fetch ( self ) : os. makedirs ( os. path. dirname ( self. cached _ repo ), exist _ ok = true ) if not os. path. exists ( self. cached _ repo ) : self. _ log. warning ( " index not found, caching % s in % s ", self. repo, self. cached _ repo ) git. clone ( self. remote _ url, self. cached _ repo, checkout = true ) e...
[ -0.08329051733016968, -0.456257700920105, 0.4436309039592743, -0.30046308040618896, -0.08143090456724167, 0.953653872013092, -0.4345135986804962, -0.14489255845546722, 0.2467418611049652, 0.23891465365886688, -0.12374330312013626, 0.4946327805519104, 0.17084592580795288, -0.430704772472381...
def append _ pres _ pred _ to _ df ( self, eval _ past _ cases, eval _ past _ ips, geo, geo _ pres, geo _ pred ) : # append prescriptions pres _ arr = np. array ( [ geo _ pres [ ip _ col ]. values [ 0 ] for ip _ col in npi _ columns ] ). reshape ( 1, - 1 ) eval _ past _ ips [ geo ] = np. concatenate ( [ eval _ past _ i...
[ -0.48909297585487366, 0.14312247931957245, 0.5306248664855957, -0.5554398894309998, -0.12325646728277206, 0.5257164835929871, -0.6272669434547424, 0.8462802767753601, -0.2788682281970978, 0.5895147919654846, 1.5668407678604126, 0.5740333199501038, 0.36750173568725586, 0.12436362355947495, ...
def xc _ trace ( x _ trace, x _ design, pix _ per _ mm ) : # _ x _ design = - pix _ per _ mm * x _ design [ : : - 1 ] _ x _ design = pix _ per _ mm * x _ design size = slit _ function _ length ( _ x _ design, oversample = 10 ) [ 1 ] fftsize = fftpack. next _ fast _ len ( size ) design _ offset, design _ slits _ x, desi...
[ 1.2494676113128662, 0.5965266227722168, 0.7530628442764282, -0.6033397912979126, -0.025423407554626465, -0.253869891166687, -0.0025030882097780704, -0.021952498704195023, 0.7202222347259521, -0.4132353961467743, 0.5138618350028992, 0.7117673754692078, 0.6994256377220154, 0.0518110133707523...
def test _ calculate _ spend _ cost _ basis _ 1 _ buy _ used _ by _ 2 _ sells _ taxfree ( accountant ) : asset = a _ btc cost _ basis = accountant. pots [ 0 ]. cost _ basis asset _ events = cost _ basis. get _ events ( asset ) asset _ events. acquisitions _ manager. add _ acquisition ( assetacquisitionevent ( amount = ...
[ 0.5500316023826599, -0.25250524282455444, 0.8038936257362366, 0.5069332122802734, 0.3046414852142334, -0.40047869086265564, 0.9226290583610535, -0.9299817085266113, 0.09912557154893875, 0.18870335817337036, -0.3365156948566437, -0.013796540908515453, -0.003988510929048061, -0.1755674779415...
def getunidevuint ( self, range = 0 ) : return _ snap. trnd _ getunidevuint ( self, range )
[ -0.8908719420433044, 0.6744084358215332, 0.3394710421562195, -0.46018481254577637, 1.5784494876861572, 0.23454460501670837, 0.45793217420578003, 0.2216215431690216, -0.0667504370212555, -1.7218908071517944, -0.6987230777740479, -0.11812318116426468, -0.5286198258399963, -0.0134152676910161...
def steady _ state _ check ( population _ density, epsilon = 0. 5, time _ range _ percent = 10 ) : time _ range = int ( population _ density. shape [ 1 ] / time _ range _ percent ) # we select only the last timepoints for each # population population _ density _ reduced = population _ density [ :, - time _ range : - 1 ...
[ -0.05880478769540787, -0.2638586163520813, 0.6378777623176575, 0.11661463230848312, -0.2821762263774872, 0.46221375465393066, -0.08647088706493378, 0.27542591094970703, -0.11870016902685165, 1.1849966049194336, 0.46970319747924805, -0.659811794757843, 0.3054671883583069, -0.169641405344009...
def get _ hash _ value _ lengths ( self ) : lens = np. zeros ( len ( self. _ fingerprints ) ) for idx, key in enumerate ( self. _ fingerprints ) : lens [ idx ] = len ( self. _ fingerprints [ key ] ) return lens
[ 0.21431021392345428, 0.11877743154764175, 0.46177804470062256, 0.0006397063843905926, 1.0549471378326416, 0.864021897315979, -0.17834064364433289, 0.5240559577941895, -0.10825486481189728, 0.22302043437957764, -0.3850448429584503, 0.09023777395486832, -0.008207369595766068, 0.6031710505485...
def hasflag ( self, * args ) : return _ snap. tngraph _ hasflag ( self, * args )
[ 0.4554641842842102, 1.1531128883361816, 0.44139567017555237, 0.5309672355651855, 0.9068993926048279, 0.45642557740211487, 0.4161718487739563, 1.1146321296691895, -1.5448663234710693, -0.5739935636520386, -0.4222472906112671, -0.8613486289978027, -0.42483940720558167, 0.7047200202941895, ...
def spatial _ channel ( n, k, l, lamaba ) : d = lamaba / 2 # the antenna spacing # the channel matrix channel = np. zeros ( dtype = np. complex128, shape = ( n, k ) ) # the sub - channel matrix sub _ channel = np. zeros ( dtype = np. complex128, shape = ( n, l ) ) for k in range ( k ) : for l in range ( l ) : # the com...
[ 0.47065469622612, 0.3166423439979553, 0.8909894824028015, -0.005850525572896004, 0.07630616426467896, 0.7627469897270203, 0.06748636066913605, 0.16582658886909485, 0.517549455165863, -0.1556807905435562, 0.16260258853435516, 1.0164153575897217, 0.6920681595802307, -0.22710786759853363, -...
def _ get _ name _ for _ type ( self, type _ value ) : datadict = json. loads ( self. instance. xform. json ) for item in datadict ['children'] : if isinstance ( item, dict ) and item. get ( u'type') = = type _ value : return item ['name']
[ -0.9457374215126038, -0.40184277296066284, 0.681747317314148, -1.0389071702957153, -0.7001224756240845, -0.2918725907802582, -0.2470211535692215, -0.9281324744224548, -1.0324844121932983, 0.8526378870010376, -0.05954863131046295, -0.23829786479473114, 0.6476055383682251, 0.5414095520973206...
def _ _ init _ _ ( self, host ='', port = 0, local _ hostname = none, timeout = socket. _ global _ default _ timeout, source _ address = none ) : self. _ host = host self. timeout = timeout self. esmtp _ features = { } self. command _ encoding ='ascii'self. source _ address = source _ address if host : ( code, msg ) = ...
[ -0.20375336706638336, 0.032591987401247025, 0.702746570110321, 0.1238674595952034, -0.9929184317588806, -0.7782379984855652, -0.025746360421180725, 0.9423407912254333, -0.004397900775074959, 0.26496875286102295, -0.36317598819732666, 0.596906840801239, 0.43854495882987976, 0.74725550413131...
def _ rerankbygeometricverification ( input _ ranks, initial _ scores, query _ name, index _ names, query _ features _ dir, index _ features _ dir, junk _ ids ) : num _ index _ images = len ( index _ names ) if len ( input _ ranks )! = num _ index _ images : raise valueerror ('input _ ranks and index _ names have diffe...
[ -0.5447126626968384, 0.3061494529247284, 0.5550451278686523, 0.726100504398346, 0.9660462141036987, -0.2771369516849518, 0.770509660243988, 0.2700185775756836, -0.10934482514858246, 0.43529409170150757, 0.07537354528903961, 1.3197540044784546, -0.5626327991485596, -0.30464041233062744, 0...
def test _ model _ param _ rules ( self ) : mod = evo _ app. model ( " gn ", param _ rules = [ dict ( par _ name = " length ", edge = " mouse ", is _ independent = false ) ], ) self. assertequal ( mod. _ param _ rules [ 0 ]. get ( " upper " ), 50 ) mod = evo _ app. model ( " gn ", param _ rules = [ dict ( par _ name = ...
[ 0.11003629118204117, 0.48640701174736023, 0.4787098467350006, 0.2038014978170395, 0.9681242108345032, 1.1990200281143188, -0.5199986100196838, 0.6112098097801208, -0.6523178815841675, 0.8878363370895386, -0.6728289127349854, 0.28692442178726196, 0.1873788833618164, 0.5911844968795776, -0...
def parse _ operands ( lexer, module, op _ format, type _ id ) : operands = [ ] kinds = op _ format ['operands'] [ : ] while kinds : kind = kinds. pop ( 0 ) operands = operands + parse _ operand ( lexer, module, kind, type _ id ) token, _ = lexer. get _ next _ token ( ', ', accept _ eol = true ) if token = ='' : break ...
[ -0.2934006154537201, -0.43488138914108276, 0.47611719369888306, 0.2991969585418701, -0.10531308501958847, -0.1529311239719391, -0.8044548630714417, -0.4653565287590027, 0.1303475946187973, 1.434665322303772, 0.47515445947647095, 0.2207108438014984, -0.5211477875709534, 0.3602297306060791, ...
def save ( self, outfile = " " ) : f = open ( outfile,'w') pickle. dump ( self, f ) f. close ( ) return
[ -0.3746625483036041, -0.5027530789375305, 0.5022041201591492, -0.15128552913665771, 0.4571022093296051, 0.811206042766571, 0.584384560585022, 0.42442378401756287, -1.0949325561523438, 0.02190191112458706, -1.0385420322418213, -0.8107112646102905, -0.7055846452713013, -0.3053344786167145, ...
def tlognotify _ new ( * args ) : return _ snap. tlognotify _ new ( * args )
[ -0.3072724938392639, -0.13908042013645172, 0.1183009222149849, -0.7027968168258667, -0.6421006321907043, -0.5295895934104919, -0.375302791595459, 0.0010604432318359613, -2.0799639225006104, 0.5303342938423157, -1.6366056203842163, -1.0074882507324219, 1.2491201162338257, 0.9675859212875366...
def addintattre ( self, * args ) : return _ snap. tneanet _ addintattre ( self, * args )
[ -0.6129530668258667, 0.4192441403865814, 0.5058279037475586, -0.6796940565109253, 0.8018839955329895, -0.4287787675857544, 0.2564302980899811, -0.9323478937149048, -0.8759904503822327, -0.19952017068862915, 0.6817811727523804, -1.3248236179351807, -1.6593878269195557, 0.3020925521850586, ...
def test _ rate _ article _ anonymous ( self ) : data _ string, status _ code = self. rate ( is _ authenticated = false ) self. assertin ('error ', data _ string ) self. assertequal ( 401, status _ code )
[ -0.16604340076446533, 0.3543727695941925, 0.11834008246660233, -0.21745172142982483, 0.5432788729667664, 0.9883030652999878, -0.9225257635116577, -0.08144868165254593, -0.26745525002479553, 0.31302711367607117, -0.16310681402683258, 0.5143218636512756, -0.8117141723632812, -0.5194061994552...
def getgroupclosenesscentr ( * args ) : return _ snap. getgroupclosenesscentr ( * args )
[ -0.3111610412597656, -0.7167094349861145, 0.5582704544067383, 0.995150625705719, -0.05849693715572357, 0.6478524804115295, 0.7038211226463318, -0.6560815572738647, -0.6454026699066162, -0.3898898959159851, 0.7505560517311096, -0.07543696463108063, -0.4233104884624481, 1.6020795106887817, ...
def endeaflti ( self, * args ) : return _ snap. tneanetmp _ endeaflti ( self, * args )
[ 0.49946489930152893, -0.3248515725135803, 0.10179968923330307, -1.3150622844696045, 1.0162601470947266, 0.5024145841598511, 0.2915198802947998, -0.0898493155837059, -0.9722476005554199, 1.256090760231018, -0.5231449604034424, -1.183319091796875, -0.6328135132789612, 1.042291283607483, 0....
def join ( self ) : self. input _ queue. join ( )
[ 0.5619328618049622, -1.023648977279663, 0.3393501937389374, 0.0321691669523716, 0.5430046319961548, 1.3649054765701294, -0.2772771716117859, 0.1393059939146042, -0.8600152134895325, -0.8258684873580933, -0.0977156013250351, 0.685333251953125, -1.2291228771209717, 0.5252683162689209, 0.03...
def to _ unicode ( data, encoding ='utf - 8') : if isinstance ( data, unicode _ type ) : return data if isinstance ( data, bytes _ type ) : return unicode _ type ( data, encoding = encoding ) if hasattr ( data,'_ _ iter _ _') : try : dict ( data ) except typeerror : pass except valueerror : # assume it's a one dimensio...
[ -0.5678989291191101, 0.4446733891963959, 0.7619944214820862, -0.11081146448850632, -0.9218745231628418, -0.8405896425247192, -0.34649592638015747, 0.41674569249153137, 0.1923219859600067, -0.3022429049015045, -0.7121937870979309, -0.07394638657569885, 0.25889936089515686, 0.130006521940231...
def _ configure _ state _ machine ( self, sm _ params ) : super ( unixremote, self ). _ configure _ state _ machine ( sm _ params ) if self. _ use _ proxy _ pc : self. _ configurations [ unixremote. connection _ hops ] [ unixremote. unix _ remote _ root ] [ unixremote. unix _ remote ] [ " command _ params " ] [ " expec...
[ -1.2043473720550537, -0.08476247638463974, 0.7044296860694885, -0.23689185082912445, 0.34604600071907043, 0.34952303767204285, -0.2810554802417755, 0.27063965797424316, 0.16801181435585022, 0.17344574630260468, 0.11157693713903427, 0.16414131224155426, -0.24343235790729523, 0.2854062318801...
def followbot ( address, index ) : global flag global mouse _ cood mouse _ cood = pyautogui. locatecenteronscreen ( address ) if mouse _ cood! = none : print ( " follow icon found at " + str ( index + 1 ) + \ " : " + str ( mouse _ cood ) ) pyautogui. moveto ( mouse _ cood, duration = 0. 4 ) pyautogui. click ( mouse _ c...
[ 0.18705129623413086, 0.19787508249282837, 0.66994309425354, 0.39635226130485535, -0.4420869052410126, 0.94830721616745, 0.7017133235931396, -0.3572500944137573, 0.16650910675525665, 0.2609650790691376, -0.9529954195022583, 0.9469208717346191, -0.21995562314987183, 0.21492530405521393, 1....
def view _ source ( self, callback = none ) : return self. eval _ js ( " document. getelementsbytagname ('html') [ 0 ]. innerhtml ", callback = callback )
[ -0.29280948638916016, 0.8935232162475586, 0.4477059543132782, -0.8103329539299011, -1.235242486000061, -1.169991374015808, 0.5612489581108093, 0.3598555028438568, 0.9178767204284668, -0.21749159693717957, 0.013161023147404194, 0.25145959854125977, -0.13197588920593262, 0.7315925359725952, ...
def cmtygirvannewmanstep ( * args ) : return _ snap. cmtygirvannewmanstep ( * args )
[ -0.4701748788356781, -0.2883239686489105, 0.2955997586250305, -0.44303634762763977, -0.5195803046226501, 0.32172146439552307, -0.7337871789932251, -0.5815016627311707, -0.8051918745040894, 0.181430384516716, -0.39509499073028564, -0.19732488691806793, -0.921314537525177, 2.0286662578582764...
def mode ( nums ) : d = { } for x in nums : if x in d : d [ x ] = d [ x ] + 1 else : d [ x ] = 1 vp = d. items ( ) x = 0 y = 0 mx = 0 my = 0 for x, y in vp : if y > my : mx = x my = y return mx
[ -0.9868318438529968, -0.1090630516409874, 0.49145811796188354, 0.0470023974776268, -0.12884552776813507, 0.22813168168067932, -0.2309981882572174, 0.16409996151924133, 0.20388393104076385, -0.1578475534915924, -0.4078752398490906, -0.40502890944480896, 0.7381943464279175, 0.062103949487209...
def eax _ a ( self ) : return self [ 0 ]
[ 0.1124267503619194, -0.5170760154724121, 0.5528246164321899, -0.5979938507080078, 0.004898049868643284, 0.3352506160736084, 0.05086768791079521, 0.249513179063797, 1.1149026155471802, -0.006762657780200243, 0.4844292998313904, 0.9943786859512329, 0.4000765383243561, -0.5898035764694214, ...
def _ _ init _ _ ( self, * args ) : _ snap. tmem _ swiginit ( self, _ snap. new _ tmem ( * args ) )
[ -0.2738688588142395, 0.39621663093566895, -0.15092310309410095, -0.4804729223251343, 0.6789499521255493, -0.2618542015552521, 1.2468318939208984, 0.261761337518692, -0.5671032667160034, -0.04132149741053581, -0.903071939945221, -0.8627037405967712, -0.39272165298461914, 0.40378543734550476...
def display ( self, msg, screen _ only = none, * args, * * kwargs ) : # ignore if it is screen only output if screen _ only : return logging. getlogger ('transport'). info ( msg )
[ -0.2762167453765869, -0.12475951761007309, 0.4907058775424957, 0.4925639033317566, -0.5299248695373535, 0.05605197325348854, -0.07749343663454056, -0.5993558764457703, 0.29182061553001404, 0.02318689227104187, 1.2332837581634521, 0.351998895406723, -0.17202335596084595, 1.2740858793258667,...
def setval ( self, * args ) : return _ snap. tstrintprv _ setval ( self, * args )
[ -0.6400441527366638, 0.2831399142742157, 0.3200526833534241, -1.054640531539917, 0.004900793079286814, 0.6187543272972107, -0.052447810769081116, 0.589612603187561, -1.4241307973861694, 0.3873670995235443, 0.23048725724220276, -0.14755766093730927, -0.4128422439098358, -0.44189587235450745...
def _ _ init _ _ ( self, image _ shape = ( 299, 299, 3 ), weights = none ) : self. weights = weights # so we can check elsewhere which model input _ tensor = input ( image _ shape ) # get model with pretrained weights. base _ model = inceptionv3 ( input _ tensor = input _ tensor, weights ='imagenet ', include _ top = t...
[ -0.14695791900157928, 0.01610310934484005, 0.670405387878418, 0.2360238879919052, 0.5734589695930481, 0.5416295528411865, 0.21372532844543457, 0.022365150973200798, -0.36638516187667847, 0.35701972246170044, 0.10089309513568878, 0.07071154564619064, -0.09054979681968689, 0.1350211650133133...
def read _ web _ resource ( url, dirptr, filename ) : fp = os. path. join ( dirptr, filename ) try : response = urlopen ( url ) cr = csv. reader ( response. read ( ). decode ('utf - 8') ) return true except requests. exceptions. connectionerror : return false
[ 0.21281902492046356, -0.5386796593666077, 0.4811781346797943, 0.31059011816978455, -0.5214363932609558, 0.6229472160339355, -0.023455552756786346, 0.4244782030582428, -0.2907332181930542, -0.08707243949174881, 0.8151234984397888, -0.1915125548839569, -0.5529022216796875, -0.468708455562591...
def validate _ page _ title ( self, title _ to _ validate ) : try : actual _ title = self. get _ page _ title ( ) return self. util. verify _ text _ contains ( actual _ text = actual _ title, expected _ text = title _ to _ validate ) except valueerror : self. log. error ( " failed to get page title " ) print _ stack ( ...
[ -0.3573858141899109, 0.12426188588142395, 0.6926637291908264, 0.8448142409324646, -0.25957512855529785, 0.7733463048934937, -1.0195425748825073, -0.973282516002655, 0.03580161929130554, 0.633297324180603, 0.7119405269622803, -0.7635423541069031, -0.4992653727531433, -0.31732380390167236, ...
def smbh _ from _ centre ( self, centre, centre _ sigma = 0. 1 ) - > af. priormodel : smbh = af. priormodel ( mp. pointmass ) if self. smbh _ centre _ fixed : smbh. centre = centre else : smbh. centre. centre _ 0 = af. gaussianprior ( mean = centre [ 0 ], sigma = centre _ sigma ) smbh. centre. centre _ 1 = af. gaussian...
[ 1.1909650564193726, -0.07058022916316986, 0.5108994841575623, 0.5933133959770203, -0.5816503763198853, 0.6133022904396057, 0.008090684190392494, -0.487997442483902, 1.452345371246338, 0.23306024074554443, -0.03325987979769707, 0.09783852845430374, -0.8373031616210938, 0.26283419132232666, ...
def rebin ( x, y, binedges ) : # must be passed binedges array since spectra will not be binned with evenly sized bins start = binedges [ 0 ] stop = binedges [ - 1 ] # calculate how many new bins we will have nbins = len ( binedges ) - 1 # create output arrays rebinned = np. zeros ( ( nbins, 2 ), dtype = float ) for i ...
[ -0.3982280194759369, -0.3306134343147278, 0.7492566704750061, 0.5098347663879395, -0.4281063973903656, -0.11043285578489304, 0.3499055802822113, -0.6283114552497864, 0.5255393981933594, 0.5824204683303833, -0.5478101372718811, 0.6647104620933533, -0.20252558588981628, 0.006814005319029093,...
def bokeh _ multiple _ score _ maps _ folium ( scores _ df : pd. dataframe, train _ geos : iterable [ basegeometry ] = none, test _ geos : iterable [ basegeometry ] = none, start _ zoom : int = 9, height : int = 600, width : int = 850, step : float = 50, start _ location = ( 36. 4, 36. 4 ), file _ name : str ='folium '...
[ 0.48246076703071594, -0.34332987666130066, 0.934082567691803, -0.3017381727695465, 0.43936994671821594, 0.04171919822692871, 1.0038899183273315, -0.20434096455574036, 0.41705501079559326, 0.020124616101384163, -0.0936477929353714, -0.15267127752304077, 0.6703664660453796, -0.21947108209133...
def setfollowerscount ( self, count ) : self. _ followers _ count = count
[ 0.19941313564777374, -0.0005280800978653133, 0.33450597524642944, 0.15733478963375092, -0.1639918088912964, 0.8022681474685669, 0.45239049196243286, -0.2461060732603073, -0.7641226649284363, -0.48147913813591003, -1.4761193990707397, 0.12883470952510834, -0.32069259881973267, 0.55217432975...
def make _ pulse _ dict ( pulse _ params = { }, qubit _ num = none, ssbfreq = none, gaussian = true, drag = false, z _ gates = false ) : if drag and ssbfreq is not none : raise exception ('cannot use drag pulse and ssb pulses.') if drag and not gaussian : raise exception ('cannot use drag and square pulses.') calib _ d...
[ -0.4512494206428528, 0.37553882598876953, 0.8240808844566345, -0.08586244285106659, -0.9217848777770996, 0.7346917986869812, 0.21769559383392334, 0.05537530407309532, -0.23666776716709137, 0.31893932819366455, -0.7515033483505249, -0.09112592041492462, 0.5353222489356995, 0.540016412734985...
def evaluate _ thresholds ( self ) : thresholds _ passed = false if self. current _ step. get ('thresholds') is not none : for threshold in self. current _ step. get ('thresholds ', [ ] ) : key = threshold. get ( " source " ) # get state object from manager state = self. mudpi. states. get ( key ) if state is not none ...
[ -0.605513870716095, -0.6326043605804443, 0.796679675579071, -0.5630556344985962, -0.2223903387784958, -0.5566611886024475, -0.5970878601074219, -0.6624556183815002, -0.7117680907249451, -0.04038446769118309, -0.09531457722187042, 0.4856952428817749, 0.0305707398802042, 1.1578348875045776, ...
def get _ sim _ parameter ( self, sim _ name, param ) : # pytau. start ( self. timers ['get _ sim _ parameter'] ) try : sim _ data = self. sim _ map [ sim _ name ] except keyerror : sim _ data = self. finished _ sim _ map [ sim _ name ] # self. fwk. debug ('config values = % s ', str ( sim _ data. sim _ conf ) ) try : ...
[ -0.28540167212486267, 0.03628960996866226, 0.23031561076641083, 0.3554683029651642, -0.7481611371040344, -0.2998547852039337, 0.2904488742351532, -0.5582326054573059, -0.34589409828186035, 0.6943725943565369, -0.12901736795902252, 0.2878943383693695, -0.5300149321556091, 0.8629030585289001...
def tnativecallbacknotify _ new ( * args ) : return _ snap. tnativecallbacknotify _ new ( * args )
[ -0.2556353509426117, -0.556921660900116, 0.48679497838020325, 0.048929352313280106, -0.1979813277721405, 0.01921142265200615, -0.22564582526683807, -0.2923729419708252, -1.4482412338256836, 0.22771193087100983, -1.3924150466918945, -1.7351701259613037, 1.046665906906128, 0.5429397821426392...
def putbf ( self, * args ) : return _ snap. tmemout _ putbf ( self, * args )
[ -0.09110099077224731, 0.7985028624534607, 0.5664657354354858, 0.0663444995880127, 0.54393470287323, 0.07942694425582886, 1.1097217798233032, 0.509198009967804, -1.0859884023666382, -0.09859051555395126, -0.6616687178611755, -0.3319219946861267, -2.2721216678619385, 0.8668822050094604, 0....
def test _ patch ( self ) : self. create _ volume _ objects ( index = 1 ) vg = self. ep. search ( " volume _ groups ", name = " unittest _ vg1 " ). hits [ 0 ] tst _ desc = " tst _ desc " vg. description = tst _ desc vg. save ( ) vg = self. ep. get ( " volume _ groups ", vg. id ) self. assertequal ( vg. description, tst...
[ 0.2856457829475403, 0.25593653321266174, 0.3043261766433716, -0.7417122721672058, 0.5164177417755127, 0.34699931740760803, -1.1266413927078247, 0.27129411697387695, -0.21981237828731537, 0.9158205986022949, 0.3110416531562805, 0.4061565697193146, -0.5526186227798462, -0.2074509710073471, ...
def test _ atomic _ base64 _ binary _ enumeration _ 4 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ enumeration _ 5 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - enumeration - 5. xsd ...
[ -0.4907379448413849, -0.7120890021324158, 0.48848041892051697, 1.0582276582717896, -0.008868412114679813, -0.1971951723098755, 0.5598284006118774, -0.8686710596084595, -0.4208299517631531, 0.5034088492393494, -0.7179775238037109, -0.051057368516922, -1.109422206878662, 0.3547211289405823, ...
def copy _ with ( self, *, name =..., position =..., channel _ id =..., ) : # channel _ id if channel _ id is... : channel _ id = self. id else : channel _ id = validate _ id ( channel _ id ) # name if name is... : name = self. name else : name = validate _ name ( name ) # position if position is... : position = self. ...
[ 0.27230244874954224, -1.7542901039123535, 0.9032770395278931, -0.05844159051775932, -0.7387832403182983, 0.46961191296577454, -0.7148200869560242, -0.8950034976005554, 0.3961525559425354, 0.20092080533504486, -0.6377893686294556, 0.26096686720848083, -0.39227256178855896, -0.21920120716094...
def getv ( * args ) : return _ snap. tstrv _ getv ( * args )
[ -0.5859224796295166, 0.023816391825675964, 0.09849497675895691, 0.08943378925323486, 0.8363305926322937, 0.1169714406132698, 1.1706622838974, 0.5445845723152161, -0.672110378742218, -0.25400450825691223, -0.4766726493835449, 0.31961023807525635, 0.740921676158905, -0.08623591810464859, 0...
def test _ feature _ request _ comment _ created _ default ( self ) : # michael bolton creates first fr for initech, no product areas. fr = featurerequest ( id = 1, user _ id = 3, client _ id = 3, identifier = 1, title ='convert 2 - digit dates to 4 - digit. ', description ='prepare for y2k by updating date storage for...
[ 0.14506588876247406, -0.3181731402873993, 0.45356103777885437, 0.7617799043655396, 2.1082823276519775, -0.12465079873800278, 0.35975080728530884, -0.34963876008987427, -0.6138938665390015, -0.9816304445266724, -0.1221669390797615, -0.5964667797088623, 0.5384736061096191, 0.3502360582351684...
def _ _ init _ _ ( self, hass : homeassistant, config : mapping [ str, any ], options : mapping [ str, any ], ) - > none : self. _ hass : homeassistant = hass self. _ clientsession : aiohttp. clientsession | none = none self. _ unique _ id : str = " " self. _ api = host ( config [ conf _ host ], config [ conf _ usernam...
[ 1.0889745950698853, -0.31378307938575745, 0.854236364364624, 0.47243669629096985, 0.17291724681854248, -0.3889251947402954, -0.0776486024260521, 0.08733661472797394, 0.7175114154815674, 0.6612352132797241, -0.8221396803855896, -0.015078204683959484, 0.3865453004837036, 0.5178510546684265, ...
def removeaporeg ( self, date ) : del self. aporeg [ date ]
[ -0.32507336139678955, 1.0034959316253662, 0.3522781729698181, -1.6908279657363892, -1.301665186882019, -0.1564093828201294, -1.075123906135559, -0.12149033695459366, 0.34828582406044006, 0.9357383847236633, -0.23629827797412872, -0.8637189865112305, -0.19781915843486786, -0.250659704208374...
def add ( self, * args ) : return _ snap. tstrintprv _ add ( self, * args )
[ -0.9689925909042358, -0.3742026686668396, 0.3933435082435608, -1.715929627418518, 0.4195712208747864, 0.6918526291847229, -0.13351327180862427, 0.9509289860725403, -0.8945236206054688, 0.33131280541419983, 0.4272601306438446, -0.12425445020198822, -1.0474979877471924, -0.21408914029598236,...
def other _ user ( pagename ) : global username, email f = codecs. open ( " user / " + pagename, " r ", " utf - 8 " ) text = f. readlines ( ) prof _ pic = text [ 3 ] profile _ pic = text [ 3 ] first = text [ 0 ] last = text [ 1 ] age _ 2 = text [ 6 ] apa = text [ 7 ] tele = text [ 8 ] likees = text [ 9 ] f. close ( ) r...
[ -0.5607512593269348, -0.12607337534427643, 0.5479710102081299, -0.5358994603157043, -0.8278025388717651, 0.6410496234893799, 0.18710283935070038, 0.00985771231353283, -0.1215113177895546, -0.21283848583698273, -0.19257721304893494, -0.09800238162279129, -0.42501300573349, -0.02722282893955...
def _ _ repr _ _ ( self ) - > str : return f " < account'{ self. name }'( { self. type } ) : { self. balance } { self. currency } > "
[ -0.04585326835513115, -1.3153022527694702, 0.5716007947921753, -0.758919894695282, -0.13037626445293427, 0.633863091468811, 0.6042342782020569, -0.6480214595794678, 0.9852281808853149, 0.02150815539062023, 0.3938668370246887, 0.923810601234436, 0.49101388454437256, -0.5969962477684021, 0...
def setstrval ( self, * args ) : return _ snap. tpredicate _ setstrval ( self, * args )
[ -0.5950549840927124, 0.7511122226715088, 0.12925250828266144, -0.7970440983772278, -0.3598679006099701, 0.04387417808175087, 0.8334711790084839, 0.9642724394798279, -1.9370251893997192, 0.4194449782371521, -1.3510444164276123, -0.1000528335571289, -0.2710866332054138, 0.5234373211860657, ...
def test _ list _ decimal _ enumeration _ 3 _ nistxml _ sv _ iv _ list _ decimal _ enumeration _ 4 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - enumeration - 4. xsd ", instance = " nistdata / list / ...
[ -0.7726203799247742, -0.5587604641914368, 0.6354614496231079, 0.5241034030914307, 0.222054123878479, -0.34536275267601013, -0.06543499231338501, 0.2023024708032608, 0.905829906463623, -0.0744764432311058, -0.9772068858146667, -1.0452724695205688, -0.1869324892759323, 0.08660314232110977, ...
def render ( self ) : return mark _ safe ( u'& nbsp ; & nbsp ; '. join ( [ u'% s'% force _ unicode ( w ) for w in self ] ) )
[ -0.27628156542778015, 0.34831368923187256, 0.5860894918441772, -0.4450283348560333, -0.09290770441293716, 0.7669117450714111, -1.4106831550598145, 0.15838366746902466, -0.024021634832024574, 0.26535314321517944, -0.7560482621192932, -0.1760966181755066, -0.7332752346992493, 0.5211257338523...
def psf ( channel : u. angstrom, use _ preflightcore = false, diffraction _ orders = none ) : meshinfo = filter _ mesh _ parameters ( use _ preflightcore = use _ preflightcore ) meshinfo = meshinfo [ channel ] angles _ entrance = meshinfo ['angle _ arm'] angles _ focal _ plane = u. quantity ( [ 45. 0, - 45. 0 ],'deg') ...
[ 0.05863530933856964, 0.2438264787197113, 0.5212355256080627, -0.5671952366828918, -0.06816817820072174, -0.573164165019989, 0.12284626811742783, -0.36083099246025085, 0.23803262412548065, 0.029585067182779312, 0.21663498878479004, -0.2519243061542511, -0.5459328889846802, 0.290520250797271...
def get _ mixed _ distribution ( type2p, type2q, p = 0. 5, q = 0. 5 ) : types = set ( type2p. keys ( ) ). union ( set ( type2q. keys ( ) ) ) type2m = dict ( ) for t in types : if t in type2p and t in type2q : type2m [ t ] = p * type2p [ t ] + q * type2q [ t ] elif t in type2p : type2m [ t ] = p * type2p [ t ] else : ty...
[ -0.6091113686561584, -1.3434908390045166, 0.7712758183479309, -0.6845209002494812, -0.16851814091205597, 0.7121062278747559, -0.47893843054771423, -0.684395432472229, -0.34808188676834106, 0.008915022946894169, -0.4073581099510193, 0.47449854016304016, -0.04463788866996765, 0.4857586622238...
def test _ atomic _ language _ pattern _ nistxml _ sv _ iv _ atomic _ language _ pattern _ 1 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - pattern - 1. xsd ", instance = " nistdata / atomic / la...
[ 0.03785405308008194, -0.556113064289093, 0.4800589382648468, 0.8265673518180847, -0.48077619075775146, 0.3149917423725128, -0.08894527703523636, 0.20554213225841522, -0.02740284614264965, 0.9799602031707764, -0.19960826635360718, 0.09727735817432404, 0.15083172917366028, 0.0618783496320247...
def summary ( self ) : return self. _ _ class _ _. _ _ name _ _
[ -0.8215245008468628, -0.562129020690918, 0.872755229473114, -0.1533363163471222, -0.26442596316337585, 0.8526616096496582, 0.024551844224333763, -0.8156173825263977, 1.2500559091567993, 0.5197835564613342, -0.1885707974433899, 0.4973685145378113, 0.9452064633369446, 0.09081585705280304, ...
def classify ( self, * args ) : return _ snap. ttable _ classify ( self, * args )
[ -1.6305193901062012, 0.7537654042243958, 0.3884904384613037, 0.6998214721679688, 0.3805345892906189, 0.16597381234169006, 0.34707528352737427, -0.047178518027067184, -1.3690993785858154, -0.10388031601905823, -0.08439625054597855, -0.199101984500885, -0.11547651141881943, 0.684708833694458...
def qsort ( self, * args ) : return _ snap. tfltv _ qsort ( self, * args )
[ -0.790531575679779, 0.47586601972579956, 0.18238963186740875, -0.8659751415252686, 0.31596171855926514, 0.057945311069488525, 0.6956169009208679, -0.4075261354446411, -0.7606043219566345, -1.2017784118652344, -0.6208711266517639, -0.45079168677330017, -0.8209773898124695, 1.192853569984436...
def begeastri ( self, * args ) : return _ snap. tneanetmp _ begeastri ( self, * args )
[ -0.07399316877126694, -0.3562765419483185, 0.12961557507514954, -0.6198452711105347, 1.776085615158081, 0.2412366420030594, -0.16164369881153107, -0.02311122417449951, -0.890365481376648, 0.6491785049438477, -0.14994551241397858, -0.8574202060699463, -1.0452849864959717, 0.8639461398124695...
def test _ atomic _ any _ uri _ min _ length _ 1 _ nistxml _ sv _ iv _ atomic _ any _ uri _ min _ length _ 2 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - minlength - 2. xsd ", instance = " nistdata...
[ 0.001606116071343422, -0.8289955258369446, 0.47199082374572754, 0.8521783947944641, -0.5344975590705872, -0.1882873922586441, -0.014531916007399559, -0.45817551016807556, -0.31305184960365295, -0.3191148638725281, -0.1869415044784546, 0.19447727501392365, -0.3969147205352783, 0.49824246764...
def wx _ zamknij ( self, evt ) : dialog = wx. messagedialog ( self, " czy na pewno? ", " konczymy prace ", style = wx. ok | wx. cancel ) x = dialog. showmodal ( ) if x = = wx. id _ ok : self. close ( )
[ 0.47073522210121155, -0.21483394503593445, 0.6260063648223877, 0.026715505868196487, -1.2649297714233398, 1.2084670066833496, 0.38305553793907166, 0.05995824187994003, 0.2304748147726059, 0.2739412188529968, -0.220651313662529, 0.4617655575275421, -0.24916844069957733, 0.2759276032447815, ...
def addedgeunchecked ( self, * args ) : return _ snap. tngraphmp _ addedgeunchecked ( self, * args )
[ -0.15442991256713867, 0.22285614907741547, 0.261031836271286, -0.26112914085388184, 1.3782811164855957, 0.7391011714935303, 1.2532951831817627, -0.197121262550354, -0.7071964144706726, -0.5018203854560852, 0.020030997693538666, -0.43964359164237976, -1.4202524423599243, 0.1614883691072464,...
def colgenericopmp ( self, * args ) : return _ snap. ttable _ colgenericopmp ( self, * args )
[ -1.6097322702407837, 0.2506260871887207, 0.3407432734966278, 0.29092544317245483, 0.4876602590084076, 0.29894742369651794, 0.3226630389690399, -0.5983767509460449, -1.3983255624771118, 1.1421347856521606, 0.4460500180721283, -1.7564061880111694, -0.3257623016834259, -0.33609870076179504, ...
def trunc ( self, * args ) : return _ snap. tstrv _ trunc ( self, * args )
[ -0.13968877494335175, 0.3019607663154602, 0.37678056955337524, -0.8028460144996643, 0.7085624933242798, 0.08860794454813004, 1.3861531019210815, 0.4079904556274414, -0.6655034422874451, -0.07096917182207108, -0.501111626625061, 0.9310715198516846, 0.8957306742668152, 0.002718548057600856, ...
def test _ user _ change _ page ( self ) : url = reverse ('admin : core _ user _ change ', args = ( self. user. id, ) ) res = self. client. get ( url ) self. assertequal ( res. status _ code, 200 )
[ 0.02114732377231121, 0.5778924226760864, 0.22333377599716187, -0.06498891115188599, 0.38968124985694885, 0.522424042224884, -0.11792196333408356, 0.24342983961105347, -0.012849866412580013, -0.016724221408367157, -0.11387576162815094, 0.9386819005012512, 0.07354213297367096, 0.336111694574...
def deleteplayers ( ) : # connect to the database conn = connect ( ) curs = conn. cursor ( ) # delete all records from the matches table where the tournament id is 1 query = " delete from matches where tournament _ id = 1 " curs. execute ( query ) # delete all records of the players table query = " delete from players ...
[ 0.35193899273872375, -0.3531635105609894, 0.9703153371810913, 0.01563636213541031, 0.9056897759437561, 0.020443547517061234, -0.1062028780579567, 1.0623040199279785, -0.46360382437705994, 0.4515685439109802, 0.4168218672275543, -0.658001184463501, -1.0664734840393066, -0.11013274639844894,...
def getch ( self, * args ) : return _ snap. tcha _ getch ( self, * args )
[ 0.4359840750694275, 1.2528975009918213, 0.42271047830581665, -0.23041804134845734, 1.4974783658981323, 0.5775708556175232, 1.3618050813674927, 0.11921027302742004, -0.8178894519805908, -0.1287529617547989, -0.3359532058238983, -0.5197692513465881, 0.03759362921118736, 0.10020153969526291, ...
def obtain _ bearer _ token ( self, host, path ) : url ='{ 0 } { 1 } '. format ( host, quote ( path. encode ('utf8') ) ) data = urlencode ( {'client _ id': self. client _ id,'client _ secret': self. client _ secret,'grant _ type': self. grant _ type, } ) headers = {'content - type':'application / x - www - form - urlen...
[ 0.00031279920949600637, -0.680118203163147, 0.8773024678230286, 0.05969797819852829, -0.37128081917762756, 0.025288980454206467, -0.09434446692466736, 0.20850041508674622, -0.7723953723907471, -0.26982197165489197, -0.6025233268737793, 1.760075330734253, -0.47051572799682617, 0.60482913255...
def rate ( self, user : user = none, is _ authenticated : bool = true, is _ found : bool = true, stars : int = 5 ) : if not user : user = self. reader if is _ found : slug = self. slug else : slug ='not - meant - to - be - found'ratings _ url = reverse ('articles : ratings : all _ ratings ', kwargs = { " slug " : slug ...
[ -1.5635625123977661, 0.6663498878479004, 0.7698520421981812, 0.10787016153335571, 0.3558621406555176, 0.20271824300289154, -0.565276563167572, 0.35337555408477783, -0.1418476700782776, 0.690843403339386, -0.17603479325771332, 0.3088863492012024, -1.3187320232391357, 0.2087690234184265, -...
def _ filter _ value _ data ( value _ data, remove _ ids, dimension ) : def _ norm _ id ( _ id ) : return _ id. replace ( " ", " _ " ) val _ df = pd. dataframe ( value _ data ['values'], index = value _ data ['row _ ids'], columns = value _ data ['col _ ids'], dtype ='object') if dimension = ='row': filtered _ df = val...
[ -0.46371451020240784, 0.10927269607782364, 0.4617372453212738, -0.49609050154685974, -1.1405447721481323, -0.18774792551994324, -0.7842675447463989, 0.2190050333738327, -0.8297969102859497, 0.8201591968536377, -0.13022904098033905, 0.46555095911026, 0.6323562264442444, -0.5742481350898743,...
def download _ and _ trim _ youtube _ video ( url, start, end ) : print ( " downloading video... " ) # check if audio _ folder exists, otherwise create it if not os. path. exists ( audio _ folder ) : os. makedirs ( audio _ folder ) video = pytube. youtube ( url ). streams. first ( ). download ( audio _ folder ) if star...
[ 0.36286696791648865, -1.1076387166976929, 0.7969611883163452, 1.0498685836791992, 0.7003250122070312, 0.12129204720258713, 0.17399413883686066, 0.3072212338447571, 0.36309123039245605, 0.36894410848617554, -0.3042333126068115, 0.8786439299583435, -0.3239845335483551, 0.06511858105659485, ...
def addintattrdate ( self, * args ) : return _ snap. tneanet _ addintattrdate ( self, * args )
[ 0.15622088313102722, 0.15806417167186737, 0.3097454309463501, -0.624845027923584, 0.12874729931354523, 0.5043051242828369, -0.3482503890991211, -0.7675818800926208, -0.7729017734527588, -0.3391127288341522, 0.3666006922721863, -1.4075945615768433, -0.9172927141189575, 0.954123318195343, ...
def test _ missing _ value _ ignored ( df ) : data = df. copy ( ) data. loc [ 15, " var _ 3 " ] = np. nan transformer = drophighpsifeatures ( missing _ values = " ignore " ) transformed = transformer. fit _ transform ( data ) assert transformer. psi _ values _ = = pytest. approx ( expected _ psi _ num, 12 ) assert tran...
[ -0.17569293081760406, 0.44784000515937805, 0.6924619078636169, 0.14176972210407257, 1.1121076345443726, 0.4889516532421112, 0.41293179988861084, 0.3189508616924286, 0.10210464894771576, -0.5077574849128723, -1.1774417161941528, -0.09550990164279938, 0.08089692890644073, 0.06294100731611252...
def isnextk ( self, * args ) : return _ snap. ttable _ isnextk ( self, * args )
[ -1.056470274925232, 1.0098636150360107, 0.3381531238555908, 1.2293978929519653, -0.16327600181102753, -0.5200222730636597, 0.6456355452537537, -0.32934674620628357, -1.2712126970291138, 0.8453118801116943, -0.23413817584514618, -1.0780699253082275, -0.1603742390871048, 0.8703409433364868, ...
def getlastsystemmessage ( sensorid ) : util. debugprint ( " getsystemmessages " + sensorid ) query = { sensor _ id : sensorid } record = dbcollections. getsensors ( ). find _ one ( query ) if record is none : return { status : " nok ", " statusmessage " : " sensor not found " } cur = dbcollections. getsystemmessages (...
[ -0.5494030117988586, -0.3559359014034271, 0.5902513265609741, -0.7815515995025635, 0.3290325701236725, -0.42057400941848755, -0.08104900270700455, -1.1377904415130615, -0.1880732774734497, 0.49816352128982544, -0.1293887048959732, 0.012852544896304607, -0.883586049079895, 1.502099871635437...
def test _ bad _ init ( sample _ labels, sample _ predictions, population _ size, population _ flagged _ count, confidence _ level, exact _ precision, ) : with pytest. raises ( exception ) : classificationconfidenceintervals ( sample _ labels = sample _ labels, sample _ predictions = sample _ predictions, population _ ...
[ 0.4983667731285095, -0.09530886262655258, 0.4840351939201355, 0.8867363333702087, 0.5555703043937683, 1.4849401712417603, 0.001831249101087451, -0.03184526041150093, -0.8635112047195435, -0.2872858941555023, -0.026780299842357635, 0.7579039335250854, -0.1570047289133072, 1.0532619953155518...
def get _ tex _ url ( url ) : return url
[ -0.27080556750297546, -0.8589094877243042, 0.18104670941829681, 0.20022156834602356, -0.3941822350025177, -0.1897335797548294, -0.12027522176504135, 0.7380401492118835, 0.28941142559051514, -0.045607101172208786, -0.17347587645053864, 0.015841901302337646, -0.4582260251045227, -0.348220556...
def test _ list _ decimal _ length _ nistxml _ sv _ iv _ list _ decimal _ length _ 1 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - length - 1. xsd ", instance = " nistdata / list / decimal / schema + ...
[ -0.09948165714740753, -0.1994292140007019, 0.4037710726261139, 0.5395433902740479, 0.3191883862018585, -0.1870875358581543, 0.10850277543067932, 0.4441317021846771, 0.9698766469955444, 0.070484958589077, -1.047002911567688, -0.9305915236473083, -0.36812686920166016, 0.7504319548606873, -...
def _ _ call _ _ ( self, field, * * kwargs ) : kwargs. setdefault ('id ', field. id ) html = [ ] # render the select if self. renderer : html. append ( self. renderer ( self, field, * * kwargs ) ) else : html. append ( super ( betterselect, self ). _ _ call _ _ ( field, * * kwargs ) ) # attach the choices initiation wi...
[ -1.1081424951553345, 0.5231824517250061, 0.5831544399261475, -0.4826708137989044, 0.3554326593875885, -0.45787012577056885, -1.021437406539917, -0.6988717317581177, 0.13550175726413727, 0.35743165016174316, 0.21815496683120728, 0.32836198806762695, -0.33236172795295715, 0.49641141295433044...
def setdataset ( self, qds _ name ) : return none
[ -0.11532878130674362, -0.3039398789405823, 0.18464091420173645, -1.2303204536437988, -0.7119483947753906, 0.14186914265155792, -0.717110812664032, -0.5541189908981323, 1.2334967851638794, -1.543857455253601, 0.16144205629825592, 0.6181549429893494, -0.20491719245910645, -0.1444257497787475...
def _ output _ cc _ helper ( a _ cc _ list ) : coord = set ( ) ; advers = set ( ) ret = ( coord, advers ) trg _ coord = trg _ advers = chld _ coord = chld _ advers = none chld _ ret = none if type ( a _ cc _ list ) = = list : if not a _ cc _ list : return ret a _ cc _ list [ 0 ] = normalize ( a _ cc _ list [ 0 ] ) if a...
[ -0.09433409571647644, -0.11897820234298706, 0.6452828049659729, -0.3440580666065216, -0.1072172299027443, -0.3338172435760498, 0.4038654565811157, -0.3795902132987976, 0.11631608009338379, 0.41269630193710327, 0.4204794466495514, -0.2877928614616394, 0.3251204788684845, 0.755189836025238, ...
def exp ( x, name = none ) : return gen _ math _ ops. exp ( x, name )
[ 0.07728809118270874, 0.47965726256370544, 0.40989452600479126, 0.6822712421417236, -1.6643692255020142, 0.08924569189548492, -0.5424264669418335, 0.0170462504029274, 0.40841197967529297, 0.5604856014251709, -0.866620659828186, -0.3015052080154419, 0.6809637546539307, -0.703916072845459, ...
def forward ( self, model, sample, reduce = true ) : net _ output = model ( * * sample ['net _ input'] ) loss, _ = self. compute _ loss ( model, net _ output, reduce = reduce ) sample _ size = sample ['target']. size ( 0 ) if self. sentence _ avg else sample ['ntokens'] logging _ output = {'loss': loss. data,'ntokens':...
[ -0.42110154032707214, 0.3342709541320801, 0.5575921535491943, -0.5273991823196411, -0.9376707673072815, -0.7425297498703003, 0.10198059678077698, -0.439306378364563, -0.4671984612941742, -0.004783835727721453, -0.45044228434562683, -0.36133402585983276, 0.38155806064605713, 0.5363170504570...
def element _ should _ not _ contain ( self, selector, text ) : obj _ text = self. get _ text ( selector ) builtin ( ). should _ not _ contain ( obj _ text, text )
[ -0.813560426235199, -0.31396353244781494, 0.2128167301416397, 0.4853817820549011, -0.13239315152168274, 0.7159684896469116, 0.3856135308742523, 0.27808815240859985, 0.5043799877166748, -0.26653316617012024, -0.1941753476858139, 0.07283023744821548, -0.7198028564453125, -0.12640728056430817...
def create _ variable ( self, vname, nlayer, lname, units = none, desc = none, note = none, dtype ='> f8') : g = self. require _ group ('/ var /'+ vname ) g. attrs. create ('varname ', vname, dtype ='s16') g. attrs. create ('layername ', lname, dtype ='s16') g. attrs. create ('num _ of _ layer ', nlayer, dtype ='> i') ...
[ 0.5678312182426453, 0.8657060265541077, 0.7546374201774597, -0.2118549644947052, 0.10427132248878479, -0.1173761710524559, 0.02497221902012825, -0.7832401394844055, -0.27506786584854126, -0.017922494560480118, -0.48313090205192566, 0.7319985628128052, -0.4142898619174957, 0.292028635740280...
def _ fromjsonstring ( json _ string ) : try : return json. loads ( json _ string ) except valueerror as e : print'error : response is not valid json : % s \ n % s.'% ( e, json _ string ) sys. exit ( 1 )
[ 0.4843793213367462, -1.3768309354782104, 0.32727527618408203, -0.7049175500869751, -0.9721540212631226, -0.07620473206043243, 0.004886587616056204, -1.1790854930877686, 0.6942043900489807, 0.2808528542518616, 0.3188399374485016, -0.18994086980819702, -0.15738515555858612, -1.50216615200042...
def link ( self, x, y ) : if ( x = = y ) : return if self. rank [ x ] < self. rank [ y ] : self. padre [ x ] = y elif self. rank [ x ] > self. rank [ y ] : self. padre [ y ] = x else : self. padre [ y ] = x self. rank [ x ] + = 1
[ -0.32121652364730835, -0.267897367477417, 0.7761225700378418, -0.5347295999526978, 0.24289876222610474, 0.7795318365097046, -0.7943285703659058, -0.8368043899536133, 0.28144606947898865, -0.49944961071014404, -0.19716253876686096, 0.9937140941619873, -0.6255472898483276, -0.295697748661041...
def collect _ run _ 2 _ results ( ) : root = get _ root _ path ( ) folder _ path = os. path. join ( root, " output _ 1 " ) if not os. path. isdir ( folder _ path ) : extract _ archive ( os. path. join ( root, " output _ 1. 7z " ) ) rows = [ ] for f in os. listdir ( folder _ path ) : if f. startswith ( " slurm - " ) and...
[ 0.1579514443874359, -0.43705281615257263, 0.8588235378265381, 0.8153256773948669, -0.27028888463974, -0.555140495300293, 0.5540263652801514, 0.08697731047868729, -0.5959613919258118, -0.08728870004415512, 0.18755216896533966, 0.7924736738204956, 0.47362563014030457, 0.8537772297859192, 0...
def setstatusescount ( self, count ) : self. _ statuses _ count = count
[ 0.06592174619436264, -0.35378697514533997, 0.20387667417526245, -0.1237746849656105, 0.46654611825942993, 0.9567776918411255, -0.10145428031682968, 0.5675022602081299, -0.4794747531414032, -0.8631089329719543, -1.2480401992797852, -0.7940369844436646, 0.1270018368959427, 0.358388215303421,...
def addedge ( self, * args ) : return _ snap. tnegraph _ addedge ( self, * args )
[ -0.971718430519104, 1.7456953525543213, 0.10424934327602386, 0.34782153367996216, 0.5531860589981079, 0.08512665331363678, 0.4162209630012512, 0.13678181171417236, -0.5093730688095093, 0.14158086478710175, -0.20390091836452484, -1.7490875720977783, -1.3061896562576294, 0.6021108627319336, ...
def create _ commit ( repo : repository, message : optional [ str ] = none, add _ all : bool = false ) : commit = commit ( repo ) commit _ headers : messageheaders = { b " tree " : [ commit. tree _ sha. encode ( ) ] } message _ text = message. encode ( ) if message else b " " commit. message = message ( headers = commi...
[ 0.8902879953384399, -0.12651768326759338, 0.6670106053352356, 0.11913847923278809, 0.5875326991081238, 0.03367088362574577, -1.1067830324172974, 0.39415785670280457, -0.8426821231842041, 0.46297016739845276, 0.039192840456962585, -0.25254806876182556, -0.28906774520874023, 0.54207605123519...
def _ _ init _ _ ( self, _ burnprob = 0. 3 ) : _ snap. tundirffire _ swiginit ( self, _ snap. new _ tundirffire ( _ burnprob ) )
[ -0.21651379764080048, 0.215254545211792, 0.0705619752407074, 1.0326919555664062, 0.11762193590402603, -0.8406821489334106, 0.5853651165962219, -0.40168440341949463, -0.9074026942253113, -0.7483550310134888, -0.12316454946994781, -1.1724084615707397, -0.935442328453064, 1.133673906326294, ...