query
stringlengths
10
3.6k
document
stringlengths
19
61.4k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Remove,hyphens,slashes,whitespace in string so that it can be used as an OrientDB variable name.
def RBhU(KCHu): Mkmy = KCHu.replace("'", 'prime') tyNF = str.maketrans(dict.fromkeys('.,!?_ -/<>{}[]()+-=*&^%$#@!`~.\\|;:"')) N5BV = ['.', '!', '?', '_', '-', '/', '>', '<', '(', ')', '+', '-', '*', ',', '?', ':', ';', '"', '[', ']', '{', '}', '=', '^', '%', '$', '#', '@', '!', '`', '~'] Mkmy = Mkmy.tra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(KCHu):\n KCHu = str(KCHu.strip())\n MTCs = ZbWC.compile('^\\\\?\\\\w+$')\n if MTCs.match(KCHu):\n mWFP = KCHu[1:]\n return iQnE(mWFP)\n return KCHu", "def Yczo(YKHO, vIwR):\n return ZbWC.sub('\\\\s+', ' ', vIwR).strip()", "def U_IC(Emd4, vIwR):\n sWfS = {'VPort': 'Vport...
[ "0.7050821", "0.66955596", "0.65570164", "0.6515622", "0.64394367", "0.64047974", "0.6403549", "0.63944197", "0.6385761", "0.6379132", "0.6366507", "0.63529", "0.6346849", "0.6327305", "0.63146", "0.62898767", "0.6274276", "0.6269185", "0.6262716", "0.6239907", "0.6238984", ...
0.0
-1
Check if the obj is owned by the data_source.
def vdOH(YKHO, m5Tx, YEnM): vexM = YKHO.sql_query(" select @rid from (select expand(in(Owns)) from {obj_rid}) where @class = 'DataSource' and @rid = {rid}".format(obj_rid=YEnM._id, ds_rid=m5Tx._id)) return len(vexM) > 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jD8i(YKHO, z1Rg):\n return YKHO._owner is z1Rg", "def EC7F(YKHO):\n CBIr = YKHO.request.user\n object = YKHO.get_object()\n if object.owned_by(CBIr):\n return True\n else:\n return False", "def CqVB(YKHO):\n raise jFTU.NotImplemented", "def b9HF(YKHO):\n return YKHO._is...
[ "0.73717135", "0.7216829", "0.68909574", "0.6698949", "0.66661", "0.65722454", "0.6571913", "0.65368134", "0.6504061", "0.6427954", "0.6417614", "0.64085096", "0.63599044", "0.63226974", "0.6321842", "0.62953234", "0.627378", "0.6163859", "0.61376566", "0.6136178", "0.6129094...
0.7183727
2
Export all the tags to a JSON file.
def f7o8(YKHO, Ux0P): q2BR = YKHO.sql_query('select from QueryResult').node_objs nVWr = {} for TZ9E in q2BR: lhy8 = TZ9E.get_props() dixj = TZ9E.out() J2us = {} try: qfpW = lhy8['color'].copy() mQS7 = lhy8['visibility'].copy() esxg = lhy8['...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QFgE(YKHO):\n yvT9 = {}\n yvT9['name'] = YKHO.name\n yvT9['colour'] = YKHO.colour\n yvT9['slug'] = YKHO.slug\n yvT9['id'] = YKHO.pk\n yvT9['tags'] = []\n for a1PO in YKHO.tags.all():\n yvT9['tags'].append(a1PO.pk)\n return yvT9", "def h0G1(QePW):\n o29J = IyFz.serialize('jso...
[ "0.6429942", "0.63553095", "0.62393045", "0.621748", "0.62066233", "0.6190445", "0.618915", "0.60904825", "0.6082127", "0.60671234", "0.60138595", "0.5995351", "0.59754723", "0.5955164", "0.59519166", "0.59507686", "0.59320366", "0.5888748", "0.5869419", "0.58678013", "0.5860...
0.6420236
1
Load an SWC file into a DataFrame.
def AXfH(gIsw): jQ3Z = rLdf.read_csv(gIsw, sep=' ', header=None, comment='#', index_col=False, names=['sample', 'identifier', 'x', 'y', 'z', 'r', 'parent'], skipinitialspace=True) return jQ3Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AXfH(gIsw):\n jQ3Z = rLdf.read_csv(gIsw, delimiter=' ', header=None, comment='#', names=['sample', 'identifier', 'x', 'y', 'z', 'r', 'parent'], skipinitialspace=True).astype({'sample': int, 'identifier': int, 'x': float, 'y': float, 'z': float, 'r': float, 'parent': int})\n return jQ3Z", "def ip1L(nUeQ...
[ "0.7876682", "0.62008125", "0.60887754", "0.60773456", "0.60683715", "0.6041929", "0.5958941", "0.58864176", "0.58325297", "0.58230084", "0.5816817", "0.5788819", "0.5787642", "0.577373", "0.57658166", "0.5743022", "0.57248044", "0.57178473", "0.57016563", "0.5658189", "0.563...
0.7903309
0
Creates a list of conditions from from the lists provided.
def rti5(ja47, pceZ, XJnh, WDcK, uTyA): YKHO.conditions = rti5(ja47, pceZ, XJnh, Tlist=WDcK, Plist=uTyA, Vlist=I7_I) p19Z = [] MuOP = [] for c_Vw in XJnh: LV8k = {} orVI = {} AWU2 = znZx(c_Vw.keys(), YKHO.oldSim.speciesList) hzGc = znZx(c_Vw.keys(), YKHO.newSim.speciesLis...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wunn(YKHO, NArs: Optional[Dict]=None, MOPg: Optional[Dict]=None) -> x1iM[uC2D]:\n NKcE = YKHO._get_method('conditions')\n return YKHO.call_api_get(method=NKcE, params=NArs, headers=MOPg)", "def iPqd(YKHO):\n return YKHO._separated_constructs(meYO)", "def WiO8(G1OI):\n return xBlr.reduce(XTiz.lo...
[ "0.66907865", "0.65129495", "0.6485352", "0.6467451", "0.6329446", "0.62187564", "0.61542505", "0.61359745", "0.61170244", "0.57969475", "0.5613383", "0.5551332", "0.553524", "0.54708326", "0.5455554", "0.5420929", "0.5410848", "0.54098654", "0.5402741", "0.5388777", "0.53849...
0.49712306
50
Add a new blacklisted token.
def xkzz(YKHO): YKHO.curr.execute(" INSERT INTO revoked_tokens(jti) VALUES('{}') RETURNING jti".format(YKHO.jti)) X6DH = YKHO.curr.fetchone() YKHO.conn.commit() YKHO.curr.close() return qQXR.dumps(X6DH, default=str)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyov(eOtH):\n Nprs = rK8b(token=eOtH)\n try:\n NCls.session.add(Nprs)\n NCls.session.commit()\n except:\n return False\n return True", "def eLpg(eOtH):\n try:\n z13o = IoEk()\n z13o.jti = eOtH['jti']\n NCls.session.add(z13o)\n NCls.session.commi...
[ "0.6903839", "0.6901928", "0.67731595", "0.64551526", "0.64551526", "0.64389527", "0.6393772", "0.6152744", "0.6144041", "0.61353576", "0.6079158", "0.6073504", "0.6010706", "0.5946544", "0.59345394", "0.5925335", "0.58972377", "0.5874555", "0.5821321", "0.5744133", "0.572454...
0.0
-1
Converts a filename {subdir}/m.n/module/foo to module.foo.
def AItA(Ux0P: str) -> str: return '.'.join(S1zJ(Ux0P).split(Hy7s.path.sep)[2:]).replace('.pyi', '').replace('.__init__', '')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pqZE(yR_P, Ux0P):\n pmON, bGrB = Hy7s.path.split(yR_P.__file__)\n return Hy7s.path.join(pmON, Ux0P)", "def jW6a(Ux0P, Krda):\n Ux0P, bGrB = Hy7s.path.splitext(Ux0P)\n for eHNT in Krda:\n h85P = eHNT.relative_path(Ux0P)\n if h85P:\n if h85P.endswith(Hy7s.path.sep + '__init...
[ "0.6445697", "0.63795006", "0.6362843", "0.6284782", "0.62215054", "0.61781687", "0.6108054", "0.6090965", "0.6090965", "0.60795945", "0.6063059", "0.60531056", "0.60358775", "0.6025664", "0.6023957", "0.5978882", "0.5977606", "0.5933976", "0.5878851", "0.58546704", "0.585380...
0.659474
0
Returns the current zone ID. This is either the same as the hoodID for a Playground class, or the current zoneId for a Town class.
def t__D(YKHO): if YKHO.zoneId: return YKHO.zoneId else: YKHO.notify.warning('no zone id available')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DVVB(YKHO) -> str:\n return qe4Y.get(YKHO, 'zone_id')", "def DVVB(YKHO) -> str:\n return qe4Y.get(YKHO, 'zone_id')", "def DVVB(YKHO) -> str:\n return qe4Y.get(YKHO, 'zone_id')", "def DVVB(YKHO) -> str:\n return qe4Y.get(YKHO, 'zone_id')", "def DVVB(YKHO) -> str:\n return qe4Y.get(YKHO, '...
[ "0.820044", "0.820044", "0.820044", "0.820044", "0.820044", "0.81008226", "0.79597175", "0.79151195", "0.78607404", "0.78607404", "0.78607404", "0.78607404", "0.7562837", "0.7562837", "0.7562837", "0.7562837", "0.7562837", "0.7562837", "0.75609976", "0.75609976", "0.7503529",...
0.7846803
12
Render simple index template.
def d6pt(): yo7_ = qcWV.today() return TvZl('index.html.j2', today=yo7_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt():\n return TvZl('0-index.html')", "def d6pt(YKHO):\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html')", "def KgM5(YKHO):\n ...
[ "0.8064202", "0.79421604", "0.7902698", "0.78859687", "0.7876052", "0.7876052", "0.7873014", "0.7860364", "0.7857654", "0.7850633", "0.7850633", "0.78463745", "0.78178203", "0.7795017", "0.7795017", "0.7795017", "0.7795017", "0.7795017", "0.7795017", "0.7795017", "0.7795017",...
0.70757335
92
Render a simple second page that is different from the index.
def gQ_M(): return TvZl('100days.html.j2')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ozko():\n return TvZl('index.html')", "def l9G7():\n bo34.info('At introductory app page.')\n return TvZl('first.html')", "def t7ng():\n return TvZl('index.html')", "def t7ng():\n return TvZl('index.html')", "def t7ng():\n return TvZl('index.html')", "def t7ng():\n return TvZl('i...
[ "0.7316301", "0.7174586", "0.7147323", "0.7147323", "0.7147323", "0.7078582", "0.7022682", "0.7020641", "0.70161057", "0.69268197", "0.69191563", "0.68515843", "0.6834929", "0.68278736", "0.6804528", "0.6784745", "0.6777081", "0.67718256", "0.67595756", "0.6757772", "0.675444...
0.0
-1
Render template that displays a random Chuck Norris joke.
def Ooq6(): RVgU = ZPYO() return TvZl('chuck.html.j2', joke=RVgU)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L36P():\n mLGw = tuKI.randint(1, 10)\n return TvZl('lucky.html', lucky_num=mLGw, msg='Hello this is a message!')", "def oyg0():\n return TvZl('deck.html')", "def EX77():\n return TvZl('snake.html')", "def XZhn():\n VXjJ = tuKI.choice(xkjI)\n NCC9 = tuKI.choice(PenU)\n pmON = AnZD.mak...
[ "0.6868796", "0.62115926", "0.61506575", "0.600312", "0.5846519", "0.58340347", "0.57512796", "0.5740087", "0.5726088", "0.57244873", "0.5717696", "0.571485", "0.5707809", "0.5691318", "0.5655946", "0.56475705", "0.56315273", "0.5628719", "0.562344", "0.5557762", "0.5552274",...
0.70515287
0
Get names of Pokemon with a certain color.
def V_fb(qfpW): hVRq = 'https://pokeapi.co/api/v2/pokemon-color/{0}'.format(qfpW.lower()) geh0 = G4JS.get(hVRq) if geh0.status_code == qed_.OK: Bv0m = geh0.json() oMqC = Bv0m.get('pokemon_species') return [Vvx_['name'] for Vvx_ in oMqC if oMqC] return []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cLzR(YKHO):\n return YKHO._item.get('name_color')", "def SvKF(YKHO):\n return YKHO._item.get('name_color')", "def VpxG(YKHO, qfpW):\n return [io6K for Jkcz in YKHO.cages for io6K in Jkcz.animals if io6K.color == qfpW]", "def aCCI():\n with open(Ba4A, 'r') as Ga6V:\n QQ0T = qQXR.load(Ga...
[ "0.61268055", "0.60592425", "0.6052334", "0.5940171", "0.5835287", "0.5664363", "0.56355757", "0.56321394", "0.5608693", "0.55954784", "0.55793846", "0.5497267", "0.54773724", "0.541642", "0.54136664", "0.5403632", "0.5403632", "0.53713983", "0.5354674", "0.5300216", "0.52455...
0.8253377
0
Standardize matrix feature columns using sklearn.preprocessing.scale.
def b8Ja(YKHO, eoF1): print('scaling features...') C0w0 = eoF1[['segment_id', 'date', 'time']].reset_index() C0w0['index'] = C0w0.index ZLJ_ = list(eoF1) ZLJ_.remove('segment_id') ZLJ_.remove('date') ZLJ_.remove('time') tl4Z = eoF1[ZLJ_] ERRW = rLdf.DataFrame(ZvG6.scale(tl4Z), column...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def coHD(YKHO):\n nPrm = qw7D([[0.564, 20.661], [-18.512, 41.168], [-0.009, 20.44]])\n bOVy = onCM(nPrm)\n ANfV = qw7D([[0.60355, -0.568043], [-1.1543, 1.15465], [0.550748, -0.586608]])\n bOVy.scale_features('standardize')\n YKHO.assertTrue(Jw17(bOVy.data, ANfV))", "def XbBI(YKHO, NkkI, vb7U):\n ...
[ "0.76103044", "0.7269663", "0.725286", "0.7036567", "0.70222014", "0.6897047", "0.6843821", "0.68304175", "0.6770714", "0.67232645", "0.6692314", "0.66750705", "0.66416115", "0.6633816", "0.6614191", "0.66066986", "0.6586783", "0.65792936", "0.6537459", "0.652209", "0.6510061...
0.7008458
5
Numpy implementation of the Frechet Distance. The Frechet distance between two multivariate Gaussians X_1 ~ N(mu_1, C_1) and X_2 ~ N(mu_2, C_2) is d^2 = ||mu_1 mu_2||^2 + Tr(C_1 + C_2 2sqrt(C_1C_2)). Stable version by Dougal J. Sutherland.
def BCxM(ryEI, _RNt, WNRf, UkX0, SGf8=1e-06): ryEI = oyIN.atleast_1d(ryEI) WNRf = oyIN.atleast_1d(WNRf) _RNt = oyIN.atleast_2d(_RNt) UkX0 = oyIN.atleast_2d(UkX0) assert ryEI.shape == WNRf.shape, 'Training and test mean vectors have different lengths' assert _RNt.shape == UkX0.shape, 'Training an...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BCxM(ryEI, _RNt, WNRf, UkX0, SGf8=1e-06):\n ryEI = oyIN.atleast_1d(ryEI)\n WNRf = oyIN.atleast_1d(WNRf)\n _RNt = oyIN.atleast_2d(_RNt)\n UkX0 = oyIN.atleast_2d(UkX0)\n assert ryEI.shape == WNRf.shape, 'Training and test mean vectors have different lengths'\n assert _RNt.shape == UkX0.shape, '...
[ "0.760663", "0.7604745", "0.75967485", "0.7582018", "0.7462811", "0.7003401", "0.66977954", "0.6652128", "0.66026556", "0.6415457", "0.63808364", "0.62490267", "0.61487985", "0.61459863", "0.60792685", "0.59811175", "0.59767294", "0.5944682", "0.59078217", "0.5880456", "0.587...
0.7578216
6
Returns the class based on class name.
def ZvYj(_2sc, AOnB=None): vOsx = qoEw(_2sc) if vOsx is None and AOnB is not None: for MJH2 in AOnB: vOsx = qoEw('.'.join([MJH2, _2sc])) if vOsx is not None: break if vOsx is None: raise ValueError('Class not found in {}: {}'.format(AOnB, _2sc)) re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZvYj(YKHO, mWFP):\n return YKHO.host.get_class(mWFP)", "def ZvYj(YKHO, _2sc):\n try:\n return YKHO._classes[_2sc]\n except KeyError:\n raise NameError", "def OfpL(YKHO, _2sc: str) -> eBH2:\n return YKHO.class_resolver.find_class(_2sc)", "def ZvYj(mPQc):\n SQ3m = mPQc.split('....
[ "0.84373677", "0.83904266", "0.81867117", "0.7809364", "0.76840603", "0.7631516", "0.7612456", "0.75766957", "0.756475", "0.7517313", "0.7469483", "0.74292386", "0.7380276", "0.73654985", "0.73526037", "0.73500985", "0.73493755", "0.73493063", "0.72896427", "0.7251545", "0.71...
0.74413705
11
Set absolute limit on number of posts to return, or set to None to return as many results as needed; default 50 posts. This limit on applevel.
def qoqK(YKHO, qoqK): NArs = Mq78(YKHO.parameters, {'limit': qoqK, 'url_domain': YKHO.url_domain, 'proxies': YKHO.proxies}) return YKHO.__class__(**NArs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qoqK(YKHO, qoqK):\n return max(1, min(250, int(qoqK) if qoqK else 10))", "def qoqK(YKHO, qoqK):\n if qoqK is None:\n return YKHO\n YKHO.query = YKHO.query.limit(qoqK)\n YKHO._has_limit = True\n return YKHO", "def qoqK(YKHO, qoqK):\n YKHO._limit = qoqK\n return YKHO", "def qoqK...
[ "0.6801113", "0.6553332", "0.6503249", "0.6446786", "0.6433944", "0.64241755", "0.6361055", "0.6325042", "0.6283924", "0.6281148", "0.6246459", "0.62347746", "0.6205886", "0.6197679", "0.6190262", "0.6190262", "0.61789477", "0.61789477", "0.61789477", "0.61658674", "0.6162289...
0.63779676
6
Set absolute limit on number of posts to get, or set to None to return defaulting 25 posts; max 50 posts. This limit on APIlevel.
def USOo(YKHO, qoqK): NArs = Mq78(YKHO.parameters, {'per_page': h6ei(qoqK), 'limit': YKHO._limit, 'url_domain': YKHO.url_domain, 'proxies': YKHO.proxies}) return YKHO.__class__(**NArs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qoqK(YKHO, qoqK):\n YKHO._limit = qoqK\n return YKHO", "def qoqK(YKHO, qoqK):\n YKHO._limit = qoqK", "def qoqK(YKHO, qoqK):\n return max(1, min(250, int(qoqK) if qoqK else 10))", "def K3hO(YKHO):\n qoqK = YKHO.request_data.get('limit', YKHO.limit)\n if qoqK is None:\n qoqK = geta...
[ "0.67124665", "0.6679423", "0.6671076", "0.65983295", "0.65865403", "0.65576196", "0.655653", "0.6550377", "0.64867103", "0.6471201", "0.6471201", "0.6471201", "0.64261115", "0.64054394", "0.6404068", "0.6391131", "0.632516", "0.6285534", "0.6279913", "0.6279913", "0.62438357...
0.58120143
42
4xkk Skip next instruction if Vx != kk. The interpreter compares register Vx to kk, and if they are not equal, increments the program counter by 2.
def ORkA(YKHO): gr_i = (YKHO.opcode & 3840) >> 8 BWXx = YKHO.opcode & 255 if YKHO.registers[gr_i] != BWXx: YKHO.pc += 2 bo34.info("Didn't skip {} because V{} and {} are not equal".format(hex(YKHO.pc - 2), gr_i, BWXx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QhdZ(YKHO, VGCm):\n for WKvO in range(0, 15):\n for Ty9i in range(0, 255):\n VGCm.V_register[WKvO] = Ty9i\n for ERMG in range(0, 255):\n VGCm.opcode = 12288 | WKvO << 8 | ERMG\n for IhAk in [VGCm.memory_start, VGCm.memory_size - 4]:\n ...
[ "0.816584", "0.8083906", "0.7025153", "0.70222133", "0.6228489", "0.5694313", "0.55644727", "0.5451449", "0.5440634", "0.54208565", "0.53850067", "0.5384857", "0.53231335", "0.5320971", "0.531752", "0.53124535", "0.526615", "0.5249636", "0.5224573", "0.5170692", "0.5163933", ...
0.58410513
5
5xy0 Skip next instruction if Vx = Vy. The interpreter compares register Vx to register Vy, and if they are equal, increments the program counter by 2.
def P660(YKHO): hBsG = YKHO.return_middle_registers(YKHO.opcode) if YKHO.registers[hBsG[0]] == YKHO.registers[hBsG[1]]: YKHO.pc += 2 bo34.info('Skipped {} because register V{} and V{} are equal to {}'.format(hex(YKHO.pc - 2), hBsG[0], hBsG[1], YKHO.registers[hBsG[0]]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d4MR(YKHO, VGCm):\n for WKvO in range(0, 15):\n for LVAh in range(0, 15):\n VGCm.opcode = 20480 | WKvO << 8 | LVAh << 4\n if WKvO != LVAh:\n for hQHm in range(0, 255):\n for jlSq in range(0, 255):\n VGCm.V_register[WKvO] =...
[ "0.8014877", "0.78996515", "0.7718769", "0.7703779", "0.67372996", "0.67129034", "0.63463926", "0.6230792", "0.59805137", "0.5945416", "0.59225166", "0.5849552", "0.5760153", "0.57206", "0.5684904", "0.56807935", "0.56776345", "0.5672317", "0.5661531", "0.56562734", "0.558296...
0.5381902
25
Dxyn Display nbyte sprite starting at memory location I at (Vx, Vy), set VF = collision. The interpreter reads n bytes from memory, starting at the address stored in I. These bytes are then displayed as sprites on screen at coordinates (Vx, Vy). Sprites are XORed onto the existing screen. If this causes any pixels to b...
def s7kz(YKHO): gr_i = YKHO.return_middle_registers(YKHO.opcode) WKvO = YKHO.registers[gr_i[0]] LVAh = YKHO.registers[gr_i[1]] H2v2 = YKHO.opcode & 15 YKHO.registers[15] = 0 WKvO = fzab.wrap_around(WKvO, YKHO.display.width) LVAh = fzab.wrap_around(LVAh, YKHO.display.height) for _tCw in r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _UrE(YKHO, VGCm):\n for Jqc7 in range(0, 15 + 1):\n for WKvO in range(0, 15):\n VGCm.opcode = 61481 | WKvO << 8\n VGCm.V_register[WKvO] = Jqc7\n VGCm.set_i_to_vx_sprite()\n assert VGCm.I == 5 * Jqc7", "def Ewvg(YKHO, WKvO, LVAh, exwG):\n for YRbF in ra...
[ "0.6513594", "0.63181967", "0.59485996", "0.5540072", "0.54992574", "0.5420743", "0.53247666", "0.5314777", "0.5257876", "0.52372205", "0.52372074", "0.5223247", "0.5205721", "0.51884145", "0.518519", "0.51657", "0.51638", "0.5153349", "0.51247025", "0.512014", "0.51147324", ...
0.59997195
2
8xy7 Set Vx = Vy Vx, set VF = NOT borrow. If Vy > Vx, then VF is set to 1, otherwise 0. Then Vx is subtracted from Vy, and the results stored in Vx.
def P8mZ(YKHO): gr_i = YKHO.return_middle_registers(YKHO.opcode) if YKHO.registers[gr_i[1]] > YKHO.registers[gr_i[0]]: YKHO.registers[15] = 1 YKHO.registers[gr_i[0]] = YKHO.registers[gr_i[1]] - YKHO.registers[gr_i[0]] else: YKHO.registers[15] = 0 YKHO.registers[gr_i[0]] = 256...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nWcH(YKHO, VGCm):\n for WKvO in range(0, 15):\n for LVAh in range(0, 15):\n if WKvO != LVAh:\n VGCm.opcode = 32775 | WKvO << 8 | LVAh << 4\n for hQHm in range(0, 255):\n for jlSq in range(0, 255):\n VGCm.V_register[WKv...
[ "0.6918244", "0.6858337", "0.67917615", "0.6726138", "0.6416093", "0.62134135", "0.6120543", "0.6070182", "0.6025172", "0.5941048", "0.5932545", "0.5921518", "0.5870453", "0.5824654", "0.5789833", "0.5695025", "0.56798065", "0.5671692", "0.5629817", "0.5600145", "0.5592555", ...
0.0
-1
9xy0 Skip next instruction if Vx != Vy. The values of Vx and Vy are compared, and if they are not equal, the program counter is increased by 2.
def LQRN(YKHO): gr_i = YKHO.return_middle_registers(YKHO.opcode) T1J4 = YKHO.registers[gr_i[0]] ZisD = YKHO.registers[gr_i[1]] if T1J4 != ZisD: YKHO.pc += 2 bo34.info('Skipped {} because V{} = V{}'.format(hex(YKHO.pc - 2), gr_i[0], gr_i[1]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d4MR(YKHO, VGCm):\n for WKvO in range(0, 15):\n for LVAh in range(0, 15):\n VGCm.opcode = 20480 | WKvO << 8 | LVAh << 4\n if WKvO != LVAh:\n for hQHm in range(0, 255):\n for jlSq in range(0, 255):\n VGCm.V_register[WKvO] =...
[ "0.83508325", "0.83289176", "0.7944169", "0.7894002", "0.6454628", "0.64074075", "0.63855803", "0.62239313", "0.60197276", "0.60006964", "0.5906003", "0.58150214", "0.5788128", "0.574523", "0.57182723", "0.5692351", "0.56309664", "0.56103826", "0.5501817", "0.54717726", "0.54...
0.7056754
4
Returns all the ``BasicBlock`` s in the CFG that are followed by a ``Branch``
def ZDuh(YKHO): ukt7 = lambda XkN1: isinstance(XkN1, em1m) and isinstance(XkN1.outgoing_edge[0], Xbi_) return filter(ukt7, YKHO.blocks)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NoBW(YKHO):\n GZiu = []\n for gTqN in YKHO.__brackets:\n GZiu.append(gTqN.get_branch())\n return GZiu", "def PgCR(YKHO, XkN1, hIoP, LEnx=[]):\n if isinstance(XkN1, osGh):\n if isinstance(XkN1.value, jZ4I.Yield) and XkN1.value.value is None or (isinstance(XkN1.value, jZ4I.Assign) and...
[ "0.62072575", "0.599081", "0.5925273", "0.5581489", "0.5420468", "0.53548396", "0.53263915", "0.5307269", "0.5297503", "0.5294589", "0.528809", "0.5279909", "0.52693075", "0.5257159", "0.5231599", "0.52135646", "0.520911", "0.50841695", "0.50765246", "0.5068533", "0.5028474",...
0.69621396
0
Passes the given target sequence, encoder outputs, and attention mask through the decoder stack.
def KVH6(YKHO, pan_, qzxX, TaYf): WKvO = pan_ for gEmA in YKHO.decoder_layers: WKvO = gEmA(WKvO, qzxX, TaYf) return WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, YRmX: torch.Tensor, qzxX: torch.Tensor, BDAO: torch.Tensor, Z6T9: torch.Tensor=None, M8UM: bool=True):\n if M8UM:\n c_3K = Ggtb(YRmX)\n else:\n c_3K = None\n YRmX = YKHO.sublayer[0](YRmX, lambda WKvO: YKHO.self_attn(WKvO, WKvO, WKvO, key_value_mask=Z6T9, attention_mask=c_3K))\...
[ "0.69531417", "0.6764315", "0.6583409", "0.65583766", "0.6521253", "0.65090555", "0.64153045", "0.634258", "0.6314743", "0.6266722", "0.62657124", "0.6175034", "0.6170122", "0.6137886", "0.61199594", "0.60677856", "0.6060724", "0.60442924", "0.5969858", "0.59559983", "0.59480...
0.72397035
0
Given a string in snake case, return a string in upper camel case.
def hr_R(vIwR): c3S0 = [] for GIN8 in vIwR.split('_'): c3S0.append(GIN8.title()) ''.join(c3S0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kCQi(BQoY: str) -> str:\n V22M = BQoY.strip('_').split('_')\n return V22M[0] + ''.join((GIN8[:1].upper() + GIN8[1:] for GIN8 in V22M[1:]))", "def hr_R(vIwR):\n c3S0 = []\n for GIN8 in vIwR.split('_'):\n c3S0.append(GIN8[0].upper() + GIN8[1:])\n return ''.join(c3S0)", "def kCQi(vIwR: s...
[ "0.8430326", "0.81223065", "0.81109744", "0.8105183", "0.80565757", "0.80108196", "0.7970541", "0.7889011", "0.7849014", "0.783033", "0.78208613", "0.77654475", "0.7673997", "0.7652768", "0.7613773", "0.761173", "0.75626194", "0.75626194", "0.7561411", "0.7548015", "0.7540921...
0.7866813
8
Returns the number of intervals for continuity . May be one if Continuity(me) >=
def Pu42(YKHO, *qIxc): return nvSv.Adaptor3d_Curve_NbIntervals(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aiEv(YKHO):\n return YKHO._number_of_levels - 1", "def m1br(YKHO):\n return len(list(YKHO.lower_contained_intervals()))", "def lMDc(YKHO):\n return YKHO.end - YKHO.start + 1", "def Y080(YKHO):\n pass", "def nfdG(YKHO):\n G4IU = len(YKHO.x)\n bo34.info('Number of contours: {0}'.format(...
[ "0.68973154", "0.6324574", "0.62255436", "0.6193144", "0.61019766", "0.5891834", "0.57859546", "0.57796997", "0.5763482", "0.5763482", "0.5761608", "0.5716756", "0.56488776", "0.56488776", "0.56295055", "0.5611196", "0.5581919", "0.55643076", "0.55497503", "0.55395895", "0.55...
0.54567623
27
Computes the point of parameter U on the curve.
def WnaT(YKHO, *qIxc): return nvSv.Adaptor3d_Curve_Value(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P6bq(YKHO, AU8u=-1):\n return YKHO.solution('u', AU8u)", "def i5yP(YKHO):\n YKHO.p_xU = LMWo.px_U(YKHO.max_radius)", "def nrOS(YKHO, P6bq, a1PO):\n o4sw, pdhd, A3Vt, cAlv = P6bq\n return [-YKHO.beta(a1PO) * o4sw * pdhd - YKHO.p(a1PO) * o4sw, YKHO.beta(a1PO) * o4sw * pdhd - YKHO.nu(a1PO) * pdhd,...
[ "0.73742", "0.7004761", "0.6828638", "0.6762647", "0.65855026", "0.6523974", "0.63149714", "0.6311605", "0.62536556", "0.62359804", "0.6218717", "0.62017024", "0.6199048", "0.6154278", "0.6125874", "0.61235815", "0.6115457", "0.60666114", "0.60648763", "0.6059101", "0.5984137...
0.0
-1
Computes the point of parameter U on the curve.
def QngT(YKHO, *qIxc): return nvSv.Adaptor3d_Curve_D0(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P6bq(YKHO, AU8u=-1):\n return YKHO.solution('u', AU8u)", "def i5yP(YKHO):\n YKHO.p_xU = LMWo.px_U(YKHO.max_radius)", "def nrOS(YKHO, P6bq, a1PO):\n o4sw, pdhd, A3Vt, cAlv = P6bq\n return [-YKHO.beta(a1PO) * o4sw * pdhd - YKHO.p(a1PO) * o4sw, YKHO.beta(a1PO) * o4sw * pdhd - YKHO.nu(a1PO) * pdhd,...
[ "0.7375409", "0.7004185", "0.68256426", "0.6762101", "0.65822786", "0.6524225", "0.63141125", "0.6310796", "0.6254795", "0.623512", "0.62183106", "0.62002033", "0.6198014", "0.61567056", "0.6128322", "0.6122093", "0.6113747", "0.6066325", "0.6063735", "0.6057067", "0.5985116"...
0.0
-1
Returns the point P of parameter U, the first and second derivatives V1 and V2. Raised if the continuity of the current interval is not C2.
def Hu0o(YKHO, *qIxc): return nvSv.Adaptor3d_Curve_D2(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ii3R(YKHO, IplT, yuVB):\n return min(yuVB * YKHO.VPMAX0 / (yuVB + YKHO.KP), YKHO.VPR)", "def ZEhU(voIY, oYk9, SXyi, TtuP, WWkz, Jv8J, xTm1):\n WKvO, LVAh = rmc3('x y')\n if oYk9 == 1:\n J_KP = Jv8J\n IDss = TtuP\n elif oYk9 == 2:\n J_KP = xTm1\n IDss = WWkz\n else:\...
[ "0.606858", "0.604953", "0.5859579", "0.5796227", "0.5779603", "0.5705667", "0.56337154", "0.5623958", "0.5622449", "0.5577769", "0.55476034", "0.5463118", "0.5441955", "0.5419544", "0.54115874", "0.5356755", "0.5346686", "0.53392833", "0.53392833", "0.53257966", "0.5320818",...
0.0
-1
Returns a reference to the Surface inside the HSurface.
def BglY(YKHO, *qIxc): return nvSv.Adaptor3d_HSurface_Surface(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J20S(YKHO):\n return YKHO._surface", "def Fy0u(YKHO):\n yzQ0, MKlR = (YKHO.rect.w, YKHO.rect.h)\n J20S = g74T.Surface((yzQ0, MKlR))\n J20S.set_colorkey((0, 0, 0))\n return g74T.Surface((yzQ0, MKlR))", "def HV9K(YKHO, mWFP):\n for J20S in YKHO._surfaces:\n if J20S.name == mWFP:\n ...
[ "0.78297716", "0.723058", "0.72067374", "0.7177043", "0.7177043", "0.7157122", "0.6818885", "0.68185943", "0.6559327", "0.65223384", "0.64866275", "0.626876", "0.61424005", "0.60000396", "0.59458435", "0.59452945", "0.59302646", "0.59144807", "0.5846696", "0.584025", "0.57629...
0.77071446
1
Changes the curve. The Offset is reset to 0.
def jIQk(YKHO, *qIxc): return nvSv.Adaptor3d_OffsetCurve_Load(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xcXx(YKHO, d6pt, AdZ9) -> None:\n ...", "def FIMM(YKHO, sQ4N: Curve, vgXP: np.ndarray):\n YKHO._original_curve = sQ4N\n YKHO._offset = vgXP", "def VhfW(YKHO, d6pt, AHIX, tTee) -> None:\n ...", "def xcXx(YKHO, *qIxc):\n return _VfD.ReferenceGlyph_setCurve(YKHO, *qIxc)", "def QdZT(YKHO):\n...
[ "0.7231603", "0.65058845", "0.63635725", "0.6346726", "0.6346069", "0.6265551", "0.62602866", "0.62164795", "0.6192124", "0.6189021", "0.602735", "0.58682406", "0.5838617", "0.58261555", "0.5815655", "0.57979286", "0.57641953", "0.5762653", "0.575096", "0.5735102", "0.5722809...
0.0
-1
Returns the number of V intervals for continuity . May be one if VContinuity(me) >=
def EQ1u(YKHO, *qIxc): return nvSv.Adaptor3d_Surface_NbVIntervals(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UHFx(YKHO):\n return YKHO.vcount", "def nfdG(YKHO):\n G4IU = len(YKHO.x)\n bo34.info('Number of contours: {0}'.format(G4IU))\n return G4IU", "def aiEv(YKHO):\n return YKHO._number_of_levels - 1", "def qmyo(YKHO):\n return oyIN.size(YKHO._cs, 0)", "def ywwl(YKHO):\n return len(YKHO....
[ "0.5833118", "0.5812298", "0.57627314", "0.57318383", "0.5662196", "0.56163967", "0.55738187", "0.5511229", "0.5502835", "0.54737055", "0.5466982", "0.5466982", "0.54018897", "0.5397112", "0.53935874", "0.5368965", "0.536834", "0.5368097", "0.535776", "0.535776", "0.5339753",...
0.5993507
0
Returns the intervals with the requested continuity in the U direction.
def x6Zt(YKHO, *qIxc): return nvSv.Adaptor3d_Surface_UIntervals(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jKIG(YKHO, *qIxc):\n return nvSv.Adaptor3d_Surface_NbUIntervals(YKHO, *qIxc)", "def Hx90(YKHO):\n return oyIN.linspace(YKHO.u_min, YKHO.u_max, YKHO.n_ubins + 1)", "def id7M(Ae2G: int, oVTz: int, Zsg6=None, XiEG=False) -> x1iM[int]:\n if XiEG:\n assert Zsg6 is not None\n else:\n as...
[ "0.5870866", "0.58019507", "0.5611565", "0.5566933", "0.54912835", "0.5392876", "0.53794134", "0.53688323", "0.53345245", "0.53072727", "0.5304025", "0.5301111", "0.5272128", "0.52685934", "0.52308494", "0.5229207", "0.52236766", "0.5178832", "0.51725495", "0.51673245", "0.51...
0.61829203
0
Computes the derivative of order Nu in the direction U and Nv in the direction V at the point P(U, V). Raised if the current U interval is not not CNu and the current V interval is not CNv. Raised if Nu + Nv < 1 or Nu < 0 or Nv < 0.
def k9oh(YKHO, *qIxc): return nvSv.Adaptor3d_Surface_DN(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qno0(P6bq, Jw7X, Csk6):\n exwG = P6bq.size\n Lfvo = oyIN.zeros(exwG, dtype=P6bq.dtype)\n if Csk6 == 1:\n for YRbF in range(1, exwG - 1):\n Lfvo[YRbF] = (P6bq[YRbF + 1] - P6bq[YRbF - 1]) / (2 * Jw7X)\n Lfvo[0] = (-3.0 / 2 * P6bq[0] + 2 * P6bq[1] - P6bq[2] / 2) / Jw7X\n L...
[ "0.6336903", "0.5920957", "0.59105045", "0.58306366", "0.5746483", "0.5732917", "0.5732917", "0.5632809", "0.55697745", "0.55598664", "0.55324316", "0.5530049", "0.55076575", "0.5469003", "0.54676557", "0.5464478", "0.54523414", "0.5445618", "0.54202133", "0.54154825", "0.540...
0.0
-1
Returns True if the vertices V1 and V2 are identical. This method does not take the orientation of the vertices in account.
def lsbo(YKHO, *qIxc): return nvSv.Adaptor3d_TopolTool_Identical(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E3Zh(YKHO, hQHm, jlSq, SGf8=1e-08):\n if abs(hQHm[0] - jlSq[0]) > SGf8:\n return False\n if abs(hQHm[1] - jlSq[1]) > SGf8:\n return False\n if abs(hQHm[2] - jlSq[2]) > SGf8:\n return False\n return True", "def pH3P(LWvH: List[np.ndarray], ovLg: List[np.ndarray]) -> bool:\n ...
[ "0.82719606", "0.78224254", "0.6956557", "0.6938469", "0.68201566", "0.6790302", "0.67816967", "0.6730816", "0.67222506", "0.6612339", "0.65978515", "0.6545454", "0.65390235", "0.65215695", "0.6482251", "0.640655", "0.63821226", "0.6372323", "0.63104147", "0.62747097", "0.626...
0.0
-1
returns 3d tolerance of the arc C
def opu9(YKHO, *qIxc): return nvSv.Adaptor3d_TopolTool_Tol3d(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p3MD():\n Z9rn = 0.5\n\n def T9Vn(WKvO):\n Dyub = egmC.arccos(WKvO)\n return Dyub\n rjPX = HFzg(T9Vn)\n Ylbp = rjPX.Jac(Z9rn)\n TSkA = {'diff': -1 / epAf.sqrt(1 - Z9rn ** 2), 'value': epAf.acos(Z9rn)}\n assert Ylbp == TSkA", "def PadQ(Csk6):\n assert Oa10(Csk6) <= Kt_s(Csk6...
[ "0.6338388", "0.62060666", "0.6192313", "0.61192554", "0.6089514", "0.60247165", "0.60201037", "0.5982706", "0.5950784", "0.5896721", "0.58792424", "0.5868353", "0.5862294", "0.5860669", "0.58409154", "0.58379173", "0.5822366", "0.581535", "0.5812348", "0.5812095", "0.5795547...
0.0
-1
return the set of U parameters on the surface obtained by the method SamplePnts
def Pz0N(YKHO, *qIxc): return nvSv.Adaptor3d_TopolTool_UParameters(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BjUM(YKHO, *qIxc):\n return nvSv.Adaptor3d_TopolTool_SamplePnts(YKHO, *qIxc)", "def Qad7(YKHO, *qIxc):\n return nvSv.Adaptor3d_TopolTool_BSplSamplePnts(YKHO, *qIxc)", "def x6Zt(YKHO, *qIxc):\n return nvSv.Adaptor3d_Surface_UIntervals(YKHO, *qIxc)", "def fOmo(YKHO):\n return oyIN.hstack((YKHO....
[ "0.65580094", "0.65143687", "0.60258627", "0.5901035", "0.5901035", "0.5896054", "0.5869104", "0.5800974", "0.5783904", "0.57650745", "0.5731213", "0.56969494", "0.5688062", "0.56796485", "0.56423753", "0.56423753", "0.5597", "0.54804945", "0.546892", "0.546563", "0.5452715",...
0.61913615
2
Resolves a DID and returns the DID Document (JSON format), if it exists.
def JwH4(z9x1: str): try: XObx, ucKb = oS5M.parseDid(z9x1) except Exception as e: aeup = str(tTpl) RKD7.error(aeup) raise pgG1(status_code=jGRS.HTTP_400_BAD_REQUEST, detail=aeup) if XObx: RKD7.error(XObx) raise pgG1(status_code=jGRS.HTTP_400_BAD_REQUEST, detai...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TJKT(z9x1):\n z9x1, mWFP, l5a7, WZHJ = C7Pp.resolveDID(z9x1)\n print(f'Name: : {mWFP}')\n print(qQXR.dumps(l5a7, ensure_ascii=False, indent=3))", "def NMoC(YKHO, _30w):\n M4N3 = I0uW.query.filter(I0uW.id == _30w).one_or_none()\n if M4N3:\n return M4N3.json()\n else:\n return (...
[ "0.80398685", "0.643017", "0.5510842", "0.54589266", "0.54198587", "0.5370178", "0.52493495", "0.5245054", "0.5239066", "0.5220812", "0.5203224", "0.5114183", "0.5102752", "0.5073617", "0.50691724", "0.49976265", "0.49662784", "0.49465707", "0.49441296", "0.4935144", "0.48716...
0.7751969
1
Here we suppose that E does not have any 0 on the diagonal and is symmetric.
def i8WE(d3gB, _EWw, ut5U): nMvt = len(_EWw) vOGg = oyIN.zeros(d3gB) EcVT = oyIN.zeros(nMvt) LTX_ = oyIN.zeros(nMvt) for a1PO in range(d3gB): q7In = oyIN.random.beta(EcVT + 1, LTX_ - EcVT + 1) YRbF = oyIN.argmax(q7In) vW3I = oyIN.where(ut5U[YRbF, :] != 0)[0] for G1Hx ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pwGJ(YKHO):\n k0lF = YKHO.to_coo_matrix()\n zLFL = Nsc8((k0lF - k0lF.T) / 2)\n YKHO.E = zLFL.E\n YKHO.edges = zLFL.edges\n YKHO.weights = zLFL.weights\n return YKHO.E", "def z_n9(SppC):\n return H4yH.allclose(SppC, SppC.T)", "def XZXS(C7Ls):\n ut5U, Nq1b = oyIN.linalg.eig(C7Ls)\n ...
[ "0.62975454", "0.6214328", "0.6190005", "0.5922564", "0.5897345", "0.5873182", "0.5862138", "0.5822246", "0.5819514", "0.58014065", "0.5708716", "0.5699536", "0.5688905", "0.5688905", "0.56849927", "0.56309634", "0.5629794", "0.55843997", "0.55819", "0.55754423", "0.55617285"...
0.0
-1
The ID of the networkbased server load balancer instance to be bound to the security group.
def _2LX(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'load_balancer_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X0Pd(YKHO) -> str:\n return qe4Y.get(YKHO, 'server_group_id')", "def X0Pd(YKHO) -> str:\n return qe4Y.get(YKHO, 'server_group_id')", "def X0Pd(YKHO) -> str:\n return qe4Y.get(YKHO, 'server_group_id')", "def X0Pd(YKHO) -> str:\n return qe4Y.get(YKHO, 'server_group_id')", "def X0Pd(YKHO) -> s...
[ "0.73427165", "0.73427165", "0.73427165", "0.73427165", "0.73427165", "0.69876325", "0.6983988", "0.6983988", "0.6983988", "0.68733096", "0.6859826", "0.6851451", "0.6851451", "0.6763318", "0.6753433", "0.6753433", "0.66997236", "0.669586", "0.6662794", "0.66586435", "0.66552...
0.6443876
24
The ID of security groups.
def fEOc(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'security_group_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fEOc(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'security_group_id')", "def fEOc(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'security_group_id')", "def hE03(YKHO):\n return YKHO._group_id", "def yvPJ(YKHO):\n return YKHO._get_attribute('groupId')", "def hE03(YKHO) -> str:\n ...
[ "0.7743672", "0.7743672", "0.7632281", "0.7580866", "0.7531346", "0.7531346", "0.74812835", "0.7478192", "0.73959905", "0.7362362", "0.7360916", "0.7360916", "0.7360916", "0.7351056", "0.73236954", "0.73236954", "0.7260449", "0.72264624", "0.72022164", "0.7192034", "0.7192034...
0.7518139
6
The ID of the networkbased server load balancer instance to be bound to the security group.
def _2LX(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'load_balancer_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X0Pd(YKHO) -> str:\n return qe4Y.get(YKHO, 'server_group_id')", "def X0Pd(YKHO) -> str:\n return qe4Y.get(YKHO, 'server_group_id')", "def X0Pd(YKHO) -> str:\n return qe4Y.get(YKHO, 'server_group_id')", "def X0Pd(YKHO) -> str:\n return qe4Y.get(YKHO, 'server_group_id')", "def X0Pd(YKHO) -> s...
[ "0.7342875", "0.7342875", "0.7342875", "0.7342875", "0.7342875", "0.698835", "0.6984296", "0.6984296", "0.6984296", "0.6872727", "0.68592566", "0.68520576", "0.68520576", "0.67638403", "0.675224", "0.675224", "0.6699795", "0.66962487", "0.66620827", "0.66590846", "0.6655892",...
0.64158833
27
The ID of security groups.
def fEOc(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'security_group_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fEOc(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'security_group_id')", "def fEOc(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'security_group_id')", "def hE03(YKHO):\n return YKHO._group_id", "def yvPJ(YKHO):\n return YKHO._get_attribute('groupId')", "def hE03(YKHO) -> str:\n ...
[ "0.77440894", "0.77440894", "0.7633787", "0.75825477", "0.75325567", "0.75325567", "0.7518354", "0.7518354", "0.7482658", "0.74793005", "0.7396722", "0.73635125", "0.73623574", "0.73623574", "0.73623574", "0.73519737", "0.72623885", "0.7228153", "0.72028923", "0.719253", "0.7...
0.73240703
17
Get an existing LoadBalancerSecurityGroupAttachment resource's state with the given name, id, and optional extra properties used to qualify the lookup.
def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, TJ_E: Optional[pulumi.Input[bool]]=None, _2LX: Optional[pulumi.Input[str]]=None, fEOc: Optional[pulumi.Input[str]]=None) -> 'LoadBalancerSecurityGroupAttachment': VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(Ro_8, kFeU: str, qIxc: LoadBalancerSecurityGroupAttachmentArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...", "def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, JBZA: Optional[pulumi.Input[str]]=None, XSoh: Optional[pulumi.Input[str]]=None, sYv3: Optional...
[ "0.546142", "0.51176965", "0.49208185", "0.49034777", "0.4692799", "0.46515423", "0.4498384", "0.4497912", "0.4484182", "0.44740218", "0.44481698", "0.43900678", "0.4364587", "0.43572864", "0.4319207", "0.4301624", "0.4286978", "0.4259763", "0.4259121", "0.4214977", "0.420692...
0.7673216
0
The ID of the networkbased server load balancer instance to be bound to the security group.
def _2LX(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'load_balancer_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X0Pd(YKHO) -> str:\n return qe4Y.get(YKHO, 'server_group_id')", "def X0Pd(YKHO) -> str:\n return qe4Y.get(YKHO, 'server_group_id')", "def X0Pd(YKHO) -> str:\n return qe4Y.get(YKHO, 'server_group_id')", "def X0Pd(YKHO) -> str:\n return qe4Y.get(YKHO, 'server_group_id')", "def X0Pd(YKHO) -> s...
[ "0.73427165", "0.73427165", "0.73427165", "0.73427165", "0.73427165", "0.69876325", "0.6983988", "0.6983988", "0.6983988", "0.68733096", "0.6859826", "0.6851451", "0.6851451", "0.6763318", "0.6753433", "0.6753433", "0.66997236", "0.669586", "0.6662794", "0.66586435", "0.66552...
0.65722746
22
The ID of security groups.
def fEOc(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'security_group_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hE03(YKHO):\n return YKHO._group_id", "def yvPJ(YKHO):\n return YKHO._get_attribute('groupId')", "def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')", "def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')", "def fEOc(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'securi...
[ "0.7632281", "0.7580866", "0.7531346", "0.7531346", "0.7518139", "0.7518139", "0.74812835", "0.7478192", "0.73959905", "0.7362362", "0.7360916", "0.7360916", "0.7360916", "0.7351056", "0.73236954", "0.73236954", "0.7260449", "0.72264624", "0.72022164", "0.7192034", "0.7192034...
0.7743672
1
Return the vertices of the cube at position x, y, z with size 2n.
def n1bS(WKvO, LVAh, epBp, jHsn, pvd3=None, WyJz=None): if pvd3 == None: pvd3 = jHsn if WyJz == None: WyJz = jHsn return [WKvO - jHsn, LVAh + pvd3, epBp - WyJz, WKvO - jHsn, LVAh + pvd3, epBp + WyJz, WKvO + jHsn, LVAh + pvd3, epBp + WyJz, WKvO + jHsn, LVAh + pvd3, epBp - WyJz, WKvO - jHsn, L...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n1bS(WKvO, LVAh, epBp, exwG):\n return [WKvO - exwG, LVAh + exwG, epBp - exwG, WKvO - exwG, LVAh + exwG, epBp + exwG, WKvO + exwG, LVAh + exwG, epBp + exwG, WKvO + exwG, LVAh + exwG, epBp - exwG, WKvO - exwG, LVAh - exwG, epBp - exwG, WKvO + exwG, LVAh - exwG, epBp - exwG, WKvO + exwG, LVAh - exwG, epBp + e...
[ "0.8873783", "0.83488077", "0.75490093", "0.71018445", "0.66022176", "0.6499646", "0.64149296", "0.6403246", "0.6398743", "0.6340307", "0.6240926", "0.62011635", "0.6196136", "0.61161953", "0.6094907", "0.60663515", "0.6062791", "0.6062572", "0.60084736", "0.5974178", "0.5919...
0.8402344
1
Obtain the os's release version string. For the last high sierra release, this function returns 10.13.6 (at the time of writing this)
def zb61() -> str: assert a9EH.system() == 'Darwin' fUpG, bGrB, bGrB = a9EH.mac_ver() return fUpG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZB9Y():\n if a9EH.linux_distribution()[0]:\n return ' '.join(a9EH.linux_distribution())\n elif a9EH.mac_ver()[0]:\n return '%s %s' % (a9EH.mac_ver()[0], a9EH.mac_ver()[2])\n else:\n return 'Unknown'", "def kaPv():\n iw9k = ['%(major)i.%(minor)i' % RoPu]\n if RoPu['micro']:...
[ "0.8392666", "0.77674997", "0.77383244", "0.75008404", "0.73628885", "0.730579", "0.72776353", "0.7215913", "0.71995384", "0.71902764", "0.7180848", "0.71615225", "0.71615225", "0.7130895", "0.7045702", "0.7043242", "0.70341873", "0.7030725", "0.70161045", "0.69966215", "0.69...
0.81737804
1
Subscribe to a specific MQTT topic.
def SY91(YKHO, rlUa): if rlUa not in YKHO.subscriptions: YKHO.subscriptions.append(rlUa) YKHO.mqtt.subscribe(rlUa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FxIp(YKHO, rlUa):\n G9jH.info('Subscribing to topic %s' % rlUa)\n try:\n YKHO.client.subscribe(rlUa)\n except Exception as error:\n print(P1dF)", "def FxIp(x0hE, k0m5):\n print()\n print('Subscribe')\n print('================================================')\n print()\n ...
[ "0.8374031", "0.828736", "0.81333816", "0.80884457", "0.79633814", "0.77499473", "0.7596453", "0.7596423", "0.7478305", "0.74282557", "0.7330425", "0.724999", "0.7210943", "0.7103714", "0.70520645", "0.7013076", "0.6958183", "0.6958183", "0.69235724", "0.691762", "0.68628395"...
0.8411156
0
Return a datetime object indicating when an authorization code should expire.
def yuoM(): return wzkt() + lWy2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ju4O():\n return rIAI.now() + qcWV.timedelta(days=Vmw8)", "def M0mH(YKHO):\n XTIS = qcWV.datetime.now(FXGE.utc) - qcWV.timedelta(minutes=6)\n sVH7 = None\n if 'TZ' in Hy7s.environ:\n sVH7 = Hy7s.environ['TZ']\n for mWFP in YKHO.tested_timezones:\n Hy7s.environ['TZ'] = mWFP\n ...
[ "0.71129316", "0.7071931", "0.67471975", "0.6700022", "0.6649452", "0.6605048", "0.6521947", "0.640346", "0.6306533", "0.6289284", "0.62882215", "0.62619996", "0.6260894", "0.6147417", "0.6147417", "0.6147417", "0.61424017", "0.61424017", "0.61386883", "0.6125367", "0.6124335...
0.7824756
1
Returns a timestamp in one of my preferred formats
def d65_(_Cnz='%y/%m/%db'): i8WE = '' wzkt = qcWV.datetime.now() i8WE = wzkt.strftime(_Cnz) return i8WE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def saqZ():\n HVay = ITS7.time()\n _PYT = repr(HVay).split('.')[1]\n return ITS7.strftime('%Y-%m-%d-%H-%M-%S-{}'.format(_PYT), ITS7.gmtime(HVay))", "def ItX3():\n return ITS7.strftime('%Y-%m-%d %H:%M:%S')", "def X2x9():\n return str(int(ITS7.time()))", "def E3oo():\n exwG = qcWV.datetime.no...
[ "0.8363499", "0.79354686", "0.7855838", "0.7770708", "0.77603644", "0.7713341", "0.768651", "0.7643031", "0.7639975", "0.7610456", "0.7571661", "0.756581", "0.75619483", "0.7516231", "0.74718523", "0.74280995", "0.7409781", "0.73994136", "0.7392119", "0.7376444", "0.7264482",...
0.6894501
60
Tests the fork transition to cancun and verifies that blocks with timestamp lower than the transition timestamp do not contain beacon roots in the predeployed contract.
def iLDB(jaeT: BlockchainTestFiller, M_Ra: Iterable[int], Gx10: Iterable[bytes], hiR7: int, UShr: Transaction, hfG3: int, TW9W: int, zbF3: int, moTL: Fork): rmyT: x1iM[n3Kt] = [] uv6v = {yzIq: tHSi(nonce=0, balance=16 ** 10), aqtx: tHSi(nonce=0, balance=zbF3)} m8z6 = {} AWPm: cuzp[int, int] = {} UpE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L3VM(YKHO):\n RESV = YKHO.BlockValidationHandler()\n tk5Y = YKHO.btm.chain_head\n ac0X = YKHO.btm.generate_chain(tk5Y, 5, {'add_to_store': True})\n YKHO.btm.set_chain_head(ac0X[-1])\n c9u9 = YKHO.btm.generate_chain(tk5Y, 3, {'add_to_cache': True})\n ETK8 = YKHO.create_block_validator(c9u9[-1]...
[ "0.6835604", "0.6709285", "0.6534247", "0.63925785", "0.6390109", "0.628087", "0.6124429", "0.59462124", "0.5911869", "0.59018064", "0.57529706", "0.56667817", "0.56319594", "0.5611936", "0.5567029", "0.5538642", "0.5500035", "0.5461819", "0.54379755", "0.54354244", "0.543248...
0.7294012
0
Whether the vocabulary object contains unknown token.
def yphF(YKHO) -> bool: return hasattr(YKHO, 'unk_token')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n9YZ(YKHO, yzQ0):\n return yzQ0 not in YKHO._vocab", "def n9YZ(YKHO, yzQ0):\n return not yzQ0 in YKHO.word_tags", "def acEf(YKHO, eOtH: str) -> bool:\n return YKHO.stoi[eOtH] == GRGu", "def rb7J(YKHO, eOtH):\n return YKHO.svecs.vocab.unit2id(eOtH.text) != zxQc", "def m6og(YKHO, eOtH):\n ...
[ "0.79112726", "0.7344161", "0.73379266", "0.70160186", "0.6824428", "0.652761", "0.6522024", "0.65029424", "0.6263026", "0.6225636", "0.61785907", "0.6157094", "0.61336434", "0.6117714", "0.609886", "0.60597897", "0.60524917", "0.6029149", "0.60136616", "0.5971105", "0.594059...
0.76670086
1
Return all tokens in the vocabulary
def b1nX(YKHO) -> x1iM[eA6S]: return YKHO._all_tokens
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mdL3(YKHO):\n V22M = set([])\n for eOtH in YKHO.tokens:\n V22M.add(eOtH.text)\n return V22M", "def s2mk(YKHO):\n H0of = list(Hs6x.chain.from_iterable(list(YKHO.term_to_tokens.values())))\n s2mk = set(list(Hs6x.chain.from_iterable([dFss(WKvO) for WKvO in H0of])))\n return list(s2mk)",...
[ "0.750281", "0.7367667", "0.72787", "0.71800387", "0.7034579", "0.7023828", "0.7015587", "0.69639444", "0.6911982", "0.68993217", "0.6803537", "0.67748314", "0.6728561", "0.67190874", "0.66917133", "0.66817766", "0.6653142", "0.66489226", "0.66356343", "0.6611604", "0.6584472...
0.6858298
10
Return all special tokens. We will order the tokens in ascending order of their index in the vocabulary.
def Nd03(YKHO) -> x1iM[eA6S]: return list(YKHO._special_token_kv.values())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JtYk(YKHO) -> x1iM[eA6S]:\n return YKHO._non_special_tokens", "def Nd03(YKHO):\n if YKHO.tokenizer.bos_token is None or YKHO.tokenizer.eos_token is None:\n Nd03 = YKHO.tokenizer.build_inputs_with_special_tokens([])\n Vdmd = YKHO.tokenizer.convert_ids_to_tokens(Nd03)\n YKHO.tokenize...
[ "0.7039891", "0.6846782", "0.6770642", "0.66651493", "0.6584356", "0.64719206", "0.6459232", "0.63705206", "0.6350056", "0.62986463", "0.6249921", "0.62499136", "0.62344337", "0.6198053", "0.61699927", "0.61505914", "0.61368257", "0.60924953", "0.60666966", "0.60457844", "0.6...
0.7326978
0
Save vocab to a json file
def xkzz(YKHO, pmON: str): with open(pmON, 'w', encoding='utf-8') as eHNT: eHNT.write(YKHO.to_json())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _oce(CtWL: Mapping, pmON: str):\n with open(pmON, 'w') as yvT9:\n qQXR.dump(CtWL, yvT9, indent=4, ensure_ascii=False)\n bo34.info('Vocabulary saved to \"%s\"', pmON)", "def qyhb(pmON, CtWL):\n print('saving vocabulary..')\n with open(pmON, 'wb') as nVrR:\n t2lc.dump(CtWL, nVrR, ...
[ "0.83514005", "0.7377576", "0.7295344", "0.72298986", "0.717441", "0.7142687", "0.70883834", "0.70735407", "0.7052904", "0.70333594", "0.6988464", "0.6962908", "0.6936691", "0.6909437", "0.6888645", "0.68124187", "0.6801077", "0.6794325", "0.67926145", "0.6779074", "0.6706982...
0.6535812
31
Deserialize Vocab object from json string.
def pktP(Emd4, nMY2: Union[str, bytes, bytearray]) -> 'Vocab': ABWP = qQXR.loads(nMY2) b1nX = ABWP.get('all_tokens') XgVN = ABWP.get('special_token_key_value') if 'unk_token' not in XgVN: XgVN['unk_token'] = None CtWL = Emd4(tokens=b1nX, **XgVN) return CtWL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tyeH(Emd4, pmON: str) -> 'Vocab':\n with open(pmON, 'r', encoding='utf-8') as eHNT:\n return Emd4.from_json(eHNT.read())", "def d8Cb(pmON: str) -> cuzp:\n with open(pmON, encoding=PEHT) as pKvt:\n CtWL = qQXR.load(pKvt)\n bo34.info('Vocabulary (%d words) loaded from \"%s\"', len(Ct...
[ "0.7173083", "0.668347", "0.650829", "0.63165796", "0.6065334", "0.6063519", "0.5990888", "0.59594613", "0.59594613", "0.5954822", "0.5890248", "0.5879899", "0.58619064", "0.5845954", "0.5842915", "0.5812334", "0.5811191", "0.5798692", "0.5778903", "0.57689065", "0.5758348", ...
0.76268023
0
Set up temp dir for tests.
def FCbF(YKHO): YKHO.tmpdir = qf3c()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n YKHO.tmp = bxBA()", "def FCbF(YKHO):\n sTpg(qf3c())", "def FCbF(YKHO):\n sTpg(qf3c())", "def FCbF(YKHO):\n fYGm.safe_mkdir(parents=True)\n Hy7s.chdir(fYGm.as_posix())", "def FCbF(YKHO):\n YKHO._dir = gbPf.mkdtemp(prefix=f'miniwdl_test_{YKHO.id()}_')", "def FCbF(YKHO):\...
[ "0.85621893", "0.85323495", "0.85323495", "0.84824836", "0.822752", "0.800622", "0.800622", "0.800622", "0.800622", "0.800622", "0.800622", "0.800622", "0.7924256", "0.79109013", "0.7892626", "0.78910226", "0.78910226", "0.78802", "0.7863087", "0.7758026", "0.77026397", "0....
0.8510871
3
Computes the total betadivergence between the current model and X
def p1kx(YKHO, EcVT): return _UXP(EcVT, jGSX(YKHO.factors_), YKHO.beta).sum()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WgYu(YKHO, EcVT, SYxB=30, _hZ2=1.0, DyFO=False):\n if DyFO:\n oyIN.random.seed(DyFO)\n ywwl = len(EcVT)\n lWPh = EcVT[0].shape[1]\n YKHO.pi = oyIN.ones(YKHO.M) / YKHO.M\n YKHO.A = YKHO.random_normalised(YKHO.M, YKHO.M)\n YKHO.R = oyIN.ones((YKHO.M, YKHO.K)) / YKHO.K\n print('initial...
[ "0.6010553", "0.59003234", "0.5885263", "0.5864798", "0.5850909", "0.5836223", "0.583123", "0.58180946", "0.57133234", "0.5711843", "0.5691364", "0.5690785", "0.5688861", "0.56884557", "0.56648934", "0.56507367", "0.56498766", "0.56482095", "0.5642265", "0.564215", "0.5642111...
0.66416943
0
Return a theano expression representing the values of the probability density function of a Gaussian distribution.
def kzAT(mvm2, Rci7=0, NXpY=1): Rci7 = Kt_s.cast(Rci7, e89i.config.floatX) j9c6 = oyIN.sqrt(2 * O05v) j9c6 = Kt_s.cast(j9c6, e89i.config.floatX) di96 = 2 * NXpY ** 2 di96 = Kt_s.cast(di96, e89i.config.floatX) if isinstance(Rci7, Kt_s.TensorVariable) and Rci7.ndim == 0: Rci7 = Rci7.dimshu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IYu9(YKHO, WKvO: ndarray, yGTL: float, WTkW: float) -> gyIm:\n return 1 / (oyIN.sqrt(2 * oyIN.pi) * WTkW) * oyIN.exp(-oyIN.power((WKvO - yGTL) / WTkW, 2) / 2)", "def cXzr(WTkW, yGTL, pan_):\n pan_ = pan_.unsqueeze(1).expand_as(WTkW)\n U5bT = sH_5 * ht2j.exp(-0.5 * ((pan_ - yGTL) / WTkW) ** 2) / WTkW...
[ "0.66919905", "0.6420543", "0.6298254", "0.62599516", "0.6259948", "0.6258996", "0.623765", "0.622933", "0.6209275", "0.6208917", "0.61980474", "0.61487", "0.6146763", "0.614409", "0.6109643", "0.6081426", "0.6080182", "0.6070836", "0.606831", "0.6017283", "0.6004209", "0.5...
0.0
-1
Takes in data batch and converts them into a list of string which can be used with the tokenizer
def f1lq(YKHO, ITjR: Dict[str, List[str]]) -> AzJI[x1iM[cuzp[str, any]], x1iM[cuzp[str, any]]]: grkt = [] sA2A = [] HmSX = ITjR['emotion'] L0v_ = ITjR['target_utterance'] CfgM = ITjR['evidence_utterance'] DGVZ = ITjR['conversation_history'] for YRbF, (hqda, dVbK, anVO, R7yF) in enumerate(zip...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qC7z(YKHO, l5Ny: List[str]) -> x1iM[x1iM[str]]:\n return YKHO.bert_model.batch_tokenize([a1PO.strip() for a1PO in l5Ny])", "def QsnJ(WPdU):\n from keras.preprocessing.text import text_to_word_sequence\n return [text_to_word_sequence(Csk6) for Csk6 in WPdU]", "def bcTW(Wc9F: List[List[str]]) -> x1i...
[ "0.7208139", "0.7013935", "0.696271", "0.6869062", "0.6820232", "0.6726844", "0.67146254", "0.65960836", "0.6487902", "0.6487783", "0.64611316", "0.6421372", "0.63957703", "0.6395566", "0.6393505", "0.63099855", "0.6265244", "0.6253272", "0.6222397", "0.62041587", "0.6182174"...
0.0
-1
Test total succeed. The total endpoint must return a 200 response with the correct value and format.
def GJLV(JthF): bD7m = '/total' TBsA = {'numbers_to_add': list(range(10000001))} geh0 = JthF.post(bD7m, data=qQXR.dumps(TBsA), content_type='application/json') assert geh0.status_code == 200 assert geh0.json['total'] == 50000005000000
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cSu7(YKHO):\n Aofo = YKHO.test_client.total\n assert Aofo == 730", "def hekQ(YKHO):\n Lx3t = YKHO.create_product()\n Ylbp = YKHO.do_get_basket()\n YKHO.assertEqual(Ylbp.status_code, 200)\n D6xM = Ylbp.data['id']\n Ylbp = YKHO.do_add_to_basket(Lx3t.id)\n YKHO.assertEqual(Ylbp.status_co...
[ "0.7612096", "0.6695455", "0.6673443", "0.6637972", "0.6599978", "0.6532777", "0.64830923", "0.647706", "0.64246106", "0.6398337", "0.6378722", "0.6363609", "0.6298753", "0.6290472", "0.62796265", "0.6242873", "0.62353444", "0.62331647", "0.6220409", "0.61921155", "0.6106625"...
0.79709107
0
Called when the user specifies an intent for this skill
def E97p(McO3, cuiw): print('on_intent requestId=' + McO3['requestId'] + ', sessionId=' + cuiw['sessionId']) q8Qy = '' if 'intent' in McO3: E2VF = McO3['intent'] if 'name' in E2VF: q8Qy = E2VF['name'] if not q8Qy: return OnM0() elif q8Qy == 'Hello': return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E97p(McO3, cuiw):\n E2VF = McO3['intent']\n q8Qy = McO3['intent']['name']\n if q8Qy not in eduI:\n q8Qy = 'NullSkill'\n if q8Qy in eduI:\n try:\n return eduI[q8Qy].execute(E2VF, cuiw)\n except Exception as e:\n wVCK.print_exc()\n return srwk().r...
[ "0.7143966", "0.6956116", "0.6949057", "0.6905333", "0.68928874", "0.67641324", "0.6722764", "0.6720773", "0.67161995", "0.6699252", "0.6691263", "0.6670276", "0.6645522", "0.6642719", "0.6638686", "0.6607724", "0.6594981", "0.6575682", "0.6570076", "0.65620786", "0.65609014"...
0.6754843
6
Sets Employee's hourly rate to $12/hr, yay??
def C7TP(YKHO): YKHO.hourly_pay = 12.0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vkuh(YKHO, mVUw, mWFP):\n id = YKHO.find_employee_id(mWFP)\n if id in YKHO.clsf:\n YKHO.emp_dict[id][5] = '1'\n print('{}{}'.format(mWFP, ' was successfully changed to be an hourly employee'))\n YKHO.emp_dict[id][8] = mVUw\n YKHO.classification()\n return YKHO.emp_dict\...
[ "0.75306356", "0.621282", "0.60855335", "0.5900545", "0.5865899", "0.5847018", "0.57778937", "0.57048374", "0.5646585", "0.5628574", "0.5614078", "0.5592154", "0.55685514", "0.55386627", "0.5506698", "0.5467584", "0.54097223", "0.535622", "0.5272296", "0.5267107", "0.5267059"...
0.7080733
1
returns m/\bar{rho} NFW u, in (h^1 Mpc)^3 k in h Mpc^1, m in h^1 solarM this is the quantity typically used in the halo model
def P6bq(YKHO, G1Hx, r8hN, epBp): Aofo = YKHO.nfw(G1Hx, r8hN, epBp) * r8hN / YKHO.U.rho_m(epBp) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CgMC(C3ST: SingleRhNeutrinoModel):\n NArs = IqXB['rho0']\n G1Hx, Oa1e = (NArs['k'], NArs['g'])\n return c3R9(C3ST, G4iM, G1Hx, Oa1e)", "def VkFg(YKHO, A3Vt, an6U, MRrp, TaFo=1):\n WKvO = A3Vt / an6U\n Upvm = YKHO.h(WKvO)\n return 2 * MRrp * an6U ** 3 * Upvm", "def n6me(YKHO):\n return ...
[ "0.66373414", "0.6507643", "0.642449", "0.6378807", "0.62946695", "0.6209517", "0.6146879", "0.6095053", "0.6083181", "0.60777134", "0.6067047", "0.60475826", "0.6042166", "0.6042166", "0.60249335", "0.6013876", "0.59867364", "0.59810984", "0.5965133", "0.59392387", "0.584618...
0.5928654
20
returns m/\bar{rho} NFW u, in (h^1 Mpc)^3 k in h Mpc^1, m in h^1 solarM;
def P6bq(YKHO, G1Hx, r8hN, epBp): Aofo = YKHO.fGauss * YKHO.gauss(G1Hx, r8hN, epBp) Aofo += (1.0 - YKHO.fGauss) * YKHO.nfw(G1Hx, r8hN, epBp) Aofo *= r8hN / YKHO.U.rho_m(epBp) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CgMC(C3ST: SingleRhNeutrinoModel):\n NArs = IqXB['rho0']\n G1Hx, Oa1e = (NArs['k'], NArs['g'])\n return c3R9(C3ST, G4iM, G1Hx, Oa1e)", "def viKl(oZuG, q7In, exwG, r8hN):\n dq4L = 0\n bKCn = lambda WKvO: oyIN.math.factorial(WKvO)\n DDBf = abs(r8hN)\n for KCHu in range(0, (exwG - DDBf) / 2...
[ "0.6673219", "0.6395856", "0.6317373", "0.6268549", "0.62569344", "0.6247573", "0.6247455", "0.6246553", "0.62344164", "0.62344164", "0.6168778", "0.6154059", "0.6029608", "0.60269696", "0.60009253", "0.59865963", "0.5985771", "0.5965394", "0.5953154", "0.59515095", "0.594050...
0.5289578
83
k in h/Mpc, m is Mvir in Msun/h
def P6bq(YKHO, G1Hx, r8hN, epBp): jzdc = 1.0 / (1.0 + epBp) S7GL = YKHO.U.massRadiusConversion(r8hN, epBp, value=500.0, ref='m')[0] Aofo = YKHO.S500(YKHO.nu, S7GL, jzdc) Aofo *= YKHO.nfw(G1Hx, r8hN, epBp) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R7OK(YKHO):\n YKHO.k = -oyIN.array([YKHO.sth * YKHO.cphi, YKHO.sth * YKHO.sphi, YKHO.cth])\n return", "def klNZ(aPd6, r8hN, G1Hx):\n G7tI = r8hN + 2 * (aPd6 - 1)\n if G7tI % (G1Hx - 2) != 0:\n return 0\n KCHu = G7tI / (G1Hx - 2)\n if KCHu < 0:\n return 0\n return WBJv(KCHu,...
[ "0.6730707", "0.63835937", "0.6365519", "0.6344422", "0.62521005", "0.6228692", "0.62282133", "0.61856866", "0.61748505", "0.61626226", "0.6160388", "0.61267656", "0.60742086", "0.607171", "0.6043098", "0.60419714", "0.6014893", "0.6007557", "0.59815705", "0.5959177", "0.5955...
0.5589989
56
returns m/\bar{rho} NFW u, in (h^1 Mpc)^3 k in h Mpc^1, m in h^1 solarM
def P6bq(YKHO, G1Hx, r8hN, epBp): Aofo = (1.0 - YKHO.fb) * YKHO.ProfNFW.nfw(G1Hx, r8hN, epBp) Aofo += YKHO.fb * YKHO.ProfGasBattaglia16.rho3dFourierNorm(G1Hx, r8hN, epBp) Aofo *= r8hN / YKHO.U.rho_m(epBp) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CgMC(C3ST: SingleRhNeutrinoModel):\n NArs = IqXB['rho0']\n G1Hx, Oa1e = (NArs['k'], NArs['g'])\n return c3R9(C3ST, G4iM, G1Hx, Oa1e)", "def YCVx(YKHO):\n p37X = oyIN.zeros(YKHO.nzon)\n p37X[0] = 4.0 * oyIN.pi / 3.0 * (YKHO.r[0] ** 3 - YKHO.r_cen ** 3) * YKHO.rho[0]\n for YRbF in range(1, YK...
[ "0.67082757", "0.65345055", "0.64711136", "0.6436172", "0.631474", "0.6298702", "0.6295953", "0.6274748", "0.6274748", "0.6273432", "0.6240027", "0.622686", "0.62152815", "0.6170441", "0.6108529", "0.6069331", "0.6058582", "0.6058329", "0.60491705", "0.6045683", "0.6038263", ...
0.63828015
4
Return string representation of this feed.
def wHJl(YKHO): return '<{}(runs={})>'.format(YKHO.__class__.__name__, YKHO._runs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CZBi(YKHO):\n return YKHO.__repr__()", "def zAg0(YKHO):\n return '\\n\\n'.join((str(ZfUD) for ZfUD in YKHO._data))", "def gTzM(YKHO):\n return '\\n'.join((str(bTKY) for bTKY in YKHO))", "def Napc(YKHO):\n return str(YKHO)", "def gTzM(YKHO):\n return CgYo.pformat(YKHO.to_dict())", "def ...
[ "0.7538596", "0.73101604", "0.7297874", "0.72157216", "0.72111154", "0.72111154", "0.72111154", "0.72111154", "0.72111154", "0.72111154", "0.72111154", "0.72111154", "0.72111154", "0.72111154", "0.72111154", "0.72111154", "0.72111154", "0.72111154", "0.72111154", "0.72111154", ...
0.0
-1
Returns the main application to be tested.
def _NGx(YKHO): raise Exception('Not implemented.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SCWY(YKHO):\n if not x2Lt._test_app:\n P4t4 = YKHO.APP_CLASS()\n P4t4.run_tests()\n x2Lt._test_app = P4t4\n return x2Lt._test_app", "def SCWY():\n yield T5Hc()", "def vY7J():\n from space_rocks import main\n P4t4 = main({})\n from webtest import TestApp\n return Te...
[ "0.78910756", "0.7545599", "0.74508464", "0.7413478", "0.7320244", "0.72330904", "0.72200245", "0.71599865", "0.713418", "0.713418", "0.713418", "0.7096955", "0.70844454", "0.7077884", "0.70699376", "0.70542544", "0.7044784", "0.6990196", "0.6977425", "0.69707274", "0.6917002...
0.6351044
75
Returns a dataframe of raw trades based on the source XML fixture.
def xIr4(): nPrm = [['701', '1', '1000', '700', 'A1'], ['002', '1', '1000', '1170', 'B2'], ['103', '2', '500', '200', 'C3']] PxOp = ['CorrelationID', 'NumberOfTrades', 'Limit', 'Value', 'TradeID'] jQ3Z = rLdf.DataFrame(nPrm, columns=PxOp) return jQ3Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b2jn(TBXe):\n Z6lf = TBXe.mkdir('sub').join('trades_raw.xml')\n Z6lf.write('\\n <Trades>\\n <Trade CorrelationId=\"701\" NumberOfTrades=\"1\" Limit=\"1000\" TradeID=\"A1\">700</Trade>\\n <Trade CorrelationId=\"002\" NumberOfTrades=\"1\" Limit=\"1000\" TradeID=\"B2\">1170</Tra...
[ "0.5778518", "0.5771829", "0.5722982", "0.5687609", "0.5677517", "0.56374496", "0.56339145", "0.55680794", "0.5553383", "0.5542203", "0.55350494", "0.5525047", "0.54988015", "0.54988015", "0.5445149", "0.544135", "0.54066443", "0.53719723", "0.5323936", "0.5269707", "0.526908...
0.5807445
0
Returns a dataframe of aggregated trade values per correlationID, and sorted by correlationID
def gAEO(): nPrm = [['002', '1', '1000', '1170', 'Rejected'], ['103', '2', '500', '200', 'Pending'], ['701', '1', '1000', '700', 'Accepted']] PxOp = ['CorrelationID', 'NumberOfTrades', 'Limit', 'Value', 'State'] jQ3Z = rLdf.DataFrame(nPrm, columns=PxOp) jQ3Z[['NumberOfTrades', 'Limit', 'Value']] = jQ3Z[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xIr4():\n nPrm = [['701', '1', '1000', '700', 'A1'], ['002', '1', '1000', '1170', 'B2'], ['103', '2', '500', '200', 'C3']]\n PxOp = ['CorrelationID', 'NumberOfTrades', 'Limit', 'Value', 'TradeID']\n jQ3Z = rLdf.DataFrame(nPrm, columns=PxOp)\n return jQ3Z", "def wKtS(YKHO):\n J6Yr = []\n for...
[ "0.61010045", "0.5259381", "0.52467865", "0.5136408", "0.5124098", "0.5048721", "0.5023332", "0.4982975", "0.4934832", "0.49342114", "0.49334186", "0.49124008", "0.48919883", "0.48865193", "0.4883836", "0.48424757", "0.482324", "0.4823168", "0.4821243", "0.481718", "0.4810618...
0.64102864
0
Find and return the index of the smallest element in the list lst from index mark to the end of the list
def GUk7(yv6U, Bc7X): VrO2 = Bc7X for YRbF in range(Bc7X + 1, len(yv6U)): if yv6U[YRbF] < yv6U[VrO2]: VrO2 = YRbF return VrO2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UA9m(Emd4, yv6U: list) -> int:\n return yv6U.index(min(yv6U))", "def kc5j(IqQl):\n if len(IqQl) == 0:\n raise Exception('List must contain at least 1 element')\n ZSml = 0\n for YRbF in range(1, len(IqQl)):\n if IqQl[YRbF] < IqQl[ZSml]:\n ZSml = YRbF\n return ZSml", "...
[ "0.8619743", "0.80991226", "0.78542626", "0.78494334", "0.7814266", "0.77153206", "0.75765234", "0.7353515", "0.7342518", "0.7308734", "0.72728324", "0.72488886", "0.72291446", "0.7223527", "0.71616757", "0.70814884", "0.70573384", "0.7030621", "0.70269465", "0.7017176", "0.6...
0.8226597
1
Convert UTC date to this object time zone date.
def JDE9(YKHO, mbyn): doIl = qcWV.datetime.strptime(mbyn, '%Y-%m-%d %H:%M:%S') doIl = doIl.replace(tzinfo=FXGE.timezone('UTC')) return doIl.astimezone(FXGE.timezone(YKHO.time_zone))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IFrW(YKHO, _c1T):\n if _c1T.tzinfo is not None:\n _c1T = _c1T.astimezone(YKHO.tz_utc)\n else:\n _c1T = _c1T.replace(tzinfo=YKHO.tz_local)\n _c1T = _c1T.astimezone(YKHO.tz_utc)\n return _c1T", "def W8tu(YKHO, JRYC):\n if JRYC.tzinfo is None:\n return JRYC.replace(tzinfo...
[ "0.7541379", "0.69253606", "0.6611435", "0.65502506", "0.6454392", "0.64516985", "0.64355373", "0.63572055", "0.63364786", "0.6327304", "0.6292617", "0.62342685", "0.62261796", "0.62261796", "0.6108013", "0.6078992", "0.6072663", "0.6052111", "0.6012245", "0.59902775", "0.595...
0.6824159
2
Sets the learning rate to the initial LR decayed by 2 every 10 epochs
def e_63(K0do, qtWj): tspZ = bdbA.lr * 0.5 ** (qtWj // 10) for Lwm5 in K0do.param_groups: Lwm5['lr'] = tspZ return tspZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(DJmW, K0do, qtWj, exwG=100):\n DJmW = DJmW * 0.1 ** (qtWj // exwG)\n print('learning rate : ', DJmW)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = DJmW", "def sIgb(YKHO):\n if YKHO.FLAGS.learning_rate_decay is 'exponential':\n YKHO.learning_rate = ZylS.train.exponential_decay...
[ "0.77773243", "0.76951116", "0.7578788", "0.7578788", "0.75534767", "0.7549098", "0.7514408", "0.7481551", "0.74784285", "0.7475653", "0.7474739", "0.7462785", "0.7442967", "0.7439903", "0.74324113", "0.74231493", "0.74153376", "0.73925936", "0.7392306", "0.73764914", "0.7374...
0.73955023
17
This is the default landing page view. Currently, this page serves the index.html file
def kZiy(QePW): return SGJU('index.html', locals(), context_instance=K1Ja(QePW))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hXw_():\n return TvZl('index.html')", "def d6pt():\n fyvm = 'Home'\n return TvZl('index.html', page_title=fyvm)", "def XkU1():\n return TvZl('index.html')", "def hXw_(QePW):\n return _1tc(QePW, 'index.html')", "def F_xU():\n return TvZl('index.html', token=iCQW.token)", "def F_xU():...
[ "0.86295754", "0.86257255", "0.86013514", "0.834858", "0.8049384", "0.8049384", "0.8000618", "0.7962526", "0.7949234", "0.79462713", "0.7939442", "0.79247427", "0.790521", "0.78953356", "0.78914285", "0.78914285", "0.78914285", "0.78914285", "0.7882967", "0.7882161", "0.78821...
0.7656059
80
Mocks tzlocal.get_localzone method to always return a given timezone. This should be used in combination with mock_datetime_utc in order to achieve consistent test results accross timezones if datetime.now, datetime.today or date.today functions are used.
def nv4a(tAkU): def mrMx(JfyU): @xBlr.wraps(JfyU) def h3Xc(*qIxc, **B2fa): with TMAJ.patch('tzlocal.get_localzone', lambda: FXGE.timezone(tAkU)): return JfyU(*qIxc, **B2fa) return h3Xc return mrMx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AoBD() -> gMlj | K26Q:\n return gGKP()", "def VhwS():\n return T3H1()", "def gAAz(Ehsq):\n blq2 = qcWV.datetime(year=2020, month=1, day=1, hour=1, minute=23, second=45, tzinfo=qcWV.timezone(qcWV.timedelta(hours=8))).astimezone(qcWV.timezone.utc).replace(tzinfo=None)\n\n class mock_datetime:\n\n...
[ "0.767215", "0.6827554", "0.6823573", "0.6793684", "0.6588038", "0.6518813", "0.6448142", "0.63976616", "0.6321687", "0.6308733", "0.62399197", "0.62374806", "0.6209231", "0.6150779", "0.6131", "0.6104499", "0.6075726", "0.6070143", "0.6065056", "0.6063356", "0.59859264", "...
0.78626734
0
returns only the highlighted part of an image (the corners)
def SZFh(LNo8, HjHK, lRRB=False): VvYE = iwOW(HjHK) GPIy, yKIT, mpiO, Rzz_ = VvYE W_4F = oyIN.sqrt((Rzz_[0] - mpiO[0]) ** 2 + (Rzz_[1] - mpiO[1]) ** 2) yuHe = oyIN.sqrt((yKIT[0] - GPIy[0]) ** 2 + (yKIT[1] - GPIy[1]) ** 2) TVTK = max(int(W_4F), int(yuHe)) ZU_B = oyIN.sqrt((yKIT[0] - Rzz_[0]) ** 2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IzrS():\n LNo8 = oyIN.array(dx6V.grab(bbox=None))\n LNo8 = XC5k.cvtColor(LNo8, XC5k.COLOR_BGR2RGB)\n Mkmy = XC5k.selectROI(windowName='grab roi', img=LNo8, showCrosshair=True, fromCenter=False)\n XC5k.destroyAllWindows()\n return (Mkmy[0], Mkmy[1], Mkmy[0] + Mkmy[2], Mkmy[1] + Mkmy[3])", "def ...
[ "0.7138192", "0.67586946", "0.6520307", "0.65005773", "0.64806086", "0.64562535", "0.6278952", "0.6248135", "0.61992073", "0.61782306", "0.6154352", "0.6111687", "0.610783", "0.59886664", "0.5985584", "0.59830564", "0.5904434", "0.5901648", "0.58626455", "0.585533", "0.585521...
0.0
-1
Returns an image of predicted outputs as a numpycompatible RGBA image drawn by pyplot.
def _1tc(YKHO): if YKHO.viz_count == 0: return None if YKHO.score is None or YKHO.true is None: return None raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gKSv(EcVT, fuBA, C3ST, U_CL):\n Crrw = {0: 'CNV', 1: 'DME', 2: 'DRUSEN', 3: 'NORMAL'}\n gdae = oyIN.argmax(C3ST.predict(EcVT), axis=1)\n oljl = oyIN.argmax(fuBA, axis=1)\n LZpg = QrM1.figure(figsize=(40, 40))\n for YRbF in range(EcVT.shape[0]):\n aNZO = LZpg.add_subplot(8, 4, YRbF + 1, xt...
[ "0.65860564", "0.64521635", "0.6374251", "0.634283", "0.63131857", "0.6272352", "0.6176042", "0.6167487", "0.60962284", "0.6066515", "0.606407", "0.6059084", "0.6058075", "0.60558665", "0.6047777", "0.6044423", "0.6043372", "0.6033484", "0.60326254", "0.6019439", "0.6016603",...
0.0
-1
Returns the logged metadata of predicted samples. The returned object is a printfriendly CSV string that can be consumed directly by tensorboardX. Note that this string might be very long if the dataset is large (i.e. it will contain one line per sample).
def exb9(YKHO): if isinstance(YKHO.report_count, int) and YKHO.report_count <= 0: return None if YKHO.score is None or YKHO.true is None: return None tMMy = list(zip(*[(*tMMy,) for qaim in zip(YKHO.score, YKHO.true, *YKHO.meta.values()) for tMMy in zip(*qaim)])) s02j = {H5ew: oyIN.stack(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SRLL(YKHO):\n wUtR = _E8J.TensorMetadataT()\n wUtR.name = 'probability'\n wUtR.description = 'Probabilities of labels respectively.'\n wUtR.content = _E8J.ContentT()\n wUtR.content.contentProperties = _E8J.FeaturePropertiesT()\n wUtR.content.contentPropertiesType = _E8J.ContentProperties.Feat...
[ "0.5834738", "0.57164174", "0.56615436", "0.5616995", "0.5557594", "0.54530454", "0.54390574", "0.53697175", "0.53598404", "0.5332521", "0.52831185", "0.5278518", "0.52385634", "0.5189983", "0.5189983", "0.5182777", "0.51758295", "0.5167602", "0.5143274", "0.5104207", "0.5103...
0.5940078
0
Returns an image of predicted outputs as a numpycompatible RGBA image drawn by pyplot.
def _1tc(YKHO): if YKHO.viz_count == 0: return None if YKHO.bbox is None or YKHO.true is None: return None raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gKSv(EcVT, fuBA, C3ST, U_CL):\n Crrw = {0: 'CNV', 1: 'DME', 2: 'DRUSEN', 3: 'NORMAL'}\n gdae = oyIN.argmax(C3ST.predict(EcVT), axis=1)\n oljl = oyIN.argmax(fuBA, axis=1)\n LZpg = QrM1.figure(figsize=(40, 40))\n for YRbF in range(EcVT.shape[0]):\n aNZO = LZpg.add_subplot(8, 4, YRbF + 1, xt...
[ "0.65860564", "0.64521635", "0.6374251", "0.634283", "0.63131857", "0.6272352", "0.6176042", "0.6167487", "0.60962284", "0.6066515", "0.606407", "0.6059084", "0.6058075", "0.60558665", "0.6047777", "0.6044423", "0.6043372", "0.6033484", "0.60326254", "0.6019439", "0.6016603",...
0.0
-1
List all students and all projects on our homepage.
def VI_d(): URWT = FWaO.list_all_students() jZxb = FWaO.list_all_projects() return TvZl('index.html', list_of_students=URWT, list_of_projects=jZxb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nIuK():\n KeZC = QePW.args.get('github', 'jhacks')\n cntZ, XVAW, KeZC = FWaO.get_student_by_github(KeZC)\n usx6 = FWaO.list_projects(KeZC)\n return TvZl('student_info.html', first=cntZ, last=XVAW, github=KeZC, rows=usx6)", "def nIuK():\n KeZC = QePW.args.get('github')\n cntZ, XVAW, KeZC = F...
[ "0.7070546", "0.6676508", "0.6654367", "0.6498606", "0.64953345", "0.6471412", "0.64280254", "0.64266616", "0.6425675", "0.6414757", "0.638111", "0.6350635", "0.63491935", "0.63327575", "0.62987524", "0.6278512", "0.6262569", "0.6247666", "0.62269753", "0.621596", "0.619945",...
0.7273482
0
This test creates an actor that requires 5 GPUs but a ray cluster only has 3 GPUs. As a result, the new actor should be an infeasible actor.
def Lsp0(nYEL): KYrJ = spHt.init(num_gpus=3) @spHt.remote(num_gpus=5) class ActorRequiringGPU: def FIMM(YKHO): pass zrYH.remote() def YEGx(siUU): assert aqWs(KYrJ['webui_url']) is True F1rV = siUU['webui_url'].replace('localhost', 'http://127.0.0.1') IK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E3ua(AbKc):\n hKn5 = AbKc\n assert spHt.global_state.cluster_resources()['CPU'] == 1\n Ziit = []\n Ziit += [hKn5.add_node(num_cpus=1)]\n hKn5.wait_for_nodes()\n assert spHt.global_state.cluster_resources()['CPU'] == 2\n hKn5.remove_node(Ziit.pop())\n hKn5.wait_for_nodes()\n assert sp...
[ "0.6123032", "0.6010467", "0.59911865", "0.5829238", "0.58127546", "0.57744557", "0.5750235", "0.5734631", "0.5703786", "0.5687027", "0.5654953", "0.5629746", "0.5592201", "0.5573509", "0.5551739", "0.54915756", "0.5471529", "0.5463542", "0.54293156", "0.5409817", "0.53952813...
0.6746544
0
r"""relative flux density Calculates relative flux density as a function of depth on sapwood for n_points.
def TY4u(Mkmy, J_Es='beech', U_NH=U_NH, KR0Q=50): WKvO = oyIN.arange(KR0Q) / KR0Q * z6ca(Mkmy) XP5J = U_NH.get(J_Es) if XP5J is None: raise ValueError('Tree %s is unknown' % J_Es) return tRsi(WKvO, XP5J['a'], XP5J['b'], XP5J['c'], XP5J['d'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p6EJ(YKHO):\n wA3x = oyIN.array([0.0] + [r8hN.value for r8hN in YKHO.fraction])\n wA3x[0] = 100 - sum(wA3x)\n if (wA3x < 0).any():\n return uIGg\n akib = YKHO._volume(wA3x)\n InLe = oyIN.array([r8hN.density() for r8hN in [YKHO.base] + YKHO.material])\n return oyIN.sum(akib * InLe)", ...
[ "0.61976266", "0.60144377", "0.5963733", "0.59374833", "0.58586067", "0.5858405", "0.5777502", "0.57623994", "0.5751372", "0.5731435", "0.5715698", "0.5643061", "0.56421083", "0.5626534", "0.5584517", "0.55115795", "0.5504175", "0.5500328", "0.5500328", "0.5500328", "0.542161...
0.0
-1
Initializes default parameter values for the encoder. Returns None
def FIMM(YKHO) -> None: super().__init__()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v9P7(YKHO):\n _F6N = vUAY.set_default_encoder_parameters()\n YKHO.assertEqual(_F6N.res_spec, 0)\n YKHO.assertEqual(_F6N.cblockw_init, 64)\n YKHO.assertEqual(_F6N.cblockh_init, 64)\n YKHO.assertEqual(_F6N.numresolution, 6)\n YKHO.assertEqual(_F6N.subsampling_dx, 1)\n YKHO.assertEqual(_F6N.s...
[ "0.74038726", "0.716173", "0.7146137", "0.69677836", "0.69677836", "0.68111104", "0.672887", "0.6612878", "0.6507947", "0.650761", "0.6436175", "0.642368", "0.6423058", "0.63990235", "0.63988876", "0.63922864", "0.63705695", "0.63350815", "0.6304727", "0.62737197", "0.6259476...
0.0
-1
Returns the sparse adjacency matrix representation of the graph.
def fyP7(yvY1, Qubi=None, upAO='weight'): if Qubi is None: Qubi = yvY1.nodes() k0lF = jHsn.to_scipy_sparse_matrix(yvY1, nodelist=Qubi, weight=upAO, format='csr') return k0lF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MtyL(pNZh, xC3W=None, NPTA=False):\n if xC3W is not None and xC3W not in pNZh.es.attribute_names():\n raise ValueError('Attribute does not exists.')\n rdlD = []\n fvDH = []\n nPrm = []\n if xC3W is None:\n if NPTA:\n for D70y in pNZh.es():\n KCHu, a1PO = D...
[ "0.79956216", "0.7848298", "0.74139094", "0.7409523", "0.7194541", "0.70740765", "0.6913846", "0.6880426", "0.6861912", "0.6829117", "0.6816736", "0.6738131", "0.6696774", "0.6677157", "0.6672356", "0.6652502", "0.6605602", "0.6564061", "0.6502941", "0.64075285", "0.64060456"...
0.7287004
4
Checks if all nodes in the graph have the same degree.
def iv_I(yvY1): mghH = None for Q6kx in yvY1: Csk6 = yvY1.degree(Q6kx) if mghH is None: mghH = Csk6 if Csk6 != mghH: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S69I(YKHO, QdZT=True):\n if QdZT:\n YKHO.update_neighbors()\n for Q6kx in YKHO.nodes:\n if len(YKHO.nodes[Q6kx].neighbors) < 1:\n return False\n return True", "def UY2o(kRap, mC4V):\n OVXX = JQuP.DisjointSet(kRap + 1)\n for jzdc, Fg_i in mC4V:\n OVXX.union(jzdc,...
[ "0.6633008", "0.6627503", "0.6577281", "0.6560591", "0.64308995", "0.63779724", "0.63305813", "0.62754077", "0.6251572", "0.6209073", "0.6185977", "0.61850464", "0.6094061", "0.60878956", "0.6077984", "0.60523736", "0.6025214", "0.60081345", "0.5999158", "0.5977289", "0.59647...
0.6950751
0
The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for set and delete share operations.
def asis(YKHO, vYBr: Optional[int]=None, WbTE: Optional[int]=None, TQ8i: Optional[str]=None, qcki: Optional[str]=None, bbTi: Optional[str]=None, **B2fa: Any) -> None: KVtY = {401: lhwm, 404: llBy, 409: DKDz, 304: AVtL} KVtY.update(B2fa.pop('error_map', {}) or {}) kkzV = jxqF(B2fa.pop('headers', {}) or {}) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jhZx(YKHO, QpfX, weUZ, Rwel, _26P=None):\n na1r.debug('Create share from snapshot.')\n raise NotImplementedError()", "def jhZx(YKHO, QpfX, weUZ, Rwel, _26P=None):\n raise NotImplementedError()", "def nRpd(YKHO, dBuj, bNKA, weUZ, Rwel):\n TJdH = YKHO.snapshots_path % (dBuj, bNKA, weUZ)\n d7pR...
[ "0.61871386", "0.601539", "0.5783583", "0.5256084", "0.5247354", "0.52081096", "0.52055883", "0.51762706", "0.5101091", "0.5080062", "0.49975252", "0.49808952", "0.49700215", "0.49604815", "0.49498492", "0.4943164", "0.48975173", "0.48954412", "0.48908406", "0.4804097", "0.47...
0.44880354
50
The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for set and delete share operations.
def op4Y(YKHO, bZGZ: str, vYBr: Optional[int]=None, qcki: Optional[str]=None, bbTi: Optional[str]=None, **B2fa: Any) -> None: KVtY = {401: lhwm, 404: llBy, 409: DKDz, 304: AVtL} KVtY.update(B2fa.pop('error_map', {}) or {}) kkzV = jxqF(B2fa.pop('headers', {}) or {}) Vlb9 = jxqF(B2fa.pop('params', {}) or ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jhZx(YKHO, QpfX, weUZ, Rwel, _26P=None):\n na1r.debug('Create share from snapshot.')\n raise NotImplementedError()", "def jhZx(YKHO, QpfX, weUZ, Rwel, _26P=None):\n raise NotImplementedError()", "def nRpd(YKHO, dBuj, bNKA, weUZ, Rwel):\n TJdH = YKHO.snapshots_path % (dBuj, bNKA, weUZ)\n d7pR...
[ "0.61871386", "0.601539", "0.5783583", "0.5256084", "0.5247354", "0.52081096", "0.52055883", "0.51762706", "0.5101091", "0.5080062", "0.49975252", "0.49808952", "0.49700215", "0.49604815", "0.49498492", "0.4943164", "0.48975173", "0.48954412", "0.48908406", "0.4804097", "0.47...
0.45475793
42
The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for set and delete share operations.
def Nhed(YKHO, bZGZ: str, vYBr: Optional[int]=None, TQ8i: Optional[str]=None, qcki: Optional[str]=None, bbTi: Optional[str]=None, **B2fa: Any) -> None: KVtY = {401: lhwm, 404: llBy, 409: DKDz, 304: AVtL} KVtY.update(B2fa.pop('error_map', {}) or {}) kkzV = jxqF(B2fa.pop('headers', {}) or {}) Vlb9 = jxqF(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jhZx(YKHO, QpfX, weUZ, Rwel, _26P=None):\n na1r.debug('Create share from snapshot.')\n raise NotImplementedError()", "def jhZx(YKHO, QpfX, weUZ, Rwel, _26P=None):\n raise NotImplementedError()", "def nRpd(YKHO, dBuj, bNKA, weUZ, Rwel):\n TJdH = YKHO.snapshots_path % (dBuj, bNKA, weUZ)\n d7pR...
[ "0.6188829", "0.6017008", "0.5784338", "0.52578425", "0.52470434", "0.5208607", "0.5207883", "0.517937", "0.5104025", "0.5082991", "0.49967194", "0.49803632", "0.49691322", "0.49641374", "0.49516338", "0.49446803", "0.48976418", "0.48939413", "0.48901019", "0.4807963", "0.480...
0.0
-1
The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for set and delete share operations.
def PDFX(YKHO, bZGZ: str, vYBr: Optional[int]=None, qcki: Optional[str]=None, bbTi: Optional[str]=None, **B2fa: Any) -> None: KVtY = {401: lhwm, 404: llBy, 409: DKDz, 304: AVtL} KVtY.update(B2fa.pop('error_map', {}) or {}) kkzV = jxqF(B2fa.pop('headers', {}) or {}) Vlb9 = jxqF(B2fa.pop('params', {}) or ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jhZx(YKHO, QpfX, weUZ, Rwel, _26P=None):\n na1r.debug('Create share from snapshot.')\n raise NotImplementedError()", "def jhZx(YKHO, QpfX, weUZ, Rwel, _26P=None):\n raise NotImplementedError()", "def nRpd(YKHO, dBuj, bNKA, weUZ, Rwel):\n TJdH = YKHO.snapshots_path % (dBuj, bNKA, weUZ)\n d7pR...
[ "0.61883557", "0.6016588", "0.5783814", "0.52566516", "0.5247093", "0.52077585", "0.52076805", "0.51795596", "0.5103441", "0.508325", "0.49966487", "0.4980593", "0.49689177", "0.4963612", "0.49508286", "0.49444678", "0.48976633", "0.489371", "0.48896393", "0.48065212", "0.480...
0.0
-1
The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for set and delete share operations.
def owWl(YKHO, vYBr: Optional[int]=None, zOfM: Optional[int]=None, bbTi: Optional[str]=None, qcki: Optional[str]=None, HyFk: Optional[_models.LeaseAccessConditions]=None, **B2fa: Any) -> None: KVtY = {401: lhwm, 404: llBy, 409: DKDz, 304: AVtL} KVtY.update(B2fa.pop('error_map', {}) or {}) kkzV = jxqF(B2fa.p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jhZx(YKHO, QpfX, weUZ, Rwel, _26P=None):\n na1r.debug('Create share from snapshot.')\n raise NotImplementedError()", "def jhZx(YKHO, QpfX, weUZ, Rwel, _26P=None):\n raise NotImplementedError()", "def nRpd(YKHO, dBuj, bNKA, weUZ, Rwel):\n TJdH = YKHO.snapshots_path % (dBuj, bNKA, weUZ)\n d7pR...
[ "0.61871386", "0.601539", "0.5783583", "0.5256084", "0.5247354", "0.52081096", "0.52055883", "0.51762706", "0.5101091", "0.5080062", "0.49975252", "0.49808952", "0.49700215", "0.49604815", "0.49498492", "0.4943164", "0.48975173", "0.48954412", "0.48908406", "0.4804097", "0.47...
0.4453056
53
Creates a readonly snapshot of a share.
def nRpd(YKHO, vYBr: Optional[int]=None, yIVm: Optional[Dict[str, str]]=None, **B2fa: Any) -> None: KVtY = {401: lhwm, 404: llBy, 409: DKDz, 304: AVtL} KVtY.update(B2fa.pop('error_map', {}) or {}) kkzV = B2fa.pop('headers', {}) or {} Vlb9 = jxqF(B2fa.pop('params', {}) or {}) tWLc: GVaG['share'] = B2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jhZx(YKHO, QpfX, weUZ, Rwel, _26P=None):\n raise NotImplementedError()", "def jhZx(YKHO, QpfX, weUZ, Rwel, _26P=None):\n na1r.debug('Create share from snapshot.')\n raise NotImplementedError()", "def nRpd(YKHO, dBuj, bNKA, weUZ, Rwel):\n TJdH = YKHO.snapshots_path % (dBuj, bNKA, weUZ)\n d7pR...
[ "0.7511619", "0.74526864", "0.6764158", "0.63814574", "0.6179431", "0.5980372", "0.5909719", "0.589196", "0.5889177", "0.5826791", "0.5821345", "0.581773", "0.58102983", "0.575128", "0.57098496", "0.56648123", "0.5658212", "0.56572217", "0.5644493", "0.5643801", "0.56250477",...
0.5741952
14
Returns information about stored access policies specified on the share.
def YSlL(YKHO, vYBr: Optional[int]=None, HyFk: Optional[_models.LeaseAccessConditions]=None, **B2fa: Any) -> x1iM[QVOl.SignedIdentifier]: KVtY = {401: lhwm, 404: llBy, 409: DKDz, 304: AVtL} KVtY.update(B2fa.pop('error_map', {}) or {}) kkzV = B2fa.pop('headers', {}) or {} Vlb9 = jxqF(B2fa.pop('params', {...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BxXS(YKHO, **B2fa):\n YKHO.logger.debug(f'Get storage policies data')\n pB6H = 'storage/policies'\n TBsA = YKHO._make_body(B2fa)\n return YKHO._common_get(request_path=pB6H, parameters=TBsA)", "def som_(YKHO):\n return YKHO._data.get('policies')", "def CNcp():\n return GPtr.get_cfg_storag...
[ "0.64975715", "0.6202287", "0.6088962", "0.6055945", "0.60333073", "0.5976257", "0.5954372", "0.5872517", "0.5860681", "0.5825867", "0.58208674", "0.5734115", "0.5711419", "0.5660803", "0.55697274", "0.554634", "0.5483833", "0.5467413", "0.5454885", "0.5441872", "0.5420365", ...
0.5007907
53
Restores a previously deleted Share.
def wBIE(YKHO, vYBr: Optional[int]=None, bbTi: Optional[str]=None, jpPs: Optional[str]=None, igbJ: Optional[str]=None, **B2fa: Any) -> None: KVtY = {401: lhwm, 404: llBy, 409: DKDz, 304: AVtL} KVtY.update(B2fa.pop('error_map', {}) or {}) kkzV = B2fa.pop('headers', {}) or {} Vlb9 = jxqF(B2fa.pop('params'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kSdD(YKHO):\n gTEQ('PrlShare_Remove', YKHO.handle)", "def dFxE(bPH4):\n bPH4.store.query(HM6D, HM6D.sharedItem == bPH4).deleteFromStore()", "def wBIE(YKHO, wBIE):\n YKHO._restore = wBIE", "def wBIE(YKHO, aaD9):\n YKHO.state = aaD9.state", "def wBIE(YKHO, jSYO=True):\n YKHO.trashed_time =...
[ "0.61344075", "0.6020417", "0.58753854", "0.5853539", "0.56975937", "0.5587175", "0.55751413", "0.5552683", "0.55445635", "0.54615134", "0.5445456", "0.5425551", "0.5415905", "0.53820825", "0.5358996", "0.5357442", "0.5345663", "0.5336864", "0.5321774", "0.5313117", "0.529579...
0.5626421
5
Fills embedding tensor with values from the uniform distribution.
def qIlm(KTQ3): oug5 = oyIN.sqrt(3.0 / KTQ3.size(1)) ht2j.nn.init.uniform_(KTQ3, -oug5, oug5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qIlm(YKHO):\n YKHO.embedding.weight.data.uniform_(-1.0 / YKHO.num_embeddings, 1.0 / YKHO.num_embeddings)", "def qIlm(ZxnZ):\n oug5 = oyIN.sqrt(3.0 / ZxnZ.size(1))\n U78l.init.uniform_(ZxnZ, -oug5, oug5)", "def wD2I(YKHO):\n NpID = 0.5 / YKHO.embedding_dim\n YKHO.embeddings.weight.data.unifor...
[ "0.7096552", "0.6618988", "0.63789725", "0.6335723", "0.62645626", "0.6242119", "0.6096892", "0.60557204", "0.60557204", "0.60557204", "0.6035151", "0.60266924", "0.6005069", "0.5844181", "0.58416224", "0.5799808", "0.5763765", "0.5692445", "0.5691216", "0.5682685", "0.567943...
0.67710733
1
Creates an embedding tensor for the specified word map, for loading into the model.
def Uujk(iUwY, lhth): with open(iUwY, 'r') as eHNT: m_Zy = len(eHNT.readline().split(' ')) - 1 CtWL = set(lhth.keys()) KTQ3 = ht2j.FloatTensor(len(CtWL), m_Zy) qIlm(KTQ3) print('\nLoading embeddings...') for zFiD in open(iUwY, 'r'): zFiD = zFiD.split(' ') zyP8 = zFiD[0] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sapu(qbGl, _3lE):\n jXxl = len(_3lE) + 1\n P7sS = list(qbGl.keys())[0]\n m_Zy = qbGl[P7sS].shape[0]\n MJQx = oyIN.zeros((jXxl, m_Zy))\n for GIN8, or8S in _3lE.items():\n MJQx[or8S, :] = qbGl[GIN8]\n eFKZ = cimF.keras.layers.Embedding(input_dim=jXxl, output_dim=m_Zy, trainable=False)\n ...
[ "0.69939345", "0.68353546", "0.6767176", "0.6666082", "0.6590213", "0.640131", "0.6270218", "0.62354624", "0.6221567", "0.6180574", "0.61599755", "0.61579525", "0.6156663", "0.61205846", "0.6086447", "0.60282797", "0.60191345", "0.59850013", "0.5969723", "0.5914893", "0.58975...
0.7082288
0
Shrinks learning rate by a specified factor.
def e_63(K0do, xlR5): print('\nDECAYING learning rate.') for Lwm5 in K0do.param_groups: Lwm5['lr'] = Lwm5['lr'] * xlR5 print('The new learning rate is %f\n' % (K0do.param_groups[0]['lr'],))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ju7U(YKHO, GTZT):\n YKHO.ratio -= GTZT\n YKHO.ratio = max(YKHO.min_ratio, YKHO.ratio)", "def baEe(YKHO, aM8h):\n pass", "def e_63(K0do, juJS, qtWj):\n print('the learning rate is set to {0:.5f}'.format(juJS[qtWj] * qIxc.lr))\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = juJS[qtWj] *...
[ "0.62168515", "0.619375", "0.61274046", "0.60938746", "0.60843754", "0.60421985", "0.6032488", "0.6028106", "0.5960556", "0.58500165", "0.58346266", "0.583353", "0.58097494", "0.5782686", "0.5771088", "0.5768098", "0.57433003", "0.57389146", "0.5735855", "0.5721132", "0.57170...
0.7324321
0
Computes topk accuracy, from predicted and true labels.
def vjyh(cCrA, x6A0, G1Hx): Ep8u = x6A0.size(0) bGrB, QyVM = cCrA.topk(G1Hx, 1, True, True) gXXc = QyVM.eq(x6A0.view(-1, 1).expand_as(QyVM)) KSYo = gXXc.view(-1).float().sum() return KSYo.item() * (100.0 / Ep8u)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vjyh(hlel, pan_, hz5a=(1,)):\n Gq8e = max(hz5a)\n Ep8u = pan_.size(0)\n bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)\n nvEb = nvEb.t()\n gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))\n Ylbp = []\n for G1Hx in hz5a:\n R2Dg = gXXc[:G1Hx].view(-1).float().sum(0)\n Ylbp.append(...
[ "0.82267404", "0.8210251", "0.8148208", "0.81262386", "0.81234264", "0.809997", "0.8098824", "0.8095708", "0.8095708", "0.8095708", "0.8095708", "0.8095708", "0.8095708", "0.8095708", "0.8095708", "0.8095708", "0.8095708", "0.8095708", "0.8095708", "0.80920607", "0.80920607",...
0.0
-1
Computes the air density
def yqm7(XP5J, Pp4i): wqkw = 287.053 Ztxr = Pp4i * 1.0 if oyIN.nanmax(Ztxr) < 100: Ztxr += 273.15 if oyIN.nanmax(XP5J) < 2000: XP5J *= 100 oZuG = oyIN.divide(XP5J, oyIN.multiply(wqkw, Ztxr)) return oZuG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FmIP(YKHO):\n return YKHO.flow_field.air_density", "def CZ_D(YKHO) -> float:\n return YKHO.pressure / (odTN * YKHO.ambient_temperature)", "def FmIP(n_Ej):\n XP5J = CJ2p(n_Ej)\n a1PO = ovGo(n_Ej)\n oZuG = XP5J / (K6Rf * a1PO)\n return oZuG", "async def air_density(YKHO, ovGo, Lu2k):\n ...
[ "0.8088788", "0.7575788", "0.7532649", "0.70429206", "0.6925253", "0.6691889", "0.6489299", "0.64233905", "0.6404493", "0.634534", "0.6317666", "0.62641746", "0.624726", "0.6225272", "0.6224025", "0.61777043", "0.61749846", "0.6173771", "0.6144194", "0.61093634", "0.60729814"...
0.0
-1