text stringlengths 25 2.19k | embedding listlengths 768 768 |
|---|---|
def output _ ranges ( self, output _ ranges ) : self. _ output _ ranges = output _ ranges | [
-1.0842585563659668,
-0.17176729440689087,
0.012962240725755692,
1.0216678380966187,
0.22283445298671722,
0.535666823387146,
0.31588971614837646,
-0.0602620393037796,
-1.2115710973739624,
0.6555411219596863,
-0.33407503366470337,
-0.8286142945289612,
-0.5833582282066345,
0.0614927448332309... |
def tfidf _ sim ( self, t1, t2 ) : return 0 | [
-0.5996915698051453,
0.8693622350692749,
0.09128478914499283,
0.21200966835021973,
0.06867514550685883,
0.4004453420639038,
-0.10840839147567749,
-0.10476487129926682,
-0.9452099204063416,
0.90693199634552,
-0.52090984582901,
-0.11183476448059082,
-0.5484070181846619,
-0.4785308837890625,
... |
def ports ( self ) - > list [ " endpointport " ] : return self. _ _ ports | [
0.3774179518222809,
0.23966830968856812,
0.2260821908712387,
0.8850974440574646,
1.7189178466796875,
0.9996278882026672,
0.27703267335891724,
0.16174665093421936,
0.8297317028045654,
-0.02590254135429859,
-0.6330514550209045,
-0.14039693772792816,
-0.4439290761947632,
-0.2617838978767395,
... |
def test _ list _ decimal _ white _ space _ nistxml _ sv _ iv _ list _ decimal _ white _ space _ 1 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - whitespace - 1. xsd ", instance = " nistdata / list / d... | [
-0.5339735746383667,
0.273145854473114,
0.5382403135299683,
0.3188921809196472,
0.20119096338748932,
0.18389777839183807,
-0.186269611120224,
0.01914026215672493,
1.5537855625152588,
0.08499480783939362,
-0.45489218831062317,
-0.2960953712463379,
-0.135576069355011,
1.1934154033660889,
-... |
def color _ format ( verbose = false ) : if verbose : color _ format = color _ message ( verbose _ color _ format ) else : color _ format = color _ message ( base _ color _ format ) return coloredformatter ( color _ format ) | [
0.8584975600242615,
-0.4253702461719513,
0.3615773320198059,
-0.19488418102264404,
0.2631295323371887,
-0.5846613049507141,
-1.093027949333191,
-0.6330345273017883,
-0.40236935019493103,
-0.36716100573539734,
1.2166889905929565,
1.4941647052764893,
-0.430925190448761,
1.0216302871704102,
... |
def guess _ private _ info ( text, * * kwargs ) : # if phone _ regex not provided, use a default phone _ regex = none if " phone _ regex " in kwargs. keys ( ) : phone _ regex = kwargs [ " phone _ regex " ] entities = [ ] for entity _ type in machine. _ extract _ entity _ groups ( text ) : for item in entity _ type : en... | [
-0.8345119953155518,
-0.0049417088739573956,
0.5149716734886169,
0.08992794156074524,
0.12883387506008148,
-0.1957787275314331,
-0.16959327459335327,
-0.16532005369663239,
-0.2511759400367737,
-0.6730427145957947,
-0.5898982286453247,
-0.3974810540676117,
-0.8156265616416931,
0.44950938224... |
def close ( self ) : self. connection. commit ( ) self. connection. close ( ) | [
-0.025923389941453934,
-0.5011616945266724,
0.8657628893852234,
-0.5467813014984131,
0.4222073554992676,
0.7232494950294495,
0.05091423913836479,
1.0835695266723633,
-1.3346155881881714,
0.09372711926698685,
0.749087929725647,
-0.2742590606212616,
-0.8770024180412292,
0.6933092474937439,
... |
def train _ step ( self, batchdata ) : pass | [
-0.7132721543312073,
-0.3103964924812317,
0.24228408932685852,
0.7486729025840759,
0.26968955993652344,
0.687271773815155,
-0.2829284369945526,
0.5334471464157104,
-1.4838553667068481,
-0.9637404084205627,
-1.1973291635513306,
0.07724608480930328,
0.3877088725566864,
0.5841800570487976,
... |
def transform ( x, a, b ) : return ( ( b - a ) * x + ( b + a ) ) / 2 | [
0.43343955278396606,
-0.08437168598175049,
0.40758922696113586,
0.2536444067955017,
0.44432851672172546,
-0.334515780210495,
-0.4884066879749298,
-0.057479795068502426,
0.3350602090358734,
-0.05408187583088875,
-0.5552344918251038,
0.569450318813324,
-0.2658565044403076,
-1.297484159469604... |
def _ shiftalienleft ( self ) : self. _ steps = self. _ steps + 1 self. _ alienfire ( ) for i in self. _ aliens : if i is not none : for j in i : if j is not none : j. x = j. x - alien _ h _ walk | [
0.045463692396879196,
-0.06863129138946533,
0.40272748470306396,
0.3948463201522827,
0.7591248750686646,
0.7434943914413452,
-0.2680946886539459,
-0.21179424226284027,
0.05724502354860306,
-0.019039854407310486,
-0.21830536425113678,
-0.8427681922912598,
-0.20918525755405426,
1.45189774036... |
def setup ( self ) : self. si = systeminfo ( self. host, self. username, self. password, self. key _ filename, * self. args, * * self. kwargs ) self. logger. debug ( f'made instance of si with args : { self. args } and kwargs : { self. kwargs }') | [
0.4734484851360321,
-0.5930208563804626,
0.334859162569046,
-0.248679980635643,
0.45688796043395996,
0.6563676595687866,
0.05175541341304779,
0.1315053254365921,
-1.0454243421554565,
-0.7325693964958191,
-0.47346144914627075,
0.13576465845108032,
-0.5074448585510254,
0.19921401143074036,
... |
async def get _ all _ tasks _ log _ files ( user _ id : userid, project _ id : projectid, comp _ pipelines _ repo : comppipelinesrepository = depends ( get _ repository ( comppipelinesrepository ) ), comp _ tasks _ repo : comptasksrepository = depends ( get _ repository ( comptasksrepository ) ), ) - > list [ tasklogfi... | [
0.7539979815483093,
0.48876428604125977,
0.572709321975708,
0.4203296899795532,
0.1844937801361084,
0.6351454257965088,
0.05358082801103592,
-0.06856610625982285,
-1.2006118297576904,
0.2628823220729828,
0.06799183040857315,
1.0747857093811035,
0.8323740363121033,
0.05025162175297737,
-0... |
def get _ link _ angular _ analytical _ jacobian _ function ( self, link : str, base _ link : str, n : int = 1, numpy _ output : bool = false, ) - > cs. function : return self. make _ function ( " ja ", link, self. get _ link _ angular _ analytical _ jacobian, n = n, base _ link = base _ link, numpy _ output = numpy _ ... | [
-0.2049112617969513,
-0.43421414494514465,
0.26256969571113586,
0.2979944348335266,
0.18649591505527496,
-1.1063261032104492,
0.4717492461204529,
-0.947548508644104,
-0.2287047654390335,
-0.5882757902145386,
0.1775721162557602,
1.0118920803070068,
0.7768011689186096,
-0.8042174577713013,
... |
def getcommandclass ( command ) : return bindings _ [ command ]. commandclass | [
-0.2031635344028473,
-0.5918003916740417,
0.49422749876976013,
0.5711408853530884,
0.0640774592757225,
0.20473966002464294,
-0.18091833591461182,
-0.33029264211654663,
0.9191278219223022,
-1.0826127529144287,
0.8828542828559875,
0.9983549118041992,
0.15302182734012604,
1.3062494993209839,
... |
def get _ new _ lb _ networking _ subflow ( self, topology ) : new _ lb _ net _ subflow = linear _ flow. flow ( constants. loadbalancer _ networking _ subflow ) new _ lb _ net _ subflow. add ( a10 _ network _ tasks. plugvip ( requires = constants. loadbalancer, provides = constants. amps _ data ) ) new _ lb _ net _ sub... | [
1.138007640838623,
-0.7512993216514587,
0.5637544989585876,
0.49370813369750977,
0.6523926258087158,
0.5332506895065308,
0.35307782888412476,
-0.0922606885433197,
1.0286163091659546,
-0.3557846248149872,
-1.159349799156189,
-0.3531889319419861,
0.15934070944786072,
0.6250596046447754,
0.... |
def get _ avatar ( self ) : icon = self. _ soup _ profile. find ( " p ", { " class " : " icon " } ) src = icon. img. attrs [ " src " ] name = src. split ( " / " ) [ - 1 ]. split ( "? " ) [ 0 ] img = self. get ( src ). content return name, img | [
-1.2601450681686401,
-0.32619547843933105,
0.9450016617774963,
-0.2492346167564392,
-1.1451560258865356,
-0.2775211036205292,
0.40856340527534485,
-0.27113237977027893,
0.21462371945381165,
1.02783203125,
-0.8148241639137268,
-0.17650556564331055,
0.696010947227478,
0.007036030292510986,
... |
def scrape _ image ( self, url, movie _ name ) : movie _ name = movie _ name. lower ( ) response = request. urlopen ( url ) soup = beautifulsoup ( response,'html. parser') if os. path. exists ( self. image _ directory + " \ \ " + movie _ name + '. png') = = false : image _ place = soup. find ('div ', {'class':'movie - ... | [
-1.4601351022720337,
0.12667317688465118,
0.7469556331634521,
0.5331807136535645,
0.015169077552855015,
-0.3163723349571228,
-0.034618739038705826,
0.7052850723266602,
0.2972116768360138,
0.9132735729217529,
0.16450414061546326,
0.5179401636123657,
0.31964901089668274,
1.063950538635254,
... |
def list ( self, prefix = none, regex = none, metadata _ all = none, metadata _ any = none, return _ metadata = false ) : def fix _ set ( result ) : # for python 2 compatibility we cannot send sets to the default ( serpent ) serializer. # that's why we will convert them to lists here. if return _ metadata : fixed = { }... | [
-0.6274017095565796,
0.02419433183968067,
0.861638069152832,
0.29544833302497864,
-0.13036830723285675,
-1.2612805366516113,
-0.883159339427948,
0.2043127566576004,
-0.2568359076976776,
0.3844122290611267,
-0.3429408669471741,
0.8125909566879272,
-0.3312322497367859,
0.09470261633396149,
... |
def plot _ rupture _ map ( self, mag, bounds = true, strike = none, dip = none, rake = none, timespan = none ) : from mpl _ toolkits. basemap import basemap # # generate ruptures, and filter according to magnitude bin, strike and rake ruptures = self. get _ ruptures _ poisson ( timespan = timespan ) ruptures = [ rup fo... | [
-0.6258800029754639,
-0.23282760381698608,
0.6417261362075806,
-1.31373929977417,
-0.1665971279144287,
0.5057624578475952,
0.30631133913993835,
0.5001421570777893,
0.6669576168060303,
-0.5032125115394592,
-0.0271324273198843,
0.1625804603099823,
0.38086259365081787,
0.27341341972351074,
... |
def calculate _ average ( self, new _ value : float ) - > float : deque _ len = len ( self. _ value _ deque ) if deque _ len < self. _ value _ deque. maxlen : pass else : # the left most value to be subtracted from the moving sum. self. _ neumaier _ sum ( - self. _ value _ deque [ 0 ] ) self. _ neumaier _ sum ( new _ v... | [
-0.3935467302799225,
0.5173804759979248,
0.5680392980575562,
-0.1470745950937271,
-0.6626119613647461,
-0.22275924682617188,
0.4488515853881836,
-0.1022326648235321,
-0.1496494561433792,
0.4947967529296875,
-0.17852570116519928,
0.6894386410713196,
-0.21982301771640778,
1.5381615161895752,... |
def get _ by _ jid ( value ) : for item in bookmarks : if item. jid = = value : return item | [
0.9848469495773315,
-0.5665524005889893,
0.22063495218753815,
0.22186405956745148,
-0.47024208307266235,
-0.15933538973331451,
0.21506492793560028,
-0.8539672493934631,
-0.7989787459373474,
0.6344024538993835,
0.12391424179077148,
0.8233281373977661,
0.014841331169009209,
0.043290231376886... |
def rsqrt ( x, name = none ) : return gen _ math _ ops. rsqrt ( x, name ) | [
0.3051835298538208,
0.11301092058420181,
0.36175087094306946,
-0.5511799454689026,
-1.4036085605621338,
-1.158373475074768,
-1.3098078966140747,
-1.4587713479995728,
0.589448869228363,
0.2721889913082123,
-0.983292818069458,
0.09616376459598541,
-0.23662255704402924,
-0.4793759882450104,
... |
def test _ list _ integer _ length _ 2 _ nistxml _ sv _ iv _ list _ integer _ length _ 3 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - length - 3. xsd ", instance = " nistdata / list / integer / schem... | [
-0.19864585995674133,
0.012051134370267391,
0.42874425649642944,
0.17904093861579895,
-0.23131096363067627,
0.2913799285888672,
-0.3181167542934418,
0.4220496416091919,
0.8803853392601013,
1.2451658248901367,
-1.2890326976776123,
-0.14118105173110962,
-0.2070038765668869,
0.537078380584716... |
def _ _ init _ _ ( self, y, z, config, name = name, long _ name = _ _ doc _ _ ) : super ( selectorgmlbayes, self ). _ _ init _ _ ( y, z, config, name = name, long _ name = long _ name ) # add modules self. py _ wrapper = wrapper. selector _ glm _ bayes ( ) self. pp _ modules + = ('binary. selector _ glm _ bayes ', ) # ... | [
0.2808336019515991,
-0.2851853668689728,
0.5827476382255554,
0.5758965611457825,
-0.42475342750549316,
-0.009844127111136913,
0.9210466742515564,
-0.2880115807056427,
0.7820491790771484,
0.1285048872232437,
-0.48909780383110046,
0.39706656336784363,
-0.4590200185775757,
1.208940029144287,
... |
def submit _ metric ( self, name, value, mtype, tags = none, hostname = none, device _ name = none, timestamp = none, sample _ rate = 1 ) : raise notimplementederror ( ) | [
-0.6270362138748169,
0.5091771483421326,
0.5139099359512329,
1.1005686521530151,
-0.5731542706489563,
0.5441189408302307,
-0.24467618763446808,
-0.7530795335769653,
-0.7436373829841614,
0.5247874855995178,
-0.284363329410553,
0.3868299722671509,
-0.42432478070259094,
0.6625522971153259,
... |
def get _ flow ( * * kwargs ) : task _ id = kwargs. get ('task _ id') task _ type = kwargs. get ('task _ type') image _ repo = kwargs. get ('image _ repo') return lf. flow ( task _ type ). add ( _ convert ( task _ id, task _ type, image _ repo ), ) | [
0.20815213024616241,
0.382822185754776,
0.2887076437473297,
0.18657444417476654,
0.8015919923782349,
-0.0576886311173439,
-0.467996746301651,
-0.19380003213882446,
-0.2515982389450073,
-0.22626303136348724,
-0.17012082040309906,
0.6417053937911987,
0.5239054560661316,
0.4595111310482025,
... |
def reset ( self ) : assert ( self. _ ysize % 2 ) = = ( self. _ xsize % 2 ) = = 0 self. sources = [ ] self. samples = [ ] self. filters = { } self. envmat = numpy. zeros ( ( self. _ ysize, self. _ xsize ), dtype = float ) self. angmat = numpy. ones ( ( self. _ ysize, self. _ xsize ), dtype = float ) * 400. self. envgeo... | [
-0.08903517574071884,
0.03172846883535385,
0.4511934518814087,
-1.1793349981307983,
0.7982836365699768,
0.04523494839668274,
0.6293416619300842,
-1.1297253370285034,
-0.32533231377601624,
-0.40131935477256775,
-0.27475905418395996,
1.1481051445007324,
0.16494745016098022,
0.356266349554061... |
def getlogonstatus ( websitedata ) : location = websitedata. rfind ( " you are not logged on. " ) if websitedata. rfind ( " you are not logged on " ) > 0 : return " not logged in " else : split _ site = websitedata. split ( ) loginuser = split _ site [ 70 ]. partition ( " < / b > " ) [ 0 ] return " logged in as : " + l... | [
-0.794792652130127,
-0.5925740003585815,
0.31246212124824524,
0.1339949369430542,
-0.6035216450691223,
0.11006671190261841,
-0.06148002669215202,
0.3261382579803467,
0.7667092680931091,
0.42060935497283936,
-0.2470092922449112,
0.5163171291351318,
-0.2938126027584076,
-0.38678017258644104,... |
def is _ auto _ seat _ climate _ right ( self ) - > bool : return self. _ vehicle _ data. get ( " climate _ state ", { } ). get ( " auto _ seat _ climate _ right " ) | [
-0.3207334578037262,
-0.263323575258255,
0.5249348282814026,
0.6716961860656738,
-0.29535263776779175,
0.8702206611633301,
-0.9218472242355347,
-0.6333817839622498,
-0.6934728026390076,
0.47140762209892273,
0.002495572669431567,
0.4962864816188812,
0.18095079064369202,
0.5702295899391174,
... |
def get ( self, key ) : if key in self. attributes : return self. attributes [ key ] elif key in self. _ _ dict _ _. keys ( ) : return self. _ _ dict _ _ [ key ] else : raise keynotfound ( key, self. attributes. keys ( ) + self. _ _ dict _ _. keys ( ) ) | [
-0.48398882150650024,
-0.2367529720067978,
0.5136811137199402,
-0.3707965612411499,
-0.4281568229198456,
0.41097062826156616,
-0.5691421627998352,
-0.48771992325782776,
-0.08584199100732803,
-0.12021984905004501,
1.1898435354232788,
0.5965899229049683,
-0.1983790546655655,
0.27942946553230... |
def vxxxxx ( p, vmass, nhel, nsv ) : vc = wavefunction ( 3 ) sqh = sqrt ( 0. 5 ) nsvahl = nsv * abs ( nhel ) pt2 = p [ 1 ] * * 2 + p [ 2 ] * * 2 pp = min ( p [ 0 ], sqrt ( pt2 + p [ 3 ] * * 2 ) ) pt = min ( pp, sqrt ( pt2 ) ) vc [ 0 ] = complex ( p [ 0 ] * nsv, p [ 3 ] * nsv ) vc [ 1 ] = complex ( p [ 1 ] * nsv, p [ 2 ... | [
0.6537526845932007,
0.13125957548618317,
0.7852351665496826,
0.3041752576828003,
-0.5561931729316711,
-0.1070219874382019,
-0.20060855150222778,
0.017980389297008514,
0.35624849796295166,
0.11542623490095139,
-0.3653302490711212,
0.10422447323799133,
-0.4787991940975189,
0.202321395277977,... |
def self _ attention _ block ( x, counters, k _ size = - 1, v _ size = - 1, dropout = 0. 0, reuse = false ) : if k _ size = = - 1 : k _ size = x. get _ shape ( ) [ - 1 ]. value if v _ size = = - 1 : v _ size = x. get _ shape ( ) [ - 1 ]. value name = get _ name ('attention _ block ', counters ) with tf. variable _ scop... | [
0.5293499827384949,
0.14487455785274506,
0.8952536582946777,
0.3165038228034973,
-1.024409532546997,
0.12338519841432571,
0.413374662399292,
-0.5910276770591736,
0.3275996148586273,
0.6658429503440857,
-0.06372018903493881,
0.984503448009491,
0.291070818901062,
0.3927835524082184,
0.3839... |
def is _ fixed ( self ) : return true | [
-0.18778106570243835,
-0.06891630589962006,
0.4657643437385559,
1.5136182308197021,
0.40349990129470825,
0.5420929789543152,
0.13387751579284668,
0.7480327486991882,
-0.13475891947746277,
-0.6381646990776062,
-1.0113649368286133,
-0.0001763224572641775,
-1.1608747243881226,
0.4493952393531... |
async def test _ options _ flow _ entity _ removal ( hass : homeassistant ) - > none : config _ entry = mockconfigentry ( domain = domain, title = " nina ", data = deepcopy ( dummy _ data ) | { conf _ regions : { " 095760000000 " : " aach " } }, ) config _ entry. add _ to _ hass ( hass ) with patch ( " pynina. baseapi.... | [
0.17867997288703918,
0.11154306679964066,
0.523408830165863,
-0.35795971751213074,
1.2494370937347412,
-0.10107681900262833,
0.4793785512447357,
0.0007373867556452751,
0.23266451060771942,
0.2660282552242279,
-0.6157262325286865,
-0.07306203991174698,
0.11400239169597626,
0.730539083480835... |
def left _ click _ actor ( self, act ) : if act. selected : self. unselect _ actor ( act ) else : self. select _ actor ( act ) | [
-0.2951495051383972,
-1.4350261688232422,
0.3722926080226898,
0.15909412503242493,
0.31410008668899536,
-0.8415849804878235,
1.0754152536392212,
0.020084450021386147,
2.332141399383545,
0.6936923265457153,
0.3116246163845062,
1.381905436515808,
-0.1591883897781372,
0.829338788986206,
0.0... |
def make _ nested _ dicts ( data, keys, level = 0 ) : if not keys : return data if level > = len ( keys ) : return data if type ( data ) = = list : data = dictify ( data, keys [ level ] ) if not type ( data ) = = list : for key, value in data. items ( ) : data [ key ] = make _ nested _ dicts ( value, keys, level + 1 ) ... | [
-0.5643041133880615,
1.3495347499847412,
0.5105530023574829,
-0.1862034946680069,
-0.9543656706809998,
-0.17566563189029694,
-0.8507508635520935,
-0.02444455586373806,
-0.3525792062282562,
-0.6944311857223511,
-0.6798010468482971,
0.2784053385257721,
-0.7058225870132446,
0.5181235074996948... |
def work _ pages ( self ) : return self. _ works _ pages | [
-1.0965845584869385,
0.31986963748931885,
0.24613745510578156,
-0.19059942662715912,
0.6360262632369995,
1.104071855545044,
0.07261266559362411,
-1.069407343864441,
0.721748411655426,
-0.41805535554885864,
-0.6581078171730042,
-0.6190856695175171,
-0.33770114183425903,
-0.420585960149765,
... |
def parseapptree ( content ) : root _ tree = etree. fromstring ( content ) nsmap = root _ tree. nsmap nsmap ['default'] = nsmap [ none ] dic = {'name': parsetreenode ( root _ tree, nsmap,'name'),'options': parseforattrib ( root _ tree, nsmap,'options'),'state': parsetreenode ( root _ tree, nsmap,'state'), } link _ dic ... | [
0.13714510202407837,
-0.5898346900939941,
0.5002856254577637,
-1.0653692483901978,
-1.4401086568832397,
0.07887309044599533,
-0.3586820363998413,
-0.17988838255405426,
0.038564350455999374,
-0.33802330493927,
-0.05806699022650719,
-0.3468119204044342,
0.4272869825363159,
1.1112043857574463... |
def internal _ iter ( tree, accum ) : if tree is none : return accum if len ( tree ) > = 1 : accum [ tree. tag ] = { } for each in tree : # check whether a list is inside try : accum [ tree. tag ] [ each. tag ] = internal _ iter ( each, { } ) [ each. tag ] ['item'] except : result = internal _ iter ( each, { } ) # if d... | [
-0.6004360318183899,
-0.39124026894569397,
0.8541102409362793,
-1.161220669746399,
-0.9663095474243164,
-0.7666266560554504,
-0.5635038614273071,
-0.1512237787246704,
-0.22181978821754456,
0.6103283166885376,
0.43139898777008057,
-0.3966832160949707,
0.3449549674987793,
1.3605666160583496,... |
def compute _ aggregate ( data, interval _ length, interval _ label, timezone, agg _ func, aggregate _ observations ) : new _ index = _ make _ aggregate _ index ( data, interval _ length, interval _ label, timezone ) unique _ ids = { ao ['observation _ id'] for ao in aggregate _ observations } valid _ mask = { obs _ id... | [
-0.5642349720001221,
0.582383930683136,
0.6544919610023499,
0.40913882851600647,
0.03590327873826027,
0.1521918624639511,
0.013909520581364632,
0.45946601033210754,
-0.7241531014442444,
0.40261194109916687,
0.358211874961853,
0.4457189738750458,
0.7033806443214417,
-0.182390958070755,
-0... |
def test _ str ( category _ factory : factories. categoryfactory ) - > none : category = category _ factory. build ( name = " python " ) assert str ( category ) = = " python " | [
0.008541001938283443,
-0.15802355110645294,
-0.16628707945346832,
-0.24901004135608673,
-0.046908602118492126,
0.7718826532363892,
-0.1382809281349182,
-0.3559213876724243,
-0.0734071433544159,
-0.7271680235862732,
-0.024962224066257477,
0.545120120048523,
0.8961185216903687,
0.23292955756... |
def _ _ call _ _ ( self, dice, n ) : self. require _ dice ( dice, " cannot keep dice from { obj } " ) return rolleddice ( dice, sorted ( dice ) [ : : - 1 ] [ : n ] ) | [
-0.7919888496398926,
-0.16467536985874176,
0.47297441959381104,
0.5481800436973572,
-0.627881646156311,
-0.15641477704048157,
-0.6577788591384888,
-0.8712117075920105,
0.36879962682724,
0.05559677258133888,
0.01655959151685238,
0.7762887477874756,
-0.6050398349761963,
0.16368015110492706,
... |
def purecloud ( self ) : return self. _ purecloud | [
0.02122020348906517,
0.30205485224723816,
0.398304283618927,
0.5506393313407898,
-0.4025024473667145,
0.572109043598175,
0.6476351618766785,
-0.5443743467330933,
0.735723614692688,
-1.0033949613571167,
0.09868384897708893,
0.3170791268348694,
-0.8183501362800598,
-0.03900294378399849,
-0... |
def directory _ files _ recursively ( path : str, full _ path = true ) - > list : roots = map ( lambda x : directory _ files ( x [ 0 ] ), os. walk ( path ) ) flat _ list = reduce ( lambda crr, src : crr + src, roots ) if full _ path : return flat _ list return list ( map ( lambda x : ( os. path. relpath ( x, path ) ), ... | [
0.17622703313827515,
1.1162500381469727,
0.3829106092453003,
1.0225918292999268,
-0.21406979858875275,
-0.6293204426765442,
0.8820300698280334,
0.522529125213623,
0.7575157284736633,
-0.1657339185476303,
-0.455863893032074,
-0.5454460978507996,
-0.3009842038154602,
0.8096829056739807,
-0... |
def bypassnextcommand ( self, inputevent = none ) : self. presentmessage ( messages. bypass _ mode _ enabled ) orca _ state. bypassnextcommand = true return true | [
0.14490048587322235,
0.14004355669021606,
0.45441538095474243,
-0.03294162079691887,
0.6456999182701111,
0.9802201986312866,
1.2414060831069946,
-0.7078841328620911,
0.43229562044143677,
-0.9873488545417786,
-0.2987934947013855,
0.6577131152153015,
-1.2685309648513794,
0.05798822641372681,... |
def set _ profile _ shopfor24 ( life _ off, check _ cloud _ env, request, memory, store ) : shop _ groups = [ " dialog _ compile _ lecommon ", " dialog _ compile _ leshop _ for2. 4 " ] associate _ group ( memory, request, store, shop _ groups ) | [
-0.3837016522884369,
0.32318902015686035,
0.2652209401130676,
0.41168588399887085,
-0.08228336274623871,
-0.4492819607257843,
0.11943332850933075,
-0.39434587955474854,
0.4559846818447113,
-0.4838593900203705,
-0.19587616622447968,
0.5857102870941162,
0.1524856984615326,
0.5923053026199341... |
def count _ all _ meta _ regions _ from _ genewise _ dicts ( gene _ id, full _ transcript _ dict, meta _ uorfs _ computational _ dict, meta _ uorfs _ experimental _ dict, path _ to _ bam, path _ to _ psite ) : print'working on'+ str ( gene _ id ) # import reads and set mapping chx _ reads = bamgenomearray ( path _ to _... | [
0.6133953928947449,
-0.05390079319477081,
0.7154902815818787,
-0.5260339975357056,
-0.5240012407302856,
-0.23634590208530426,
0.16087912023067474,
0.6589027643203735,
-0.2710857689380646,
0.7623439431190491,
0.0406322255730629,
0.1399269551038742,
0.6167887449264526,
0.28843775391578674,
... |
def calc _ con _ base ( row ) : counts = [ row ['a'], row ['c'], row ['t'], row ['g'] ] return c2p [ np. argmax ( counts ) ] | [
0.3287400007247925,
-0.8298192620277405,
0.40790581703186035,
0.03544475883245468,
0.5324839353561401,
-0.34161967039108276,
0.044449128210544586,
0.010911939665675163,
-0.3654850125312805,
1.080089807510376,
0.7897347211837769,
-0.5341609716415405,
-0.042413078248500824,
-1.09338903427124... |
def _ analyze _ response ( self, url, time _ ms, resp, content _ req ) : if resp is none : self. _ logger. info ( " checked url ='{ }'\ t response - time = { :. 2f } ms \ t content _ requirement ='{ } ', \ t status = { } ". format ( url, time _ ms, content _ req, " server down ( or unreachable ) " ) ) return # print ( ... | [
0.08346276730298996,
-0.9341274499893188,
0.6506043076515198,
0.11413092166185379,
0.15275028347969055,
-0.15298336744308472,
0.14312875270843506,
0.01885337010025978,
0.0049506486393511295,
-0.226421520113945,
0.11168161034584045,
-0.16257232427597046,
-0.20009076595306396,
1.073350429534... |
def init _ anat _ reports _ wf ( *, freesurfer, output _ dir, sloppy, name = " anat _ reports _ wf " ) : from niworkflows. interfaces. reportlets. masks import roisplot from niworkflows. interfaces. reportlets. registration import ( simplebeforeafterrpt as simplebeforeafter, ) from smriprep. interfaces. templateflow im... | [
0.14223144948482513,
0.327928751707077,
0.5358294248580933,
-0.8043251037597656,
0.1084521934390068,
-0.15408873558044434,
1.7004843950271606,
-0.6832788586616516,
-0.5086709260940552,
-0.18386512994766235,
-0.09457170218229294,
0.5182230472564697,
0.5604937076568604,
0.704100489616394,
... |
def rce2wav ( self, rcefile = none, resample = none, split = none ) : if rcefile is none and self. _ lastsimfile is none : raise valueerror ( " this simulation has not been run to produce an rce file " ) if rcefile is none : rcefile = os. path. splitext ( self. _ lastsimfile ) [ 0 ] + ". rce " if not os. path. exists (... | [
-0.07366888970136642,
-0.16207833588123322,
0.7291222214698792,
-0.16307751834392548,
0.4674227237701416,
0.18274347484111786,
1.3325570821762085,
0.47365084290504456,
-0.2208775132894516,
0.02313181944191456,
0.13107718527317047,
-0.1502983421087265,
-0.6586043834686279,
-0.477783203125,
... |
def get _ model ( self, model _ name ) : if model _ name in ['text ','video ','image ','file'] : return apps. get _ model ( app _ label ='courses ', model _ name = model _ name ) return none | [
-0.20662210881710052,
0.08276299387216568,
0.39107999205589294,
1.0210102796554565,
0.42200520634651184,
0.21522121131420135,
-0.2755989730358124,
-1.1793619394302368,
0.2410837560892105,
0.7081850171089172,
0.22488711774349213,
0.044214632362127304,
-0.0257351566106081,
0.1800238341093063... |
def generate _ triple _ sets ( self, black _ marbles : list, white _ marbles : list, turn : chr ) : result = [ ] if turn = ='b': marbles = black _ marbles else : marbles = white _ marbles for marble in marbles : letter, num = self. convert _ to _ nums ( marble ) right = self. convert _ to _ string ( letter, num + 1 ) u... | [
-0.6775717735290527,
0.03392566367983818,
0.8428372144699097,
-0.6257489323616028,
0.040929101407527924,
0.06149065122008324,
0.2959344983100891,
0.17541192471981049,
-0.04548030346632004,
0.8850095868110657,
-0.5282275676727295,
-0.014204028062522411,
-0.4897848069667816,
-0.1311601698398... |
def postprocess _ ini _ section _ items ( items : union [ mapping, iterable ] ) - > generator : splitter _ re = re. compile ('[ \ n \ r \ t ] +') if isinstance ( items, mapping ) : items = items. items ( ) for k, v in items : if v. startswith ('\ n') : v = splitter _ re. split ( v [ 1 : ] ) v = [ vv. strip ( ) for vv i... | [
-0.791793942451477,
-1.3898496627807617,
0.49723681807518005,
-0.3401898443698883,
-0.9315774440765381,
-0.43445074558258057,
-0.8616101741790771,
0.6575902700424194,
-0.6492679119110107,
0.7098734974861145,
-0.5523664951324463,
-0.3726838231086731,
0.22639280557632446,
0.20986995100975037... |
def _ _ init _ _ ( self, config ) : # unpack config self. config = copy. deepcopy ( config ) self. result _ dir = config ['result _ dir'] self. num _ time _ steps = config ['num _ time _ steps'] self. num _ inputs = config ['num _ inputs'] self. num _ outputs = config ['num _ outputs'] self. num _ neurons = config ['nu... | [
0.37819817662239075,
0.40329572558403015,
0.642792284488678,
0.4373816251754761,
-0.29286226630210876,
-0.21105818450450897,
1.2421162128448486,
0.4674820303916931,
-0.027271432802081108,
0.5843511819839478,
-0.6300257444381714,
-0.34475985169410706,
0.5586966872215271,
0.06518438458442688... |
def main ( ) : # grab command line args args = build _ argparser ( ). parse _ args ( ) # connect to the mqtt server client = connect _ mqtt ( ) # perform inference on the input stream infer _ on _ stream ( args, client ) | [
0.5750653743743896,
-0.6773643493652344,
0.7121541500091553,
0.14439481496810913,
0.11950308829545975,
0.6652883887290955,
-0.4550427496433258,
0.22223909199237823,
-0.787700355052948,
-0.477118581533432,
-0.24142339825630188,
0.7243835926055908,
-0.5987672805786133,
0.812335729598999,
-... |
def order _ notes ( self, order _ notes ) : self. _ order _ notes = order _ notes | [
-0.3727514147758484,
-0.5458314418792725,
0.16087359189987183,
0.32002079486846924,
1.1237009763717651,
0.42585572600364685,
0.19940052926540375,
-0.8624868392944336,
-0.7184193134307861,
0.46825408935546875,
-0.4631778597831726,
-0.2813877463340759,
0.27073028683662415,
-0.574558019638061... |
def matrixtranspose ( m ) : return [ [ m [ j ] [ i ] for j in range ( len ( m ) ) ] for i in range ( len ( m [ 0 ] ) ) ] | [
-0.407985657453537,
-0.3928801715373993,
0.7769872546195984,
-0.13497310876846313,
-0.1155637577176094,
-0.6450865268707275,
0.3633635342121124,
0.8716146349906921,
0.5723421573638916,
1.4469174146652222,
-0.537870466709137,
-1.1761678457260132,
-0.7618153095245361,
0.43186360597610474,
... |
def _ get _ raw _ path ( src, dst ) : if len ( path _ map ) = = 0 : _ calc _ paths ( ) if src is dst : # we're here! return [ ] if path _ map [ src ] [ dst ] [ 0 ] is none : return none intermediate = path _ map [ src ] [ dst ] [ 1 ] if intermediate is none : # directly connected return [ ] return _ get _ raw _ path ( ... | [
-0.7665154337882996,
0.09266690909862518,
0.5557063817977905,
0.17273463308811188,
0.11901970952749252,
-0.47196871042251587,
-0.08029302209615707,
-0.2802990972995758,
0.06194249540567398,
0.149324432015419,
-0.004404660314321518,
-0.03410275653004646,
0.42361974716186523,
0.0100441370159... |
async def gsearch ( q _ event ) : match = q _ event. pattern _ match. group ( 1 ) page = findall ( r " page = \ d + ", match ) try : page = page [ 0 ] page = page. replace ( " page = ", " " ) match = match. replace ( " page = " + page [ 0 ], " " ) except indexerror : page = 1 search _ args = ( str ( match ), int ( page... | [
-0.5475998520851135,
0.6752753257751465,
0.7588424682617188,
-0.3457009196281433,
0.6059820055961609,
-0.1543165147304535,
0.15807929635047913,
0.12552335858345032,
-0.3313080966472626,
-0.11147677898406982,
0.20418544113636017,
0.669822633266449,
-0.4614799916744232,
0.7741503715515137,
... |
def do _ svm _ sent _ pos _ hs _ ld ( data _ list, utterance _ unprocessed, lex, test _ utterance, file, column, matrix, mode ) : # make vector from the utterance of the test set vec _ test _ utterance = [ ] # vector of the utterance from the test _ set for line in open ( lex ) : line _ split = line. split ( ) n = 0 m ... | [
0.6254551410675049,
-0.233820378780365,
0.8956326246261597,
-0.3115483224391937,
-0.31140437722206116,
0.0013955059694126248,
0.4352584481239319,
0.5087542533874512,
0.0063971178606152534,
0.5701903104782104,
-0.33959007263183594,
0.29044637084007263,
-0.31965360045433044,
0.08274777233600... |
def choose _ best _ action ( self, state : any ) : return np. argmax ( self. q [ state ] ) | [
-0.6035028696060181,
-0.8575571775436401,
0.4156355857849121,
0.41875436902046204,
0.2091989815235138,
0.16027477383613586,
-0.44939717650413513,
-0.6862005591392517,
0.8221062421798706,
-0.09850203990936279,
0.3550888001918793,
1.036474347114563,
0.5135785937309265,
0.013610580004751682,
... |
def split ( text : unicode, maxlinelength : int ) - > list [ unicode ] :... | [
-0.31939443945884705,
0.44578301906585693,
0.17238733172416687,
0.8513071537017822,
-0.7645443677902222,
-0.0700007826089859,
-1.2618252038955688,
1.2591142654418945,
0.2987915873527527,
0.09496749937534332,
-1.181756854057312,
0.025602389127016068,
-0.3756423592567444,
-0.3476653397083282... |
def unpack _ data ( cls, folder, year, year _ lookup ) : zip _ path = cls. get _ zip _ path ( folder = folder, year = year, year _ lookup = year _ lookup ) txt _ path = cls. get _ txt _ path ( folder = folder, year = year, year _ lookup = year _ lookup ) zipped _ filename = zip _ path. split ( " / " ) [ - 1 ] unzip _ p... | [
0.5384213328361511,
-0.2723550498485565,
1.00419282913208,
-1.3375906944274902,
-0.5556551814079285,
-0.21329329907894135,
0.03367255628108978,
0.5883784890174866,
-0.07528400421142578,
0.3344007134437561,
0.12234987318515778,
-0.11497608572244644,
0.57212233543396,
-0.21597369015216827,
... |
def call ( self, params, _ context, * * kwargs ) : assert len ( params ) = = self. paramcount # using setattr because'='is not allowed inside of lambdas return evaluate _ impl ( self. body, params ). then ( lambda value : setattr ( _ context. results, " value ", value ) ) | [
-1.0920240879058838,
0.5533640384674072,
0.48383527994155884,
-1.058849573135376,
0.5246440768241882,
0.10503113269805908,
-0.9248383045196533,
-1.0704983472824097,
-0.31917816400527954,
0.3099604547023773,
-0.3502277135848999,
0.09271572530269623,
-0.5199511647224426,
0.45689427852630615,... |
def onboard _ task _ create ( context, host ) : return impl. onboard _ task _ create ( context, host ) | [
0.052845146507024765,
1.035031795501709,
0.46612629294395447,
0.7851738333702087,
-0.31750693917274475,
0.20853108167648315,
0.6829459071159363,
0.004319583065807819,
-1.5487242937088013,
0.6653834581375122,
-1.581706166267395,
-0.22377292811870575,
0.039290253072977066,
0.4461537897586822... |
def retry ( func, expectedexception = exception, tries = none, timeout = none, sleep = 1 ) : if tries in [ 0, none ] : tries = - 1 if timeout in [ 0, none ] : timeout = - 1 starttime = time. time ( ) while true : tries - = 1 try : return func ( ) except expectedexception : if tries = = 0 : raise if ( timeout > 0 ) and ... | [
0.30971840023994446,
0.9862000942230225,
0.37366268038749695,
0.9552391767501831,
-0.6574984192848206,
-0.08921770751476288,
0.1642744541168213,
0.2373463213443756,
0.20596104860305786,
0.4858359098434448,
0.8800532221794128,
0.6100037097930908,
-0.541782796382904,
-0.35889893770217896,
... |
def test _ example _ input _ two _ add _ cancel _ entity ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) input _ page. create _ new _ input. select ( " example input two " ) input _ page. entity2. exam... | [
0.8751184940338135,
-0.1503755897283554,
0.6254394054412842,
0.6188532114028931,
0.16957077383995056,
1.1542575359344482,
-0.4673236906528473,
0.14693370461463928,
0.211725652217865,
0.41612109541893005,
-0.24814032018184662,
-0.3508051335811615,
0.6773436665534973,
0.024773525074124336,
... |
def create _ access _ token _ response ( self, uri, http _ method ='get ', body = none, headers = none, credentials = none ) : resp _ headers = {'content - type':'application / x - www - form - urlencoded'} try : request = self. _ create _ request ( uri, http _ method, body, headers ) valid, processed _ request = self.... | [
-0.7510525584220886,
-0.4955971837043762,
0.7126880884170532,
0.577031672000885,
-0.5413378477096558,
-0.6720191240310669,
-0.03455440700054169,
-0.18224230408668518,
0.2812824547290802,
-0.4811200499534607,
0.1947077214717865,
0.23035156726837158,
0.10712416470050812,
-0.25033697485923767... |
def gatherdata ( search _ term, limit = 200, email = " lwrpratt @ gmail. com " ) : # import existing author & paper data try : with open ('authors. json ','r') as auths : authors = json. load ( auths ) auths. closed except ioerror : print " no old data to import, creating new authors dict " authors = { } try : with ope... | [
-0.3311447203159332,
-0.6508582830429077,
0.7825857400894165,
-0.6562294960021973,
0.1983964741230011,
0.29658013582229614,
-0.7396175265312195,
-0.3072841167449951,
0.3047780990600586,
0.6268677711486816,
-0.9707317352294922,
0.3114045560359955,
-0.015329272486269474,
0.3469902276992798,
... |
def propose _ properties ( self, args ) : reconciled _ type = ( args. get ('type') or default _ type _ entity ) limit = int ( args. get ('limit') or 20 ) limit = min ( limit, 50 ) # this sparql query uses gas ( don't worry, it's carbon - free ) # https : / / wiki. blazegraph. com / wiki / index. php / rdf _ gas _ api #... | [
-0.9208119511604309,
-0.5378461480140686,
0.6416292190551758,
-1.2957054376602173,
0.25894322991371155,
-0.7713661789894104,
-1.0494884252548218,
0.29260990023612976,
-0.3696354627609253,
0.41203823685646057,
0.3015283942222595,
-0.06239272654056549,
-0.09427081048488617,
0.420313864946365... |
def rassemblementcouches ( init _ data ) : if type ( init _ data ) = = dict : keys = list ( init _ data. keys ( ) ) else : keys = [ i for i in range ( len ( init _ data ) ) ] data = init _ data [ keys [ 0 ] ] for i in range ( 1, len ( keys ) ) : data = data. append ( init _ data [ keys [ i ] ], ignore _ index = true ) ... | [
-1.283136010169983,
-0.3690863251686096,
0.4680960476398468,
-0.6541295647621155,
0.3116389811038971,
0.21545816957950592,
-0.13090462982654572,
0.4146080017089844,
-0.08547908067703247,
0.5154147744178772,
0.16028237342834473,
-0.4246712028980255,
-0.6076182126998901,
0.2833605408668518,
... |
def _ _ init _ _ ( self, testing = false ) : self. testing = testing self. _ check _ import _ source ( ) self. _ check _ install ( ) | [
0.19798770546913147,
-0.05562253296375275,
0.20905286073684692,
0.99365234375,
0.005617213901132345,
0.36976417899131775,
1.1059160232543945,
0.602627694606781,
0.6931847929954529,
0.2853202819824219,
-0.02229851484298706,
-0.8295790553092957,
-0.873825192451477,
1.1658886671066284,
-0.2... |
def test _ atomic _ language _ length _ 4 _ nistxml _ sv _ iv _ atomic _ language _ length _ 5 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - length - 5. xsd ", instance = " nistdata / atomic / l... | [
0.3877314031124115,
-0.30790701508522034,
0.26162904500961304,
0.16379180550575256,
-0.38328927755355835,
-0.17905348539352417,
0.17946408689022064,
-0.3561958372592926,
-0.23512570559978485,
0.8796234130859375,
-0.7508315443992615,
-0.5409339666366577,
-0.3105352222919464,
0.3236590921878... |
def _ _ contains _ _ ( self, job _ name ) : return job _ name in self. keys ( ) | [
0.5148594379425049,
-0.40926751494407654,
0.3222128450870514,
-0.15378247201442719,
-0.8637199401855469,
0.26071491837501526,
-1.067975401878357,
0.3211607038974762,
-0.7107736468315125,
-0.38496795296669006,
0.005285067018121481,
-0.22573916614055634,
-0.5696960091590881,
0.18659780919551... |
def _ transform _ board ( self, board, player ) : processed = [ ] for jug in true, false : for place in board : if place = = " " : processed. append ( 0 ) else : processed. append ( int ( ( place = = player ) = = jug ) ) return processed | [
-0.48530831933021545,
0.04694344103336334,
0.46043360233306885,
-0.5121773481369019,
0.06300679594278336,
-0.6658086776733398,
0.19145916402339935,
1.9123055934906006,
-0.5211381316184998,
0.9070497155189514,
-0.48526206612586975,
-0.6455227136611938,
-0.35841211676597595,
0.25038218498229... |
def insert _ object _ acl ( self, bucket _ name : str, object _ name : str, entity : str, role : str, generation : int | none = none, user _ project : str | none = none, ) - > none : self. log. info ( " creating a new acl entry for object : % s in bucket : % s ", object _ name, bucket _ name ) client = self. get _ conn... | [
0.36902809143066406,
-0.3764939308166504,
0.6932392120361328,
-0.2263968139886856,
0.13206163048744202,
0.6779225468635559,
0.08579393476247787,
-0.1941419392824173,
-0.7424866557121277,
0.9519883990287781,
-0.3473378121852875,
0.18799297511577606,
0.23479494452476501,
-0.5030578970909119,... |
def disk _ prior _ model _ tag ( self ) - > str : if self. disk _ prior _ model is none : return " " tag = conf. instance [ " notation " ] [ " prior _ model _ tags " ] [ " mass " ] [ self. disk _ prior _ model. name ] return f " _ _ disk _ { tag } " | [
0.14976441860198975,
-0.492662250995636,
0.6847612857818604,
-0.31387656927108765,
0.5227774977684021,
0.20592983067035675,
0.6825941801071167,
-0.25400662422180176,
-0.8842912316322327,
-0.41519230604171753,
-0.1318199336528778,
-0.4380537271499634,
0.6911563277244568,
0.7292400598526001,... |
def listen ( self ) - > bool : return pulumi. get ( self, " listen " ) | [
1.4041658639907837,
0.27991318702697754,
0.3935198485851288,
0.2554059326648712,
1.2058629989624023,
1.5802514553070068,
-0.6235400438308716,
0.46003085374832153,
0.1482958346605301,
0.10917410999536514,
0.01876286044716835,
0.6313418745994568,
-0.42164546251296997,
-1.1680480241775513,
... |
def monthly _ relative ( self, pattern _ dict ) : if isinstance ( pattern _ dict, bool ) : pattern _ dict = { } pattern _ dict ['freq _ type'] ='monthly _ relative'schedule _ pattern = schedulepattern ( self. _ pattern ) self. _ pattern = schedule _ pattern. create _ schedule _ pattern ( pattern _ dict ) self. _ modify... | [
0.23733237385749817,
0.3332747519016266,
0.7836618423461914,
-0.0322851836681366,
-0.802399754524231,
1.158886432647705,
0.72148597240448,
0.6403507590293884,
0.2937341332435608,
-0.03011440671980381,
0.09984429180622101,
0.2430800199508667,
-0.19225940108299255,
0.0008620232692919672,
0... |
def render _ display ( self ) : # render map preview # # determine tile size and window / map dimensions tile _ size = 10 width = len ( self. common. tile _ map [ 0 ] ) * tile _ size # number of tiles * size of tile height = len ( self. common. tile _ map ) * tile _ size map _ preview = pygame. surface ( ( width, heigh... | [
-0.1592172086238861,
-0.3881009817123413,
0.5899348258972168,
-0.9364997148513794,
-0.38303542137145996,
0.8513978719711304,
-0.022797713056206703,
0.18167644739151,
0.2894575297832489,
0.07773908972740173,
0.7671610116958618,
-0.06122414022684097,
-0.1944761872291565,
0.5925698280334473,
... |
def calc _ metrics ( hparams, labels, preds ) : res = { } for metric in hparams. metrics : if metric = ='auc': auc = roc _ auc _ score ( np. asarray ( labels ), np. asarray ( preds ) ) res ['auc'] = round ( auc, 4 ) elif metric = ='rmse': rmse = mean _ squared _ error ( np. asarray ( labels ), np. asarray ( preds ) ) r... | [
-0.0019829976372420788,
-0.21897798776626587,
0.6584430932998657,
0.09708887338638306,
0.3327515423297882,
0.002371100476011634,
-0.21398791670799255,
-0.23500250279903412,
-1.1076574325561523,
0.15895909070968628,
0.05979662016034126,
0.1929246187210083,
0.4275000989437103,
0.354845821857... |
def volume _ restricted _ metadata _ delete ( context, volume _ id, key ) : impl. volume _ restricted _ metadata _ delete ( context, volume _ id, key ) | [
-0.041743118315935135,
-0.061473455280065536,
0.5359125137329102,
0.3017965853214264,
-0.2991414964199066,
0.050161488354206085,
-0.3853982388973236,
0.09810484945774078,
-0.0030593520496040583,
1.2984672784805298,
0.7099242806434631,
1.1456615924835205,
-0.6010949611663818,
-0.52054405212... |
def flatgeobuf _ s3 ( mp _ s3 _ tmpdir ) : with processfixture ( testdata _ dir / " flatgeobuf. mapchete ", output _ tempdir = mp _ s3 _ tmpdir, ) as example : yield example | [
-0.0685030072927475,
-0.3905472755432129,
0.3607836365699768,
-0.0893833264708519,
-0.05640428885817528,
1.294490933418274,
0.5100286602973938,
-0.1950225532054901,
0.8739293217658997,
-0.7586637139320374,
0.027224477380514145,
0.44931575655937195,
-0.053254254162311554,
-0.143568858504295... |
def determine _ audit _ results ( baseline, baseline _ path ) : all _ secrets = _ secret _ generator ( baseline ) audit _ results = {'results': defaultdict ( lambda : deepcopy ( empty _ plugin _ audit _ result ) ), } secret _ type _ to _ plugin _ name = get _ mapping _ from _ secret _ type _ to _ class _ name ( ) for f... | [
-0.15773800015449524,
-0.5973857641220093,
0.6319982409477234,
-0.797997772693634,
0.28929582238197327,
-0.7141345739364624,
0.20063453912734985,
-0.3086734414100647,
-0.5080568790435791,
0.34723690152168274,
-1.1944454908370972,
0.5181252360343933,
0.18444928526878357,
0.4374468922615051,... |
def plotinitialconditions ( x, y, u0, b0 ) : p. plotic ( x, y, u0, b0, w = none, t = none, top = none ) | [
1.466301441192627,
-0.04245023801922798,
0.26909732818603516,
0.13425789773464203,
0.08337033540010452,
0.4806884229183197,
0.8792508840560913,
0.6062363982200623,
-1.0724791288375854,
0.19955825805664062,
0.07804631441831589,
0.732545018196106,
0.1757589429616928,
-0.11111093312501907,
... |
def test _ model _ opt _ mprob _ arg ( self ) : for mn in ( " hky85 ", " gn ", " cnfgtr " ) : for value in ( true, false ) : # check setting via sm _ args is overridden with self. assertraises ( valueerror ) : _ = evo _ app. model ( mn, optimise _ motif _ probs = value, sm _ args = dict ( optimise _ motif _ probs = not... | [
0.2755931615829468,
0.3460128605365753,
0.5519624352455139,
-0.16490471363067627,
0.5210298299789429,
0.46665120124816895,
0.027431262657046318,
-0.38850870728492737,
-0.42158666253089905,
0.6905079483985901,
-0.36636319756507874,
-0.23049922287464142,
-0.41219428181648254,
0.3885589540004... |
def _ parse _ type _ comment ( type _ comment : optional [ str ], ) - > optional [ ast. expr ] : if type _ comment is none : return none try : # pyre - ignore [ 16 ] : the ast module stubs do not have full details return ast. parse ( type _ comment, " < type _ comment > ", " eval " ). body except syntaxerror : return n... | [
-0.11007624119520187,
-1.065306544303894,
0.4021391272544861,
-0.8581568598747253,
0.5382046699523926,
-1.2103118896484375,
0.5160622596740723,
-0.3213199973106384,
0.14077942073345184,
1.13788640499115,
0.1008787676692009,
-0.12434587627649307,
-0.23593591153621674,
-0.7114003896713257,
... |
def register _ webhook ( self ) - > none : self. webhook _ id = f " { domain } _ { self. unique _ id. replace (': ','' ) } _ onvif " event _ id = self. webhook _ id webhook. async _ register ( self. _ hass, domain, event _ id, event _ id, self. handle _ webhook ) try : self. _ base _ url = get _ url ( self. _ hass, pre... | [
0.5310025811195374,
-0.12064661830663681,
0.31607627868652344,
1.2065876722335815,
1.6035997867584229,
-0.547139585018158,
0.07315855473279953,
1.239294409751892,
-0.4489140808582306,
-0.4553994834423065,
-0.6780545711517334,
0.5690098404884338,
0.3628331422805786,
0.636152446269989,
0.5... |
def _ _ hash _ _ ( self ) - > int : return hash ( self. full _ blockstate ) | [
1.0017869472503662,
-0.20272217690944672,
0.5509994626045227,
-0.05547238886356354,
-0.9536433815956116,
0.03361951932311058,
0.5880050659179688,
0.14313063025474548,
0.18172264099121094,
-0.19590774178504944,
-1.2285280227661133,
-0.22203175723552704,
-0.3408189117908478,
-0.5331594944000... |
def shopify _ export _ product _ log _ line ( self, message, model _ id, log _ book _ id ) : common _ log _ line _ obj = self. env [ " common. log. lines. ept " ] vals = { " message " : message, " model _ id " : model _ id, " log _ book _ id " : log _ book _ id. id if log _ book _ id else false } common _ log _ line _ ... | [
-0.08544311672449112,
-0.2160407155752182,
0.5405071377754211,
0.4644664227962494,
0.8295670747756958,
1.4022386074066162,
-0.5996779203414917,
-0.9006156921386719,
0.08782666176557541,
0.46813949942588806,
-0.7195423245429993,
0.35848453640937805,
-0.8024425506591797,
0.08522049337625504,... |
def _ _ getattr _ _ ( self, resource ) : kwargs = self. _ copy _ kwargs ( resource ) return self. _ get _ resource ( * * kwargs ) | [
-0.2793577015399933,
-1.109390377998352,
0.3686888515949249,
-0.47394755482673645,
-0.9222025275230408,
-0.6105075478553772,
-0.2588309049606323,
-0.7236913442611694,
0.40265122056007385,
0.1486264020204544,
0.3857249915599823,
0.42984291911125183,
0.8720502853393555,
-0.09398097544908524,... |
def add _ console _ logging ( add _ handler ) : logging. basicconfig ( level = logging. info, filename = filename, filemode ='a ', format ='% ( asctime ) s - % ( name ) s - % ( levelname ) s - % ( message ) s') if add _ handler : handler = logging. streamhandler ( ) handler. setlevel ( logging. info ) formatter = loggi... | [
0.1630072146654129,
-1.0540313720703125,
1.0110373497009277,
-0.251019686460495,
0.07755284011363983,
0.2657400965690613,
-0.536375880241394,
-0.36276349425315857,
-0.5269045829772949,
-0.5748767852783203,
0.07713750749826431,
0.04809160903096199,
0.13792866468429565,
1.0247400999069214,
... |
def read _ frame ( reader, index ) : im = reader. get _ next _ data ( ) print ( im ) print ( type ( im ) ) n = np. frombuffer ( im, dtype = " uint8 " ) return n # next = reader. get _ next _ data ( ) # frame _ header = reader. next ( ). strip ( ). split ( ) # time = float ( frame _ header [ - 2 ] [ 1 : ] ) # data = [ ]... | [
-0.295317143201828,
-0.6115289926528931,
0.8132914304733276,
-0.47357359528541565,
-0.22595186531543732,
-0.4472203254699707,
-0.22231726348400116,
-0.19180968403816223,
0.0861806720495224,
0.8604661226272583,
-0.18085944652557373,
0.7710253596305847,
-0.3811904788017273,
0.737126469612121... |
def test _ portfolio _ to _ dict _ empty _ portfolio ( ) : start _ dt = pd. timestamp ('2017 - 10 - 05 08 : 00 : 00 ', tz = pytz. utc ) port = portfolio ( start _ dt ) port. subscribe _ funds ( start _ dt, 100000. 0 ) port _ dict = port. portfolio _ to _ dict ( ) assert port _ dict = = { } | [
-0.011545737273991108,
0.663504421710968,
0.39370492100715637,
-0.9476280212402344,
0.6981103420257568,
0.2994704246520996,
-0.01684470660984516,
-0.8620163798332214,
0.10421440750360489,
-0.5173313617706299,
-1.1603301763534546,
-0.051277656108140945,
-0.28830575942993164,
-0.115296125411... |
def transform ( self, observation ) - > np. ndarray : raise notimplementederror | [
-0.8322312831878662,
-0.30988121032714844,
0.513465404510498,
-0.23383671045303345,
0.5528882741928101,
0.12403911352157593,
0.23056507110595703,
0.022551972419023514,
0.5969427227973938,
-0.13244497776031494,
-0.19933860003948212,
0.8718621730804443,
0.42439553141593933,
0.116560719907283... |
def get _ cache _ context ( metadata _ handler : metadata. metadata, pipeline _ node : pipeline _ pb2. pipelinenode, pipeline _ info : pipeline _ pb2. pipelineinfo, executor _ spec : optional [ message. message ] = none, input _ artifacts : optional [ mapping [ str, sequence [ types. artifact ] ] ] = none, output _ art... | [
-0.21105709671974182,
0.013603221625089645,
0.6646299958229065,
-0.11272215843200684,
-0.43676212430000305,
-0.07540121674537659,
0.24135079979896545,
-0.1338041126728058,
-0.39331093430519104,
0.352044939994812,
-0.047579213976860046,
0.7304461002349854,
0.3586370050907135,
0.060084842145... |
def organization _ url ( organization, user _ key = api _ key ) : return'http : / / api. crunchbase. com / v / 2 / organization / % s? user _ key = % s'% ( organization, user _ key ) | [
-0.6230225563049316,
0.391766756772995,
0.39035144448280334,
1.3146439790725708,
0.6044781804084778,
0.07157082110643387,
-0.31868264079093933,
0.2951626479625702,
-0.3548135459423065,
1.3142410516738892,
0.03310650587081909,
-0.07675469666719437,
0.047077056020498276,
0.26740723848342896,... |
def on _ click ( self ) : action = self. actions [ self. curr _ action ] # for editing settings if self. screen _ actions. edit _ screen = = action [ " screen action " ] : self. action = action if not self. edit _ mode : action = { " screen action " : self. screen _ actions. none } else : action = { " redis key " : sel... | [
-1.13048255443573,
-0.9728131890296936,
0.6710748076438904,
0.1652275025844574,
-0.11919636279344559,
-0.6535800099372864,
0.36986446380615234,
-1.0564782619476318,
0.8538432717323303,
0.9814702272415161,
0.8375709056854248,
0.6450271010398865,
0.15713423490524292,
0.9754951000213623,
0.... |
def _ read _ strings _ from _ elf ( elf, domain : str ) - > iterable [ str ] : _ log. debug ('reading tokenized strings in domain " % s " from % s ', domain, elf ) sections = _ elf _ reader ( elf ). dump _ sections ( rf'^ \. pw _ tokenized \. { domain } (? : \. \ d + )? $') if sections is not none : for string in secti... | [
0.0925220400094986,
-0.6823016405105591,
0.5188455581665039,
-0.8097097873687744,
-0.8400408625602722,
-0.4711368978023529,
-1.0797215700149536,
-0.22426363825798035,
-0.3794368505477905,
-0.17461469769477844,
1.420825481414795,
0.7125930190086365,
0.03926408290863037,
0.3645915687084198,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.