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
A function wrapper for building a learning rate scheduler.
def Ai8u(K0do, hc6Z='single_step', xMdD=1, KMvS=0.1, hzfl=1): if hc6Z not in aTe1: raise ValueError('Unsupported scheduler: {}. Must be one of {}'.format(hc6Z, aTe1)) if hc6Z == 'single_step': if isinstance(xMdD, list): xMdD = xMdD[-1] if not isinstance(xMdD, int): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t8Q7(ONRr, K0do, lz7s=-1):\n hc6Z = None\n oHll = ONRr.name\n if oHll == 'constant_learning_rate':\n hc6Z = Seb7.Constant(K0do, last_step=lz7s)\n if oHll == 'exponential_decay_learning_rate':\n GPtr = ONRr\n hc6Z = Seb7.ExponentialDecay(K0do, GPtr.decay_steps, GPtr.decay_factor...
[ "0.7849696", "0.7779848", "0.7745376", "0.7688309", "0.7579843", "0.74913406", "0.74640185", "0.74192744", "0.73198134", "0.73039937", "0.72971547", "0.71846557", "0.7142559", "0.71160966", "0.7096039", "0.70351356", "0.7002144", "0.69859546", "0.6950903", "0.6946901", "0.689...
0.67938167
25
Guesses a colour, returns the default if no match is found
def qReb(re8H, KCHu): KCHu = str(KCHu).lower() mxlQ = NCls.query_int(re8H, "SELECT ID FROM basecolour WHERE LOWER(BaseColour) LIKE '%" + NCls.escape(KCHu) + "%'") if mxlQ != 0: return mxlQ return wOGa.default_colour(re8H)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pph3(TgwQ=None):\n if TgwQ:\n Z9rn = Acvy(xsP0(TgwQ))\n else:\n Z9rn = Acvy(THSG.values())\n return Z9rn", "def iMxJ(qfpW):\n return 'b' if qfpW == 'w' else 'w'", "def YgBL(_Cnz):\n for YSA3 in list(EqBn.keys()):\n r8hN = ZbWC.search(YSA3, _Cnz)\n if r8hN:\n ...
[ "0.6791012", "0.6592608", "0.6582971", "0.647639", "0.6476061", "0.6469066", "0.6398306", "0.6297382", "0.6289832", "0.6283404", "0.62643576", "0.62418836", "0.6221776", "0.6208019", "0.6178082", "0.6163309", "0.6141463", "0.6132341", "0.60855573", "0.6077534", "0.6070446", ...
0.7375512
0
Initialize a DaCeimplemented multihead attention PyTorch module.
def FIMM(YKHO, ywwl: int, V6IE: int, C7Ls: int, bipw: CompiledSDFG, MGvF: CompiledSDFG): super().__init__() class DaceMHAFunction(ht2j.autograd.Function): @staticmethod def KVH6(OaeV, T8ck, nMvt, cAlv, Tly_, cOe4, Fh5O, zXIu, Svh3, fKO0, lLAx, uhdp, Y5YY): tjUW, UVWC, ywwl = T8ck.s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, prkQ, hfjP):\n super(io5z, YKHO).__init__()\n assert hfjP % prkQ == 0\n YKHO.d_head = hfjP // prkQ\n YKHO.nheads = prkQ\n YKHO.Q_fc = U78l.Linear(hfjP, hfjP, bias=False)\n YKHO.K_fc = U78l.Linear(hfjP, hfjP, bias=False)\n YKHO.V_fc = U78l.Linear(hfjP, hfjP, bias=False)\n YKHO...
[ "0.7738021", "0.7225716", "0.7188873", "0.71433127", "0.6949075", "0.6805467", "0.67051935", "0.66981596", "0.66740984", "0.66501826", "0.65999836", "0.65987265", "0.65954155", "0.6575898", "0.65744156", "0.6553042", "0.652043", "0.64934283", "0.6457721", "0.64190143", "0.640...
0.0
-1
Returns seconds which is time scale. If interval is a number or None then it will be returned as is.
def eckt(VOlW): if type(VOlW) is str: rJBd = VOlW.split(' ') try: C6wh = int(rJBd[0]) * tnKw[rJBd[1]] except KeyError: raise ValueError('Valid time scales are: {}'.format(list(tnKw.keys()))) except ValueError: raise ValueError("\n In...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zlOR(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'interval_in_seconds')", "def zlOR(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'interval_in_seconds')", "def C6wh(input=None):\n return int(NMoC(input))", "def h9O2(YKHO):\n YKHO.assert_interval_to_seconds(0, '0s', '0sec...
[ "0.7456817", "0.7456817", "0.6764808", "0.6740406", "0.65838325", "0.65742934", "0.6473396", "0.6360262", "0.6293837", "0.6252214", "0.6231419", "0.61289465", "0.611509", "0.60646194", "0.6055807", "0.6055807", "0.6032851", "0.59701806", "0.5958458", "0.5955375", "0.5934544",...
0.85071343
0
Create a product from the json data returned from the Product Search API.
def AfKp(Zge1, Ylbp): wK1B = {WKvO.key: WKvO.value for WKvO in Ylbp.product_labels} return UAoi.Product(Zge1, Ylbp.name.split('/')[-1], Ylbp.product_category, Ylbp.display_name, wK1B, Ylbp.name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SnVS():\n qm8v = BFCm(PSrQ.MONGO_URI)\n im5W = qm8v.db.product\n nPrm = QePW.get_json(force=True) or {}\n if 'title' not in nPrm or 'description' not in nPrm or 'params' not in nPrm:\n return _ef9(a1PO['empty_field'])\n CPe3 = msfn()\n if msfn.params_is_valid(nPrm):\n CPe3.save_...
[ "0.7498883", "0.70483845", "0.70462334", "0.7044836", "0.701214", "0.6864494", "0.67393345", "0.6659015", "0.66534173", "0.66290975", "0.6561353", "0.6543359", "0.6532279", "0.6494103", "0.64888674", "0.64522445", "0.63930166", "0.6344582", "0.6324028", "0.62965256", "0.62424...
0.74443066
1
Get last time this product set was indexed. If the index time is earlier than the time you last added a product, it will not appear in search results until the Product Set reindexes.
def sjVE(YKHO): A8qo = YKHO.productSearch.productClient.get_product_set(name=YKHO.productSetPath) return A8qo.index_time
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ITS7(YKHO):\n return YKHO._idx", "def ITS7(YKHO):\n U5bT = YKHO._iamcache.get('time')\n if U5bT is None:\n U5bT = YKHO._iamcache['time'] = YKHO.index[YKHO].unique(level=YKHO.time_col).rename('time')\n return U5bT", "def lXrJ(YKHO) -> qcWV.datetime:\n with YKHO.lock:\n return YK...
[ "0.66522974", "0.6182011", "0.6089155", "0.6050553", "0.5941267", "0.5927229", "0.59171355", "0.58857304", "0.5860285", "0.58460665", "0.5834782", "0.5805024", "0.5805018", "0.58038545", "0.57632357", "0.57454723", "0.57153594", "0.5638861", "0.5636076", "0.5619813", "0.56198...
0.8193868
0
Outputs A modified so that i roots as heap Running time O(log n) where n = len(A) i
def oRZo(YKHO, k0lF, YRbF): LFlW = 2 * YRbF + 1 _tIi = 2 * YRbF + 2 CjUr = YRbF if LFlW < len(k0lF) and k0lF[LFlW] > k0lF[CjUr]: CjUr = LFlW if _tIi < len(k0lF) and k0lF[_tIi] > k0lF[CjUr]: CjUr = _tIi if CjUr != YRbF: k0lF[YRbF], k0lF[CjUr] = (k0lF[CjUr], k0lF[YRbF]) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GUTP(k0lF):\n exwG = len(k0lF)\n for YRbF in range(exwG / 2 - 1, -1, -1):\n QZno(k0lF, YRbF, exwG)", "def Npt8(YKHO, k0lF: list):\n YKHO.size = len(k0lF)\n usD_ = YKHO.size // 2 - 1\n for YRbF in range(0, usD_ + 1):\n YKHO.heapify(k0lF, usD_ - YRbF)", "def qMzV(k0lF):\n GUTP...
[ "0.79016423", "0.7454378", "0.7124237", "0.7110272", "0.7069974", "0.6971415", "0.69335365", "0.68902016", "0.6851346", "0.6814442", "0.6814442", "0.68043345", "0.67402476", "0.66724306", "0.6638959", "0.6593657", "0.6581417", "0.65676486", "0.6556157", "0.6555345", "0.652151...
0.62143147
40
Find the unique elements of an array. Returns the sorted unique elements of an array. There are two optional
def kcwm(qw7D, oQ6S=True, bv8v='heapsort', CdJ6=None): try: qw7D = qw7D.flatten() except AttributeError: qw7D = XTiz.asanyarray(qw7D).flatten() if qw7D.size == 0: return (qw7D, XTiz.empty(0, XTiz.bool)) if CdJ6 is None: CdJ6 = lambda jzdc, Fg_i: jzdc == Fg_i IuXB = qw...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XcUH(VosJ):\n yp4p = VosJ.copy()\n P6bq = []\n for YRbF in range(yp4p.shape[0]):\n for r845 in range(yp4p.shape[1]):\n if yp4p[YRbF][r845] not in P6bq:\n P6bq.append(yp4p[YRbF][r845])\n return sorted(P6bq)", "def Gat1(qw7D):\n SUko = []\n for U6D_ in qw7D:\n...
[ "0.7895159", "0.77486396", "0.76251596", "0.7546038", "0.72094685", "0.70403975", "0.6956301", "0.67612815", "0.67004484", "0.6602756", "0.6551391", "0.6526171", "0.6505714", "0.65007806", "0.64474136", "0.6394503", "0.6385466", "0.6381785", "0.6340869", "0.6312722", "0.62444...
0.6896009
7
Generate a resampled dataset. The locations of the resampled points are uniformly distributed over the range specified in `dataset_bounds`, which defaults to the range of dataset values supplied.
def VsGh(YKHO, pUuX, tB9_=None, VVyp=0): if tB9_ is None: tB9_ = YKHO.dataset_bounds lmMt = XTiz.linspace(tB9_[0], tB9_[1], pUuX) ri1m = super(vmyK, YKHO).__call__(x=lmMt, nu=VVyp) return (lmMt, ri1m)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aOm0(__n6: Dataset, U6hl: float, AHhF: object='auto', Pivv: Optional[rio_warp.Resampling]=bCsp.Resampling.nearest, NxeH: Optional[np.dtype]=oyIN.float32) -> x3i3:\n if __n6.meta['resolution'][0] != __n6.meta['resolution'][1]:\n raise RuntimeError(\"Tried to resample a dataset that doesn't have a squa...
[ "0.6177836", "0.5973422", "0.573592", "0.5733487", "0.56775", "0.5676367", "0.5605578", "0.56042117", "0.55405045", "0.5480263", "0.54776436", "0.5419227", "0.53671426", "0.533729", "0.53324777", "0.5328067", "0.5327083", "0.5310376", "0.5303807", "0.52804357", "0.5250357", ...
0.79123914
0
Is the user allowed to view the preview? Users are only allowed to view the preview if they are authenticated, active and staff.
def yg9t(CBIr): if CBIr.is_authenticated and CBIr.is_active and CBIr.is_staff: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KKMP(YKHO, CBIr):\n return True", "def eTnD(YKHO, CBIr):\n return True", "def gGgH(YKHO, CBIr):\n return CBIr.is_staff", "def vTrZ(YKHO, GQfX, gCuF, c5pa, pftI):\n return True", "def TOhj(YKHO, CBIr):\n return True", "def VYL7(YKHO, **SGPK):\n if not hasattr(YKHO, '_is_previewable')...
[ "0.7940508", "0.7478894", "0.7212289", "0.72064805", "0.71978396", "0.7196774", "0.71805835", "0.71690965", "0.71659327", "0.7146282", "0.71011174", "0.7052857", "0.7052857", "0.7052857", "0.70442736", "0.70260257", "0.70224893", "0.7004919", "0.69929826", "0.6981269", "0.691...
0.9033856
0
foldr(function, start, iterable) > object Like foldl, but starts from the end of the iterable and works back toward the beginning. For example, foldr(subtract, 0, [1, 2, 3]) == 2, but foldl(subtract, 0, [1, 2, 3] == 6 foldr(add, 0, [1, 2, 3]) is equivalent to add(1, add(2, add(3, 0)))
def puMP(JfyU, yKcO, WRKq): return nN1C(JfyU, yKcO, iter(WRKq))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ftYn(JfyU, yKcO, WRKq):\n return e96o(JfyU, yKcO, iter(WRKq))", "def puMP(QZnA, FYKK, epBp):\n \"\"\"*** YOUR CODE HERE ***\"\"\"", "def P1lf(YKHO):\n YKHO.assertEqual(Hms_._foldr(seET.sub, 0, [1, 2, 3, 4]), -2)\n\n def eoP2(vC9B, WKvO):\n vC9B.insert(0, WKvO)\n return vC9B\n Y...
[ "0.67027456", "0.63476676", "0.6247557", "0.6058404", "0.5948072", "0.56335634", "0.55745715", "0.5551692", "0.49912998", "0.49440706", "0.48623773", "0.48449233", "0.48414975", "0.48338562", "0.4824202", "0.4808052", "0.4808052", "0.4808052", "0.4808052", "0.4808052", "0.478...
0.7946261
0
Return the version as a Python package version string.
def zvqz(): IJ4N, cbKy, KrIv, Po4F, TZ9E, Jdap = RoPu DpZH = '%s.%s' % (IJ4N, cbKy) if KrIv or Po4F: DpZH += '.%s' % KrIv if Po4F: DpZH += '.%s' % Po4F if TZ9E != 'final': DpZH += '%s%s' % ({'alpha': 'a', 'beta': 'b'}.get(TZ9E, TZ9E), Jdap) return DpZH
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nzxL():\n return str(M2_k.major) + '.' + str(M2_k.minor) + '.' + str(M2_k.compilation)", "def oRea() -> str:\n pmON = gzes(TLI7(xAKo), '__init__.py')\n pmON = ENtY(WQbV(pmON))\n with open(pmON) as eHNT:\n for zFiD in eHNT:\n if zFiD.startswith('__version__'):\n eO...
[ "0.781467", "0.7790437", "0.7787523", "0.7787523", "0.7773163", "0.77701145", "0.7719859", "0.7705339", "0.77032787", "0.76754713", "0.76419526", "0.7596152", "0.755743", "0.75404084", "0.7529081", "0.7506281", "0.7482529", "0.7471795", "0.7460003", "0.745641", "0.7394729", ...
0.8149712
0
Return whether this is a released version.
def EeKk(): return wx3I[-1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EeKk(YKHO):\n return bool(ZbWC.match('^[\\\\d.]+$', YKHO.version))", "def kVYE(YKHO) -> bool:\n return not YKHO.is_prerelease", "def h1K3(Tl0b: str) -> bool:\n if Tl0b == 'current_branch':\n return False\n DpZH = gF4c.version.parse(Tl0b)\n return DpZH < gF4c.version.Version('1.0')", ...
[ "0.82170546", "0.76478016", "0.7483884", "0.68960065", "0.6733261", "0.67243564", "0.66759247", "0.66672075", "0.6560802", "0.6552664", "0.65391153", "0.6336297", "0.62675583", "0.6216027", "0.620669", "0.61960965", "0.61671126", "0.61387235", "0.6137363", "0.61221856", "0.61...
0.8087608
1
Convert categorical columns to numeric and leave numeric columns as they are. You can force to convert a numerical column if it is included in ``col_list``.
def EBbF(jQ3Z, A8fR=None): if A8fR is None: A8fR = [] U5bT = rLdf.DataFrame() for z0q4 in jQ3Z.columns: iVRZ = jQ3Z[z0q4] if iVRZ.dtype == 'object' or z0q4 in A8fR: B_Yw = UIcY(iVRZ) U5bT[z0q4] = jO4c(iVRZ, B_Yw) else: U5bT[z0q4] = iVRZ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ktnn(jQ3Z, A8fR):\n U5bT = rLdf.DataFrame()\n hkxX = None\n for Z9rn in A8fR:\n hkxX = rLdf.concat([hkxX, jQ3Z[Z9rn]], axis=0)\n hkxX = rLdf.Series(hkxX.unique())\n B_Yw = UIcY(hkxX)\n for z0q4 in jQ3Z.columns:\n iVRZ = jQ3Z[z0q4]\n if z0q4 in A8fR:\n U5bT[...
[ "0.79088426", "0.7642333", "0.6625366", "0.6624571", "0.6557332", "0.63496464", "0.63183826", "0.62436324", "0.6232082", "0.6209288", "0.62018126", "0.6144933", "0.61349154", "0.612278", "0.60727715", "0.6001036", "0.5993495", "0.5970217", "0.59602475", "0.5944174", "0.586604...
0.8218717
0
Return a human readable representation of the model instance.
def zAg0(YKHO): return '{}'.format(YKHO.name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()", "def zAg0(YKHO):\n C3ST = YKHO._meta.verbose_name.title()\n return f'{C3ST:s}: {YKHO.name:s}'", "def zAg0(YKHO):\n C3ST = YKHO._meta.verbose_name.title()\n return f'{C3ST:s}: {YKHO.name:s}'", "def zAg0(YKHO):\n return '%s%s...
[ "0.79865694", "0.778825", "0.778825", "0.7578485", "0.7573961", "0.7508439", "0.73869205", "0.725669", "0.725669", "0.72521317", "0.7250976", "0.72447103", "0.72447103", "0.7238946", "0.72377145", "0.72135806", "0.7196659", "0.71778005", "0.7177506", "0.7173099", "0.7172897",...
0.0
-1
Pytest fixture that returns an instance of our application. This fixture provides a Flask application context for tests using AIPscan's test configuration. This pattern can be extended in additional fixtures to, e.g. load state to the test database from a fixture as needed for tests.
def oDtJ(rrBf='session'): P4t4 = LUif('test') with P4t4.app_context(): NCls.create_all() yield P4t4 NCls.drop_all()
{ "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 P4t4(QePW) -> m36K:\n global fixture\n if lt9K is None:\n lt9K = paxj()\n return lt9K", "def P4t4():\n print('creating app w...
[ "0.79039025", "0.7801236", "0.76804936", "0.7636006", "0.754516", "0.75273347", "0.7445035", "0.7436987", "0.7408242", "0.7408242", "0.7408242", "0.7362214", "0.73253214", "0.73009616", "0.7276295", "0.7256131", "0.72402483", "0.72310114", "0.7145677", "0.7133663", "0.7084221...
0.6280047
79
Decay learning rate by a factor of 0.1 every lr_decay_epoch epochs.
def hc6Z(K0do, qtWj, DJmW=0.1, jnHZ=50): if qtWj % jnHZ == 0 and qtWj > 1: for Lwm5 in K0do.param_groups: Lwm5['lr'] = Lwm5['lr'] * 0.1 return K0do
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def biVQ(qtWj):\n tspZ = b0Ix\n if qtWj >= 60:\n tspZ *= 0.1\n print('Learning rate: ', tspZ)\n return tspZ", "def biVQ(qtWj):\n oLNr = 0.1\n ReNU = 0.5\n Gn2V = 10.0\n fqnS = oLNr * epAf.pow(ReNU, epAf.floor((1 + qtWj) / Gn2V))\n return fqnS", "def Qh2O(YPaw):\n return Cwt...
[ "0.8265673", "0.8176528", "0.7809839", "0.7760489", "0.77189094", "0.76933736", "0.76933736", "0.7603879", "0.75849223", "0.75524855", "0.7522515", "0.7496741", "0.7487734", "0.7466154", "0.74090105", "0.7394152", "0.7390487", "0.7389569", "0.73847216", "0.7382017", "0.737469...
0.0
-1
r"""VGG 11layer model (configuration "A") with batch normalization
def CAz4(XRGq, **B2fa): return zm1_('vgg11_bn', 'A', True, XRGq, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vHu7(GhuM=(224, 224, 3), oLRV=1000):\n C3ST = ileL()\n C3ST.add(X6a0(shape=GhuM))\n C3ST.add(l2Dx((1, 1)))\n C3ST.add(yHwh(64, (3, 3), activation='relu'))\n C3ST.add(l2Dx((1, 1)))\n C3ST.add(yHwh(64, (3, 3), activation='relu'))\n C3ST.add(YMbS((2, 2), strides=(2, 2)))\n C3ST.add(l2Dx((1...
[ "0.63343036", "0.6301366", "0.62520427", "0.62272805", "0.613026", "0.6120089", "0.6074802", "0.604904", "0.6002232", "0.5981637", "0.5957494", "0.5925203", "0.5921616", "0.59177893", "0.5885133", "0.5881805", "0.5881126", "0.5859649", "0.58332133", "0.5830654", "0.58207077",...
0.5499433
52
r"""VGG 13layer model (configuration "B")
def ZsU2(XRGq, **B2fa): return zm1_('vgg13', 'B', False, XRGq, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XF5m(mL4f, **B2fa):\n C3ST = s3br(AaDq(_Fei['D'], batch_norm=True), **B2fa)\n if mL4f:\n BJY9 = CbyH.load('./pre_model/vgg16_bn.paddle')\n C3ST.set_state_dict(BJY9)\n return C3ST", "def pFT6():\n GhuM = (256, 256, 3)\n MYHg = bdPE.applications.VGG19(include_top=False, input_shape...
[ "0.7417273", "0.7358805", "0.71849257", "0.7068711", "0.7062855", "0.7034622", "0.6955577", "0.69236857", "0.69051826", "0.68416125", "0.6832739", "0.679886", "0.67929447", "0.67903084", "0.677913", "0.6745863", "0.6682856", "0.66722745", "0.66622055", "0.6655325", "0.6618266...
0.6384021
33
r"""VGG 13layer model (configuration "B") with batch normalization
def Cxkw(XRGq, **B2fa): return zm1_('vgg13_bn', 'B', True, XRGq, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XF5m(mL4f, **B2fa):\n C3ST = s3br(AaDq(_Fei['D'], batch_norm=True), **B2fa)\n if mL4f:\n BJY9 = CbyH.load('./pre_model/vgg16_bn.paddle')\n C3ST.set_state_dict(BJY9)\n return C3ST", "def XF5m(eG0V, TZ9E, jTqs, xkLA, oBmh=True):\n _Fei = [[64, 64, 'M'], [128, 128, 'M'], [256, 256, 256...
[ "0.675105", "0.668015", "0.65448433", "0.65107876", "0.6317424", "0.62681973", "0.6262993", "0.62345195", "0.6140339", "0.61170226", "0.60969716", "0.6079978", "0.6053814", "0.60280806", "0.6006328", "0.59780127", "0.5970936", "0.5963233", "0.59627765", "0.59568864", "0.59411...
0.59750515
16
r"""VGG 16layer model (configuration "D")
def a7Lb(XRGq, **B2fa): return zm1_('vgg16', 'D', False, XRGq, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a7Lb(mL4f=False, **B2fa):\n if mL4f:\n B2fa['init_weights'] = False\n C3ST = s3br(AaDq(_Fei['D']), **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['vgg16']), strict=False)\n return C3ST", "def a7Lb(mL4f=False, **B2fa):\n C3ST = s3br(AaDq(_Fei['D']), **B2fa)\n if m...
[ "0.7846702", "0.7750838", "0.7494097", "0.7290834", "0.728988", "0.7278858", "0.7208758", "0.71020895", "0.70957595", "0.70930266", "0.7090617", "0.70656466", "0.7037565", "0.6998147", "0.69132566", "0.6874201", "0.68395877", "0.67944306", "0.6782617", "0.6760838", "0.6693204...
0.7033001
13
r"""VGG 19layer model (configuration "E")
def AndN(XRGq, **B2fa): return zm1_('vgg19', 'E', False, XRGq, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pFT6():\n GhuM = (256, 256, 3)\n MYHg = bdPE.applications.VGG19(include_top=False, input_shape=GhuM, weights='imagenet')\n bySB = MYHg.get_layer(index=9).output\n C3ST = bdPE.Model(inputs=[MYHg.inputs], outputs=[bySB])\n return C3ST", "def AndN(mL4f=False, **B2fa):\n if mL4f:\n B2fa[...
[ "0.7450215", "0.725738", "0.7146659", "0.70677775", "0.6981094", "0.6942171", "0.69413054", "0.6924377", "0.6896415", "0.6737178", "0.6705817", "0.66975707", "0.6687772", "0.6680752", "0.6666037", "0.66647756", "0.6663939", "0.6647204", "0.66166615", "0.65478873", "0.6547373"...
0.6294502
34
Given a list of text in `docs` and `text` string, returns list of cosine similarity scores to `text`. Order of elements are left unchanged (i.e. identical to `docs`).
def eIcb(Q5mJ: List[Doc], l5Ny: str, K9NE: Language, CkYf: Union[None, str]='l2') -> x1iM[float]: def kwsU(CkYf): def QZoP(Ty9i): Ty9i = oyIN.ascontiguousarray(Ty9i) return AKms(Ty9i, T4Wy) if CkYf == 'l1': T4Wy = 1 if CkYf == 'l2': T4Wy = 2 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def au8c(z_aV: List[str]) -> x1iM[str]:\n jQ3Z = KGgR(z_aV, n=len(z_aV) // 2)\n return jQ3Z['text'].tolist()", "def aFQb(Epbd, ci7j):\n aCBq = LM0n(stop_words='english')\n hHzj = aCBq.fit_transform(raw_documents=[Epbd, ci7j])\n VDDH = hHzj.todense()\n B5UQ = rLdf.DataFrame(data=VDDH, columns=aC...
[ "0.7035016", "0.664993", "0.6488469", "0.6478475", "0.63879997", "0.63519377", "0.6335327", "0.6290351", "0.6283186", "0.62252986", "0.6222077", "0.6214643", "0.620023", "0.6143089", "0.6132577", "0.6113776", "0.603951", "0.60035855", "0.59926087", "0.5991115", "0.59810495", ...
0.7778315
0
Asks user to specify a city, month, and day to analyze.
def RxGd(): print("Hello! Let's explore some US bikeshare data!") global city global month global day global filter_type j5sA = JfyU.city() Nep5 = ['month', 'day', 'both', 'none'] while True: try: hHFW = str(input('Would you like to filter the data by month, day, both...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NoUH(j5sA, x0eS, CjKC):\n print('The city you have entered is: ', j5sA)\n print('The month you have entered is: ', x0eS)\n print('The day you have entered is: ', CjKC)", "def RxGd():\n j5sA = None\n x0eS = None\n CjKC = None\n while CjKC == None:\n j5sA = input('Please enter a cit...
[ "0.66714007", "0.65354675", "0.64593667", "0.6374057", "0.6348314", "0.63097656", "0.62868035", "0.6259136", "0.62316", "0.62130964", "0.62050414", "0.6181105", "0.6171822", "0.61686903", "0.6158568", "0.61582303", "0.61532456", "0.61444426", "0.6131269", "0.610484", "0.61025...
0.0
-1
Plots a graph with multiple sub graphs comparing the rgb, depth, predicted segmentation masks and true segmentation masks. Grid size is N x 4 where N is the number of images
def HqUG(uFvs, xMng, g1Cv, brpG): ywwl = uFvs.shape[0] Q2Nl = 1 for YRbF in range(ywwl): KxxL = max(oyIN.unique(g1Cv[YRbF, ...]).max(), oyIN.unique(brpG[YRbF, ...]).max()) + 1 d7Eb = uFvs[YRbF].astype(oyIN.uint8) rb7a = xMng[YRbF, ..., 2] EVOL = uG0Q.get_color_mask(g1Cv[YRbF,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y0bU(yJgu):\n LZpg = QrM1.figure(figsize=(8, 6))\n LZpg.subplots_adjust(left=None, bottom=None, right=None, top=None, wspace=0.001, hspace=0.001)\n for QyVM in range(Thw5):\n aNZO = LZpg.add_subplot(c3y2, c3y2, QyVM + 1, xticks=[], yticks=[])\n aNZO.imshow(oyIN.uint8((yJgu[QyVM] + 1) / 2...
[ "0.6807857", "0.67092204", "0.66868794", "0.66748035", "0.6654014", "0.66539896", "0.6612457", "0.66122705", "0.6606631", "0.6559218", "0.65118986", "0.6500644", "0.6459903", "0.64494926", "0.6436244", "0.64262897", "0.642465", "0.6410225", "0.6375877", "0.6359972", "0.632367...
0.7108965
0
Add headers to both force latest IE rendering engine or Chrome Frame, and also to cache the rendered page for 10 minutes.
def PYz4(Mkmy): Mkmy.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate' Mkmy.headers['Pragma'] = 'no-cache' Mkmy.headers['Expires'] = '0' Mkmy.headers['Cache-Control'] = 'public, max-age=0' return Mkmy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=60'\n return geh0", "def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=600'\n return geh0", "def PY...
[ "0.82235825", "0.82227623", "0.82227623", "0.82227623", "0.82227623", "0.8196081", "0.81635857", "0.81635857", "0.81635857", "0.81635857", "0.81635857", "0.81635857", "0.81635857", "0.81635857", "0.81635857", "0.81635857", "0.81635857", "0.81635857", "0.81635857", "0.81635857",...
0.7153332
41
Returns cumulative probability of PZ be at z<zx
def T_i6(YKHO, ezWE, ABNE): ccEM, WTkW = ezWE mICg = oyIN.cumsum(oyIN.array([YKHO.PofZ(ezWE, epBp, YKHO.dz) for epBp in oyIN.arange(0.0, ABNE + YKHO.dz, YKHO.dz)]), axis=1) return mICg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def guBC(epBp):\n RdgZ = 6.0\n if epBp == 0.0:\n WKvO = 0.0\n else:\n LVAh = 0.5 * epAf.fabs(epBp)\n if LVAh >= RdgZ * 0.5:\n WKvO = 1.0\n elif LVAh < 1.0:\n yzQ0 = LVAh * LVAh\n WKvO = ((((((((0.000124818987 * yzQ0 - 0.001075204047) * yzQ0 + 0....
[ "0.73087686", "0.70842916", "0.6887331", "0.68194115", "0.67901695", "0.6704391", "0.6670286", "0.6591631", "0.6451923", "0.635069", "0.6302918", "0.6191376", "0.61723053", "0.6163703", "0.61430144", "0.6140031", "0.6140031", "0.61102474", "0.60625744", "0.6056325", "0.604385...
0.6892628
2
Private slot to handle the selection of a new item. current current item (QListWidgetItem) previous previous current item (QListWidgetItem)
def CGBU(YKHO, jvSB, AOBR): YKHO.filesList.clear() if jvSB is not None: tFU3 = jvSB.text() if tFU3 in YKHO.changeListsDict: YKHO.filesList.addItems(sorted(YKHO.changeListsDict[tFU3]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def scA_(YKHO, ZfUD):\n pass", "def Wxdf():\n Fcc_ = PKko.currentRow()\n if Fcc_ != PKko.count() - 1 and Fcc_ != -1:\n PKko.blockSignals(True)\n ioWW = PKko.takeItem(Fcc_)\n PKko.insertItem(Fcc_ + 1, ioWW)\n PKko.setCurrentRow(Fcc_ + 1)\n PKko.blockSignals(False)\n ...
[ "0.7513481", "0.6768842", "0.6470026", "0.64383554", "0.6244756", "0.619092", "0.61850244", "0.61775196", "0.6117539", "0.609892", "0.60579616", "0.6000564", "0.6000564", "0.59953976", "0.58837116", "0.58424276", "0.5819235", "0.5810847", "0.5806027", "0.58038753", "0.5801416...
0.5367755
70
Find template with name 'name'. Raises ImageNotFoundError if no matches found Raises MultipleItemsError if multiple matches found
def DAt9(YKHO, mWFP): hHld = YKHO.find_templates(name=mWFP) if not hHld: raise QOSE('template with name {}'.format(mWFP)) if len(hHld) > 1: raise GrU1('multiple templates with name {}'.format(mWFP)) return hHld[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DAt9(YKHO, qm1k):\n EmMj = False\n for rPXJ in YKHO.templates:\n if rPXJ['name'] == qm1k:\n EmMj = True\n return rPXJ\n if not EmMj:\n return None", "def DAt9(YKHO, mWFP):\n for rPXJ in YKHO.templates:\n if rPXJ.name == mWFP:\n assert isinstan...
[ "0.6945496", "0.68991673", "0.6494248", "0.6355712", "0.60253173", "0.60180885", "0.59760123", "0.59271055", "0.58866334", "0.5823712", "0.57881737", "0.5752271", "0.5741054", "0.57409245", "0.573715", "0.5697654", "0.5690854", "0.56666136", "0.5650215", "0.56326455", "0.5621...
0.7713046
0
Returns an interface to jemalloc, if it is being used. Note that this will always return None until `setup_jemalloc_stats` has been called.
def AGbY() -> h8nf[D_iz]: return BSGn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lmzr() -> None:\n global _JEMALLOC_STATS\n if not Hy7s.path.exists('/proc/self/maps'):\n bo34.debug('Not looking for jemalloc as no /proc/self/maps exist')\n return\n njyT = ZbWC.compile('/\\\\S+/libjemalloc.*$')\n ApNn = None\n with open('/proc/self/maps') as eHNT:\n for zF...
[ "0.7011987", "0.62765425", "0.49401045", "0.48440894", "0.46719196", "0.463091", "0.46102256", "0.4589038", "0.4589038", "0.45807928", "0.4573026", "0.45585936", "0.45533615", "0.453966", "0.452625", "0.45081803", "0.44919103", "0.44817075", "0.44783935", "0.44358346", "0.441...
0.790305
0
Returns the transport used by the client instance.
def PdI0(YKHO) -> AohZ: return YKHO._client.transport
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PdI0(YKHO):\n return YKHO._transport", "def PdI0(YKHO) -> XLc3:\n return YKHO._client.transport", "def PdI0(YKHO) -> WYqF:\n return YKHO._client.transport", "def PdI0(YKHO) -> PaEF:\n return YKHO._client.transport", "def PdI0(YKHO) -> JKRZ:\n return YKHO._client.transport", "def PdI0(Y...
[ "0.82946277", "0.7887542", "0.773594", "0.773068", "0.76806635", "0.7674273", "0.76357967", "0.7558095", "0.7551682", "0.75303864", "0.7488142", "0.7436853", "0.7423566", "0.7368433", "0.73340607", "0.721926", "0.7109823", "0.7102308", "0.68808985", "0.68144", "0.6671675", ...
0.74958986
10
Return a 64bit integer sum of `a` and `b`.
def BbD0(jzdc, Fg_i): return oyIN.add(jzdc, Fg_i, dtype=oyIN.uint64)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sum(YKHO, jzdc, Fg_i):\n return int(jzdc) + int(Fg_i)", "def UJmR(YKHO, jzdc, Fg_i):\n Aofo = 0\n QAki = 0\n ek6A = {(0, 0, 0), (0, 0, 1), (1, 0, 0), (0, 1, 0)}\n for YRbF in range(32):\n i1rT = jzdc & 1\n GfdQ = Fg_i & 1\n DpUl = i1rT ^ GfdQ ^ QAki\n QAki = 0 if (i...
[ "0.7238301", "0.7202057", "0.71946514", "0.70317316", "0.69063276", "0.6799196", "0.65338504", "0.6489076", "0.6452163", "0.6278054", "0.6239498", "0.6239498", "0.62079734", "0.6204399", "0.6171214", "0.61511624", "0.6073832", "0.6044258", "0.6043731", "0.6019592", "0.6012571...
0.7815626
0
Handles the 'name' trait being changed.
def dHqI(YKHO, mWFP): YKHO.name_last = LvoP(mWFP)[-1] YKHO.inputs_changed()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qa7e(YKHO, mWFP):\n YKHO.name = mWFP", "def zXji(YKHO, Dokz):\n YKHO.__name = Dokz", "def zXji(YKHO, Dokz):\n YKHO.__name = Dokz", "def dHqI(YKHO):\n YKHO._named = True", "def mWFP(YKHO, Dokz: str) -> None:\n raise NotImplementedError()", "def Dokz(YKHO, Dokz):\n YKHO.name = Dokz", ...
[ "0.7672329", "0.75915074", "0.75915074", "0.75472456", "0.7476408", "0.73970574", "0.73875964", "0.7337446", "0.7288328", "0.72266525", "0.71830803", "0.71830803", "0.71830803", "0.71830803", "0.71830803", "0.7179159", "0.7176058", "0.7147122", "0.7147122", "0.71463996", "0.7...
0.7549502
3
Returns all of the valid TemplateChoices for this item.
def leza(YKHO, QpfX, pmON=''): mrPm = [] mCzn = QpfX.get_data_context for mWFP in QpfX.data_contexts: t1Qn = uA6t(pmON, mWFP) mrPm.append(PtWK(choice_value=t1Qn)) mrPm.extend(YKHO._get_choices(mCzn(mWFP), t1Qn)) return mrPm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bVvi() -> list[tuple[str, str]]:\n mrPm, PwWw = ([], set())\n for qm1k in JLC7:\n mrPm.append((qm1k.value, qm1k.label))\n PwWw.add(qm1k.value)\n for qm1k, qQNS in getattr(gCuF, 'CAST_CUSTOM_THEMES', []):\n if qm1k not in PwWw:\n mrPm.append((qm1k, qQNS))\n Pw...
[ "0.6461884", "0.6456121", "0.6404085", "0.6115306", "0.5937474", "0.59354246", "0.5895824", "0.5861698", "0.5845247", "0.5829795", "0.5829795", "0.58060676", "0.5790772", "0.57362115", "0.573581", "0.5681031", "0.566594", "0.5636224", "0.5634196", "0.5586595", "0.5557848", ...
0.6017236
4
The following test checks the indegree centrality after a perturbation. The perturbation here considered is the perturbation of element '1'. In this case, we have no fault resistant nodes. However, we expect the same behavior due to the presence of isolating nodes '2' and '3'.
def _aD9(): vuvg = Hy5G('tests/TOY_graph_nofaultresistant.csv') vuvg.simulate_element_perturbation(['1']) bEok = {'2': 0.0, '3': 0.0, '4': 0.058823529411764705, '5': 0.058823529411764705, '6': 0.17647058823529413, '7': 0.058823529411764705, '8': 0.058823529411764705, '9': 0.11764705882352941, '10': 0.058823...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def epHz():\n vuvg = Hy5G('tests/TOY_graph.csv')\n vuvg.simulate_element_perturbation(['1'])\n bEok = {'2': 0.0, '3': 0.0, '4': 0.058823529411764705, '5': 0.058823529411764705, '6': 0.17647058823529413, '7': 0.058823529411764705, '8': 0.058823529411764705, '9': 0.11764705882352941, '10': 0.058823529411764...
[ "0.7879507", "0.7879507", "0.7842305", "0.7707125", "0.7707125", "0.75150806", "0.74334776", "0.74273926", "0.7347573", "0.7328123", "0.7301626", "0.70492756", "0.70174694", "0.70174694", "0.69969606", "0.6988527", "0.68336815", "0.68336815", "0.6782312", "0.6773642", "0.6660...
0.78318405
3
Get the offset as a timedelta, for easy comparison.
def fCoM(YKHO) -> qcWV.timedelta: aM8h = -1 if YKHO.negative else 1 return qcWV.timedelta(hours=aM8h * YKHO.hours, minutes=aM8h * YKHO.minutes)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ueuK():\n vgXP = qcWV.date.today() - HNQD\n return int(vgXP.days) - 4", "def PduB(YKHO):\n return SED2(YKHO._tz, YKHO._t)", "def YfmJ(YKHO) -> float:\n return YKHO.AD.tz.utcoffset(YKHO.datetime()).total_seconds() / 60", "def mVXc():\n fCoM = qcWV.datetime.now() - qcWV.datetime.utcnow()\n ...
[ "0.6713109", "0.66918886", "0.65473336", "0.64523727", "0.61912215", "0.6132214", "0.6039608", "0.6028964", "0.5975602", "0.59472054", "0.58999306", "0.5890619", "0.5888217", "0.5843602", "0.583069", "0.5819811", "0.5803744", "0.5781076", "0.57463247", "0.57434416", "0.570293...
0.60606915
6
Convert a timezone to a 7 bit number.
def zNR7(YKHO, rIAI: Timezone) -> int: if rIAI is None: return BWXx = 0 if rIAI.negative: BWXx |= 1 << 7 BWXx |= rIAI.hours << 2 BWXx |= rIAI.minutes // 15 return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GGuE(YKHO, BWXx: int) -> gMlj:\n if BWXx is None:\n return\n tbib = bool(BWXx & 1 << 7)\n Wave = (BWXx & 60) >> 2\n O66n = 15 * (BWXx & 3)\n return gMlj(tbib, Wave, O66n)", "def FsEq() -> int:\n return 604800", "def s0VZ(int):\n return {0: 1, 1: 2, 2: 4, 3: 8, 4: 16, 5: 32, 6: 6...
[ "0.5981354", "0.554924", "0.5452481", "0.53214604", "0.532089", "0.5171898", "0.5146727", "0.5018446", "0.50127614", "0.49972627", "0.49889615", "0.49862227", "0.49818563", "0.497037", "0.49410826", "0.49385312", "0.4925128", "0.49083793", "0.49037898", "0.48927668", "0.48868...
0.59130245
1
Convert a 7 bit number to a timezone.
def GGuE(YKHO, BWXx: int) -> gMlj: if BWXx is None: return tbib = bool(BWXx & 1 << 7) Wave = (BWXx & 60) >> 2 O66n = 15 * (BWXx & 3) return gMlj(tbib, Wave, O66n)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _KES(wEf2):\n if not wEf2:\n return\n if wEf2 == 'Z' or wEf2 == '+00:00':\n return FXGE.utc\n tbib = wEf2.startswith('-')\n O66n = int(wEf2[-2:])\n O66n += int(wEf2[1:3]) * 60\n if tbib:\n O66n = 0 - O66n\n return FXGE.FixedOffset(O66n)", "def Wzrz(ITS7):\n return...
[ "0.5343798", "0.5321895", "0.5274781", "0.5274595", "0.5247163", "0.5234778", "0.5225324", "0.5220339", "0.5195", "0.5132745", "0.5061499", "0.5051551", "0.5014996", "0.50057214", "0.49548548", "0.4942697", "0.49375725", "0.493591", "0.49073786", "0.48835564", "0.48753184", ...
0.6344209
0
Check if the ingress has whitelisting applied
def ANKY(pZZv): return bool(pZZv.metadata.annotations.get('ingress.kubernetes.io/whitelist-source-range', False))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tnCM(YKHO):\n if YKHO.ingresslabels != None:\n return False\n elif YKHO.layer == None:\n return True\n return YKHO.layer.allowAnyIngressLabel()", "def lzb_(YKHO, cCAS):\n return cCAS in YKHO.whitelist", "def tnCM(YKHO):\n if YKHO.layer == None:\n return True\n return ...
[ "0.6444836", "0.62690973", "0.62633574", "0.61521405", "0.6029823", "0.59656906", "0.5914481", "0.5875368", "0.58705884", "0.5862475", "0.57623476", "0.57623476", "0.5715468", "0.5715274", "0.5699382", "0.569812", "0.56584543", "0.5490444", "0.54850715", "0.5469639", "0.54215...
0.8497023
0
Return a time series data frame for the system. getTS() The amplitude for this vdp model is defined as euclidean distance from the origin to (x,x_c) coordinates in phase space. The unwrapped phase estimate is taken as the 1arctan of the phase plane coordinates. This is transformed so that it is comparible with the Hann...
def tmZn(YKHO): KGDp = list(map(YKHO.Light, YKHO.ts)) _DGw = oyIN.sqrt(YKHO.results[:, 0] ** 2 + YKHO.results[:, 1] ** 2) kcZJ = -1.0 * oyIN.arctan2(YKHO.results[:, 1], YKHO.results[:, 0]) for YRbF in range(len(kcZJ)): if kcZJ[YRbF] < 0.0: kcZJ[YRbF] += 2 * H4yH.pi sgHw = oyIN.un...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XXqT(YKHO):\n jQ3Z = rLdf.DataFrame(YKHO.ts_list)\n jQ3Z.columns = YKHO.col_names\n jQ3Z.sort_values(by=YKHO.col_names[0], inplace=True)\n jQ3Z.reset_index(drop=True, inplace=True)\n return jQ3Z", "def ICyj(YKHO):\n if not YKHO.ts:\n raise ValueError('No time series file given.')\n ...
[ "0.62096477", "0.6005086", "0.56925464", "0.5556752", "0.5546154", "0.548506", "0.54716647", "0.5388256", "0.53614265", "0.5359223", "0.5316178", "0.5294731", "0.5292079", "0.5261317", "0.5250192", "0.5243125", "0.5240519", "0.52296275", "0.5204694", "0.5204473", "0.5191647",...
0.7726515
0
Compute normalized distance between two points. Computes || b a || / ( ||b|| + ||a||)
def LPHi(eWgR, X9Zn) -> float: Fg_i = X9Zn.astype(int) jzdc = eWgR.astype(int) sY0i = oyIN.linalg.norm(Fg_i - jzdc) cZIU = oyIN.linalg.norm(Fg_i) XsBg = oyIN.linalg.norm(jzdc) return sY0i / (cZIU + XsBg)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ayfi(jzdc: Point, Fg_i: Point) -> float:\n return epAf.sqrt(epAf.pow(Fg_i.x - jzdc.x, 2) + epAf.pow(Fg_i.y - jzdc.y, 2))", "def pImw(jzdc, Fg_i):\n return FOSW(finE(jzdc, Fg_i))", "def pImw(YKHO, KwKv, YBrO):\n qIxc = {'point_a': KwKv, 'point_b': YBrO}\n eFr6 = i912.array(YKHO._iterate_over_fac...
[ "0.78225106", "0.76464", "0.76007164", "0.753602", "0.75065213", "0.74843013", "0.7479239", "0.74299127", "0.7427393", "0.73945844", "0.7378862", "0.7342669", "0.7323923", "0.73131454", "0.72983736", "0.72686255", "0.7267749", "0.72349983", "0.71939397", "0.71939397", "0.7190...
0.8145575
0
Return a string formatted value in scientific notation with dec_places decimal accuracy
def iXAx(wEf2, mVFw=4): cxYt = '{:.{dec}E}'.format(wEf2, dec=mVFw) if cxYt.endswith('+00'): cxYt = '{:.{dec}f}'.format(wEf2, dec=mVFw) return cxYt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bZxL(WKvO):\n return '{:.2e}'.format(WKvO)", "def bQCw(FGW3):\n return '%.22e' % FGW3", "def gMWX(BWXx, P1dF):\n if BWXx is None:\n return ''\n if P1dF is None or P1dF == 0:\n depL = '{0:f}'.format(BWXx)\n return depL\n w520 = int('{:e}'.format(BWXx).split('e')[-1])\n ...
[ "0.80515766", "0.77364135", "0.7533539", "0.7273046", "0.7239724", "0.721607", "0.7074467", "0.698191", "0.68399125", "0.678488", "0.67526996", "0.674336", "0.66769737", "0.66744", "0.6634346", "0.66097474", "0.6587332", "0.6529958", "0.6522293", "0.6510616", "0.64891046", ...
0.7804895
1
Create or update a new snippet instance, given a dictionary of deserialized field values. Note that if we don't define this method, then deserializing data will simply return a dictionary of items.
def MiuT(YKHO, o8Kj, KAOR=None): if KAOR: KAOR.name = o8Kj.get('name', KAOR.name) KAOR.slug = o8Kj.get('slug', KAOR.slug) KAOR.ended_at = o8Kj.get('ended_at', KAOR.ended_at) return KAOR return Glze(**o8Kj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eLpg(YKHO, vGfb: dict) -> h5vu:\n return h5vu.objects.create(**vGfb)", "def eLpg(YKHO, vGfb):\n return h5vu.objects.create(**vGfb)", "def eLpg(YKHO, vGfb):\n return h5vu.objects.create(**vGfb)", "def QdZT(YKHO, KAOR: Snippet, vGfb: dict) -> h5vu:\n KAOR.title = vGfb.get('title', default=KAOR....
[ "0.6594524", "0.63039815", "0.62710834", "0.62425506", "0.5754719", "0.5750553", "0.56346077", "0.5492632", "0.52352047", "0.51870894", "0.514702", "0.51469946", "0.51469946", "0.5141249", "0.5128281", "0.50850135", "0.5079387", "0.50423217", "0.50039977", "0.4973844", "0.495...
0.0
-1
Constructor for the MapReduceInstance_RunInfo class
def FIMM(YKHO, C7pn=None, rhwM=None, xcEw=None, AZ69=None, cLjP=None, R2m7=None, a9nA=None, j0fb=None, q0Vd=None, dPNN=None, q5aV=None, DAsN=None, uXxh=None, Msry=None, SWox=None, jGRS=None, Zixo=None, Agk4=None): YKHO.end_time = C7pn YKHO.error_message = rhwM YKHO.execution_start_time_usecs = xcEw YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uIcm(YKHO, VDKe, g4y1, vILx):\n super().initialize(VDKe, g4y1, vILx)\n for z5fp in YKHO.assemblerDict['Metric']:\n YKHO.metricsDict[z5fp[2]] = z5fp[3]", "def FIMM(YKHO) -> None:\n YKHO.metrics = {}\n YKHO.current = None\n YKHO.run = None", "def FIMM(YKHO):\n YKHO.label = 'ExamineOu...
[ "0.6380462", "0.6375715", "0.6247472", "0.62450147", "0.617444", "0.61201507", "0.611566", "0.6082178", "0.6050306", "0.6041231", "0.60366374", "0.60295945", "0.6003835", "0.59818983", "0.5962807", "0.5918063", "0.5907289", "0.5900278", "0.58873427", "0.5879062", "0.58634037"...
0.63578385
2
Creates an instance of this model from a dictionary
def rQfz(Emd4, cmPJ): if cmPJ is None: return None C7pn = cmPJ.get('endTime') rhwM = cmPJ.get('errorMessage') xcEw = cmPJ.get('executionStartTimeUsecs') AZ69 = cmPJ.get('filesProcessed') cLjP = cmPJ.get('mapDoneTimeUsecs') R2m7 = cmPJ.get('mapInputBytes') a9nA = cmPJ.get('mappers...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQfz(Emd4, cmPJ):\n if cmPJ is None:\n return None\n id = cmPJ.get('id')\n mWFP = cmPJ.get('name')\n tDvy = cmPJ.get('type')\n fFb7 = cmPJ.get('usageBytes')\n return Emd4(id, mWFP, tDvy, fFb7)", "def eLpg(Emd4, cmPJ):\n return Emd4(**cmPJ)", "def eLpg(Emd4, cmPJ):\n return Em...
[ "0.8318104", "0.8168106", "0.8168106", "0.8119619", "0.8089429", "0.7978183", "0.79495466", "0.79227656", "0.7898806", "0.7894103", "0.7887986", "0.78827816", "0.78821284", "0.7876549", "0.7858773", "0.78385323", "0.78039247", "0.78039247", "0.78039247", "0.78039247", "0.7803...
0.0
-1
Return the ``q``th percentile of the flattened input tensor's data.
def yArv(Jyyj, vexM): G1Hx = 1 + round(0.01 * float(vexM) * (Jyyj.shape[1] - 1)) Aofo = Jyyj.kthvalue(G1Hx, dim=1).values return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yArv(a1PO: torch.tensor, vexM: float):\n G1Hx = 1 + round(0.01 * float(vexM) * (a1PO.numel() - 1))\n Aofo = a1PO.view(-1).kthvalue(G1Hx).values.item()\n return Aofo", "def hpNL(YKHO, vexM):\n return None", "def hpNL(YKHO, vexM):\n return None", "def hpNL(YKHO, vexM):\n return YKHO.sum_s...
[ "0.802458", "0.77174544", "0.77174544", "0.7706333", "0.765127", "0.76453716", "0.73305327", "0.7006668", "0.6945124", "0.69359267", "0.6853341", "0.6850928", "0.68455553", "0.6844253", "0.6713556", "0.66916794", "0.6688679", "0.6682355", "0.6682355", "0.6682355", "0.6679008"...
0.76507
5
Render the main application HTML.
def fnRL(wmlk, oU1u, Ms2Z, G1KD, wCFq=None, n0Uo=None, dDGN=None): if dDGN is None: dDGN = {} rPXJ = S7jV.get_template('app.html.jinja2') gCIc = dTW2(api_url=Ms2Z, service_url=oU1u, ga_tracking_id=wCFq, sentry_public_dsn=G1KD, webassets_env=wmlk, websocket_url=n0Uo) return rPXJ.render(vGZu(gCIc,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b8V_():\n return TvZl('main.html')", "def b8V_():\n return TvZl('main.html')", "def b8V_():\n return TvZl('index.html')", "def b8V_():\n return TvZl('index.html')", "def Ozko():\n return TvZl('index.html')", "def b8V_():\n return TvZl('UI.html')", "def Ozko():\n return TvZl('ma...
[ "0.8040502", "0.8040502", "0.78164375", "0.78164375", "0.77684045", "0.7760138", "0.7581798", "0.75438654", "0.74974716", "0.74974716", "0.749576", "0.7349171", "0.732377", "0.731516", "0.7308571", "0.7295578", "0.72350323", "0.71800244", "0.7171516", "0.71515983", "0.7145346...
0.0
-1
Calculate distance between frame x and frame y
def qKJ5(WKvO, LVAh): return oyIN.sqrt(oyIN.mean(oyIN.square(WKvO - LVAh)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s7yO(YKHO, WKvO, LVAh):\n Jw7X = WKvO - YKHO.x\n eUWA = LVAh - YKHO.y\n return epAf.sqrt(Jw7X ** 2 + eUWA ** 2)", "def Ayfi(YKHO, WKvO: int, LVAh: int) -> float:\n return epAf.sqrt((WKvO - YKHO.x) ** 2 + (LVAh - YKHO.y) ** 2)", "def JpbV(YKHO):\n return (YKHO.x ** 2 + YKHO.y ** 2) ** 0.5", ...
[ "0.70870423", "0.6930818", "0.6632677", "0.6632677", "0.6632677", "0.6632677", "0.6632677", "0.6632677", "0.6632677", "0.6628522", "0.66148895", "0.65900624", "0.65882623", "0.65192425", "0.65041596", "0.64875257", "0.6441675", "0.6415044", "0.63962644", "0.6391456", "0.63679...
0.6213811
36
Computes A^T x, from matvec(x) = A x, where A is square.
def mo9H(U14a, WKvO): l7uB = yOcR.linear_transpose(U14a, WKvO) return l7uB(WKvO)[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JQhn(WKvO):\n return wRSW(U14a, WKvO)", "def U14a(YKHO, WKvO):\n return YKHO * WKvO", "def zerF(E3D9, WKvO):\n return [BJ1H(r8hN, WKvO) for r8hN in E3D9]", "def Fh_f(WKvO, E3D9):\n return [BJ1H(r8hN, WKvO) for r8hN in l7uB(E3D9)]", "def C1W6(k0lF, WKvO):\n LVAh = oyIN.empty(WKvO.size, P9...
[ "0.72115356", "0.720185", "0.69253814", "0.65750885", "0.63390213", "0.6301195", "0.6271896", "0.6217136", "0.62079525", "0.620576", "0.6089397", "0.60784954", "0.60462683", "0.6013263", "0.5990948", "0.5927727", "0.59206253", "0.59152585", "0.5892022", "0.58196", "0.5794338"...
0.60355127
13
Computes A^T A x from matvec(x) = A x, where A is square.
def wRSW(U14a, WKvO): GbKt, aUjy = yOcR.vjp(U14a, WKvO) return aUjy(GbKt)[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JQhn(WKvO):\n return wRSW(U14a, WKvO)", "def U14a(YKHO, WKvO):\n return YKHO * WKvO", "def zerF(E3D9, WKvO):\n return [BJ1H(r8hN, WKvO) for r8hN in E3D9]", "def Fh_f(WKvO, E3D9):\n return [BJ1H(r8hN, WKvO) for r8hN in l7uB(E3D9)]", "def C1W6(k0lF, WKvO):\n LVAh = oyIN.empty(WKvO.size, P9...
[ "0.72337806", "0.71057475", "0.69410944", "0.66324484", "0.63984936", "0.6291739", "0.62806356", "0.6274974", "0.6260389", "0.62165517", "0.6165218", "0.61278427", "0.60823613", "0.60263705", "0.6011927", "0.59777105", "0.58783704", "0.5873439", "0.5818907", "0.5817301", "0.5...
0.6226011
9
create JWT token that the user can use to verify its account.
def k7lu(YKHO, CBIr): rG7T = rIAI.now() + fCoM(days=3) pB3N = {'user': CBIr.username, 'exp': int(rG7T.timestamp()), 'type': 'email_confirmation'} eOtH = DvJO.encode(pB3N, gCuF.SECRET_KEY, algorithm='HS256') return eOtH
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lXi0():\n nPrm = t4kz(QePW)\n UTX6 = nPrm.get('address')\n N850 = int(nPrm.get('expiration'))\n _sei = hFIs(use_universal_key=True)\n eOtH = DvJO.encode({'exp': N850, 'address': UTX6}, _sei, algorithm='HS256')\n eOtH = eOtH.decode('utf-8') if isinstance(eOtH, bytes) else eOtH\n deVW, Ol8d ...
[ "0.8302828", "0.81517154", "0.7971868", "0.77963245", "0.77766126", "0.76949567", "0.7694069", "0.7645974", "0.7624117", "0.76219726", "0.7611875", "0.75912756", "0.75737184", "0.75734884", "0.75429565", "0.75415915", "0.7523603", "0.7517176", "0.7505542", "0.7412252", "0.741...
0.7055786
42
Builds a cache with a limit of max_size entries. If the limit is exceeded, the Least Recently Used entry is discarded. If max_size==0, the cache is unbounded (no LRU rule is applied).
def FIMM(YKHO, E0wO=0): object.__init__(YKHO) YKHO._maxsize = E0wO YKHO._dict = {} YKHO._lock = RQ1O() if YKHO._maxsize: YKHO._head = RAUw(None) YKHO._head._previous = YKHO._head YKHO._head._next = YKHO._head
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rxxd(ANdr=None, *qIxc, **B2fa):\n return MlYu.functools.lru_cache(ANdr, *qIxc, **B2fa)", "def UHoW(zNig: int) -> a1PO.Optional[a1PO.MutableMapping[a1PO.Tuple[ZUBR.ref, str], 'Template']]:\n if zNig == 0:\n return None\n if zNig < 0:\n return {}\n return nmBN(zNig)", "def FIMM(YKHO...
[ "0.66527325", "0.6426182", "0.6325625", "0.6076972", "0.5985083", "0.5978231", "0.5870382", "0.58548075", "0.5841563", "0.57960916", "0.57781285", "0.5763253", "0.5760883", "0.57591397", "0.57375854", "0.56210893", "0.5582009", "0.5576067", "0.5538315", "0.55045676", "0.54742...
0.5857961
7
Return the content of the file as a string. Override this for better behaviour.
def Cc7Y(YKHO, mWFP, buHT, bTKY): try: return buHT.read() finally: buHT.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hGN5(YKHO) -> str:\n if YKHO._content is None:\n with open(YKHO.name, mode='r', encoding='utf-8') as eHNT:\n YKHO._content = eHNT.read()\n return YKHO._content", "def W86P(YKHO):\n KCHu = kJm3.StringIO()\n KCHu.write(YKHO.get_header())\n KCHu.write(YKHO.get_content())\n re...
[ "0.80516917", "0.79702", "0.7834177", "0.7596998", "0.7590219", "0.75639707", "0.75399745", "0.7533267", "0.74935967", "0.74918514", "0.7481167", "0.74656886", "0.7398642", "0.7395637", "0.7359344", "0.7357124", "0.7347776", "0.7294735", "0.72773266", "0.72639775", "0.7213648...
0.0
-1
Update and return an existing `SpecificationCategory` instance
def QdZT(YKHO, KAOR, vGfb): KAOR.name = vGfb.get('name', KAOR.name) KAOR.car = vGfb.get('car', KAOR.car) KAOR.save() return KAOR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def update_recipe_category(Ghho: str, V3q3: CategoryIn, cuiw: Session=JHvC(PaT4)):\n try:\n return NCls.categories.update(cuiw, Ghho, V3q3.dict())\n except Exception:\n raise pgG1(jGRS.HTTP_400_BAD_REQUEST)", "def eLpg(YKHO, vGfb):\n V3q3 = _4tW(name=vGfb.get('name'), car=vGfb.get('c...
[ "0.6036423", "0.5787956", "0.5687996", "0.55973935", "0.55802065", "0.5566578", "0.5541771", "0.5484012", "0.54825187", "0.5472111", "0.54710746", "0.5344318", "0.53398746", "0.53051615", "0.529188", "0.5278128", "0.52741796", "0.5246606", "0.5209006", "0.51540685", "0.512874...
0.0
-1
init the Rowland circle geometry plus design of the system
def FIMM(YKHO, qNhF=500, z9RD=35, Csk6=xVh6, dmJS=25, XZXr=32.0, eMk4=10.0, bO7X=97.0, eR8i=(40.0, 60.0, 100.0), n5uy=(269.0, 135.0), fxjH=False): YKHO.rc = YdNC(Rm=qNhF, theta0=z9RD, d=Csk6, aW=dmJS, aWext=XZXr, rSext=eMk4, aL=bO7X, bender=eR8i, actuator=n5uy, showInfos=fxjH) YKHO.rs0 = YKHO.rc.Rs YKHO.sp ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CEVu(YKHO):\n YKHO.std.Print('Setting up GrfNodeCore', mHuL, dnR4, _Cnz, zZcM)\n TZ9E = YKHO.label + '-circle'\n YEnM = []\n YEnM.append(fiPr.GfxCircle(sheetCanvas=YKHO.sheetCanvas, tag=TZ9E, center=YKHO.center, size=YKHO.__size, mode=YKHO.mode, std=YKHO.std))\n YEnM[0].colorset = YKHO.colorset\...
[ "0.68503547", "0.6496401", "0.63973564", "0.6391397", "0.6287716", "0.6179951", "0.6129178", "0.6079575", "0.60679394", "0.60258937", "0.60257286", "0.60257286", "0.60203034", "0.6017973", "0.5993932", "0.59621227", "0.59390754", "0.59154886", "0.5891009", "0.5857311", "0.585...
0.0
-1
refresh all positions with new Rm and theta0 (optional)
def XQul(YKHO, qNhF, z9RD=None, fxjH=None): if z9RD is None: z9RD = YKHO.rc.theta0 YKHO.rc.Rm = qNhF YKHO.rc.set_theta0(z9RD, showInfos=fxjH) YKHO.rs0 = YKHO.rc.Rs YKHO.sb = YKHO.get_sb() print('INFO: bender motor at {0:.3f}'.format(YKHO.sb))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _vf4(YKHO):\n YKHO._initial_position = IG1s(YKHO._target_filename, YKHO._actuator_name, str(YKHO._target_number), 'initial')\n YKHO._target_position = IG1s(YKHO._target_filename, YKHO._actuator_name, str(YKHO._target_number), 'target')\n YKHO._initial_image = sAwy(YKHO._target_filename, YKHO._actuator...
[ "0.59542954", "0.5888523", "0.58273983", "0.5799219", "0.57740283", "0.57430166", "0.5737932", "0.5708261", "0.56877005", "0.56605995", "0.56389266", "0.5633231", "0.5630402", "0.5628269", "0.5591292", "0.55690736", "0.5559921", "0.55458266", "0.55388707", "0.55243164", "0.55...
0.659718
0
get the orthogonal projection of a 3d point on plane
def WgQV(YKHO, AU8u, kEC0, QOe9=False): return VQeF(AU8u, kEC0, test=QOe9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qjsa(Ty9i):\n Ty9i = NkkI(Ty9i)\n WKvO, LVAh, epBp, yzQ0 = Ty9i\n return oyIN.array([WKvO, LVAh, epBp]) / (1 + 1e-08 - yzQ0)", "def anCO(YKHO):\n qo1z, PiTO = (oyIN.pi * YKHO.elev / 180, oyIN.pi * YKHO.azim / 180)\n BQGg, bYzl = YKHO.get_xlim3d() / YKHO.pbaspect[0]\n h3cg, Z3uP = YKHO.get_y...
[ "0.72587126", "0.6987389", "0.6894955", "0.68236035", "0.6650149", "0.6607312", "0.658716", "0.65253586", "0.65022165", "0.6463207", "0.64425963", "0.6430746", "0.6430746", "0.64168096", "0.63893336", "0.6339403", "0.6337584", "0.6319232", "0.62830335", "0.6272326", "0.626964...
0.7156698
1
Generate a perspective matrix for far This is basically a replacement for gluPerspective( fov, aspect, near, far ) fov field of view in degrees (for compatability) aspect width/height (float) near near clipping plan in unitsdistance (float) far ignored, compatability with gluPerspective, this is always taken as inifini...
def yHV1(fZkQ, Ir38, Qh4y, Dfjx=None): Aofo = VNqG((4, 4), 'd') FLy3 = 1 / Uyfy(fZkQ) Aofo[0, 0] = FLy3 / Ir38 Aofo[1, 1] = FLy3 Aofo[2, 2:4] = -1 Aofo[3, 2] = -2 * Qh4y return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DRJz(YKHO, _e1V, Ir38, Qh4y, Dfjx):\n tlxW = Qh4y * epAf.tan(_e1V * epAf.pi / 360.0)\n es2x = -tlxW\n LFlW = es2x * Ir38\n _tIi = tlxW * Ir38\n return YKHO.frustum(LFlW, _tIi, es2x, tlxW, Qh4y, Dfjx)", "def h085(vYze, Ir38, Qh4y, Dfjx):\n Y_1E = epAf.radians(vYze)\n trlf = 1 / epAf.tan(Y...
[ "0.75744873", "0.74618435", "0.71077126", "0.69498205", "0.66489667", "0.66463286", "0.66343534", "0.6626029", "0.65930706", "0.6539518", "0.6510223", "0.5936317", "0.59024364", "0.5876194", "0.58702123", "0.5858835", "0.58233964", "0.57397807", "0.5694659", "0.56865", "0.568...
0.74998903
1
The relative path of a node and this repository.
def htac(YKHO, Q6kx): return Hy7s.path.relpath(Q6kx.path, YKHO.path)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XNWQ(YKHO) -> str:\n return Hy7s.path.dirname(YKHO._filepath_oracle.filepath())", "def pmON(YKHO) -> str:\n YKHO.__verify_repo_initialized()\n return str(YKHO._repo_path.parent)", "def bb0K(YKHO):\n U5bT = L3iJ.xmlGetNodePath(YKHO._o)\n return U5bT", "def Ytkq(YKHO, Ux0P):\n tiF9 = Hy7s...
[ "0.71066153", "0.69842476", "0.69365895", "0.68181455", "0.67865956", "0.67167205", "0.67003435", "0.66988", "0.66872007", "0.66872007", "0.66872007", "0.66872007", "0.66872007", "0.66744506", "0.6581204", "0.6482866", "0.64728814", "0.64434314", "0.6439672", "0.64382744", "0...
0.85467654
0
Return the next item from the iterator.
def UDAb(YKHO) -> Kt_s: NRcB = YKHO._buffer if NRcB: return NRcB.popleft() else: return next(YKHO._iterator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UDAb(YKHO):\n if YKHO.i == len(YKHO.data):\n raise StopIteration\n ZfUD = YKHO.data[YKHO.i]\n YKHO.i += 1\n return ZfUD", "def a3Tc(YKHO):\n pass", "def next(YKHO):\n NlZ_ = YKHO.readentry()\n if NlZ_ is None:\n raise StopIteration\n return NlZ_", "def UDAb(YKHO):\n ...
[ "0.8154286", "0.80917937", "0.80530316", "0.78972983", "0.78338754", "0.7789642", "0.77538663", "0.7703747", "0.7664916", "0.7661208", "0.76073277", "0.7546426", "0.7536777", "0.7497758", "0.74917847", "0.74917847", "0.74917847", "0.74917847", "0.74917847", "0.74917847", "0.7...
0.0
-1
Get a list of currently loaded `Config`s.
def b32v(YKHO) -> list[PSrQ]: return YKHO._configs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b32v(YKHO):\n return YKHO._configs", "def PNI3(YKHO):\n b32v = []\n for RcQu in YKHO.order:\n for H5ew in YKHO.plugins[RcQu]:\n tFH4 = YKHO.plugins[RcQu][H5ew]\n Z9rn = tFH4.config(what='get')\n if Z9rn is not None:\n Z9rn.update({'description':...
[ "0.7270811", "0.72301435", "0.71363217", "0.7046203", "0.70267314", "0.6997996", "0.69400656", "0.69071966", "0.68151677", "0.6787089", "0.67708415", "0.6761417", "0.6757037", "0.67358243", "0.6728499", "0.6723536", "0.6681277", "0.6646923", "0.66256005", "0.66068035", "0.658...
0.7417294
0
Get the path to ZeroBot's data directory.
def h_xa(YKHO) -> GkAb: return YKHO._data_dir
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xe5l():\n return GkAb(wk5E.config['USER_DIR']) / 'data'", "def s8df():\n return Hy7s.getcwd() + '/data/'", "def TNBq():\n return '..' + Hy7s.sep + 'data' + Hy7s.sep", "def h_xa():\n return Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.abspath(xAKo)), 'data')", "def h_xa():\n return viqz.dat...
[ "0.8446696", "0.8410059", "0.83191204", "0.8262391", "0.8209076", "0.81263274", "0.805745", "0.8019447", "0.7929177", "0.7869809", "0.7848955", "0.7837167", "0.7837167", "0.78177834", "0.78075594", "0.7784005", "0.77818483", "0.7770792", "0.77665", "0.77510655", "0.7746682", ...
0.80170304
8
Closes a module database connection. Modules should call this method instead of the `close` method on their `Connection` object so that Core may clean up any references to the object.
async def database_disconnect(YKHO, p4vR: str): try: await YKHO._db_connections[p4vR].close() del YKHO._db_connections[p4vR] except KeyError: raise Z7F1(f'Module {p4vR} is not loaded.', mod_id=p4vR) from None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yZlT(Emd4):\n NCls.close()", "def ngVb(YKHO):\n if YKHO.cursor is None and YKHO.database is None:\n return\n YKHO.cursor.close()\n YKHO.database.close()", "def YzkT(YKHO):\n if YKHO._conn is not None:\n YKHO._conn.close()\n YKHO._conn = None", "def DDI8(YKHO):\n if ...
[ "0.78487724", "0.74998206", "0.74980885", "0.74885345", "0.73238695", "0.72956955", "0.7227428", "0.7212614", "0.7175097", "0.71687365", "0.7139028", "0.7138443", "0.71354014", "0.712859", "0.70897734", "0.7084821", "0.7063069", "0.7051071", "0.7037445", "0.7030043", "0.70300...
0.69350255
31
A jurisdiction with Web01 in url should have a parsed URL that removes "Web01" from the URL
def LG7T(YKHO): bD7m = 'https://results.enr.clarityelections.com/AR/53237/149294/Web01/en/summary.html' X62p = RJvy(url=bD7m, level='state') YKHO.assertNotIn('Web01', X62p.parsed_url.path)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MBEQ(YKHO, bD7m):\n bD7m = bD7m.split('#')[0]\n if bD7m.startswith('/wiki'):\n return 'https://en.wikipedia.org' + bD7m\n if 'en.wikipedia.org/wiki/' not in bD7m:\n return 'https://en.wikipedia.org/wiki' + bD7m\n return bD7m", "def wkpn(bD7m):\n zrIJ = 'http://www.gsmarena.com/'\...
[ "0.66650254", "0.6463221", "0.6458684", "0.6411748", "0.6411423", "0.6403579", "0.63397956", "0.63165855", "0.6298673", "0.6268589", "0.6264505", "0.6244958", "0.6239063", "0.61998516", "0.6162777", "0.61618084", "0.61471224", "0.6116817", "0.61041415", "0.61041415", "0.61041...
0.79530567
0
Checks to see if bullets have hit targets. Updates scores and removes dead items.
def txKg(YKHO): for HiWb in YKHO.rocks: for YBnT in YKHO.bullets: if YBnT.alive and HiWb.alive: eLr0 = YBnT.radius + HiWb.radius if abs(YBnT.center.x - HiWb.center.x) < eLr0 and abs(YBnT.center.y - HiWb.center.y) < eLr0: YBnT.alive = False ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def txKg(YKHO):\n for YBnT in YKHO.bullets:\n for pan_ in YKHO.targets:\n if YBnT.alive and pan_.alive:\n eLr0 = YBnT.radius + pan_.radius\n if abs(YBnT.center.x - pan_.center.x) < eLr0 and abs(YBnT.center.y - pan_.center.y) < eLr0:\n if pan_.ty...
[ "0.808712", "0.78685707", "0.7581321", "0.71715426", "0.7093116", "0.7073589", "0.70089424", "0.69819325", "0.6949155", "0.6933009", "0.6898275", "0.68842924", "0.6857828", "0.6819182", "0.68058896", "0.6720051", "0.6688832", "0.6676222", "0.663791", "0.66371304", "0.6616897"...
0.6897173
11
Puts the current key in the set of keys that are being held. You will need to add things here to handle firing the bullet.
def DAJF(YKHO, H5ew: int, F1OP: int): if YKHO.ship.alive: YKHO.held_keys.add(H5ew) if H5ew == jIOH.key.SPACE: YBnT = GBVa() YBnT.fire(YKHO.ship.angle, YKHO.ship.center) YKHO.bullets.append(YBnT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DAJF(YKHO, H5ew: int, F1OP: int):\n if YKHO.ship.alive:\n YKHO.held_keys.add(H5ew)\n if H5ew == jIOH.key.SPACE:\n YBnT = GBVa(YKHO.ship.angle, YKHO.ship.center.x, YKHO.ship.center.y)\n YKHO.bullets_list.append(YBnT)", "def DAJF(YKHO, H5ew: int, F1OP: int):\n YKHO.hel...
[ "0.73024654", "0.71880454", "0.65400505", "0.6481568", "0.64715964", "0.6459044", "0.64037365", "0.63643533", "0.63238823", "0.6319505", "0.6291781", "0.6282269", "0.62529784", "0.625201", "0.62192965", "0.62192965", "0.62023604", "0.61852956", "0.6171418", "0.6153834", "0.61...
0.7320494
0
Computes the precision for the specified values of k maxk = max(topk) batch_size = target.size(0) _, pred = output.topk(maxk, 1, True, True) pred = pred.t() correct = pred.eq(target.view(1, 1).expand_as(pred)) res = []
def vjyh(hlel, pan_): gXXc = 0 Ep8u = pan_.size(0) for YRbF in range(Ep8u): D8Lu = pan_[YRbF].data.cpu().numpy() nvEb = hlel[YRbF].data.cpu().numpy() if D8Lu == oyIN.argmax(nvEb): gXXc += 1 return float(gXXc / Ep8u)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(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.9115542", "0.8273608", "0.8093568", "0.8027956", "0.80217004", "0.80217004", "0.80163985", "0.8011357", "0.80079514", "0.8002287", "0.7987176", "0.7981424", "0.7969961", "0.79673743", "0.7966353", "0.79649156", "0.79649156", "0.79649156", "0.79649156", "0.79649156", "0.796...
0.0
-1
Get the nth output. This will be used for connecting this output to the input of another module. Whatever is returned by this object MUST have an Update() method. However you choose to implement it, the Update() should make sure that the whole chain of logic resulting in the data object has executed so that the data ob...
def LI2u(YKHO, or8S): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HZm8(YKHO, exwG, nPrm):\n oKms = wOed(inputs=YKHO.model.input, outputs=YKHO.model.layers[exwG].output)\n duJk = oKms.predict(nPrm)\n return duJk", "def HZm8(YKHO, exwG, nPrm):\n oKms = wOed(inputs=YKHO.model.input, outputs=YKHO.model.layers[exwG].output)\n duJk = oKms.predict(nPrm)\n return...
[ "0.681908", "0.681908", "0.681908", "0.63481975", "0.62882274", "0.6266888", "0.62581336", "0.6235678", "0.6160396", "0.6139418", "0.6128426", "0.6117038", "0.6115608", "0.61129725", "0.6103343", "0.61011755", "0.6070049", "0.6069314", "0.60688037", "0.60659903", "0.6063304",...
0.68717355
0
Returns current configuration of module. This should return a pickle()able object that encapsulates all configuration information of this module. The default just returns self._config, which is None by default. You can override get_config() and set_config(), or just make sure that your config info always goes via self....
def tgzD(YKHO): YKHO.logic_to_config() return YKHO._config
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tgzD(YKHO) -> cuzp[str, ImMB]:\n if YKHO.config is None:\n YKHO.config = YKHO.load_config()\n return YKHO.config", "def tgzD(YKHO) -> cuzp[str, ImMB]:\n if YKHO.config is None:\n YKHO.config = YKHO.load_config()\n return YKHO.config", "def tgzD(YKHO):\n return YKHO.config", "...
[ "0.81143945", "0.81143945", "0.8078268", "0.7882795", "0.78656054", "0.7782018", "0.7782018", "0.7762519", "0.7762519", "0.7762519", "0.7762519", "0.7762519", "0.7762519", "0.7762519", "0.7762519", "0.7762519", "0.7762519", "0.7762519", "0.7762519", "0.7762519", "0.7762519", ...
0.81540185
0
Set run id for experiment.
def KqdU(YKHO, ByBU: str): YKHO.run_id = ByBU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f6Qh(YKHO):\n raise NotImplementedError()", "def eCGt(YKHO, iXC1, ByBU):\n raise NotImplementedError", "def ByBU(YKHO) -> str:\n return YKHO._step_execution_context.run_id", "def ByBU(YKHO):\n if YKHO._run_id is not None:\n return YKHO._run_id\n iXC1 = wKU_.active_run()\n if iXC1...
[ "0.6331276", "0.6289599", "0.6189492", "0.6146995", "0.613545", "0.6113242", "0.61072356", "0.61024463", "0.6075926", "0.606038", "0.60467964", "0.6017267", "0.6002455", "0.59917843", "0.59770507", "0.5900296", "0.5876527", "0.5868977", "0.5858208", "0.5829603", "0.5828417", ...
0.8194618
0
Get a new pgframe object from the wrapped graph object.
def rPWq(YKHO, fP5V=None, va5k=None, w7zc=None, Sdi5=None): return ikau(YKHO.graph, node_prop_types=fP5V, edge_prop_types=va5k)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GbJr(E51r, Zh7o=True):\n pNZh = _ger.Graph(directed=Zh7o)\n pNZh.add_vertex(E51r.number_of_nodes())\n QWcs = pNZh.new_vertex_property('string', vals=E51r._nodes.index)\n pNZh.vertex_properties['@id'] = QWcs\n for Z9rn in E51r._nodes.columns:\n ITJB = 'string'\n if Z9rn in E51r._nod...
[ "0.62872344", "0.62538594", "0.6065963", "0.5387635", "0.5386343", "0.535984", "0.53034806", "0.5290252", "0.5165699", "0.5132457", "0.5109525", "0.5041663", "0.50308704", "0.49889103", "0.49789298", "0.49631593", "0.49562874", "0.49312428", "0.4924124", "0.4912302", "0.49078...
0.5627066
3
Get the opposite direction to the one specified.
def RGK4(XSoh): return (XSoh + 2) % 4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RGK4(YKHO):\n if YKHO.direction == 8:\n return LgK1(8)\n exwG = YKHO.direction + 4\n if exwG >= 8:\n exwG -= 8\n return LgK1(exwG)", "def kJci(YKHO, XSoh):\n return oBbS[XSoh]", "def RGK4(YKHO):\n if YKHO == YKHO.EAST:\n return YKHO.WEST\n elif YKHO == YKHO.WEST:\n...
[ "0.82954293", "0.78264445", "0.7694165", "0.74472415", "0.73675305", "0.7192908", "0.7021444", "0.6757454", "0.6756536", "0.6682565", "0.66636866", "0.66576535", "0.65451837", "0.65402687", "0.652046", "0.6462221", "0.64339495", "0.64159703", "0.6338639", "0.6332242", "0.6312...
0.7395814
4
Get the number of rows in this maze.
def VVmZ(YKHO): return YKHO.nrows
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A6_I(YKHO):\n if YKHO.number_of_columns():\n return YKHO._number_of_rows\n else:\n return 0", "def usx6(YKHO) -> int:\n return YKHO.__squares.__len__()", "def RJbo(YKHO):\n return YKHO.iter_n_children(None)", "def SWGE(YKHO):\n return YKHO.__rows", "def mWYI(YKHO):\n ret...
[ "0.8065674", "0.7605544", "0.75839937", "0.7550477", "0.75169176", "0.7507785", "0.7507785", "0.7493737", "0.7403451", "0.7343553", "0.73332006", "0.7320504", "0.73039526", "0.7302027", "0.7289958", "0.7268313", "0.7172276", "0.7151576", "0.71329355", "0.7117828", "0.71078914...
0.7103179
22
Get the number of columns in this maze.
def fool(YKHO): return YKHO.ncols
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ctMN(YKHO):\n return YKHO.__ncols", "def OfOG(YKHO):\n Npgh = YKHO.children\n return 1 if not Npgh else sum([Z9rn.n_cols for Z9rn in Npgh])", "def ulBT(YKHO):\n return len(YKHO.rows[0])", "def ZLJ_(YKHO) -> int:\n return YKHO.__squares[0].__len__()", "def ulBT(YKHO):\n return len(YKHO...
[ "0.8071063", "0.80709946", "0.7989396", "0.79877925", "0.79652107", "0.7914604", "0.76453346", "0.7642129", "0.7611825", "0.7581515", "0.7468458", "0.74653405", "0.74458045", "0.74328476", "0.7422949", "0.7398103", "0.7397688", "0.73901284", "0.73478353", "0.73343307", "0.723...
0.74092275
16
Get the end cell of this maze.
def a_N1(YKHO): return (YKHO.end_row, YKHO.end_col)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LaNC(YKHO) -> bhPX:\n return YKHO._end_node", "def dVXZ(TxAA):\n MZ6W = 0\n for YRbF in range(0, len(TxAA)):\n for r845 in range(0, len(TxAA[0])):\n if TxAA[YRbF][r845] == '.':\n MZ6W = YRbF * len(TxAA[0]) + r845\n return MZ6W\n return -1", "def O...
[ "0.8780055", "0.69453984", "0.6916037", "0.68668157", "0.6854134", "0.68447965", "0.6794274", "0.67857593", "0.67741", "0.6772599", "0.6725976", "0.66654474", "0.6637268", "0.6608814", "0.6580767", "0.6525401", "0.64986277", "0.64675057", "0.6457178", "0.64547575", "0.6439617...
0.81635135
1
Draw a path in the maze. This method draws a path through the sequence of cells specified by path. The path is drawn as a line joining the centers of the cells in the order they appear in path; the line is given the color C{color}.
def tbyF(YKHO, pmON, qfpW): T86l = YKHO.cell_width / 2 TRBA = YKHO.cell_height / 2 jcPU = [] for VmPb in pmON: jcPU.append((YKHO.cell_width * VmPb[1] + T86l, YKHO.height - (YKHO.cell_height * VmPb[0] + TRBA))) YKHO.cvs.create_line(jcPU, width=4, fill=qfpW) YKHO.draw()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tbyF(YKHO, pmON):\n for KglD in pmON:\n jIOH.draw_lrtb_rectangle_filled(left=KglD[0] - 3, right=KglD[0] + 3, bottom=abs(KglD[1] + 3 - vkJL), top=abs(KglD[1] - 3 - vkJL), color=Cyas[foAU.YELLOW.value])", "def tbyF(pmON, OfK8='blue'):\n cwhV = [GkAb.LINETO] * len(pmON)\n cwhV[0] = GkAb.MOVETO\n...
[ "0.70254314", "0.68869674", "0.68448305", "0.66557", "0.63272965", "0.60230833", "0.5990763", "0.5972572", "0.58943367", "0.5867718", "0.5777874", "0.5754116", "0.57433164", "0.5739783", "0.57218695", "0.5637876", "0.5630486", "0.5625403", "0.56165", "0.5614929", "0.56037366"...
0.83404523
0
Generates a safe filename that is unlikely to collide with existing objects in Google Cloud Storage. ``filename.ext`` is transformed into ``filenameYYYYMMDDHHMMSS.ext``
def icYR(Ux0P): Ux0P = YX8g(Ux0P) _c1T = qcWV.datetime.utcnow().strftime('%Y-%m-%d-%H%M%S') aPr_, Fst3 = Ux0P.rsplit('.', 1) return '{0}-{1}.{2}'.format(aPr_, _c1T, Fst3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pcWg(Ux0P: str) -> str:\n return f'{str(qxeD.uuid4())}.{oIn5(Ux0P)}'", "def icYR(Ux0P):\n _c1T = qcWV.datetime.utcnow().strftime('%Y-%m-%d-%H%M%S')\n aPr_, Fst3 = Ux0P.rsplit('.', 1)\n return '{0}-{1}.{2}'.format(aPr_, _c1T, Fst3)", "def P9WV(KAOR, Ux0P, y0cW):\n xORj = HBct.md5()\n xORj....
[ "0.8051683", "0.76883185", "0.76821464", "0.76653725", "0.7337239", "0.7305871", "0.72462344", "0.7231017", "0.72304237", "0.72159994", "0.7132826", "0.7096136", "0.7081943", "0.7056506", "0.70259917", "0.69658434", "0.69578105", "0.69435066", "0.6924882", "0.6911021", "0.687...
0.7509315
4
Request a DELETE LOCAL action
def OF4p(YKHO, gIsw: str): gIsw = rtow(gIsw) oUZx = QRnd.Command(QRnd.Command.Action.DELETE_LOCAL, gIsw) db6b = n_HT() oUZx.add_callback(db6b) YKHO.__controller.queue_command(oUZx) db6b.wait() if db6b.success: return SmhL(body="Requested local delete for file '{}'".format(gIsw)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RoLj(YKHO, *qIxc, **B2fa):\n return YKHO._request('delete', *qIxc, **B2fa)", "def PTpj(YKHO, *qIxc, **B2fa):\n YKHO.request('delete', *qIxc, **B2fa)", "def PTpj(YKHO):\n return (Xqgu.Request('DELETE', '{0}'.format(YKHO.get_url())), gpan.parse_json)", "def M8hL(YKHO, **B2fa):\n return YKHO.rab...
[ "0.7384338", "0.732763", "0.7325789", "0.72367567", "0.7233924", "0.7210971", "0.7202911", "0.7200737", "0.71663547", "0.71227825", "0.7119012", "0.7119012", "0.7119012", "0.7119012", "0.7119012", "0.7119012", "0.7119012", "0.7119012", "0.7119012", "0.7119012", "0.7119012", ...
0.0
-1
Tests the default option of properties.
def PNTs(YKHO): for wEf2 in (1, {}, 'test', None): QWcs = z0e4(default=wEf2) YKHO.assertEqual(wEf2, QWcs.interpret(HXPI.PROPERTY_SENTINEL, {}))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kA7q(YKHO):\n mivd = {'type': 'defaults', 'spec_type': 'property', 'functional': True}\n assert 'property' not in YKHO.spec_parser._defaults\n assert YKHO.spec_parser.parse_statement(mivd) is None\n assert 'property' in YKHO.spec_parser._defaults\n assert 'functional' in YKHO.spec_parser._defaul...
[ "0.7462565", "0.7457675", "0.7291311", "0.7116405", "0.703369", "0.69905543", "0.6955457", "0.65332913", "0.64178056", "0.6393374", "0.6393374", "0.6393374", "0.63918966", "0.6328085", "0.63202673", "0.62699956", "0.626532", "0.62403846", "0.6229158", "0.6225812", "0.62227184...
0.774593
0
Tests that properties can pick up values from environment.
def Sych(YKHO): QWcs = z0e4(default='def', from_environ='ENV_VAR') YKHO.assertEqual('def', QWcs.interpret(HXPI.PROPERTY_SENTINEL, {})) YKHO.assertEqual('var', QWcs.interpret(HXPI.PROPERTY_SENTINEL, {'ENV_VAR': 'var'})) YKHO.assertEqual('value', QWcs.interpret('value', {'ENV_VAR': 'var'}))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qIZS(mWFP, C9U5):\n assert C9U5['x']\n assert C9U5['y']", "def ylBi(YKHO):\n aaaa(YKHO, 'read_props')", "def gKWM(YKHO):\n GPtr = aBRm()\n GPtr.environment = {'a_field': 'a_value'}\n YKHO.assertEqual('a_value', GPtr.a_field)", "def y5vs(YKHO):\n YKHO.assertTrue(hasattr(gCuF, 'PROJECT...
[ "0.71338564", "0.6963545", "0.6835958", "0.6814102", "0.6801935", "0.6751958", "0.6683329", "0.63902354", "0.6388913", "0.6374609", "0.63606745", "0.63392234", "0.62623185", "0.625828", "0.62348086", "0.6187986", "0.6184467", "0.61626345", "0.61269975", "0.61101747", "0.61095...
0.7581173
0
Get a random element from the set.
def UIrZ(YKHO): exwG = len(YKHO.keys) while exwG > 0: d6pt = tuKI.randint(0, exwG - 1) Ufrw = YKHO.keys[d6pt] if Ufrw in YKHO.ds: return Ufrw else: YKHO.keys[d6pt] = YKHO.keys[exwG - 1] YKHO.keys.pop() exwG = exwG - 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UIrZ(YKHO):\n return YKHO.nums[tuKI.randint(0, len(YKHO.nums) - 1)]", "def UIrZ(YKHO) -> int:\n return tuKI.choice(list(YKHO.set))", "def P8Zf(YKHO) -> 'PFElement':\n return tuKI.choice(list(iter(YKHO)))", "def GgQQ(h_S5):\n assert h_S5\n return next(iter(h_S5))", "def tuKI(YKHO, VKe4=No...
[ "0.7703242", "0.72931343", "0.7218611", "0.6870737", "0.68438596", "0.6831954", "0.6775109", "0.67205936", "0.6701239", "0.66633993", "0.6633367", "0.66202724", "0.66111916", "0.6597498", "0.6564292", "0.6475166", "0.64615905", "0.64409477", "0.64128685", "0.63991153", "0.639...
0.73851275
1
for independent variable x and y, percentiles are given after resampling
def hpNL(YKHO, vexM): return YKHO.sum_stat_sample_delta.get_percentile(vexM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CSzE(Zi12, WKvO, LVAh, vexM=25, aVkX=15, GG8N='blue', NqEh='orange', sorted=True, ctLK=1):\n if min(WKvO) == max(WKvO):\n return\n Pyrc = oyIN.linspace(min(WKvO), max(WKvO), aVkX + 1)\n if not sorted:\n noZV = oyIN.argsort(WKvO)\n WKvO = WKvO[noZV]\n LVAh = LVAh[noZV]\n ...
[ "0.6408679", "0.629561", "0.62342966", "0.6112837", "0.6087539", "0.5984435", "0.58791053", "0.5831784", "0.5826569", "0.5821777", "0.57692796", "0.5756256", "0.57036126", "0.5696323", "0.567178", "0.56645226", "0.5660805", "0.5616063", "0.5614366", "0.557153", "0.5569295", ...
0.53345835
65
for independent variable x and y, percentiles are given after resampling
def hpNL(YKHO, vexM): return YKHO.sum_stat_sample_ratio.get_percentile(vexM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CSzE(Zi12, WKvO, LVAh, vexM=25, aVkX=15, GG8N='blue', NqEh='orange', sorted=True, ctLK=1):\n if min(WKvO) == max(WKvO):\n return\n Pyrc = oyIN.linspace(min(WKvO), max(WKvO), aVkX + 1)\n if not sorted:\n noZV = oyIN.argsort(WKvO)\n WKvO = WKvO[noZV]\n LVAh = LVAh[noZV]\n ...
[ "0.6408679", "0.629561", "0.62342966", "0.6112837", "0.6087539", "0.5984435", "0.58791053", "0.5831784", "0.5826569", "0.5821777", "0.57692796", "0.5756256", "0.57036126", "0.5696323", "0.567178", "0.56645226", "0.5660805", "0.5616063", "0.5614366", "0.557153", "0.5569295", ...
0.5435174
40
Applies the patch on the main image and returns the mask and bounding box as well.
def tXRw(VXjJ, Po4F, UHFx=5, vgXP=150): ZHfW = oyIN.zeros(shape=VXjJ.shape) oUSw = [] THkp = (0, 0) eK5b = uy2L(VXjJ.shape[0], VXjJ.shape[1]) for YRbF in range(UHFx): fTff = tuKI.choice([WKvO for WKvO in range(100)]) GWxz = fTff + Po4F.shape[0] JCr6 = fTff + Po4F.shape[1] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A2Bw(YKHO, *qIxc, **B2fa):\n return t7xG.image_calcmask(YKHO, *qIxc, **B2fa)", "def PbUT(YKHO, d6pt):\n if not YKHO.masked:\n return None\n WKvO, LVAh = YKHO.location_of(d6pt)\n Po4F = ht2j.from_numpy(YKHO.mask[WKvO:WKvO + YKHO.size, LVAh:LVAh + YKHO.size])\n if YKHO.transform:\n ...
[ "0.6651828", "0.6356996", "0.6293321", "0.620217", "0.6134846", "0.6112564", "0.6105306", "0.6087283", "0.60775584", "0.60405445", "0.5965456", "0.59376836", "0.5929721", "0.5901859", "0.58827364", "0.58625907", "0.5861938", "0.5826377", "0.5826043", "0.5740866", "0.5698757",...
0.62756723
3
This function changes learning rate to new value. Since learning rate is shared variable, we should use set_value().
def hcd3(YKHO, WVUz): YKHO.lr.set_value(float(WVUz))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yCHN(cuiw, _nen, BL_6, WVUz):\n cuiw.run(_nen, feed_dict={BL_6: WVUz})", "def WVy8(YKHO):\n YKHO.n_steps += 1\n tspZ = YKHO.factor * YKHO._get_lr_scale()\n for Lwm5 in YKHO._optimizer.param_groups:\n Lwm5['lr'] = tspZ", "def fggk(YKHO):\n YKHO.scheduler.step()\n tspZ = YKHO.optimiz...
[ "0.7587773", "0.737875", "0.7320322", "0.72316295", "0.7159801", "0.714057", "0.7125382", "0.7114639", "0.7104667", "0.7104667", "0.7095801", "0.7085539", "0.69651103", "0.6876685", "0.6863759", "0.6858237", "0.6857306", "0.6849106", "0.6847716", "0.68458945", "0.6836044", ...
0.72119653
4
Get the reward of one round Only reward the player agent if player wins
def Jc_J(YKHO, Uhr4, qhbw): return Uhr4 - qhbw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vOGg(YKHO, oyg0, cPA3):\n if cPA3 == 'Tie':\n return 1\n elif cPA3 == 'Resume':\n return -1\n elif oyg0 == 'agent':\n return 10\n else:\n return -10", "def vOGg(YKHO, bHVe):\n if bHVe == YKHO.side:\n return YKHO.win\n elif bHVe == hsKJ.NOT_FINISHED:\n ...
[ "0.81357235", "0.7982517", "0.76592034", "0.75622046", "0.7515008", "0.74958193", "0.7494599", "0.74475443", "0.74376804", "0.7395006", "0.7372123", "0.73709", "0.73486215", "0.73458314", "0.7295311", "0.7287587", "0.7287037", "0.7268536", "0.7241892", "0.7218869", "0.7183708...
0.7534283
4
Get the min/max exp_states
def zqOd(YKHO): PtQX = max(YKHO.exp_states, key=YKHO.exp_states.get) vELP = min(YKHO.exp_states, key=YKHO.exp_states.get) print(PtQX, YKHO.exp_states[PtQX]) print(vELP, YKHO.exp_states[vELP])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m3fM(YKHO):\n SIEt = YKHO.network.isomers[0].E0\n htZ0 = SIEt\n for uQd7 in YKHO.network.isomers[1:]:\n jKZG = uQd7.E0\n if jKZG < SIEt:\n SIEt = jKZG\n if jKZG > htZ0:\n htZ0 = jKZG\n for elux in YKHO.network.reactants:\n jKZG = elux.E0\n if...
[ "0.5951384", "0.57576567", "0.5755593", "0.55911875", "0.554417", "0.5529356", "0.54989904", "0.5489958", "0.54418206", "0.5384079", "0.5348396", "0.5348102", "0.5329108", "0.53245866", "0.5315933", "0.5314198", "0.5304732", "0.5283992", "0.52822924", "0.5276161", "0.5272851"...
0.7456573
0
Generates a 1d vector of gaussian sampled random values
def TqY7(zNig): exwG = ht2j.randn(zNig, 100) return exwG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UbES(YKHO, yGTL=0.0, wEsz=1.0, zNig=1):\n yBeu = oyIN.random.normal(yGTL, wEsz, zNig)\n return yBeu", "def vrz7():\n Os_7 = 10 * XTiz.random.chisquare(3)\n TVTK = XTiz.random.chisquare(3)\n JBMS = XTiz.random.uniform(-10 + TVTK, 10 - TVTK)\n WKvO = XTiz.linspace(-10, 10, 500)\n LVAh = Os...
[ "0.7531607", "0.75252485", "0.74670124", "0.7418167", "0.7407269", "0.73067445", "0.722988", "0.7201072", "0.7039607", "0.69457895", "0.6935208", "0.6903772", "0.6903736", "0.68891704", "0.687811", "0.67878044", "0.6787457", "0.6770878", "0.6764252", "0.67415416", "0.6699636"...
0.0
-1
Tensor containing zeros, with shape = size
def rzA5(zNig): nPrm = ht2j.zeros(zNig, 1) return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VNqG(*ROpF, **B2fa):\n return llWB(oyIN.zeros(ROpF), **B2fa)", "def VNqG(ROpF, yDqo=oyIN.float32, si3H=False):\n return llWB(oyIN.zeros(ROpF, yDqo), constant=si3H)", "def lsmZ(*ROpF, **B2fa):\n return llWB(oyIN.empty(ROpF), **B2fa)", "def PIEQ(vhpA):\n raise NotImplementedError", "def lsmZ(...
[ "0.87667", "0.84801996", "0.8066345", "0.7980073", "0.7807127", "0.77943003", "0.773544", "0.76278424", "0.7525455", "0.75128853", "0.7445225", "0.7443453", "0.7431369", "0.7306292", "0.72193164", "0.7216728", "0.720948", "0.71908844", "0.7190392", "0.7187298", "0.7168906", ...
0.7814327
4
The ID of the region where you want to create the endpoint group.
def hp9V(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'endpoint_group_region')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hp9V(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'endpoint_group_region')", "def hp9V(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'endpoint_group_region')", "def ds_6(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'endpoint_group_id')", "def M5Bl(YKHO) -> str:\n return ...
[ "0.7425972", "0.7222339", "0.7147273", "0.70097053", "0.6935099", "0.69308335", "0.64095736", "0.64095736", "0.64095736", "0.64095736", "0.64095736", "0.6184079", "0.61478764", "0.6104096", "0.6073776", "0.6073776", "0.6073776", "0.6070011", "0.6070011", "0.6040642", "0.60322...
0.7517218
0
The name of the endpoint group. The `basic_endpoint_group_name` must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (). The name must start with a letter.
def zy1k(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'basic_endpoint_group_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zy1k(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'basic_endpoint_group_name')", "def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')", "def mWFP(YKHO):\n return f'{YKHO._group.friendly_name} {VCI3}'", "def AfG5(Emd4, uOe2=None):\n ZI14 = f'{Emd4.__module__}.{Emd4.__qualn...
[ "0.8399732", "0.65698206", "0.6502387", "0.6308308", "0.6273647", "0.6273647", "0.6244117", "0.62051815", "0.61892086", "0.61769843", "0.61769843", "0.61509496", "0.61246926", "0.6089578", "0.6067637", "0.60505724", "0.6022867", "0.60113996", "0.5995482", "0.5995482", "0.5995...
0.8519382
0
The name of the endpoint group. The `basic_endpoint_group_name` must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (). The name must start with a letter.
def zy1k(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'basic_endpoint_group_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zy1k(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'basic_endpoint_group_name')", "def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')", "def mWFP(YKHO):\n return f'{YKHO._group.friendly_name} {VCI3}'", "def AfG5(Emd4, uOe2=None):\n ZI14 = f'{Emd4.__module__}.{Emd4.__qualn...
[ "0.8398607", "0.65688246", "0.6502841", "0.63093257", "0.62720245", "0.62720245", "0.62427723", "0.6202981", "0.6186801", "0.61766994", "0.61766994", "0.6151415", "0.6123497", "0.6090226", "0.6067784", "0.6050186", "0.60213447", "0.6010108", "0.59953934", "0.59953934", "0.599...
0.85182226
1
The ID of the region where you want to create the endpoint group.
def hp9V(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'endpoint_group_region')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hp9V(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'endpoint_group_region')", "def hp9V(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'endpoint_group_region')", "def ds_6(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'endpoint_group_id')", "def M5Bl(YKHO) -> str:\n return YKHO._...
[ "0.7517218", "0.7425972", "0.7147273", "0.70097053", "0.6935099", "0.69308335", "0.64095736", "0.64095736", "0.64095736", "0.64095736", "0.64095736", "0.6184079", "0.61478764", "0.6104096", "0.6073776", "0.6073776", "0.6073776", "0.6070011", "0.6070011", "0.6040642", "0.60322...
0.7222339
2
Get an existing BasicEndpointGroup 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, JQIW: Optional[pulumi.Input[str]]=None, zy1k: Optional[pulumi.Input[str]]=None, JBZA: Optional[pulumi.Input[str]]=None, EuQ4: Optional[pulumi.Input[str]]=None, hp9V: Optional[pulumi.Input[str]]=None, iWt9: Optional[pulumi.Input[str]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, ekEV: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None, Rci7: Optional[pulumi.Input[str]]=None, mWFP: Optional[pulumi.Input[str]]=None, _v_y: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['FailoverGroupPa...
[ "0.6077914", "0.5409428", "0.5348675", "0.52237904", "0.5164421", "0.5163234", "0.51078993", "0.5092026", "0.5065578", "0.50340295", "0.50162876", "0.50142306", "0.50052065", "0.5003553", "0.5003553", "0.4933673", "0.49094382", "0.48629972", "0.4845772", "0.47883108", "0.4779...
0.74842507
0
The name of the endpoint group. The `basic_endpoint_group_name` must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (). The name must start with a letter.
def zy1k(YKHO) -> qe4Y.Output[h8nf[str]]: return qe4Y.get(YKHO, 'basic_endpoint_group_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zy1k(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'basic_endpoint_group_name')", "def zy1k(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'basic_endpoint_group_name')", "def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')", "def mWFP(YKHO):\n return f'{YKHO._group...
[ "0.85190666", "0.85190666", "0.65703756", "0.6504761", "0.63105655", "0.62737054", "0.62737054", "0.6240665", "0.62051535", "0.6188521", "0.6177619", "0.6177619", "0.6152473", "0.6125156", "0.6091694", "0.60679746", "0.6051146", "0.6023272", "0.6011264", "0.5996545", "0.59965...
0.8399789
2
The ID of the region where you want to create the endpoint group.
def hp9V(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'endpoint_group_region')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hp9V(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'endpoint_group_region')", "def hp9V(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'endpoint_group_region')", "def ds_6(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'endpoint_group_id')", "def M5Bl(YKHO) -> str:\n return Y...
[ "0.7516322", "0.7221384", "0.7145687", "0.7010394", "0.6935785", "0.69293815", "0.6407801", "0.6407801", "0.6407801", "0.6407801", "0.6407801", "0.6184805", "0.6148318", "0.61042744", "0.60719585", "0.60719585", "0.60719585", "0.6067021", "0.6067021", "0.6038862", "0.603256",...
0.74248034
1
Get a synthesizer configuration setting (instance attribute).
def NMoC(YKHO, H5ew): return getattr(YKHO, H5ew)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GPtr(YKHO):\n return YKHO[OtOl]", "def GPtr(YKHO):\n return YKHO.namespace['config']", "def wLv7(YKHO):\n return YKHO.__config", "def wLv7(YKHO):\n return YKHO.__config", "def wLv7(YKHO):\n return YKHO.__config", "def wLv7(YKHO):\n return YKHO.__config", "def wLv7(YKHO):\n retu...
[ "0.6328491", "0.6241151", "0.6049961", "0.6049961", "0.6049961", "0.6049961", "0.6049961", "0.6049961", "0.6049961", "0.6049961", "0.6049961", "0.6049961", "0.6049961", "0.6049961", "0.6049961", "0.6049961", "0.6049961", "0.6049961", "0.6049961", "0.6049961", "0.6049961", "...
0.0
-1
Return the hardware/firmware version.
async def version(YKHO): YKHO.do('version') return (await YKHO.read(7)).strip()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uCIf(YKHO):\n return YKHO._get_system_status()['firmware']", "def YGHx(YKHO):\n return YKHO.data.get('hw_ver')", "def iQc5(YKHO) -> str | None:\n return YKHO.status.get('FIRMWARE')", "def YGHx(YKHO) -> str:\n return YKHO.camera_info['main_hw_version']", "def uCIf(YKHO):\n return YKHO.dat...
[ "0.88212645", "0.8802406", "0.8747833", "0.8554766", "0.8509336", "0.83752495", "0.8351811", "0.8285166", "0.82011724", "0.8198387", "0.81854486", "0.8129188", "0.8079057", "0.8062407", "0.7945479", "0.792709", "0.786665", "0.7840188", "0.78077006", "0.77164555", "0.76591927"...
0.7071856
46
Finds all bags that can contain bag of bag_color
def BujX(U2r0, qfpW): yqYz = set(U2r0[qfpW]) for zGKt in U2r0[qfpW]: yqYz.update(BujX(U2r0, zGKt)) return yqYz
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d8sN(j11U: dict, hmRQ: str) -> x1iM:\n return [qfpW for qfpW, f0c1 in j11U.items() if f0c1.get(hmRQ, False)]", "def P8R0(U2r0, qfpW, pSDG=1):\n KLhD = sum([pSDG * Ty9i for Ty9i in U2r0[qfpW].values()])\n for zGKt, Z5kt in U2r0[qfpW].items():\n KLhD += P8R0(U2r0, zGKt, multiplier=Z5kt * pSDG)\...
[ "0.72859114", "0.70975226", "0.64789695", "0.6281314", "0.6268277", "0.6236848", "0.6176387", "0.61660624", "0.5977398", "0.5967847", "0.5956627", "0.5947883", "0.59432274", "0.5925873", "0.58505464", "0.5684628", "0.5659618", "0.5531975", "0.5486276", "0.54467094", "0.537903...
0.69189525
2
Compute the softmax of each element along an axis of X.
def N93T(EcVT, q7In=1.0, jDK_=None): LVAh = oyIN.atleast_2d(EcVT) if jDK_ is None: jDK_ = next((r845[0] for r845 in enumerate(LVAh.shape) if r845[1] > 1)) LVAh = LVAh * float(q7In) LVAh = LVAh - oyIN.expand_dims(oyIN.max(LVAh, axis=jDK_), jDK_) LVAh = oyIN.exp(LVAh) GM4D = oyIN.expand_di...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(YKHO, WKvO):\n yvT9 = oyIN.zeros(WKvO.shape)\n for YRbF in range(WKvO.shape[0]):\n IA3S = WKvO[YRbF] - oyIN.max(WKvO[YRbF])\n yvT9[YRbF] = oyIN.exp(IA3S) / oyIN.sum(oyIN.exp(IA3S), axis=0)\n return yvT9", "def N93T(WKvO: npt.NDArray) -> eQHC.NDArray:\n Z5xZ = oyIN.max(WKvO, axi...
[ "0.86478335", "0.8523097", "0.85011977", "0.84512436", "0.84243035", "0.8400698", "0.8381795", "0.83787024", "0.83724785", "0.836225", "0.83545095", "0.8344736", "0.8326514", "0.83093625", "0.8273076", "0.82727146", "0.82651985", "0.8247394", "0.8247394", "0.8243556", "0.8242...
0.0
-1