text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def add ( project _ name : str = typer. option (..., " - - project - name ", " - pn ", prompt = true, metavar = " name by which you like to call this project " ) ) : path = os. getcwd ( ) current _ config = jsondataoperations. read ( ) for project _ item in current _ config ['projects'] : if project _ item ['project _ ... | [
-0.5993916988372803,
0.21699100732803345,
0.7597063183784485,
-0.11535613238811493,
0.5728422999382019,
0.8729522824287415,
0.15339185297489166,
0.00143252604175359,
0.2401135116815567,
0.4910249710083008,
-0.26055821776390076,
0.26256024837493896,
-0.5572460293769836,
0.47678640484809875,... |
def build _ run _ characteristics _ file _ from _ template ( rotor _ files, template _ filename = none, template _ file = none, num _ psi = none, velocity = none, rotation _ rates = none, pitch = none, weight = none, cg = none, fuselage _ data = none, atmos _ data : charmatmospheredata = none, nrev = none, convgvec = n... | [
-0.531775176525116,
-1.036041021347046,
0.7954700589179993,
0.5083027482032776,
-0.01569281704723835,
0.2947428226470947,
0.8808788657188416,
1.3859933614730835,
-0.711614727973938,
-0.1939215213060379,
-0.4098570644855499,
0.19672870635986328,
-0.383012056350708,
-0.13446497917175293,
1... |
def _ bind _ dd _ method ( cls, name ) : def meth ( self, * args, * * kwargs ) : _ meth = getattr ( self. to _ ddf ( ), name ) return _ meth ( * args, * * kwargs ) meth. _ _ name _ _ = name setattr ( cls, name, meth ) | [
-1.343093752861023,
-0.4040907621383667,
0.9484681487083435,
-0.9033817052841187,
-0.3873783349990845,
-0.6725555658340454,
0.26221463084220886,
-0.7408823370933533,
-0.22196386754512787,
-0.4577024579048157,
-0.15179164707660675,
-0.04591481015086174,
0.6734070777893066,
0.389270007610321... |
def show _ traj ( traj _ file ) : trajectories = np. loadtxt ( traj _ file ) trajectories = trajectories. reshape ( ( trajectories. shape [ 0 ], int ( trajectories. shape [ 1 ] / 3 ), 3 ) ) fig = plt. figure ( ) ax = fig. add _ subplot ( 111, projection = " 3d " ) for i in range ( trajectories. shape [ 1 ] ) : ax. plot... | [
1.1114277839660645,
0.9193883538246155,
0.5643462538719177,
-0.6998563408851624,
-0.7744796872138977,
0.84546959400177,
0.9593179821968079,
0.8554405570030212,
-0.8644003868103027,
0.9869993925094604,
0.38976138830184937,
0.15600964426994324,
0.3226253390312195,
-0.2521607279777527,
-0.0... |
def generate _ belief _ maps ( self, loss _ mode, orig _ images _ shape, orig _ keypoints, beliefmap _ size ) : assert loss _ mode in ['softmax ','l2'],'wrong loss mode.'belief _ maps = [ ] for image _ index in range ( orig _ keypoints. shape [ 0 ] ) : belief _ map = [ ] for key _ index in range ( orig _ keypoints. sha... | [
-0.8486272692680359,
-1.0065077543258667,
0.8943567872047424,
0.22709065675735474,
-0.4505619406700134,
0.8028830289840698,
0.29800382256507874,
0.5731146335601807,
-0.3749134838581085,
0.7027153372764587,
0.1744934469461441,
0.26853039860725403,
0.4164215326309204,
0.6972001791000366,
0... |
def get _ wordnet _ pos ( tag ) : tag = tag [ 0 ]. upper ( ) tag _ dict = { " j " : wordnet. adj, " n " : wordnet. noun, " v " : wordnet. verb, " r " : wordnet. adv } return tag _ dict. get ( tag, wordnet. noun ) | [
-0.0861312747001648,
-0.7633345127105713,
0.23523254692554474,
-0.7054771184921265,
-0.25510919094085693,
-0.15814970433712006,
-0.8849802017211914,
-0.9483254551887512,
-0.3455260097980499,
0.505435049533844,
-0.526715874671936,
-0.8982743620872498,
0.042947918176651,
0.7206913232803345,
... |
def load _ cim10 _ chap _ 13 _ 19 ( data _ path = chapitre _ 13 _ 19 _ path, remove _ duplicate = false, with _ stemming = true ) : df _ tmp = pd. read _ excel ( data _ path ) columns _ list = df _ tmp. columns df _ tmp = df _ tmp [ columns _ list [ 1 ] ]. map ( str ) + " " + df _ tmp [ columns _ list [ 2 ] ]. map ( st... | [
0.698671817779541,
-0.271440327167511,
0.82203608751297,
-1.2209255695343018,
-0.27691301703453064,
-0.5157390832901001,
0.11755909770727158,
0.4208586513996124,
0.09941408038139343,
0.9288609027862549,
-0.2196958214044571,
-0.12621624767780304,
-0.3988335132598877,
-1.306725025177002,
0... |
def slct _ flexspin ( t, na, nb, flex1, flex2, eps, phi ) : z = 6. 0 # parameters for a a0 _ a = flex1 [ 0 ] a1 _ a = flex1 [ 1 ] g111 _ a = flex1 [ 2 ] g21 _ a = flex1 [ 3 ] g3 _ a = flex1 [ 4 ] eb _ a = flex1 [ 5 ] # parameters for b a0 _ b = flex2 [ 0 ] a1 _ b = flex2 [ 1 ] g111 _ b = flex2 [ 2 ] g21 _ b = flex2 [ 3... | [
1.1031715869903564,
-0.32871904969215393,
0.8841972947120667,
-0.5544273853302002,
-0.5668179988861084,
-0.2576022446155548,
0.07141197472810745,
0.6802453398704529,
-0.13141649961471558,
0.16135691106319427,
-0.48043808341026306,
-0.4675903916358948,
-1.0413103103637695,
-0.49546936154365... |
def arguments ( self ) : return self. _ arguments + self. _ trailing _ args | [
-0.0949486717581749,
-0.19311481714248657,
0.48326292634010315,
-0.6054120063781738,
1.5793263912200928,
0.9973429441452026,
-0.4909728169441223,
0.037212781608104706,
-0.5332500338554382,
0.2874550521373749,
-0.13254760205745697,
0.4147183895111084,
-0.5626416802406311,
0.8039740920066833... |
def esgetcomment ( args ) : localopt = [ " [ - grade < grade > - timestamp < time > ] " ] localopt. append ( " [ - date < t1 t2 > ] [ - dataversionname < name > ] " ) usage = es _ init. helpmsg ( " esgetcomment ", localopt ) usagedescription = " " " option description : retrieve comments from eventstore for given grade... | [
-0.0014694251585751772,
0.07053370028734207,
1.2505208253860474,
0.41398876905441284,
0.7650293707847595,
-0.21024927496910095,
0.7308354377746582,
-0.15092341601848602,
-0.45956024527549744,
0.6380921602249146,
-0.0056147500872612,
0.4578094482421875,
0.0004445487284101546,
0.116502404212... |
def inf _ durations ( x ) : cid = x. cohortid. unique ( ) [ 0 ] if self. in _ boot : cid = self. bootstrap _ id _ dates [ cid ] burnout = pd. to _ datetime ( self. cid _ dates [ cid ] [ - self. allowedskips : ] ). min ( ) treatment = false if x. date. max ( ) < = x. burnin. max ( ) : return np. nan if x. date. max ( ).... | [
-0.2139817774295807,
0.2595627009868622,
0.7032662034034729,
0.13874907791614532,
-0.5753190517425537,
-0.09992929548025131,
-0.34486904740333557,
-0.40768301486968994,
0.2721821069717407,
0.5365696549415588,
-0.189505472779274,
0.5566723346710205,
0.2011396735906601,
0.5415809154510498,
... |
def put ( self, key, value, minutes ) : self. _ memcache. set ( self. _ prefix + key, value, minutes * 60 ) | [
-0.594733715057373,
0.3398387134075165,
0.33112776279449463,
-1.5634907484054565,
-0.5752012729644775,
0.44084689021110535,
-1.7125226259231567,
-0.3657556474208832,
0.25166457891464233,
1.010859489440918,
-1.2089083194732666,
0.07738659530878067,
-0.5780329704284668,
-0.6960476636886597,
... |
def get _ profit ( date ) : revenue = get _ revenue ( date ) costs = get _ costs ( date ) profit = round ( revenue - costs, 2 ) return profit | [
-0.4401731491088867,
-0.18426136672496796,
0.5630360841751099,
1.2808606624603271,
-0.14751261472702026,
-0.5190229415893555,
0.09291776269674301,
-1.268492579460144,
-0.5217130184173584,
-0.18488214910030365,
-0.3128080368041992,
-0.28543519973754883,
0.9792976379394531,
0.228292047977447... |
def sensors ( self ) : sql = " \ select \ sensors. id as sensorid, \ sensors. name as name, \ sensors. description as description, \ sensors. enabled as enabled, \ sensor _ groups. scan _ rate as scan _ rate, \ sensor _ groups. description as group _ description, \ datatype. name as datatype, \ measure _ unit. name as ... | [
-0.30084437131881714,
0.3565017282962799,
0.3873729407787323,
-0.3037131428718567,
0.025056421756744385,
-0.4569893777370453,
-0.21897482872009277,
-0.3312680721282959,
-0.3454851806163788,
-0.2519933581352234,
0.47642841935157776,
0.5509882569313049,
-0.42765122652053833,
0.05947028100490... |
def from _ input _ line ( cls, line : str ) - > sentence : ingredients, allergens = line [ : - 1 ]. split ( " ( contains " ) ingredient _ set = set ( ingredients. split ( ) ) allergen _ set = set ( allergens. split ( ", " ) ) return cls ( ingredient _ set, allergen _ set ) | [
0.8588064908981323,
-0.5882803797721863,
0.2417897880077362,
0.49652570486068726,
-0.3310137391090393,
-0.8506500720977783,
-0.5739629864692688,
0.36069750785827637,
-0.3551329970359802,
0.20849201083183289,
-0.21087782084941864,
-0.34058332443237305,
-0.6531344652175903,
-0.70871162414550... |
def _ _ init _ _ ( self, pos, radius = 0, direction = false, transform = false ) : self. init ( ) self. pos = vec ( pos ) self. point _ type ='incurve'self. radius = radius self. direction = direction self. transform = transform self. obtype = " point " self. sharp = false self. control = false | [
0.4257239103317261,
-0.6338186860084534,
0.6452583074569702,
0.41310355067253113,
0.3392699360847473,
0.11728545278310776,
-0.015603463165462017,
0.43658211827278137,
0.34880998730659485,
-0.24013464152812958,
-0.9383925795555115,
0.08183787018060684,
0.03677681088447571,
-0.13247501850128... |
def _ compute _ metric _ mean ( self, metric _ name ) : metric _ vars = tf. get _ collection ( tf. graphkeys. metric _ variables ) total _ suffix = metric _ name + " / total : 0 " total _ vars = [ v for v in metric _ vars if v. name. endswith ( total _ suffix ) ] assert len ( total _ vars ) = = 1., ( " found { } metric... | [
-0.07783770561218262,
0.10731503367424011,
0.5112999677658081,
-0.4058278203010559,
-0.1504005789756775,
0.2812455892562866,
0.7939587235450745,
0.12679022550582886,
-1.0383551120758057,
0.9964579939842224,
0.5262171030044556,
0.13595271110534668,
0.03415811434388161,
0.0864328071475029,
... |
def create _ shards ( input _ list, size ) : shard, i = [ ], 0 for element in input _ list : shard. append ( element ) i + = 1 if i = = size : yield shard shard, i = [ ], 0 if i > 0 : yield shard | [
0.02525148168206215,
0.9301881790161133,
0.5975974798202515,
0.46673497557640076,
0.2651006281375885,
0.47563043236732483,
-0.1174880862236023,
-0.508600115776062,
0.6555240750312805,
-0.15463654696941376,
-0.7151693105697632,
-0.29090893268585205,
-0.9207614660263062,
0.2883460223674774,
... |
def get _ object _ type ( self ) : return self. _ _ class _ _. _ _ name _ _ | [
-0.646574079990387,
-0.7557455897331238,
0.8631178736686707,
0.12520372867584229,
0.8033301830291748,
0.8492152094841003,
0.9024603962898254,
-0.8889012336730957,
0.588047206401825,
0.10208610445261002,
-0.7748870849609375,
0.4261695146560669,
0.3617696762084961,
-0.2402394413948059,
1.1... |
def encrypt ( self, data : bytearray ) - > bytearray : if not isinstance ( data, ( bytes, bytearray ) ) : self. clear ( ) raise gostciphererror ('invalid plaintext data') data = set _ padding ( data, self. block _ size, self. _ pad _ mode ) result = bytearray ( ) for i in range ( get _ num _ block ( data, self. block _... | [
-0.8790468573570251,
1.1357872486114502,
0.5275120735168457,
0.206685870885849,
0.04322662949562073,
-0.20028002560138702,
0.6306895613670349,
-1.3149514198303223,
0.8533269166946411,
0.3119889795780182,
-0.9641484022140503,
0.12087296694517136,
-1.8169779777526855,
0.4739432632923126,
-... |
def get _ bonds _ colors ( resn _ list, matrix, color, chain, model ) : matrix _ colors = [ ] if color = ='auto': for state in range ( 1, cmd. count _ states ( ) + 1 ) : colors = [ ] for bond in matrix : stored. colors = [ ] cmd. iterate _ state ( state,'model % s and chain % s and resi % s and name c1 or model % s and... | [
-0.3088231086730957,
-0.3768255412578583,
0.5517048835754395,
-0.1796407699584961,
0.6401658654212952,
-0.17154912650585175,
-0.33569127321243286,
-0.3106082081794739,
-0.17504706978797913,
-0.18264850974082947,
-0.05854233726859093,
0.040090929716825485,
-0.5708680152893066,
0.23869262635... |
def set _ areal _ units ( self, poly _ arr ) : self. areal _ units = [ ] for p in poly _ arr : if spatial. has _ geodjango and isinstance ( p, spatial. geos. geosgeometry ) : p = spatial. geodjango _ to _ shapely ( p ) self. areal _ units. append ( p ) | [
0.05477948486804962,
-0.8580217957496643,
0.4312171936035156,
0.4137066900730133,
0.03866824880242348,
1.2884284257888794,
-0.2206176370382309,
-0.43748265504837036,
0.8124541640281677,
0.8536439538002014,
-0.21070028841495514,
0.14319883286952972,
0.9386034607887268,
0.759404718875885,
... |
def get _ db _ city _ info ( city _ id ) : db = weather. get _ db ( ) return jsonify ( { " count " : db. find ( { " id " : city _ id } ). count ( ) } ) | [
0.011922694742679596,
0.07384541630744934,
0.5317538976669312,
-0.9310985803604126,
0.19215507805347443,
-0.2516934275627136,
-0.41802409291267395,
-0.3275226950645447,
-0.6565430164337158,
0.0244226586073637,
-1.4487934112548828,
-0.5019446611404419,
0.006456955336034298,
1.19612312316894... |
def statuses ( self ) - > sequence ['outputs. resourcestatusresponse'] : return pulumi. get ( self, " statuses " ) | [
0.44185981154441833,
-0.6153445839881897,
0.2101951688528061,
0.2318761944770813,
1.6139321327209473,
0.7592740654945374,
0.1670665740966797,
0.07422196865081787,
0.5928972959518433,
-0.3975564241409302,
-0.9690452218055725,
-0.21595188975334167,
0.573103666305542,
-0.20376308262348175,
... |
def prep _ scratch _ output _ view ( self, name = " mimosa output " ) : found _ view = false for v in self. get _ window ( ). views ( ) : if v. name ( ) = = name : self. output _ view = v self. get _ window ( ). focus _ view ( self. output _ view ) found _ view = true if not found _ view : v = self. get _ window ( ). n... | [
-0.006911163218319416,
-0.04717835411429405,
0.6556569337844849,
0.16759902238845825,
-1.3997873067855835,
-0.6530764698982239,
1.0907024145126343,
-0.8622239828109741,
-0.15235643088817596,
-0.4193309247493744,
0.44130077958106995,
0.11399926990270615,
0.24295678734779358,
0.7800436615943... |
def test _ match _ large _ file ( self, large _ logfile ) : matcher = logmatcher ( log _ path = large _ logfile ) # check that the logmatcher can find the last'match me!'line in a # reasonable length of time. 10s is a very generous timeout, most # of the time it should complete in < 1s. match = matcher. match ( regex =... | [
0.8600943684577942,
0.3756340742111206,
0.6265938878059387,
-0.6616509556770325,
0.06203914061188698,
0.5010426640510559,
-0.40379345417022705,
1.3928301334381104,
-0.2186986356973648,
-0.28070417046546936,
-0.8067972660064697,
-0.7955318093299866,
-0.15150952339172363,
-0.1723168045282364... |
def to _ nullable _ map ( value ) : if value = = none : return none # parse json try : value = json. loads ( value ) return mapconverter. to _ nullable _ map ( value ) except : return none | [
-0.3674750030040741,
-1.295087218284607,
0.7667819261550903,
-0.5991885662078857,
-0.8276398181915283,
-0.7481041550636292,
-0.38708165287971497,
-0.6835951805114746,
1.276185393333435,
0.3165164589881897,
-0.5629227757453918,
-0.02907371148467064,
0.498490571975708,
0.20292969048023224,
... |
def get _ list _ property ( self, property, default = none ) - > any : return self. properties. get ( property, default ) | [
-0.2732087969779968,
-0.13579602539539337,
0.27181729674339294,
1.0825399160385132,
1.151505708694458,
-0.5976738333702087,
-1.7194377183914185,
-0.010969395749270916,
0.5991485714912415,
0.15408767759799957,
-0.2770051956176758,
-0.22896811366081238,
-0.6038482189178467,
-0.77313971519470... |
def data _ stream ( ) : with open ('leipzig100k. txt ','r') as f : for line in f : for w in word _ tokenize ( line ) : if w. isalnum ( ) : yield w | [
0.7337409257888794,
-0.6822994947433472,
0.3707115650177002,
-0.19524824619293213,
-1.0822889804840088,
0.11381296813488007,
-1.0350759029388428,
0.8181895613670349,
-1.0326803922653198,
0.4835131764411926,
0.15093766152858734,
0.1514127552509308,
-0.13703511655330658,
0.8090964555740356,
... |
def save _ to _ cache ( cache _ root, api _ name, api _ version, discovery _ document ) : # todo ( b / 263521050 ) : use pathlib for whole function. # store all files as : $ cache _ root / $ api _ name / $ api _ version directory = os. path. join ( cache _ root, api _ name, api _ version ) file = os. path. join ( direc... | [
0.06341034173965454,
-0.2621222138404846,
0.7612832188606262,
-0.06832262128591537,
0.09499357640743256,
-0.43418529629707336,
0.5955271124839783,
-0.5205852389335632,
-0.4489622414112091,
0.9034034609794617,
-0.4269159138202667,
-0.3776024281978607,
0.17487716674804688,
-0.036103326827287... |
def showmenuxml ( rest _ id ) : menuitems = session. query ( menuitem ). filter _ by ( restaurant _ id = rest _ id ). all ( ) for i in menuitems : i. price = sub ('\ $ ','', i. price ) ms = {'menu _ item': [ m. serialize for m in menuitems ] } return response ( xmlify ( ms, wrap ='menuitems'), mimetype ='text / xml') | [
-0.46170762181282043,
-0.3817467987537384,
0.3515840172767639,
0.4445917308330536,
-1.0999202728271484,
-0.6998488903045654,
-1.2271056175231934,
0.6691982746124268,
0.11867149919271469,
-0.006693344563245773,
-0.14068472385406494,
-0.4709949791431427,
-0.3164880871772766,
0.51095509529113... |
def command ( command _ name ) : def wrapper ( func ) : command _ registry [ command _ name ] = func return func return wrapper | [
-0.4257296919822693,
-0.2566424310207367,
0.5213214755058289,
-0.03520805388689041,
0.9809919595718384,
-0.45581337809562683,
0.3237476944923401,
0.13874788582324982,
0.75960773229599,
-0.7965921759605408,
-0.19847245514392853,
0.9043023586273193,
0.8297680020332336,
0.2158266305923462,
... |
def positionupdateviewmatrix ( self ) : # apply translation component. self. view [ 12 ] = - ( self. xaxis. dot ( self. position ) ) self. view [ 13 ] = - ( self. yaxis. dot ( self. position ) ) self. view [ 14 ] = - ( self. zaxis. dot ( self. position ) ) # reconstruct the mvp matrix. self. mvp = self. view * self. pr... | [
0.03878435119986534,
-1.3646374940872192,
0.24383574724197388,
-0.8143308758735657,
-0.4026930034160614,
-0.15274085104465485,
0.1254424899816513,
0.754220187664032,
0.5431999564170837,
-0.13726158440113068,
0.32085901498794556,
-0.0797552838921547,
0.3169119954109192,
-1.0226236581802368,... |
def provisioning _ state ( self ) - > str : return pulumi. get ( self, " provisioning _ state " ) | [
0.2761306166648865,
-0.3067778944969177,
0.2973683476448059,
0.12835165858268738,
0.10525687783956528,
1.1729141473770142,
-0.3620191812515259,
0.41279467940330505,
0.9901872873306274,
0.8281985521316528,
0.3586893081665039,
0.15708862245082855,
0.5483088493347168,
-1.225333333015442,
-0... |
def decode ( self, shorturl ) : return database [ shorturl ] | [
-0.08070170134305954,
-0.7950852513313293,
0.17843566834926605,
0.4870564043521881,
-0.6888163089752197,
-0.2016279399394989,
-0.13570696115493774,
0.3514321744441986,
0.6672751903533936,
-0.4329880177974701,
-1.239762306213379,
0.441943883895874,
-0.2430005818605423,
-0.8541458249092102,
... |
def read _ data ( f ) : hex _ chars ='0123456789abcdef'while 1 : d = f. read ( 16 ) d = filter ( lambda x : x in hex _ chars, d ) if not d : break if len ( d ) < 16 : d = d +'0'* ( 16 - len ( d ) ) # # # input _ validation # # # # if filter ( lambda x : x not in hex _ chars, d ) : # print > > sys. stderr, " fileinput n... | [
0.3530372381210327,
0.18960724771022797,
0.7376636862754822,
-0.48750874400138855,
-0.7376630306243896,
1.026932716369629,
-0.17028211057186127,
0.4998921751976013,
-0.5762924551963806,
-0.6791930794715881,
0.4100400507450104,
-0.21023111045360565,
0.5510742664337158,
0.4386650323867798,
... |
def http _ endpoint ( self ) - > optional [ pulumi. input [ str ] ] : return pulumi. get ( self, " http _ endpoint " ) | [
0.8714693784713745,
-0.034353431314229965,
0.4056934416294098,
0.8866146802902222,
1.3330332040786743,
1.6258482933044434,
-0.2593015432357788,
-0.17249038815498352,
0.2701692581176758,
-0.09966374933719635,
0.19655781984329224,
0.9594296216964722,
-0.3057050108909607,
-0.7663163542747498,... |
def info ( * args, * * kwargs ) : if info and ( " filename " in kwargs ) : print ( " [ info ] [ " + kwargs [ " filename " ] + " ] ", * args, * * kwargs ) elif info : print ( " [ info ] [ " + _ _ name _ _ + " ] ", * args, * * kwargs ) | [
0.26464325189590454,
-0.9647973775863647,
0.7598358988761902,
0.019994305446743965,
0.5379621386528015,
-0.14153417944908142,
-0.40652185678482056,
0.2810153663158417,
-0.7533496022224426,
-0.07418804615736008,
0.653037428855896,
1.6142406463623047,
0.39788100123405457,
1.0796703100204468,... |
def load _ string _ into _ model ( rdfstring, fmt = " rdfxml " ) : # create an empty model model = create _ empty _ model ( ) # create a parser try : parser = rdf. parser ( name = fmt ) except : print " failed to create rdf. parser. " return none # parse the string into the model try : parser. parse _ string _ into _ m... | [
0.4760792553424835,
-0.6374101042747498,
0.43695056438446045,
-0.705597996711731,
-0.11125534772872925,
0.36278265714645386,
-0.7091524600982666,
-0.25342196226119995,
0.176567941904068,
-0.7446805238723755,
-0.48824602365493774,
-0.469288170337677,
-0.5815237760543823,
-1.0847185850143433... |
def rendered ( self ) - > bool : return self. _ axes is not none | [
0.6251340508460999,
0.2961193323135376,
0.6226786375045776,
-0.6758153438568115,
0.08407461643218994,
0.36000850796699524,
-0.3051832914352417,
0.6241970658302307,
-0.26290082931518555,
-0.5535373687744141,
-0.4830780029296875,
-0.22100909054279327,
-0.6872186660766602,
-0.4999373257160187... |
def watch ( self, no _ output = false ) : check _ external _ storage ( ) repository = project _ context. repository # remove indirect files list if any delete _ indirect _ files _ list ( self. working _ dir ) from renku. core. plugin. pluginmanager import get _ plugin _ manager pm = get _ plugin _ manager ( ) pm. hook.... | [
0.16282333433628082,
-0.74562007188797,
0.7130473852157593,
0.09711045026779175,
-0.22453542053699493,
-0.6487035155296326,
1.366064190864563,
-0.6668887138366699,
-0.174932599067688,
-0.6922808289527893,
0.4205991327762604,
0.2917429506778717,
0.815862774848938,
0.7548670172691345,
-0.5... |
def sync _ submodules ( ) : run ( " git submodule update - - init - - recursive " ) | [
0.4799991846084595,
-0.2018970102071762,
0.45644018054008484,
0.7830992937088013,
0.2769901156425476,
1.2266286611557007,
-0.06263020634651184,
-1.1433824300765991,
-0.33205029368400574,
0.586746096611023,
-1.084044098854065,
1.5484402179718018,
-0.3220199942588806,
0.09943623840808868,
... |
def dynamic _ coin _ change2 ( denom, change ) : change + = 1 # 0 index offset result = [ [ none for i in range ( change ) ] for j in range ( len ( denom ) ) ] used = [ [ none for i in range ( change ) ] for j in range ( len ( denom ) ) ] for j in range ( change ) : result [ len ( denom ) - 1 ] [ j ] = j used [ len ( d... | [
-0.9420639276504517,
-0.11953210085630417,
0.8915303945541382,
-0.29883915185928345,
-0.15338566899299622,
-1.9013911485671997,
1.1557379961013794,
-0.5986873507499695,
-0.5271221995353699,
0.41267046332359314,
-0.5760751962661743,
1.0050017833709717,
0.20474784076213837,
0.399032145738601... |
def get _ control ( db _ settings, * * kwargs ) : db _ settings. use _ ems ( ) if not kwargs ['control _ id'] : return none db _ settings. cursor. execute ( " select libstatus from labdata where uid = % s ", ( kwargs ['control _ id'], ) ) row = db _ settings. cursor. fetchone ( ) if not row or int ( row [ 0 ] )! = libs... | [
0.7883871793746948,
-0.18653519451618195,
0.7272412776947021,
-0.04450294002890587,
0.3910803198814392,
0.5110912322998047,
0.21993693709373474,
-0.5867077112197876,
-0.07026389241218567,
-0.28273048996925354,
0.8930646181106567,
0.020436303690075874,
-0.0529622882604599,
0.025327455252408... |
def get _ raw _ data ( self ) : return tuple ( self. _ raw _ data ) | [
-1.544585943222046,
0.5103503465652466,
0.5646952390670776,
-0.5942829847335815,
-0.08634304255247116,
0.516578197479248,
-1.140040397644043,
-0.7041409015655518,
-0.48418307304382324,
0.03930095583200455,
-1.0094844102859497,
-0.0022400617599487305,
0.3164055347442627,
-0.3279660046100616... |
def aggregate _ confidences ( source _ matrix, prefix = " original ", confidence _ path = " confidences " ) : # check if there's an aggregated confidence scores file, # and if not create it confidence _ dir = os. path. join ( confidence _ path, prefix ) confidence _ file = os. path. join ( confidence _ dir, " confidenc... | [
-0.42814376950263977,
-0.06030253320932388,
0.6674126982688904,
0.18983298540115356,
0.8556422591209412,
0.25781938433647156,
0.4942726790904999,
0.48786434531211853,
-0.8072501420974731,
1.182906985282898,
0.47777223587036133,
0.036663953214883804,
-0.05344236269593239,
0.9591675400733948... |
def get _ loc ( self, key ) : orig _ key = key self. _ check _ indexing _ error ( key ) if is _ valid _ na _ for _ dtype ( key, self. dtype ) : key = nat elif isinstance ( key, str ) : try : parsed, reso = self. _ parse _ with _ reso ( key ) except valueerror as err : # a string with invalid format raise keyerror ( f "... | [
-0.3292493224143982,
-0.5565838813781738,
0.8287867307662964,
0.08611711859703064,
-0.8732412457466125,
-0.1757681667804718,
0.7907487750053406,
-0.8953648805618286,
0.3408582806587219,
-0.1251223236322403,
1.2305607795715332,
0.7614831328392029,
0.03959823027253151,
-0.677532434463501,
... |
def getsourcevaluecolumnfromtensorrepresentation ( tensor _ representation : schema _ pb2. tensorrepresentation ) - > path. columnpath : return _ tensor _ representation _ kind _ to _ value _ column _ getter [ tensor _ representation. whichoneof ( " kind " ) ] ( tensor _ representation ) | [
-0.6126663088798523,
-0.6051231622695923,
0.25675490498542786,
-0.2153363823890686,
0.44311046600341797,
0.3070243299007416,
1.3519712686538696,
-0.19350427389144897,
-0.5098192095756531,
0.3101211190223694,
-0.03206803649663925,
0.29347601532936096,
0.7824952006340027,
-0.9641005396842957... |
def _ _ repr _ _ ( self ) : return " < % s @ % s > " % \ ( self. _ _ class _ _. _ _ name _ _, self. id ) return " < % s @ % s ( seq : % i length : % i ) > " % \ ( self. _ _ class _ _. _ _ name _ _, hex ( id ( self ) ), self. sequence, self. length ) | [
-0.13872544467449188,
-1.4453133344650269,
0.6816635131835938,
-1.4919291734695435,
-0.34895238280296326,
0.37607142329216003,
-0.6514609456062317,
0.11419296264648438,
0.8195102214813232,
0.08981674909591675,
-1.0002267360687256,
0.4036107659339905,
0.06578411906957626,
0.0681816264986991... |
def postorder ( self ) : stack = [ ] curr = self. root while curr or stack : if curr : if curr. right : stack. append ( curr. right ) stack. append ( curr ) curr = curr. left else : curr = stack. pop ( ) if stack and curr. right = = stack [ - 1 ] : stack. pop ( ) stack. append ( curr ) curr = curr. right else : yield c... | [
0.26561740040779114,
0.2778220474720001,
1.0468477010726929,
0.06592502444982529,
-1.225651502609253,
-0.5716034770011902,
-0.437369167804718,
-0.3953903913497925,
-0.02901514247059822,
-0.19146843254566193,
-0.5779553055763245,
-0.4492674469947815,
-0.904390811920166,
0.9515660405158997,
... |
def get _ c78eff ( wc, qiqj ) : yi = np. array ( [ - 1 / 3., - 4 / 9., - 20 / 3., - 80 / 9. ] ) zi = np. array ( [ 1, - 1 / 6., 20, - 10 / 3. ] ) wceff = { } c36 = np. array ( [ wc [ k ] for k in ['c3 _'+ qiqj,'c4 _'+ qiqj,'c5 _'+ qiqj,'c6 _'+ qiqj ] ] ) c36p = np. array ( [ wc [ k ] for k in ['c3p _'+ qiqj,'c4p _'+ qi... | [
0.17237095534801483,
-0.24348129332065582,
0.5345760583877563,
-1.1814910173416138,
-0.1513826549053192,
-0.1308143436908722,
0.48291462659835815,
-0.5099589228630066,
0.014821356162428856,
1.053909420967102,
-0.7155157923698425,
0.20175525546073914,
-0.5521057844161987,
0.3528973162174225... |
def device _ name ( self ) - > optional [ pulumi. input [ str ] ] : return pulumi. get ( self, " device _ name " ) | [
0.33890780806541443,
0.2990604043006897,
0.4532626271247864,
0.847534716129303,
0.41713497042655945,
1.1488966941833496,
0.42549803853034973,
0.23717939853668213,
0.510400116443634,
-0.2041807472705841,
0.5833405256271362,
0.628736138343811,
0.3608158826828003,
-0.4613243341445923,
0.001... |
async def get _ all _ credentials ( self ) - > mythicresponse : url = " { } { } : { } / api / v { } / credentials / current _ operation ". format ( self. _ http, self. server _ ip, self. _ server _ port, self. _ server _ api _ version ) resp = await self. get _ json ( url ) if resp. response _ code = = 200 : # update t... | [
-0.936325192451477,
-0.7037799954414368,
0.6020641326904297,
0.6304318904876709,
0.8149278163909912,
-0.9292254447937012,
-0.6104632616043091,
0.6867897510528564,
-0.12290289252996445,
0.48946312069892883,
-0.42789819836616516,
0.1120881736278534,
-0.25022366642951965,
0.1591578871011734,
... |
def gethighscorerecords ( self, direction ) : with self. con : self. cur. execute ( " select id, score from highscores order by score " " " + str ( direction ) + " limit 10 ; " ) return self. cur. fetchall ( ) | [
0.11013659089803696,
0.527371883392334,
0.6222873330116272,
-0.2775435745716095,
1.4135854244232178,
0.015762552618980408,
-1.0815067291259766,
-0.031940434128046036,
-0.39217671751976013,
0.6816076636314392,
-0.5291458368301392,
0.17089934647083282,
-1.1083892583847046,
-0.129082560539245... |
def _ register ( self, plugin : simplugwrapper ) - > none : if ( plugin. name in self. _ registry and plugin! = self. _ registry [ plugin. name ] ) : raise pluginregistered ( f'another plugin named { plugin. name }'' has already been registered.') # check if required hooks implemented # and signature for specname, spec... | [
-0.24609936773777008,
0.09558658301830292,
0.8253258466720581,
-0.3003109395503998,
0.8050026297569275,
-0.8131424784660339,
0.9487050771713257,
0.3773728609085083,
0.2633882462978363,
0.46519115567207336,
-1.3413844108581543,
0.6238839626312256,
0.21222636103630066,
0.3852168917655945,
... |
def sum _ series ( case, x = 0, y = 1 ) : if case = = 0 : return x elif case = = 1 : return y else : return sum _ series ( case - 1, x, y ) + sum _ series ( case - 2, x, y ) | [
-0.4313208758831024,
0.7408474087715149,
0.6238142251968384,
1.1519510746002197,
-0.04272717982530594,
0.6571385264396667,
0.008065038360655308,
-1.4341109991073608,
0.5486924052238464,
0.5422134399414062,
0.45936015248298645,
0.4646151661872864,
0.1364162266254425,
-0.3366726338863373,
... |
def _ computecoaddexposureid ( self, dataid, singlefilter ) : tract = int ( dataid ['tract'] ) if tract < 0 or tract > = 2 * * ztfmapper. _ nbit _ tract : raise runtimeerror ('tract not in range [ 0, % d )'% ( 2 * * ztfmapper. _ nbit _ tract ) ) patchx, patchy = [ int ( patch ) for patch in dataid ['patch']. split ( ',... | [
-0.1442377120256424,
-0.2523052990436554,
0.5501263737678528,
-1.061108112335205,
-0.6653165221214294,
-0.14086978137493134,
1.1882537603378296,
0.21456582844257355,
1.195172667503357,
0.5836618542671204,
1.1897732019424438,
0.15426354110240936,
0.08643884211778641,
0.5553504228591919,
0... |
def mirror _ master _ dest ( self, chm _ dest _ master, mocked _ methods ) : return chm _ dest _ master [ " mirror " ] | [
-1.2517485618591309,
-0.14538456499576569,
0.2786905765533447,
-0.6980405449867249,
-0.9583280086517334,
0.21510785818099976,
-0.06012563407421112,
1.0676888227462769,
0.35163164138793945,
0.23619455099105835,
-1.2011752128601074,
0.8964257836341858,
0.42259180545806885,
0.0453254804015159... |
def setoutput ( self, connector ) : if not isinstance ( connector, connector ) : raise exception ( " error : expecting a connector class object " ) connector. tap ( self,'output') self. outputtype = 1 self. outputconnector = connector self. history _ active = 0 self. trigger ( ) | [
-0.908043622970581,
-0.6537743806838989,
0.23774488270282745,
0.7591775059700012,
-0.24711769819259644,
-0.661339282989502,
1.0066475868225098,
0.21049152314662933,
0.48204442858695984,
-0.26558026671409607,
-0.2740650177001953,
0.014744717627763748,
0.02997099980711937,
0.8720517158508301... |
def get _ model _ outputs ( model, input, mode ) : get _ outputs = k. function ( [ model. layers [ 0 ]. input ], [ model. get _ layer ( l ). output for l in ['final _ output ','act1 ','act2 ','act3'] ] ) return get _ outputs ( [ input, mode ] ) | [
-0.1798279583454132,
-0.8446962237358093,
0.43582701683044434,
1.4484152793884277,
-0.2691570222377777,
-0.7573421001434326,
0.36315634846687317,
-0.08964338898658752,
-0.8581141829490662,
0.5514250993728638,
-0.597688615322113,
-0.6937928795814514,
-0.14815321564674377,
-0.037797275930643... |
def load _ options ( ) : config _ arg _ parser = argparse. argumentparser ( add _ help = false, prog = _ _ prog _ _ ) config _ arg _ parser. add _ argument ( " - - version ", action = " version ", version = " % ( prog ) s { } ". format ( _ _ version _ _ ) ) config _ arg _ parser. add _ argument ( " - - input ", require... | [
0.4362111985683441,
0.08212050050497055,
1.1167293787002563,
-0.6921823620796204,
-0.121021568775177,
0.022763075307011604,
0.16475529968738556,
0.7994568943977356,
-0.6427607536315918,
0.271776020526886,
-0.4213316738605499,
-0.15092872083187103,
-0.17227818071842194,
0.8255735039710999,
... |
def bad _ request ( request, exception, * args, * * kwargs ) : return httpresponsebadrequest ( * * exception _ response ( request, 400, exception ) ) | [
-0.8608736395835876,
-1.4040324687957764,
0.42284655570983887,
0.4854941666126251,
0.5376256704330444,
-0.4410395920276642,
-1.8744628429412842,
-0.054978687316179276,
-0.029983775690197945,
-0.4624124765396118,
0.938334584236145,
0.46846815943717957,
-0.504348874092102,
-0.493524372577667... |
def psxview ( self ) : log. debug ( " executing volatility psxview plugin on " " { 0 } ". format ( self. memdump ) ) self. _ _ config ( ) results = [ ] command = self. plugins [ " psxview " ] ( self. config ) for offset, process, ps _ sources in command. calculate ( ) : new = { " process _ name " : str ( process. image... | [
-0.6470361948013306,
-0.7125899195671082,
0.5374666452407837,
-1.4019749164581299,
-0.6672793030738831,
-0.706265926361084,
-0.7523294687271118,
-0.02700858563184738,
0.11706767231225967,
-0.07275381684303284,
-0.1906372457742691,
0.18429139256477356,
-0.26022088527679443,
0.64033794403076... |
def test _ power _ law _ converter _ distribution ( power ) : c = powerlawconverter ( power, scale = 1 ) x = stats. powerlaw ( power + 1 ). rvs ( size = 10000 ) y, _ = c. to _ uniform _ parameter ( x ) d, p = stats. kstest ( y, " uniform " ) assert p > = 0. 05 | [
-0.13161329925060272,
-0.18061766028404236,
0.4266107976436615,
0.28556564450263977,
0.2025584876537323,
1.4395248889923096,
-0.14056994020938873,
0.5549420714378357,
0.4103924036026001,
0.5639941692352295,
-0.20613710582256317,
-0.6548340320587158,
0.7014244794845581,
1.4071696996688843,
... |
def dec ( self, x ) : try : hm = self. b - x * self. a o = self. pub. group. order ( ) g = self. pub. group. generator ( ) return solve _ dlp ( o, g, hm ) except exception as e : o = self. pub. group. order ( ) self. self _ check ( ) # print ( " failed to decrypt : % s " % self. m ) raise e | [
0.14511749148368835,
1.0654127597808838,
0.5637033581733704,
0.2149520218372345,
-0.65343177318573,
-0.3272252678871155,
0.014027134515345097,
-0.525912344455719,
0.33755531907081604,
0.4475037753582001,
-0.10808026045560837,
-0.018360227346420288,
-1.3449727296829224,
-0.5391628742218018,... |
def get _ boolean _ setting ( self, key : str ) - > str : key = key. split ( ". " ) return self. config [ key [ 0 ] ]. getboolean ( key [ 1 ] ) | [
-1.4598983526229858,
0.7490425705909729,
0.6263262033462524,
0.2316020280122757,
-0.5704208016395569,
-0.15968896448612213,
-0.2472238540649414,
-0.6034579873085022,
-0.9165410995483398,
1.8796193599700928,
0.015847528353333473,
0.0671236589550972,
-0.4695974886417389,
-0.5606860518455505,... |
def test _ pyredis _ version ( ) : # hset supports a mapping of key value pairs since v3. 4. 2. name ='newstuff'r. hset ( name, mapping = mapping ) assert r. hgetall ( name ) = = mapping | [
0.021623382344841957,
0.24617750942707062,
0.31538012623786926,
-0.08464463800191879,
-0.1893317997455597,
0.31353604793548584,
-1.244478464126587,
0.11501777172088623,
0.04444119334220886,
-0.19455505907535553,
-0.5638284087181091,
-0.24265722930431366,
0.3506278693675995,
-0.262604415416... |
def setacquisitionmode ( mode ) : return none | [
-0.2916050851345062,
-0.6400397419929504,
0.42993077635765076,
-0.14986984431743622,
0.47100263833999634,
0.9125126004219055,
0.5610504150390625,
0.27812811732292175,
0.46792104840278625,
-0.059143535792827606,
0.22773373126983643,
-0.6085496544837952,
0.04738693684339523,
-0.3367060124874... |
def field _ value _ function _ factory ( formatter, field ) : def field _ value _ function _ builder ( data ) : if isinstance ( data, dict ) : formatter. get _ field _ value = lambda celldata : celldata. get ( field, none ) else : formatter. get _ field _ value = lambda celldata : getattr ( celldata, field ) return for... | [
-0.5606689453125,
-0.33607539534568787,
0.3726242780685425,
0.10446518659591675,
-0.28984224796295166,
-0.763239324092865,
-0.822891354560852,
-0.0117199020460248,
-0.4661475419998169,
-1.2392233610153198,
-0.05622308328747749,
0.7657260298728943,
1.6438019275665283,
0.2665756940841675,
... |
def _ _ init _ _ ( self, hid _ dim, class _ dim, * * kwgs ) : super ( simplenn, self ). _ _ init _ _ ( * * kwgs ) model = keras. sequential ( ) model. add ( self. emb _ layer ) model. add ( keras. layers. globalaveragepooling1d ( ) ) model. add ( keras. layers. dense ( hid _ dim, activation = tf. nn. relu ) ) model. ad... | [
0.4485341012477875,
0.2435324341058731,
0.791754424571991,
1.5598881244659424,
0.10665839910507202,
0.46551376581192017,
0.13068002462387085,
0.2509210705757141,
0.13742603361606598,
-0.04388353228569031,
-0.9827171564102173,
0.5705593824386597,
0.25662100315093994,
0.9665077328681946,
0... |
def get _ perf _ model _ tmp ( xtr, ytr, xte, yte, layer, iteration, rand ) : layer _ size = tuple ( 2 * * a for a in layer ) model = mlpclassifier ( solver ='lbfgs ', alpha = 1e - 5, hidden _ layer _ sizes = layer _ size, random _ state = rand, max _ iter = iteration ) model. fit ( xtr, ytr ) yscore = model. predict _... | [
0.20001262426376343,
-0.21447786688804626,
0.6118767857551575,
-0.40652382373809814,
0.13808856904506683,
0.3556925356388092,
-0.01956893689930439,
-0.4368130564689636,
-0.9626193046569824,
0.7845384478569031,
0.37988394498825073,
-0.12058296799659729,
0.16146990656852722,
0.40077608823776... |
def clear ( self, * artists ) : for h in artists : for a in self. events : if h in self. _ actions [ a ] : del self. _ actions [ a ] [ h ] if h in self. _ artists : self. _ artists. remove ( h ) if self. _ current. artist in artists : self. _ current = selection ( ) if self. _ hasclick. artist in artists : self. _ hasc... | [
-0.5380459427833557,
-0.5976342558860779,
0.40759703516960144,
0.14590975642204285,
-0.26939037442207336,
0.37751296162605286,
0.8361090421676636,
-0.11139418929815292,
0.7119311094284058,
-0.0365348681807518,
-0.49307212233543396,
0.6903006434440613,
-0.5814731121063232,
-0.02817302569746... |
def target _ template _ member _ id ( self, target _ template _ member _ id ) : self. _ target _ template _ member _ id = target _ template _ member _ id | [
-0.4775851368904114,
-1.1763335466384888,
-0.2652401924133301,
-0.24418587982654572,
-0.33057019114494324,
1.0255918502807617,
0.06323031336069107,
0.24834397435188293,
-0.22931762039661407,
-0.13618440926074982,
-0.315995454788208,
1.0275160074234009,
0.19047333300113678,
0.04614225029945... |
def _ _ init _ _ ( self, helixiden, start, stop, seqres, helixtype, aminoacidlist ) : if isinstance ( helixiden, basestring ) : self. helixiden = helixiden else : raise valueerror ('invalid seqres { 0 } '. format ( helixiden ) ) if isinstance ( start, int ) : self. start = start else : raise valueerror ('invalid start ... | [
-0.3404330313205719,
-1.0958499908447266,
0.5762099027633667,
0.24778452515602112,
-0.01431624498218298,
0.2537328004837036,
-0.45443111658096313,
0.6287168860435486,
0.42826491594314575,
0.055174946784973145,
-0.29347407817840576,
-0.3007732331752777,
-0.49806535243988037,
0.0582573078572... |
def save _ data _ to _ file ( file _ name, list _ of _ product _ objects ) : try : objfile = open ( file _ name, " w " ) except exception as e : print ( " error writing to file " ) for row in list _ of _ product _ objects : # write each product to the file objfile. write ( str ( row ) + " \ n " ) # calls _ _ str _ _ ( ... | [
-0.9074957370758057,
-1.2364171743392944,
0.5911288857460022,
0.545168936252594,
0.8115882277488708,
0.5838643908500671,
0.3827609121799469,
0.040226053446531296,
-0.6635969281196594,
0.4062851667404175,
-0.9829965829849243,
-0.04398980736732483,
0.4886610805988312,
0.36927440762519836,
... |
def _ upload _ s3 ( local _ model _ path, bucket, prefix, region _ name, s3 _ client, * * assume _ role _ credentials ) : import boto3 sess = boto3. session ( region _ name = region _ name, * * assume _ role _ credentials ) with tempdir ( ) as tmp : model _ data _ file = tmp. path ( " model. tar. gz " ) _ make _ tarfil... | [
0.5359587073326111,
0.056264862418174744,
0.649138331413269,
-1.3235876560211182,
-0.12682099640369415,
0.54200679063797,
-0.10448089987039566,
0.17706120014190674,
-0.6938683986663818,
1.0062915086746216,
-0.4816989302635193,
-0.1675204485654831,
0.6331320405006409,
-0.7703301906585693,
... |
def authenticate ( ) : return response ('could not verify your access level for that url. \ n'' you have to login with proper credentials ', 401, {'www - authenticate':'basic realm = " login required "'} ) | [
-0.3759255111217499,
-0.9860103130340576,
0.3197037875652313,
0.45545196533203125,
-0.4818308651447296,
-0.423630952835083,
-0.3012312054634094,
-0.6219481229782104,
0.41572296619415283,
-0.4971541166305542,
-0.3616113066673279,
0.726535975933075,
-0.46068671345710754,
-0.5255045890808105,... |
def retrieve _ exam _ threshold ( id _ spec _ dict ) : base _ url ='http : / / postyplenie. ru / calculator. php? vuz = all & "'middle _ url = " " end _ url ='submit. x = 60 & submit. y = 23'list _ subjects = [ ] # setting all exams to be passed with 100 points to retrieve all possible specializations for item in subje... | [
-0.40595588088035583,
0.01915442943572998,
0.674784779548645,
-0.6813245415687561,
-0.4512459635734558,
0.0503564327955246,
-0.1542331427335739,
0.7420814633369446,
0.3905768394470215,
0.5211294293403625,
-0.44777846336364746,
0.13734525442123413,
0.5043190121650696,
0.4920806288719177,
... |
def findreplicatesbams ( folder, sep ='', filetypes = [ '. bam'], namings ='- r ( [ 0 - 9 ] ) ', namepos = 0 ) : rep = { } for val in os. listdir ( folder ) : if val [ - 4 : ] in filetypes : match = re. search ( namings, val ) if match : number = match. groups ( ) [ 0 ] name = val. split ( sep ) [ namepos ] if name in ... | [
0.06600884348154068,
0.44265878200531006,
0.8254181742668152,
0.4213980436325073,
-0.9108587503433228,
0.014644729904830456,
0.44958239793777466,
0.1176021471619606,
-0.7075521945953369,
0.24058401584625244,
-1.4489768743515015,
-0.3371764123439789,
-0.6262368559837341,
1.1806319952011108,... |
def _ _ init _ _ ( self, hipchat _ data ) : self. hipchat _ oauth _ id = hipchat _ data ['oauthid'] self. hipchat _ oauth _ secret = hipchat _ data ['oauthsecret'] self. hipchat _ room _ id = hipchat _ data ['roomid'] self. hipchat _ group _ id = hipchat _ data ['groupid'] self. _ generate _ hipchat _ token ( ) | [
-0.4200246036052704,
-0.8133991956710815,
0.5544243454933167,
0.08306284248828888,
-0.0063086505979299545,
-0.013691292144358158,
-0.33434513211250305,
0.23312152922153473,
-0.06914597004652023,
-0.12113649398088455,
-1.1034175157546997,
0.4495401084423065,
0.22725853323936462,
0.245578795... |
def get _ db _ attributes ( tag ) : return { " id " : tag [ " data - id " ] } | [
-0.7182960510253906,
0.024225974455475807,
0.14400547742843628,
-0.8151343464851379,
-0.025472505018115044,
-0.4414600729942322,
-1.1079171895980835,
0.22887954115867615,
-0.1250002235174179,
0.13870760798454285,
-1.4783560037612915,
-0.3475964665412903,
-0.13299085199832916,
0.36821892857... |
def _ _ init _ _ ( self, domain ) : super ( v2, self ). _ _ init _ _ ( domain ) self. version ='v2'self. _ countries = none self. _ numbers = none self. _ voice = none | [
-0.15659455955028534,
-0.7982546091079712,
0.21465133130550385,
0.08346204459667206,
-0.25712350010871887,
-0.2991054952144623,
-0.4295716881752014,
-0.5399037003517151,
-0.10385555773973465,
-0.041258059442043304,
-1.1691455841064453,
1.0118895769119263,
0.31645795702934265,
0.73996162414... |
def devices ( cls, path : str ) - > list [ str ] : config = cls. load _ config ( path ) return list ( config ['devices']. keys ( ) ) | [
-1.2894421815872192,
-0.12723524868488312,
0.35973793268203735,
0.3649771809577942,
-0.0563107505440712,
0.3265354037284851,
0.017579669132828712,
0.4832271933555603,
0.2709968090057373,
1.1818838119506836,
-0.9732360243797302,
0.023662900552153587,
0.34408190846443176,
0.3590732514858246,... |
def createanalysstructure ( self, * args ) : return _ stepap209. stepap209 _ construct _ createanalysstructure ( self, * args ) | [
-0.8344260454177856,
-0.5270229578018188,
0.3888276517391205,
-0.11350826174020767,
-0.41190895438194275,
0.3763796389102936,
1.109052062034607,
-0.42560186982154846,
0.18173444271087646,
-1.3045932054519653,
-0.17186753451824188,
-0.5324023962020874,
0.31494858860969543,
-0.44304308295249... |
def injectors ( self ) : return self. _ data. get ('injectors') | [
-0.8629604578018188,
0.9744981527328491,
0.33663246035575867,
-0.14272190630435944,
0.7562912106513977,
-0.3266451358795166,
-0.7151628136634827,
-0.3414345979690552,
0.5496334433555603,
-0.10205500572919846,
-1.0621377229690552,
0.2122425138950348,
-0.7954345345497131,
-0.6075284481048584... |
def pgset ( self, cmds = [ ], verbose = false ) : self. pg _ stop ( ) sequence _ length = 0 ntrig, ntok = 0, 0 for n, c in enumerate ( cmds ) : self. pg _ setcmd ( n, c ) sequence _ length + = ( c & 0xff ) + 1 if c & self. pg _ tok > 0 : ntok + = 1 if c & self. pg _ trg > 0 : ntrig + = 1 self. pg _ setcmd ( len ( cmds ... | [
-0.49266794323921204,
0.47675663232803345,
0.576644241809845,
-0.39961084723472595,
0.025307154282927513,
-0.7605746984481812,
0.06866323947906494,
-0.4367537200450897,
-0.7110744714736938,
0.3912530839443207,
-0.21394622325897217,
-0.19167709350585938,
-0.8924136757850647,
-0.055157165974... |
def get _ loo _ cv ( ids, groups, *, val _ size = none, random _ state = 42 ) : n _ splits = len ( np. unique ( groups ) ) splits = kfold _ split ( ids, n _ splits, groups = groups ) if val _ size is not none : splits = split _ train ( splits, val _ size, random _ state = random _ state ) print ( indices _ to _ subj _ ... | [
-0.11284545809030533,
0.9386407136917114,
0.5072346925735474,
0.09480665624141693,
-0.09139036387205124,
-0.7396901249885559,
0.02144993096590042,
0.12436559796333313,
0.5731145739555359,
0.07213332504034042,
0.09071607142686844,
0.38514766097068787,
0.07422594726085663,
-0.581819415092468... |
def winner ( self ) : return self. _ stats ['winner'] | [
0.09393823146820068,
-0.0022053122520446777,
0.3128233551979065,
1.2774081230163574,
0.14824636280536652,
0.10788080096244812,
0.9250620007514954,
-0.47585955262184143,
0.43102237582206726,
-1.251456379890442,
-0.22571483254432678,
0.5780488848686218,
0.901897132396698,
-0.7627675533294678... |
def format _ md5 ( i ) : return " % 039d " % i | [
0.14534792304039001,
-0.543598473072052,
0.35389837622642517,
-1.059051752090454,
-0.3889918029308319,
0.9803195595741272,
0.7013127207756042,
-0.1626705527305603,
0.24261492490768433,
-0.18792234361171722,
0.2890273332595825,
-0.8320726752281189,
0.11413150280714035,
-0.17084583640098572,... |
def lsw ( g, d, std ) : # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # full solution gg = ( g. t / std ). t dd = d / std return ls ( gg, dd ) | [
0.9577295780181885,
0.35622671246528625,
0.778100311756134,
-1.0780739784240723,
-1.355115532875061,
0.10005219280719757,
-0.12173730880022049,
-0.8256176114082336,
-0.33042195439338684,
0.4073185622692108,
0.25733739137649536,
0.4071212410926819,
0.43911173939704895,
0.6384965181350708,
... |
def l2 _ norm ( x ) : norm = torch. pow ( x, 2 ). sum ( dim = 1, keepdim = true ). sqrt ( ) x = torch. div ( x, norm ) return x | [
0.1457715779542923,
-1.5822515487670898,
0.45180800557136536,
0.7187982797622681,
-1.2101013660430908,
-0.13608086109161377,
-0.20954079926013947,
0.11384963989257812,
0.005243849009275436,
0.005724133457988501,
-0.895058274269104,
0.5273070335388184,
0.9468206167221069,
-0.479894161224365... |
def read _ file ( self ) : temp _ gfile = garminparse ( self. fullfname, corr _ list = self. corr _ list ) temp _ gfile. read _ file ( ) self. begin _ datetime = temp _ gfile. begin _ datetime self. begin _ datetime = self. begin _ datetime. replace ( tzinfo = utc ) self. begin _ datetime = self. begin _ datetime. asti... | [
0.16884903609752655,
-0.061058178544044495,
0.8941227793693542,
-0.18522706627845764,
-0.7052679061889648,
0.6543170213699341,
0.14496828615665436,
0.13412566483020782,
-0.8917627334594727,
-0.0890730693936348,
0.7966006994247437,
0.24004729092121124,
-0.5776227712631226,
-0.04934810474514... |
def new _ log ( self, filename ='default') : # check if log directory exists, if not create it try : os. stat ( self. raw _ data _ dir ) except : os. makedirs ( self. raw _ data _ dir ) # file name self. filename = filename + '. csv'# assign delimiter self. delimiter = ','# open log file self. fp = open ( self. raw _ d... | [
-0.41015222668647766,
-0.043429065495729446,
0.6925941109657288,
0.1343218833208084,
0.003610731801018119,
0.9872744679450989,
0.09435298293828964,
0.9327598810195923,
-0.5656895637512207,
-0.9555768966674805,
-0.06786252558231354,
0.8912755846977234,
0.8775838613510132,
-0.213712960481643... |
def notnull ( data ) : if ( not data ) : return none else : return data | [
0.5240622162818909,
-0.9400085210800171,
0.4055010676383972,
-0.2641183137893677,
-0.12022463977336884,
-0.07547163218259811,
-1.286996841430664,
-0.4449916481971741,
1.040121078491211,
-0.25902047753334045,
-0.030249986797571182,
0.5767682790756226,
-0.17170663177967072,
-0.24671378731727... |
def increment ( self, settings, request, response = none, error = none ) : settings ['total'] - = 1 if error and isinstance ( error, servicerequesterror ) : # errors when we're fairly sure that the server did not receive the # request, so it should be safe to retry. settings ['connect'] - = 1 settings ['history']. appe... | [
-0.9748216867446899,
0.45549172163009644,
0.8973841071128845,
0.09208106994628906,
-0.29305893182754517,
-0.25477105379104614,
0.08290804177522659,
-0.9302456378936768,
-0.24451281130313873,
-0.4014309048652649,
-0.06901855021715164,
-0.0263382401317358,
-0.8207541108131409,
-0.37363392114... |
def get _ offers _ data ( offers _ links _ list ) : offers _ df = pd. dataframe ( columns = [ " offer _ id ", " price _ per _ square ", " live _ square ", " microdistrict ", " location _ lat ", " location _ long ", " refresh _ time ", ] ) ayo _ html _ offers = get _ htmls ( offers _ links _ list ) html _ offers = [ htm... | [
-0.5619078278541565,
0.7114527225494385,
0.4576311409473419,
0.2890458405017853,
0.05745028704404831,
-0.062448650598526,
-0.04427294433116913,
0.4139079451560974,
-0.04442225769162178,
-0.1616271436214447,
0.37017080187797546,
1.0599385499954224,
0.10912027955055237,
0.3844049572944641,
... |
def init ( self ) : for type _, data in self. chunks : if type _ = = " ihdr " : self. hdr = data elif type _ = = " iend " : self. end = data if self. hdr : # grab w, h info self. width, self. height = struct. unpack ( "! ii ", self. hdr [ 8 : 16 ] ) | [
-0.3113161027431488,
-0.9249193072319031,
0.7146077156066895,
-0.3694855272769928,
0.11495964229106903,
-0.08067244291305542,
-0.21652159094810486,
-0.4958105981349945,
-0.6130354404449463,
-0.2982197105884552,
0.045092396438121796,
-0.039060328155756,
-0.42462486028671265,
0.9824163317680... |
def writefunction ( functionname, numlocals ) : # implement me | [
-1.1307011842727661,
-0.06319670379161835,
0.42205485701560974,
0.26891693472862244,
0.6845332384109497,
-0.804202139377594,
0.6488597989082336,
0.7278335690498352,
0.011805365793406963,
-0.3457503616809845,
-0.6223857998847961,
0.10953929275274277,
-0.36493900418281555,
-0.328998386859893... |
def llh ( self, y, p, opt _ for _ minimise = false ) : # avoid log ( 0 ) p = np. clip ( p, 1e - 15, 1 - 1e - 15 ) n = y [ :, 0 ] k = y [ :, 1 ] if opt _ for _ minimise : return k * np. log ( p ) + ( n - k ) * np. log ( 1 - p ) else : nck = np. array ( [ ncr ( nk [ 0 ], nk [ 1 ] ) for nk in y ] ) return np. log ( nck ) ... | [
1.0936269760131836,
0.1642950475215912,
0.6286752820014954,
-0.12667575478553772,
-0.2650342285633087,
0.5983934998512268,
-0.9303804636001587,
-0.24738575518131256,
0.4590470790863037,
0.5855070948600769,
0.2661002278327942,
0.1867457777261734,
-0.40203720331192017,
0.17541848123073578,
... |
def get _ form _ class ( self ) : if self. embedded _ form _ class : return self. embedded _ form _ class else : raise improperlyconfigured ( " no embedded form class provided. an embedded form class must be provided. " ) | [
0.2932307720184326,
0.03574531152844429,
0.4622943103313446,
0.3742706775665283,
0.449994295835495,
1.0114294290542603,
0.12567473948001862,
0.37346211075782776,
0.7044282555580139,
-1.22017502784729,
0.38256701827049255,
-0.37457945942878723,
-0.14906781911849976,
0.8018081784248352,
0.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.