text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def delete ( self ) : return self. connection. delete _ disk ( disk _ id = self. id ) | [
0.01952938735485077,
0.5047314763069153,
0.42231041193008423,
0.5184993743896484,
0.6266173720359802,
-0.03624701499938965,
-0.031599607318639755,
0.32808709144592285,
0.06112104281783104,
-1.490678071975708,
-0.05014972761273384,
0.15523861348628998,
-1.6033544540405273,
0.165540754795074... |
def manhattandistance ( input _ batch, weights, verbose ) : with tf. variable _ scope ('manhattandistance') : # compute the distance _ vectors between each weight ( or som neuron ) and the input _ batch per map. # input tensor shape weights : [ 1, num _ maps, num _ som _ neurons, weight _ vector _ size ] # input tensor... | [
0.2542133033275604,
-0.6185154318809509,
1.013588309288025,
0.8316986560821533,
0.05931159853935242,
0.18365724384784698,
0.099461629986763,
0.6182587146759033,
0.3680639863014221,
0.19024954736232758,
-0.4366389513015747,
-0.21317721903324127,
0.15498203039169312,
0.2487795352935791,
0.... |
def preprocessing ( samples = 0 ) : print ('starting preprocessing of data...') start = time. time ( ) matches = pd. read _ sql ( " select * from match ; ", conn ) all _ players = pd. read _ sql ( " " " select * from player _ attributes ; " " ", conn ) passing _ time = time. time ( ) print ('time to get all matches and... | [
-0.33926376700401306,
0.13303746283054352,
0.8933618664741516,
-0.27471110224723816,
0.3180023729801178,
-0.25630971789360046,
0.76023268699646,
-0.5483347177505493,
-0.24770870804786682,
0.30257484316825867,
0.48926690220832825,
0.07892336696386337,
0.17407280206680298,
0.0739267319440841... |
def load _ data ( database _ uri : str, input _ data : dict ) - > pandas. dataframe : # the default sheet _ name is 0, which is the first sheet sheet _ name = input _ data. get ('sheet _ name ', 0 ) if sheet _ name : info ( f " reading sheet'{ sheet _ name }'from excel file " ) return pandas. read _ excel ( database _ ... | [
0.08032961189746857,
0.8695490956306458,
0.3158910572528839,
0.3007441759109497,
0.4164586365222931,
0.2766134440898895,
-1.220865249633789,
0.6135400533676147,
-0.7622395157814026,
-0.33574607968330383,
0.8685397505760193,
-0.20443715155124664,
-0.5572319030761719,
-0.6279398798942566,
... |
def test _ correlation _ chart ( data, columns ) : test _ list = [ ('abdomen 2 circumference ( cm ) ', 0. 813432284781049 ), ('chest circumference ( cm ) ', 0. 7026203388938643 ), ('hip circumference ( cm ) ', 0. 6252009175086622 ), ('weight ( lbs ) ', 0. 6124140022026474 ), ('thigh circumference ( cm ) ', 0. 559607531... | [
0.6393346190452576,
-0.14319530129432678,
0.7994570732116699,
-1.0373733043670654,
0.7092955708503723,
0.9183627963066101,
1.2192096710205078,
-0.18714231252670288,
-0.3533554971218109,
-0.30286598205566406,
-0.4587918817996979,
-0.027745714411139488,
-0.2117246389389038,
-0.39083805680274... |
def model _ step ( self, * args, * * kwargs ) : raise notimplementederror | [
-1.0952398777008057,
-0.19140180945396423,
0.3582439422607422,
0.361128032207489,
0.8773120045661926,
0.8021718263626099,
-0.049039967358112335,
-0.0523112416267395,
-1.0173643827438354,
-0.6223306059837341,
-1.2680176496505737,
-0.38647592067718506,
0.37172600626945496,
0.9392843842506409... |
def test _ update _ booking _ cancelled ( self ) : event = baker. make _ recipe ('booking. future _ ev') booking = baker. make _ recipe ('booking. booking ', status ='cancelled ', event = event ) resp = self. _ get _ update _ booking _ cancelled ( self. user, booking ) self. assertin ( event. name, str ( resp. content ... | [
-0.2115180343389511,
-0.04257263243198395,
0.5823500752449036,
1.4814212322235107,
-1.0965269804000854,
0.6523377299308777,
-0.5642321705818176,
1.5295928716659546,
-0.5158289670944214,
0.4335395395755768,
-0.5510625243186951,
-0.6804067492485046,
0.11883434653282166,
0.08719146251678467,
... |
def _ _ load _ mnist ( ) : train, test = tf. keras. datasets. mnist. load _ data ( ) tf. keras. datasets. boston _ housing train _ data, train _ labels = train test _ data, test _ labels = test train _ data = np. array ( train _ data, dtype = np. float32 ) / 255 test _ data = np. array ( test _ data, dtype = np. float3... | [
-0.3704661428928375,
-0.14224234223365784,
0.5564846992492676,
-0.6437587141990662,
0.3331524431705475,
0.2921193838119507,
-0.6015079021453857,
0.37374135851860046,
0.14027900993824005,
-0.1616111695766449,
-0.5374701023101807,
0.6396493911743164,
-0.2708415687084198,
-0.3193577826023102,... |
def _ has _ doc _ or _ excuse ( self, node ) : return self. _ has _ docstring ( node = node ) or self. _ has _ excuse ( node = node ) | [
-0.11295995116233826,
0.8676906824111938,
0.6052694916725159,
-0.5911929607391357,
-0.594410240650177,
0.422392874956131,
-0.5838190317153931,
0.21620741486549377,
0.018643535673618317,
0.24409545958042145,
1.5598769187927246,
0.4016551971435547,
-0.28108125925064087,
1.06592857837677,
-... |
def permissions _ list ( request ) : permissions = permission. query. filter _ by ( school _ id = g. user. school _ id ) return jsonify ( {'permissions': [ p. to _ dict ( ) for p in permissions ] } ), 200 | [
-0.9210248589515686,
-0.533356785774231,
0.4380801320075989,
0.36180949211120605,
0.05422059819102287,
-0.9218191504478455,
-0.7127856612205505,
0.1673704981803894,
0.11769183725118637,
1.1169683933258057,
-0.22395946085453033,
-0.23831211030483246,
0.5959873199462891,
0.054893333464860916... |
def _ mgui _ set _ min _ height ( self, value : int ) - > none : self. _ qwidget. setminimumheight ( value ) self. _ qwidget. resize ( self. _ qwidget. sizehint ( ) ) | [
0.2543286979198456,
0.20205624401569366,
0.38742488622665405,
-0.2539407014846802,
-0.5025591850280762,
0.9028144478797913,
0.13023342192173004,
-1.1782152652740479,
0.2489916980266571,
0.025227943435311317,
-0.7119333148002625,
-0.5552150011062622,
-0.5055939555168152,
0.503266453742981,
... |
def translate _ dict ( contract, context ) : properties = { } additional _ properties = false for key, value in six. iteritems ( contract ) : if isinstance ( key, dsl _ types. yaqlexpression ) : additional _ properties = translate ( value, context ) else : properties [ key ] = translate ( value, context ) return {'type... | [
-0.11244548857212067,
-0.149392232298851,
0.6263257265090942,
-0.919230580329895,
-1.0619531869888306,
-0.9197579622268677,
-0.2388705313205719,
0.487037718296051,
0.9095749855041504,
0.09964285045862198,
-0.7437959313392639,
-0.4612952768802643,
1.0402196645736694,
-0.2581508159637451,
... |
def activate _ extra ( self ) : pass | [
-0.3989461660385132,
-0.9022441506385803,
0.2909792363643646,
0.5860106348991394,
0.15400859713554382,
0.5318690538406372,
0.4648447036743164,
0.8785022497177124,
0.5063543319702148,
-0.6518838405609131,
-1.3101706504821777,
1.1814814805984497,
-0.08532999455928802,
0.06961074471473694,
... |
async def say ( self, text : str, voice _ id : str, * * kwargs ) - > bytes : # default to part 15 encoding to handle " special " characters. # see https : / / www. web3. lu / character - encoding - for - festival - tts - files / encoding = " iso - 8859 - 15 " # look up encoding by language voice = self. _ voice _ by _ ... | [
0.13517647981643677,
0.07214497029781342,
0.705485999584198,
-0.18072287738323212,
-0.8400931358337402,
-0.38408568501472473,
-1.0171074867248535,
-0.048465508967638016,
0.0021573042031377554,
0.11273979395627975,
0.06784950941801071,
0.39387965202331543,
0.15734194219112396,
0.63258498907... |
def return _ results ( self ) : try : last _ calc _ uuid = self. ctx. last _ calc. uuid except attributeerror : last _ calc _ uuid = none try : # if something failed, we still might be able to retrieve something last _ calc _ out = self. ctx. last _ calc. out ['output _ parameters'] last _ calc _ out _ dict = last _ ca... | [
-0.4224052131175995,
-0.48775714635849,
0.7026364803314209,
-0.5786261558532715,
0.15575872361660004,
-1.2341300249099731,
-0.18360304832458496,
-0.7302511930465698,
-0.8407925367355347,
-0.40729546546936035,
0.3402193486690521,
-0.27266186475753784,
-0.050573691725730896,
0.31075477600097... |
def getfigureblurbs ( text, numwords = 50, ) : matches = list ( figurere. finditer ( text ) ) # all matches of fig / tbl words if not matches : return [ ] blurbs = [ ] # text blurbs to return # 1st match, leading chunk before first fig / tbl word m = matches [ 0 ] textchunk = text [ : m. start ( ) ] # text before the f... | [
0.7514457106590271,
-0.19432523846626282,
0.9753502011299133,
-0.06317916512489319,
-0.5748417973518372,
0.10861501097679138,
1.090034008026123,
0.41021183133125305,
-0.2444712072610855,
0.38117244839668274,
-0.41870933771133423,
0.13311414420604706,
-0.2531052529811859,
0.4686571955680847... |
def test _ cancel _ unpaid _ with _ paypal _ transaction ( self ) : event = baker. make _ recipe ('booking. future _ pc') booking = baker. make _ recipe ('booking. booking ', event = event, user = self. user, paid = false ) ppt = create _ booking _ paypal _ transaction ( self. user, booking ) ppt. transaction _ id ='te... | [
0.7193871140480042,
0.4620594382286072,
0.46975234150886536,
0.9036278128623962,
-0.6096712946891785,
1.0962740182876587,
0.06796902418136597,
0.6417999267578125,
0.03346893563866615,
-0.1778022050857544,
-0.28030380606651306,
-1.3141660690307617,
-0.408072829246521,
0.346723735332489,
-... |
def _ _ init _ _ ( self, message = none ) : if message is not none : self. message = message | [
0.5405073761940002,
0.2050396054983139,
0.536331057548523,
0.4170624315738678,
-0.10392245650291443,
-0.6934589147567749,
-0.22758160531520844,
0.6743161082267761,
0.02448957785964012,
-0.7296141982078552,
0.48009979724884033,
0.4630219638347626,
-1.109642505645752,
1.658023715019226,
0.... |
def kahns _ algo ( graph ) : # initialize degree map degrees = { } zero _ nodes = [ ] top _ sort = [ ] for u in graph. get _ nodes ( ) : pred = graph. get _ predecessors ( u ) degrees [ u ] = len ( pred ) if len ( pred ) = = 0 : zero _ nodes. append ( u ) while len ( zero _ nodes ) > 0 : u = zero _ nodes. pop ( ) top _... | [
-0.27307558059692383,
0.45680972933769226,
0.7986482381820679,
0.7273993492126465,
-1.355575680732727,
0.10175582021474838,
0.8808022141456604,
0.6622724533081055,
-0.18962660431861877,
0.6454228758811951,
0.1550425887107849,
0.5169591307640076,
-0.016493747010827065,
1.3772141933441162,
... |
def to _ string ( self ) : return json. dumps ( self. patch ) | [
-0.6087175607681274,
-2.19039249420166,
0.582332193851471,
-1.790736198425293,
-0.8152545690536499,
0.5054733753204346,
-0.8916358947753906,
-0.7100238800048828,
0.8427493572235107,
0.1439674347639084,
-0.23426257073879242,
1.1210139989852905,
0.03388554975390434,
-0.8079981207847595,
-0... |
def _ _ init _ _ ( self, * args ) : _ topods. topods _ solid _ swiginit ( self, _ topods. new _ topods _ solid ( * args ) ) | [
-0.16784638166427612,
0.21254462003707886,
0.25249648094177246,
-0.1595814973115921,
-0.498558908700943,
0.837846577167511,
0.7866774797439575,
-0.40336769819259644,
-0.032635413110256195,
-0.6637449860572815,
-0.5045521259307861,
-1.008668065071106,
-0.45254412293434143,
0.654308378696441... |
def get _ attention _ map ( g, src _ nodes, dst _ nodes, h ) : n, m = len ( src _ nodes ), len ( dst _ nodes ) # print number of source nodes and destination nodes in the set : print ( f'{ n } source nodes considered, { m } target nodes') weight = th. zeros ( n, m, h ). fill _ ( - 1e8 ) for i, src in enumerate ( src _ ... | [
-0.24351949989795685,
-0.6129164695739746,
0.6917790770530701,
-1.3679461479187012,
-0.35351574420928955,
-0.16020169854164124,
0.5811463594436646,
0.4892689287662506,
-0.8471527099609375,
0.7341936826705933,
0.5476607084274292,
1.0198183059692383,
0.5769040584564209,
0.19345012307167053,
... |
def signin ( self ) : raise notimplementederror | [
-0.6622506976127625,
-0.807805061340332,
0.5793617367744446,
0.695839524269104,
-0.1815335899591446,
1.104104995727539,
0.8402388691902161,
0.7907559871673584,
-0.1364559680223465,
-0.6239051222801208,
-0.7653223872184753,
-0.3056977689266205,
-0.054756324738264084,
0.3903091251850128,
-... |
def get _ local _ importance _ rank ( self ) : if self. is _ local _ sparse : return _ sparse _ order _ imp ( self. _ local _ importance _ values, values _ type = _ ranking ) else : return _ order _ imp ( self. _ local _ importance _ values ). tolist ( ) | [
0.1773654669523239,
0.29154789447784424,
0.5544551014900208,
0.38408586382865906,
1.0694273710250854,
-0.24478928744792938,
-0.688084065914154,
0.8045712113380432,
0.3791506886482239,
0.12335284799337387,
-0.33087852597236633,
1.264267086982727,
-0.3797121047973633,
0.08352664113044739,
... |
def print _ link ( role, item, domain, title ) : domain = domain. lower ( ) if ( title = ='' ) | ( title = ='-') : linkstr = " : { } : ` { } < { } : { } > ` ". format ( role, item, domain, item ) else : linkstr = " : { } : ` { } : { } ` ". format ( role, domain, item ) if ( args. terse ) : print linkstr if ( args. rewr... | [
0.19643035531044006,
-0.6551303863525391,
0.9063593149185181,
-0.023686278611421585,
1.2693214416503906,
0.16902261972427368,
0.06565193831920624,
0.11804311722517014,
-0.19471630454063416,
-0.7819020748138428,
1.0466570854187012,
1.6735354661941528,
-0.5079237222671509,
-0.260753661394119... |
def simulate ( self, n = 10000, pack = false ) : return super ( ). _ simulate ( ( n, false, lambda x : self. r * x, lambda x, y : self. sigma * x * * self. beta ), pack ) | [
-0.06940893828868866,
1.3531064987182617,
0.4931181073188782,
0.07033322006464005,
0.2830600142478943,
-0.534365713596344,
-0.4584585726261139,
-1.1213366985321045,
0.20023128390312195,
-0.15890547633171082,
-1.0915191173553467,
-0.8290175795555115,
-0.24740469455718994,
0.1643481403589248... |
def remove _ neighbour ( self, neighbour ) : self. neighbours. remove ( neighbour ) | [
-0.6867563724517822,
-0.12987662851810455,
0.14948062598705292,
-0.13527357578277588,
-0.9671162366867065,
0.07196733355522156,
-0.4225843846797943,
0.5846521258354187,
-0.47224780917167664,
-0.19895191490650177,
-0.7103832364082336,
0.16506531834602356,
-1.468101978302002,
0.2196394801139... |
def to _ dict ( self, accommodation _ properties : tuple [ any,... ] ) - > dict [ str, any ] : property _ names = ['address ','url ','type ','location ','deadline ','rent ','elevator ','size ','floor ', ] return { * * dict ( zip ( property _ names, accommodation _ properties [ : - 5 ] ) ),'queue': list ( accommodation ... | [
-1.0209405422210693,
-0.977098286151886,
0.5017570853233337,
-0.9712303876876831,
-0.7828218936920166,
-0.2536471486091614,
-0.22462891042232513,
0.23358696699142456,
-0.3642764687538147,
1.116390585899353,
-0.5272325873374939,
-0.1613391637802124,
0.44918620586395264,
-0.4241945743560791,... |
def multithreadmap ( f, x, ncores = 20, * * kwargs ) : func = partial ( f, * * kwargs ) p = mp. pool ( ncores ) xout = p. map ( func, x ) p. terminate ( ) return ( xout ) | [
0.32112741470336914,
0.12804631888866425,
0.5625646114349365,
0.39395666122436523,
-0.19087336957454681,
0.1504204273223877,
-0.3868398070335388,
-0.3558174669742584,
0.3358425796031952,
0.27139100432395935,
-0.349766343832016,
-0.2876885235309601,
-0.25674372911453247,
-0.0984970852732658... |
def search _ neigh ( self, parent, neigh _ size, patch _ size, search _ space ) : # parent : [ vector _ individual, fitness ] neigh = [ self. create _ neigh _ bee ( parent [ 0 ], patch _ size, search _ space ) for x in range ( 0, neigh _ size ) ] # neigh = [ ( bee, self. objective _ function ( bee ) ) for bee in neigh ... | [
-0.08427722007036209,
-0.22919951379299164,
0.6643495559692383,
0.6847099661827087,
-1.231260061264038,
0.21790139377117157,
-0.4603522717952728,
-1.0035537481307983,
-0.46982693672180176,
-0.41202619671821594,
-0.5238356590270996,
0.4467412531375885,
-0.5699443817138672,
0.442521214485168... |
def read _ node ( filename, sheet, num _ node ) : book = xlrd. open _ workbook ( filename ) sheet = book. sheet _ by _ name ( sheet ) index = sheet. col _ values ( 0, 1, num _ node + 1 ) x _ coor = sheet. col _ values ( 1, 1, num _ node + 1 ) y _ coor = sheet. col _ values ( 2, 1, num _ node + 1 ) node = [ ] for i in x... | [
-0.9247757196426392,
-0.5856367349624634,
0.481209397315979,
-0.6404366493225098,
-0.23673602938652039,
0.38275569677352905,
-0.4722287058830261,
0.5019546747207642,
-0.7799921035766602,
0.904967188835144,
0.350452721118927,
0.5583469271659851,
0.3260399103164673,
-0.9531683921813965,
0.... |
def bb _ 2 _ transcale ( bounding _ boxes ) : x, y, w, h = tf. split ( bounding _ boxes, 4, axis = 1 ) tx = 2 * x + w - 1 ty = 2 * y + h - 1 ts _ matrix = tf. concat ( [ w, tx, h, ty ], axis = 1 ) return ts _ matrix | [
-0.3165779113769531,
-0.5098211169242859,
0.8357840180397034,
0.12658894062042236,
0.3399522304534912,
-0.8346977829933167,
-0.23730061948299408,
-0.4112759828567505,
-1.4641151428222656,
1.0120208263397217,
-0.6940698623657227,
-0.47266119718551636,
0.2511919438838959,
-0.7132867574691772... |
def put _ nowait ( self, item, evict = false ) : return self. put ( item, block = false, evict = evict ) | [
-0.10690414905548096,
0.8113859295845032,
0.5528192520141602,
-0.487068235874176,
-0.0023590486962348223,
0.8896433115005493,
-0.08138608932495117,
-0.24572178721427917,
0.19954819977283478,
0.6456483006477356,
-1.1804372072219849,
-0.9149165749549866,
-1.041338562965393,
-0.80761098861694... |
def get _ groups _ with _ http _ info ( self, start, end, logged _ in _ user _ id, access _ token, client _ token, * * kwargs ) : all _ params = ['start ','end ','logged _ in _ user _ id ','access _ token ','client _ token ','fields'] all _ params. append ('callback') all _ params. append ('_ return _ http _ data _ onl... | [
-0.17899496853351593,
0.8912824392318726,
1.0922737121582031,
0.14006000757217407,
-0.08603458851575851,
-0.2418777197599411,
-0.34999600052833557,
-1.498476266860962,
-0.9707135558128357,
0.01001017540693283,
0.5800163149833679,
0.8247359395027161,
-0.8145280480384827,
-0.0063936421647667... |
def _ _ init _ _ ( _ _ self _ _, *, app _ id : pulumi. input [ str ], enabled : pulumi. input [ bool ], secret _ key : pulumi. input [ str ], services : pulumi. input [ sequence [ pulumi. input [ str ] ] ], subscriptions : pulumi. input [ sequence [ pulumi. input [ str ] ] ], tenant _ id : pulumi. input [ str ], additi... | [
0.26075389981269836,
1.1299656629562378,
0.795246422290802,
-0.3617281913757324,
0.17608295381069183,
0.33107736706733704,
-0.7058870196342468,
-0.2801640033721924,
0.7594812512397766,
0.9119148850440979,
-0.5051961541175842,
0.2711053192615509,
0.17146949470043182,
-0.27906450629234314,
... |
def makespherecuboid ( ) : nx, ny, nz = 256, 256, 256 nx2, ny2, nz2 = int ( nx / 2 ), int ( ny / 2 ), int ( nz / 2 ) # fill with zeros a = np. zeros ( nx * ny * nz, np. uint8 ). reshape ( nx, ny, nz ) # set data for k in range ( nz ) : for j in range ( ny ) : for i in range ( nx ) : # inside cuboid? if abs ( i - nx2 ) ... | [
-0.8377091288566589,
0.2118641585111618,
0.8174532651901245,
-0.02647767961025238,
0.3747655153274536,
0.3492114841938019,
1.1430788040161133,
0.24680306017398834,
0.7811664342880249,
0.4992268681526184,
-0.7979687452316284,
0.23213618993759155,
-0.20574133098125458,
-0.14862406253814697,
... |
def convert _ to _ line _ mesh ( poly _ in ) : extractedges = vtk. vtkextractedges ( ) extractedges. setinputdata ( poly _ in ) extractedges. update ( ) poly _ line = extractedges. getoutput ( ) wdo _ line = dsa. wrapdataobject ( poly _ line ) # a _ edges = poly _ line. getlines ( ) # vtkcellarray of lines return poly ... | [
0.3138501048088074,
-0.7649691700935364,
0.5595235824584961,
0.3147735595703125,
0.2614612877368927,
0.2952141761779785,
-0.11246458441019058,
0.021408798173069954,
1.0475691556930542,
-0.4367637634277344,
-0.6061685681343079,
0.16151583194732666,
0.11197835952043533,
-0.26575350761413574,... |
def norm ( x ) : return sqrt ( sum ( [ x _ i * * 2 for x _ i in x ] ) ) | [
-0.11316210776567459,
-0.6189175248146057,
0.3246991038322449,
0.48634323477745056,
-0.06856077909469604,
-0.2249329388141632,
-0.24128440022468567,
0.6734393835067749,
1.1418026685714722,
0.05376666039228439,
-1.5204073190689087,
0.3657700717449188,
0.04975872114300728,
-0.209235057234764... |
def compute _ exgexr _ img ( self, img ) : r _ star = img [ :, :, 0 ] / 255 g _ star = img [ :, :, 1 ] / 255 b _ star = img [ :, :, 2 ] / 255 sum _ star = r _ star + g _ star + b _ star + k. epsilon ( ) r = r _ star / sum _ star g = g _ star / sum _ star b = b _ star / sum _ star return 3 * g - 2. 4 * r - b | [
0.08148176968097687,
0.14511114358901978,
0.7174117565155029,
0.19830231368541718,
-0.5031169652938843,
0.15301255881786346,
0.20889820158481598,
1.440005898475647,
0.4843137860298157,
1.2956578731536865,
0.5249606370925903,
-0.4145137667655945,
-0.6848846077919006,
0.2673035264015198,
0... |
def get _ pacific _ tz _ year ( ) : return pytz. datetime. datetime. now ( tz = pytz. timezone ('us / pacific') ). year | [
0.48722121119499207,
-0.7712463140487671,
0.4942878484725952,
-0.11753995716571808,
-1.0485053062438965,
1.2901935577392578,
-0.4755460023880005,
-0.2925300896167755,
0.2100243717432022,
0.15505991876125336,
-0.18820896744728088,
-0.06752827763557434,
-0.24783864617347717,
-0.1686818748712... |
def addfiledescriptor ( self, * args, * * kwargs ) : # real signature unknown pass | [
0.1707049310207367,
0.03582685440778732,
0.6030299663543701,
0.17632578313350677,
0.7791911363601685,
0.7184194326400757,
0.16251343488693237,
0.7000951170921326,
-0.5408637523651123,
-1.5113701820373535,
0.08969499170780182,
0.05512179806828499,
-0.28912341594696045,
0.9208151698112488,
... |
def containsfunc ( self, data ) : return unicode ( self. field. sortvalue ( data ) ). \ find ( unicode ( self. value ) ) > = 0 | [
0.11912976950407028,
0.015422496013343334,
0.4250449240207672,
0.2589847445487976,
-0.739942729473114,
0.25214695930480957,
-0.30455121397972107,
-0.6091440320014954,
-0.3040961027145386,
-0.7471047043800354,
-0.17018012702465057,
0.08709301054477692,
-0.33653855323791504,
0.47482556104660... |
def init ( self ) : # # # # # do not change this function # # # mounter = none # import / generate all private keys - - infer user id from file name import re kf = re. compile ('^. * / user - ( \ d + ) - key. pem $') for f in self. privkeys : if " / " not in f : f = ". / { } ". format ( f ) m = kf. search ( f ) if m is... | [
0.22989211976528168,
-0.3314599394798279,
0.7564087510108948,
1.006758213043213,
0.6325020790100098,
0.2723435163497925,
0.37557876110076904,
-0.35164088010787964,
-0.7092143297195435,
-0.9436348676681519,
-0.6398271322250366,
0.035086702555418015,
-0.4904668927192688,
1.233847737312317,
... |
def train ( ) : intermediate _ sync = none exit _ code = success _ code try : env = environment. environment ( ) region = os. environ. get ( " aws _ region ", os. environ. get ( params. region _ name _ env ) ) s3 _ endpoint _ url = os. environ. get ( params. s3 _ endpoint _ url, none ) intermediate _ sync = intermediat... | [
0.25527727603912354,
0.09230124950408936,
0.7943065762519836,
0.08339177072048187,
0.4612916111946106,
-0.191469207406044,
1.5913950204849243,
0.5685874819755554,
0.04653922840952873,
0.555458664894104,
-0.19758941233158112,
0.4600815773010254,
-0.333638459444046,
-0.3387787938117981,
0.... |
def get _ deployment ( self, name, endpoint = none ) : import boto3 assume _ role _ credentials = _ assume _ role _ and _ get _ credentials ( assume _ role _ arn = self. assumed _ role _ arn ) try : sage _ client = boto3. client ( " sagemaker ", region _ name = self. region _ name, * * assume _ role _ credentials ) ret... | [
-0.1957155019044876,
-0.09748333692550659,
0.5069084167480469,
-0.23170603811740875,
0.03433864563703537,
-0.6291623115539551,
-0.6407390832901001,
0.13274724781513214,
0.222571462392807,
0.7725756168365479,
0.39695948362350464,
1.0364261865615845,
-0.8760823607444763,
-0.19961431622505188... |
def getfilewriterforpath ( datapath ) : return getbyscheme ( datapath, schemas _ to _ filewriters, localfsfilewriter ) | [
-0.017973003908991814,
-0.4872002899646759,
-0.08561640232801437,
-0.5579870343208313,
0.3292274475097656,
-1.140154242515564,
0.567646324634552,
0.24887579679489136,
0.024115484207868576,
-0.7372297048568726,
0.5219299793243408,
-0.4854641556739807,
0.3012251853942871,
-0.1084546819329261... |
def _ _ init _ _ ( self, localbundlepath, basebundlefilename ) : # fn = basebundlefilename self. _ _ basebundlefilename = fn + ". tar. gz " self. _ _ localstashtarfilepath = os. path. join ( localbundlepath, self. _ _ basebundlefilename ) | [
1.2225724458694458,
-1.1569654941558838,
0.5168585181236267,
0.10490099340677261,
-0.2155112773180008,
0.3920152485370636,
0.3813655972480774,
1.0634193420410156,
-1.5304663181304932,
-0.5982180237770081,
-0.1493825614452362,
0.10521198064088821,
0.5687431693077087,
0.4220485985279083,
0... |
def test _ mode ( self, test _ mode ) : self. _ test _ mode = test _ mode | [
-0.02349833957850933,
-0.11063678562641144,
0.03215116262435913,
0.20765480399131775,
0.7743688225746155,
1.4863635301589966,
0.7926223278045654,
0.009526263922452927,
-0.49589604139328003,
-0.0809415951371193,
-0.8639724254608154,
-0.5605469346046448,
-0.5200720429420471,
-0.2574006617069... |
def shape ( self, * args ) : return _ topods. topods _ hshape _ shape ( self, * args ) | [
-0.2316834181547165,
0.5786834955215454,
0.31386086344718933,
0.6645050048828125,
0.9649654626846313,
0.5890435576438904,
0.22562956809997559,
0.327675461769104,
-0.24838396906852722,
-0.9222191572189331,
-0.012857198715209961,
-0.2801886796951294,
-0.3484375774860382,
-0.01201344747096300... |
def test _ create _ multiple _ alumno _ curso _ admin ( self ) : self. client. force _ authenticate ( user = self. user _ admin ) alumno _ 1 = alumno. objects. get ( apellido = " 1 " ). pk alumno _ 2 = alumno. objects. get ( apellido = " 2 " ). pk alumno _ 6 = alumno. objects. get ( apellido = " 6 " ). pk curso = curso... | [
0.07096786797046661,
-0.14502808451652527,
0.8020715117454529,
0.08346284180879593,
0.7367783784866333,
0.8956902623176575,
-0.40602827072143555,
-0.0286259688436985,
-0.3135424554347992,
0.29249128699302673,
-1.5891562700271606,
0.36401262879371643,
1.0653480291366577,
0.2869351804256439,... |
async def create _ moderator _ interview _ room ( self, guild : discord. guild, moderator _ app : list [ str ] ) - > none : moderator _ app _ cat = discord. utils. get ( guild. categories, id = self. moderator _ app _ cat _ id ) moderator = discord. utils. get ( guild. members, id = moderator _ app [ 0 ] [ 1 ] ) cosmos... | [
0.3149898052215576,
-0.38617950677871704,
0.6866071224212646,
-0.26861539483070374,
-0.008391092531383038,
-0.21297435462474823,
-1.2648743391036987,
0.47770145535469055,
-0.4393499195575714,
0.5395070910453796,
0.3572189509868622,
0.7187312841415405,
-1.055543303489685,
0.9662121534347534... |
def hit ( self, item, * identifiers ) : return ( self. storage ( ). incr ( item. key _ for ( * identifiers ), item. get _ expiry ( ) ) < = item. amount ) | [
-0.38595330715179443,
0.4021887183189392,
0.3143691420555115,
0.6267386674880981,
-0.1783088892698288,
0.6515058279037476,
-0.7537879943847656,
-0.1954326629638672,
-0.7080636620521545,
0.553598940372467,
-0.43137824535369873,
-0.7864092588424683,
-0.9200251698493958,
-1.7626792192459106,
... |
def plot _ pca _ ax ( p _ df, pca, ax = none, c = none, cohort _ s = none, cohort _ colors = none, cohort _ args = none, order = [ 1, 2, 3 ], outliers = none, title ='', vmin = none, vmax = none, alpha = 1, lw = 0, s = 30, cmap = plt. cm. spectral _ r, cticks = none, cticklabels = none, clabel ='', show _ legend = true... | [
0.3937811851501465,
-0.1604612022638321,
1.0188335180282593,
-0.023508481681346893,
-0.5711865425109863,
0.140472412109375,
0.15169240534305573,
0.6374604105949402,
0.5391647219657898,
0.05257156118750572,
1.2367675304412842,
1.5923411846160889,
0.3119572103023529,
-0.6176760196685791,
0... |
def test _ write _ potcar ( vasp _ calc _ and _ ref ) : vasp _ calc, _ = vasp _ calc _ and _ ref with managed _ temp _ object ( ) as temp _ object : vasp _ calc. write _ potcar ( temp _ object ) with open ( temp _ object,'r ', encoding ='utf8') as potcar _ fo : result _ potcar = potcar _ fo. read ( ) assert'in _ sv'in ... | [
-1.0082483291625977,
-0.8943418860435486,
0.5628220438957214,
0.2436983585357666,
0.053182028234004974,
0.10322216153144836,
0.3779149055480957,
-0.2984589636325836,
-0.3900761604309082,
-0.4713038206100464,
0.31692662835121155,
-0.7526803016662598,
0.35609686374664307,
-0.0898032113909721... |
def _ _ init _ _ ( self, parent, name, locator = none, action _ title = none, logger = none ) : widget. _ _ init _ _ ( self, parent = parent, logger = logger ) self. name = name self. locator = locator or self. root self. action _ title = action _ title | [
0.7977405190467834,
-1.0414462089538574,
0.61356520652771,
0.6130374073982239,
-0.4886297881603241,
-0.8744320273399353,
-0.6403670907020569,
0.6710578799247742,
0.8380993604660034,
-0.6059988737106323,
-0.19002754986286163,
0.07075764238834381,
0.3807799816131592,
0.49602004885673523,
-... |
def error _ state ( self, side _ port _ group _ 1, side _ port _ group _ 2, side _ port _ group _ 3, side _ port _ group _ 4, telescope _ state, slit _ state, flap _ state, mirror _ cover _ state, who _ did _ it _ tel, who _ did _ it _ sp ) : self. side _ port _ group _ 1 = side _ port _ group _ 1 self. side _ port _ g... | [
-0.6788685917854309,
0.11979731172323227,
0.6336387395858765,
-0.6512151956558228,
-0.49967220425605774,
0.4450118839740753,
0.3353300094604492,
-0.011190460063517094,
-0.33508241176605225,
1.0477240085601807,
-0.08568599075078964,
0.2585203945636749,
-0.7256532907485962,
0.310531497001647... |
def test _ all _ surveys ( self, all _ surveys ) : for survey in all _ surveys : survey _ keys = survey. keys ( ) assert len ( survey _ keys ) = = len ( self. s _ model _ keys ) for key in survey _ keys : assert key in self. s _ model _ keys assert type ( survey [ key ] ) in survey _ model [ key ] | [
-0.21891038119792938,
-0.26394280791282654,
0.2127998322248459,
0.5601024627685547,
0.3295545279979706,
0.8797560334205627,
-0.5995100736618042,
-0.3656221926212311,
0.8429800868034363,
0.028698544949293137,
-0.5416218042373657,
-0.9387908577919006,
-0.004689549095928669,
0.867877542972564... |
def annotate ( self, tokens ) : return [ ] | [
-0.6916217803955078,
-0.9151591062545776,
0.2891692519187927,
0.3818376660346985,
0.5197879672050476,
-0.08801057189702988,
-0.9824047088623047,
0.6805462837219238,
0.6217007040977478,
-0.6465591788291931,
-0.9406489133834839,
0.431894987821579,
0.05156582593917847,
0.9673923850059509,
-... |
def test _ compare _ pybba _ to _ matbba ( get _ matlab _ data, get _ python _ data, set _ tolerance ) : mat = get _ matlab _ data py = get _ python _ data tol = set _ tolerance bb _ py = py. loc [ :, 481 ] bb _ mat = mat. loc [ :, 481 ] error = np. array ( abs ( bb _ mat - bb _ py ) ) assert len ( error [ error > tol ... | [
0.24354714155197144,
-0.5390315651893616,
0.44194912910461426,
-0.1941453069448471,
1.1626068353652954,
1.1681996583938599,
0.1942741721868515,
-0.5739052891731262,
0.2240084558725357,
0.06910882145166397,
-0.21910496056079865,
0.690092921257019,
-0.3370268642902374,
-0.5286777019500732,
... |
def coarse _ stress ( self ) - > sequence [ text ] : return [ word. pf. coarse _ stress for word in self. words ] | [
0.4314979016780853,
-0.12040314823389053,
0.3101402521133423,
-0.1525687575340271,
0.21074476838111877,
-0.20204642415046692,
0.06560835242271423,
-0.012623416259884834,
-0.23134233057498932,
0.7489269375801086,
-1.3252345323562622,
0.06170152872800827,
-1.0514075756072998,
0.1378295719623... |
def test _ check _ list _ ndarrays ( ) : # call checker function chmap, landmap, basevalues, time _ window, dim0 = mob. check _ inputs ( ch _ arr _ list, basevalues _ idx = [ 0 ], window _ idx = 1, landmap = land _ arr _ list ) # assert types assert dim0 = ='time'assert isinstance ( chmap, xr. dataarray ) is true asser... | [
-0.23352520167827606,
-0.4004131257534027,
0.5412259101867676,
0.5106279850006104,
0.23168648779392242,
0.7687849998474121,
-0.40549036860466003,
-0.5762437582015991,
0.6708470582962036,
0.1047561839222908,
-0.5255388617515564,
0.19587121903896332,
-0.39307156205177307,
1.6997816562652588,... |
def set _ shared _ memory ( self, region _ name : str, byte _ size : int, offset : int =... ) - > none : | [
0.23863618075847626,
-0.6222759485244751,
0.3756154477596283,
-0.7189090847969055,
-0.1926918923854828,
0.21816834807395935,
0.27668946981430054,
0.8847784996032715,
0.5528722405433655,
-0.4209282398223877,
-1.147295355796814,
0.8304137587547302,
-0.2535405158996582,
0.039996106177568436,
... |
def clear ( self ) : self. workspaces = { } | [
0.016984062269330025,
-0.0007361429161392152,
0.10767143219709396,
-0.5912510752677917,
-0.6854073405265808,
1.0606576204299927,
0.14875221252441406,
-1.0056207180023193,
0.4445115625858307,
-0.4246372580528259,
-0.42672163248062134,
0.8831683397293091,
0.13475064933300018,
0.6148024797439... |
def ceil _ to _ mulitple ( x, base : int = 4 ) : return ( np. int ( base ) * np. ceil ( np. array ( x ). astype ( np. float ) / base ) ). astype ( np. int ) | [
-0.6375362873077393,
0.3137655556201935,
0.7212250828742981,
0.2851421535015106,
0.13008332252502441,
-0.32017356157302856,
-0.6180377006530762,
-0.863053560256958,
-0.15569822490215302,
1.0824079513549805,
-0.8904407024383545,
-1.4957146644592285,
-0.18298159539699554,
0.08265561610460281... |
def is _ connected ( self, source, dest ) : visited = set ( ) return self. is _ connected _ helper ( source, dest, visited ) | [
-1.4110493659973145,
0.4003862142562866,
0.3816364109516144,
0.7914602756500244,
-0.3675379753112793,
-0.22392451763153076,
-0.7775659561157227,
-0.37963786721229553,
-0.4618566334247589,
0.717867374420166,
-0.7030799984931946,
-0.2314862161874771,
0.25809869170188904,
-0.01155102625489235... |
def iter _ cu _ range _ lists _ ex ( self, cu ) : return self. _ rnglists. iter _ cu _ range _ lists _ ex ( cu ) | [
-1.3261781930923462,
-0.1795957237482071,
0.12163414806127548,
0.9977923035621643,
-0.6012269854545593,
0.9644215106964111,
0.0899679884314537,
0.27352434396743774,
0.9252317547798157,
0.13556785881519318,
-0.16362257301807404,
0.11227116733789444,
-0.7554052472114563,
0.7161661386489868,
... |
def get _ filterfile ( self, filtername, fullpath = true ) : source = ( self. get _ filt _ path ( from _ work = false ) + " / " ) if fullpath else " " return source + filtername. split ( ". " ) [ 0 ] + " / " + self. _ filtercongig. get ( * filtername. split ( ". " ) ) | [
-0.378672331571579,
-0.04149485006928444,
0.5020197033882141,
0.09265392273664474,
-1.0777840614318848,
-0.1614471822977066,
0.6942941546440125,
0.5458900332450867,
-0.7664625644683838,
0.4905831515789032,
0.2351817637681961,
0.5855329036712646,
-0.5429381728172302,
-0.24570347368717194,
... |
def movetiles ( self ) : out = [ none ] * 5 for i in range ( len ( self. placements ) ) : row = self. placements [ i ] if not none in row : # this row is complete! out [ i ] = row [ len ( row ) - 1 ] self. placements [ i ] [ len ( row ) - 1 ] = none return out | [
-0.5619075894355774,
0.23859401047229767,
0.5903521180152893,
-0.32730430364608765,
-0.29965880513191223,
-1.0168077945709229,
1.2405225038528442,
-0.25165051221847534,
0.23565050959587097,
1.2171237468719482,
-0.6916980743408203,
-0.7701542973518372,
-1.064003825187683,
0.5498763918876648... |
def click _ path ( self, * path, * * kwargs ) : node = self. expand _ path ( * path, * * kwargs ) self. logger. info ( " clicking node % r ", path [ - 1 ] ) self. browser. click ( node ) return node | [
-0.2368791103363037,
0.4108469486236572,
0.6215700507164001,
0.5026856064796448,
-0.24342353641986847,
-0.20322459936141968,
0.2373826503753662,
-0.22978448867797852,
0.5226704478263855,
-0.36095136404037476,
0.4820224344730377,
0.020074065774679184,
-1.1318659782409668,
-0.803622663021087... |
def testupdatevaluesforquerieswithreadpermissiondenied ( self ) : userapi ( ). create ( [ ( u'fred ', u'password ', u'fred ', u'fred @ example. com') ] ) user = getuser ( u'username') permissions = cachingpermissionapi ( user ) tagapi ( user ). create ( [ ( u'fred / bar ', u'description'), ( u'fred / unreadable ', u'de... | [
-0.06218352168798447,
0.6926504969596863,
0.515816867351532,
-0.15146967768669128,
-0.051174990832805634,
0.6125507950782776,
-0.10098368674516678,
-0.5899260640144348,
-0.8098206520080566,
-0.44126975536346436,
-0.08562026917934418,
-0.543164849281311,
-0.3298054039478302,
0.3583232760429... |
def draw ( self, format = none, pagesize = none, orientation = none, x = none, y = none, xl = none, xr = none, yt = none, yb = none, start = none, end = none, tracklines = none, fragments = none, fragment _ size = none, track _ size = none, circular = none ) : # pass the parameters to the drawer objects that will build... | [
-0.5597793459892273,
0.014237935654819012,
0.8370354771614075,
-0.5510572195053101,
0.16502155363559723,
0.2055792361497879,
0.12902556359767914,
-0.26121893525123596,
0.027331121265888214,
-1.2592904567718506,
0.14484606683254242,
0.07264372706413269,
0.23601660132408142,
-0.2032139748334... |
def has _ interesting _ category ( row : list ) - > tuple [ bool, str ] : category = row [ name _ col _ idx ]. lower ( ) unwanted = [ " chaise ", " bench ", " daybed ", " day bed ", " sectional " ] for token in unwanted : if token in category : return false, token wanted = [ " sofa ", " loveseat ", " love seat ", " cou... | [
-0.6222199201583862,
0.4213150441646576,
0.6207099556922913,
-0.6316946744918823,
-0.5840052962303162,
-0.23211006820201874,
-0.7990153431892395,
-0.5588221549987793,
-0.6998999714851379,
0.11694762110710144,
-0.6877479553222656,
0.13313142955303192,
0.8002707958221436,
0.39676323533058167... |
def deserialize ( self, data ) : data = data. strip ('\ n') if data = ='{ }': return none ; nodes = data [ 1 : - 1 ]. split ( ',') root = treenode ( int ( nodes [ 0 ] ) ) queue = [ root ] isleftnode = true index = 0 for n in nodes [ 1 : ] : if n! ='#': node = treenode ( int ( n ) ) if isleftnode : queue [ index ]. left... | [
0.5643871426582336,
-0.046206191182136536,
0.8221845030784607,
-0.6690528988838196,
-0.6722506880760193,
-0.424343079328537,
-0.6565297842025757,
-0.02253539487719536,
0.4752369225025177,
0.1132802665233612,
-0.5367298722267151,
0.253120481967926,
-1.3749451637268066,
0.002286074683070183,... |
def run _ by _ id ( self, tid ) : targs = self. _ task _ id _ map [ tid ] func = self. _ task _ execs [ targs ] if func = = self. iter _ basetf : return list ( func ( targs ) ) [ 0 ] return func ( * targs ) | [
-0.36621806025505066,
-0.5652523040771484,
0.3409442603588104,
0.24904745817184448,
0.2745921015739441,
-0.7738088369369507,
0.40523770451545715,
-0.9001799821853638,
-0.6584185361862183,
0.13227088749408722,
0.06844141334295273,
0.5673903822898865,
0.21042703092098236,
0.13422122597694397... |
def getcogssourceinformationbyparameters ( self, url _ parameters : str ) : self. function + = '?'+ url _ parameters result _ get = getrest ( function = self. function ). performrequest ( ) return result _ get | [
-0.8695158958435059,
0.2723839581012726,
0.3684358298778534,
-0.2605280578136444,
0.8380398750305176,
-1.0255424976348877,
0.22129705548286438,
-0.39863529801368713,
-0.8357983231544495,
0.6797229647636414,
-0.5596556067466736,
-0.17745263874530792,
-0.8872931599617004,
0.28916752338409424... |
def _ getfieldvalues ( self, output _ mediator, event, event _ data, event _ data _ stream, event _ tag ) : field _ values = { } for field _ name in self. _ field _ names : if field _ name = ='datetime': field _ values ['datetime'] = self. _ formatdatetime ( output _ mediator, event, event _ data ) continue field _ val... | [
0.155646413564682,
-0.559557318687439,
0.35174065828323364,
-0.47229889035224915,
-0.5664201974868774,
-1.171922206878662,
-0.7800980806350708,
-0.25389963388442993,
-0.8707312941551208,
-0.3026546835899353,
-0.4892595708370209,
0.3124018609523773,
0.6603742837905884,
1.0216938257217407,
... |
def create _ diff _ point _ cloud ( pc1, pc2 ) : _, indices = np. unique ( np. concatenate ( [ pc2, pc1 ] ), return _ index = true, axis = 0 ) indices = indices [ indices > = pc2. shape [ 0 ] ] - pc2. shape [ 0 ] return pc1 [ indices ] | [
-0.12253978848457336,
-0.5062072277069092,
0.5619337558746338,
0.08451733738183975,
-0.1198393777012825,
0.7310641407966614,
-0.22665151953697205,
-0.819023609161377,
-0.3981718420982361,
0.7025184035301208,
0.7062183618545532,
0.7485241889953613,
-0.6384148001670837,
-1.2043426036834717,
... |
async def guess ( ctx, number : int ) : # explained in a previous example, this gives you # a random number from 1 - 6 value = random. randint ( 1, 6 ) # with your new helper function, you can add a # green check mark if the guess was correct, # or a red cross mark if it wasnt await ctx. tick ( number = = value ) | [
0.11886095255613327,
0.7917916774749756,
0.4415667653083801,
1.1670149564743042,
0.5885416269302368,
0.5448866486549377,
0.3617517352104187,
-0.1882728785276413,
0.13898982107639313,
-0.5351071357727051,
-0.3902539908885956,
0.7283201813697815,
0.3585853576660156,
-0.27284038066864014,
-... |
def isvalidurl ( urlstring ) : urldict = urlparse ( urlstring ) if urldict. netloc = ='' or urldict. path = ='' : return false return true | [
-0.40185093879699707,
-0.35806551575660706,
0.17165924608707428,
0.014127101749181747,
0.09493059664964676,
1.0588468313217163,
-0.09356382489204407,
0.9341682195663452,
0.03126484155654907,
-0.8343188762664795,
-0.2596713602542877,
-0.8242607712745667,
-0.2966146767139435,
0.3777997791767... |
def store _ instance ( self, name : str, metadata : dict, for _ update : bool = false ) - > dict : metadata _ resource _ name = f " { name }. json " resource = os. path. join ( self. preferred _ metadata _ dir, metadata _ resource _ name ) # if the preferred metadata directory is not present, create it and note it. if ... | [
-0.7476006746292114,
-0.10067158192396164,
0.7116790413856506,
-0.5349016189575195,
-0.27948078513145447,
0.22676973044872284,
-0.587901771068573,
-0.12733425199985504,
-0.11372385919094086,
0.9514229893684387,
0.23039378225803375,
-0.45866459608078003,
-0.30742156505584717,
-0.30301073193... |
def _ add _ combine _ info ( output, combine _ map, file _ key ) : out = [ ] for data in output : cur _ file = data [ file _ key ] if not " combine " in data : data [ " combine " ] = { } data [ " combine " ] [ file _ key ] = { " out " : combine _ map [ cur _ file ], " extras " : [ ] } out. append ( [ data ] ) return ou... | [
-0.884696900844574,
-1.227658748626709,
0.45092278718948364,
-0.3148835301399231,
0.1960999071598053,
-0.3590209484100342,
-0.005503456108272076,
0.7481991648674011,
-0.7351241707801819,
0.573936939239502,
-0.1006021574139595,
-0.6559638381004333,
0.32019010186195374,
1.0644184350967407,
... |
def test _ xformpillowtransform ( self ) : bad _ appversion = { " _ id " : " foo ", " domain " :'testxformpillow - domain ','received _ on': " 2013 - 09 - 20t01 : 33 : 12z ", " form " : { " meta " : { " @ xmlns " : " http : / / openrosa. org / jr / xforms ", " username " : " someuser ", " instanceid " : " foo ", " user... | [
0.07996659725904465,
-0.7283263206481934,
0.7279243469238281,
-0.6102845072746277,
-0.5002721548080444,
-0.06347092241048813,
-0.6702247262001038,
-0.12271711230278015,
0.07757863402366638,
0.04905623570084572,
-1.0055526494979858,
0.19876207411289215,
0.34654736518859863,
-0.1178146526217... |
def getoldestimage16 ( shape ) : andor _ solis. getoldestimage. restype = ctypes. c _ uint size = np. prod ( shape ) arr = ( ctypes. c _ int16 * size ) ( ) result = andor _ solis. getoldestimage16 ( ctypes. pointer ( arr ), ctypes. c _ ulong ( size ) ) check _ status ( result ) return np. ctypeslib. as _ array ( arr ) | [
0.061557140201330185,
0.003245099214836955,
0.6540870070457458,
-0.5450527667999268,
-0.18463490903377533,
-0.36108848452568054,
0.034739188849925995,
-0.8088864684104919,
0.6864117980003357,
0.20738033950328827,
0.07391836494207382,
0.3954910933971405,
0.0395544171333313,
0.46668127179145... |
def cached _ file ( file : str ) - > pd. dataframe : df = pd. read _ hdf ( file, " protein _ table " ) return df | [
0.10256070643663406,
0.23821815848350525,
0.17353937029838562,
0.7525678873062134,
-0.1391059160232544,
0.2425297051668167,
-0.1946266144514084,
0.4493425786495209,
-1.1496224403381348,
-0.3485003113746643,
0.848904550075531,
0.69515061378479,
0.2935563027858734,
-0.7012718915939331,
0.1... |
def complex _ matmul ( x, num _ proj, scope, reuse, bias = false, bias _ init _ r = 0. 0, bias _ init _ c = 0. 0, unitary = false, orthogonal = false, unitary _ init = arjovski _ init ) : in _ shape = tf. tensor. get _ shape ( x ). as _ list ( ) # debug _ here ( ) with tf. variable _ scope ( scope, reuse = reuse ) : if... | [
0.0637444481253624,
-0.5077796578407288,
0.6910490393638611,
0.1974966675043106,
-0.42060235142707825,
0.20670777559280396,
0.9073459506034851,
0.06608156114816666,
0.30005398392677307,
0.7135539650917053,
-0.1675863116979599,
0.2408590316772461,
-0.24915461242198944,
-0.7349647879600525,
... |
def train _ test _ validation _ split ( dataframe : pd. dataframe, train _ ratio = 0. 8, validation _ ratio = 0. 1, seed = 100 ) : assert train _ ratio + validation _ ratio < 1. 0 data = dataframe. copy ( ) np. random. seed ( seed ) # basic info gathering to aid partitioning labels = data. label. unique ( ) min _ item ... | [
-0.21340812742710114,
0.3039436936378479,
0.7182007431983948,
-0.36561447381973267,
0.08754374086856842,
0.41919347643852234,
0.02062384784221649,
-0.07184645533561707,
-0.04792638123035431,
-0.1686844378709793,
0.8639988303184509,
-0.4519478976726532,
-0.33879828453063965,
-0.843859851360... |
def get _ device ( ip ) : devices = broadlink. discover ( timeout = 5 ) if ip : # if we have an ip set return the required device try : device = next ( device for device in devices if device. host [ 0 ] = = str ( ip ) ) except stopiteration : raise runtimeerror ('broadlink actor at { } not found '. format ( ip ) ) else... | [
-0.413935124874115,
0.30342984199523926,
0.42364731431007385,
0.8965258598327637,
0.35515642166137695,
-1.0611177682876587,
0.8433718681335449,
-0.36773091554641724,
0.6246504187583923,
-0.12825694680213928,
0.8963278532028198,
0.7878126502037048,
-0.6959680914878845,
0.21112008392810822,
... |
def relaxedge ( self, token, neighbor, edge, destination, predecessors ) : # if the distance between the node and the neighbour is lower than the one i have now if ( destination [ neighbor ] > destination [ token ] + edge + tolerance ) & \ ( destination [ neighbor ] > destination [ token ] + edge - tolerance ) : # reco... | [
0.40116074681282043,
0.6574659943580627,
0.5833166241645813,
-1.2193623781204224,
-0.24986915290355682,
-0.5132350325584412,
-0.9748018980026245,
0.820127546787262,
-0.42629748582839966,
0.3934503197669983,
0.07645374536514282,
0.3632761836051941,
-1.3953332901000977,
-0.6078892946243286,
... |
def gettimep ( self, time _ mesh, f ) : if self. projfield in f. aliasfields : return super ( pointmagneticfluxtimederivative, self ). gettimep ( time _ mesh, f ) return ( time _ mesh. get _ interpolation _ matrix ( self. times, " cc " ) * time _ mesh. face _ divergence ) | [
0.6309292316436768,
0.8895499110221863,
0.5376116633415222,
0.5059797167778015,
0.2484091967344284,
0.6604182720184326,
-0.12444141507148743,
0.18137337267398834,
-0.5731237530708313,
1.0128129720687866,
0.31109774112701416,
-1.2485015392303467,
-0.18137380480766296,
0.5351886749267578,
... |
def show ( self, block = false ) : # create temporary subdisplays subtmp = self. _ show _ displays ( ) # add main layout self. app. window. setlayout ( self, resize = true ) proc = self. app. exec _ ( wait = block ) # add spawned processes to app to be cleaned at exit for tmp in subtmp : self. app. processes. append ( ... | [
1.1716597080230713,
0.18922369182109833,
0.678486168384552,
0.36328718066215515,
-0.9104276299476624,
0.31270572543144226,
0.9543057680130005,
-0.37037423253059387,
0.4631662368774414,
-0.2988857328891754,
0.3989616632461548,
0.5580300092697144,
-0.41953569650650024,
0.4271340072154999,
... |
def get _ sentences ( content ) : sentences = len ( nltk. tokenize. sent _ tokenize ( content ) ) return sentences | [
-0.0634591281414032,
-0.3132680058479309,
0.44167560338974,
-0.7404354810714722,
0.22533577680587769,
-1.4525425434112549,
-0.5184155106544495,
-0.31515300273895264,
-0.8193263411521912,
0.5838610529899597,
-1.5017789602279663,
-1.1736375093460083,
-0.7327345609664917,
0.7076375484466553,
... |
def get _ location _ name ( iata _ code ) : url ='https : / / api. sandbox. amadeus. com / v1. 2 / location /'+ iata _ code params = dict ( apikey = amadeus _ api _ key ) resp = requests. get ( url = url, params = params ) data = json. loads ( resp. text ) ['airports'] [ 0 ] # retrive the airport's city name, state and... | [
-0.5126222372055054,
-0.07889360189437866,
0.8820277452468872,
-0.7038194537162781,
0.14189735054969788,
0.10996439307928085,
-0.12704701721668243,
0.46832266449928284,
0.384711354970932,
0.762910008430481,
-0.19854499399662018,
-0.1334315687417984,
0.06678008288145065,
-0.0818741396069526... |
def acl6totpktsbridged ( self ) : try : return self. _ acl6totpktsbridged except exception as e : raise e | [
1.182587742805481,
0.15343764424324036,
0.27586519718170166,
0.0590832494199276,
0.1639450490474701,
-0.5486040115356445,
0.8911281228065491,
-0.7154460549354553,
0.48181650042533875,
0.5017640590667725,
-0.4165976047515869,
-0.5361401438713074,
-0.19613786041736603,
-0.865370512008667,
... |
def predict _ level1 ( image, nrows, ncols, cnn1 ) : # creates the images to save the class activation maps. sr _ image = amfsrgan. initialize ( nrows, ncols ) # initialize the progress bar. amflog. progress _ bar ( 0, nrows, indent = 1 ) # retrieve predictions for all rows within the image. bs = amfconfig. get ('batch... | [
-0.49837833642959595,
-0.10010993480682373,
0.503261148929596,
0.32915177941322327,
-0.3332597613334656,
-0.2558589577674866,
0.5744314193725586,
0.2271398901939392,
-0.9872427582740784,
0.694871187210083,
0.5761722922325134,
0.22130322456359863,
0.5879794359207153,
1.1283262968063354,
0... |
def save _ numbers ( self, message ) : batch _ number = message. timestamp. coordinates [ 0 ] self. windows [ batch _ number ]. append ( message. data ) | [
-0.3376653790473938,
0.07066333293914795,
0.4568261206150055,
-0.09492145478725433,
0.5040052533149719,
0.4001534879207611,
0.3293440341949463,
-0.26348403096199036,
-0.3277360498905182,
-0.22833748161792755,
-1.5458242893218994,
0.32806825637817383,
-0.6840950846672058,
1.474692702293396,... |
def test _ apply _ return _ null ( ) : def func ( row ) : x = row [ " a " ] if x is na : return na else : return x gdf = cudf. dataframe ( { " a " : [ 1, none, 3 ] } ) run _ masked _ udf _ test ( func, gdf, check _ dtype = false ) | [
-0.2363729178905487,
0.6055928468704224,
0.35772085189819336,
0.5256212949752808,
0.22050513327121735,
-0.6850671768188477,
0.47674858570098877,
0.27996617555618286,
1.14985191822052,
-0.6068515181541443,
0.18831418454647064,
-0.01806938275694847,
0.0055162119679152966,
-0.2684449851512909... |
def test _ node _ annotation _ k _ add _ a _ delete _ k _ add ( ) : annotation _ key = random _ name ( ) annotation _ value = random _ name ( ) # get node details client, node = \ get _ node _ details ( cluster _ detail [ " cluster " ], cluster _ detail [ " client " ] ) node _ name = node. nodename command = " annotate... | [
0.5234298706054688,
0.03099609725177288,
0.6088881492614746,
-0.008347042836248875,
0.1865435242652893,
0.28741052746772766,
-0.1197659894824028,
0.19550949335098267,
0.2714138329029083,
0.31535935401916504,
-0.14188653230667114,
0.7859463095664978,
-0.10658829659223557,
0.2691774666309356... |
def annotategenestructure ( infile, outfile ) : pipelinegeneset. annotategenestructure ( infile, outfile, only _ proteincoding = true ) | [
0.37244004011154175,
-0.39398565888404846,
0.36213693022727966,
0.23309557139873505,
-0.2811674475669861,
0.580517590045929,
0.5373039245605469,
0.8475931286811829,
-0.7969326376914978,
-0.5881149768829346,
0.030571235343813896,
0.9190708994865417,
0.21179458498954773,
-0.17044802010059357... |
def _ translate _ _ interfaces _ interface ( input _ yang _ obj, translated _ yang _ obj = none ) : if input _ yang _ obj. description. _ changed ( ) : input _ yang _ obj. description = input _ yang _ obj. description if input _ yang _ obj. type. _ changed ( ) : input _ yang _ obj. type = input _ yang _ obj. type if in... | [
-0.735345721244812,
-0.013698924332857132,
0.7900927066802979,
-0.9429754018783569,
-0.8582882285118103,
0.005848927889019251,
0.8835994601249695,
-0.5838457942008972,
0.5520983338356018,
-0.12171506881713867,
-0.5992989540100098,
0.14058533310890198,
-0.6340184807777405,
0.026678081601858... |
def add ( self, member : int, x _ mag _ a : float = 0, y _ mag _ a : float = 0, z _ mag _ a : float = 0, x _ mag _ b : float = 0, y _ mag _ b : float = 0, z _ mag _ b : float = 0, position _ a : float = 0, position _ b : float = 0, load _ group : str = none, axes : str ='global') - > int : next _ index = next _ object ... | [
-0.5997228622436523,
0.181196928024292,
0.6697357296943665,
-0.7644332051277161,
-0.6625800728797913,
0.27863481640815735,
0.3080921471118927,
-0.8583542108535767,
-0.17483767867088318,
0.020195987075567245,
-0.5432181358337402,
0.874744176864624,
-0.6276145577430725,
-0.15405087172985077,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.