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
Convert a MultiIndex to an Index of Tuples containing the level values. Returns pd.Index Index with the MultiIndex data represented in Tuples. See Also
def q8Oj(YKHO) -> tTFA: return tTFA(YKHO._values, tupleize_cols=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oXyd(YKHO, ABDL: Union[int, Name]) -> tTFA:\n ABDL = YKHO._get_level_number(ABDL)\n nHy2 = YKHO._internal.index_spark_columns[ABDL]\n V_s1 = YKHO._internal.index_names[ABDL]\n AH_4 = YKHO._internal.index_fields[ABDL]\n dHlK = YKHO._internal.copy(index_spark_columns=[nHy2], index_names=[V_s1], in...
[ "0.6654773", "0.65434396", "0.6390498", "0.62782615", "0.6262326", "0.6230774", "0.5940825", "0.5918135", "0.5889361", "0.58864444", "0.5844536", "0.5824272", "0.5815919", "0.5757884", "0.57234967", "0.56859905", "0.5666543", "0.5645326", "0.56252307", "0.5598215", "0.5597644...
0.6084777
6
Compute and return the lexsort_depth, the number of levels of the MultiIndex that are sorted lexically Returns int
def YbUe(YKHO) -> int: if YKHO.sortorder is not None: return YKHO.sortorder return YbUe(YKHO.codes, YKHO.nlevels)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YbUe(cwhV: list[np.ndarray], vZKM: int) -> int:\n udaK = [pkKz(SUrk) for SUrk in cwhV]\n for G1Hx in range(vZKM, 0, -1):\n if Ztwu.is_lexsorted(udaK[:G1Hx]):\n return G1Hx\n return 0", "def KrvW(YKHO) -> bool:\n return YKHO._lexsort_depth == YKHO.nlevels", "def i2Jd(YKHO):\n ...
[ "0.7385462", "0.6377727", "0.60690886", "0.60381955", "0.56702554", "0.5659035", "0.56430185", "0.5625883", "0.558787", "0.5585491", "0.54812646", "0.5478165", "0.5451932", "0.5448635", "0.54420763", "0.54401124", "0.5437833", "0.5417721", "0.5400968", "0.53594816", "0.535705...
0.8027731
0
This is an internal function. Create a new MultiIndex from the current to monotonically sorted items IN the levels. This does not actually make the entire MultiIndex monotonic, JUST the levels. The resulting MultiIndex will have the same outward appearance, meaning the same .values and ordering. It will also be .equals...
def rp_M(YKHO, qa2e: bool=False) -> pcN8: if YKHO._is_lexsorted() and YKHO.is_monotonic_increasing: return YKHO wm18 = [] I7hm = [] for Ujs5, SUrk in zip(YKHO.levels, YKHO.codes): if not Ujs5.is_monotonic_increasing: try: SOYA = Ujs5.argsort() exce...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o1kX(YKHO) -> pcN8:\n wm18 = []\n I7hm = []\n llHi = False\n for Ujs5, SUrk in zip(YKHO.levels, YKHO.codes):\n SUko = oyIN.where(oyIN.bincount(SUrk + 1) > 0)[0] - 1\n Lk3B = int(len(SUko) and SUko[0] == -1)\n if len(SUko) != len(Ujs5) + Lk3B:\n if Ujs5.isna().any() a...
[ "0.5954812", "0.54548645", "0.53807276", "0.52991354", "0.52768683", "0.5166339", "0.4997292", "0.4974434", "0.49533498", "0.48740384", "0.4789813", "0.47135466", "0.46916574", "0.46884668", "0.4613576", "0.4597405", "0.4597138", "0.45930836", "0.45610586", "0.45311022", "0.4...
0.72205967
0
Create new MultiIndex from current that removes unused levels. Unused level(s) means levels that are not expressed in the labels. The resulting MultiIndex will have the same outward appearance, meaning the same .values and ordering. It will also be .equals() to the original. Returns MultiIndex Examples >>> mi = pd.Mult...
def o1kX(YKHO) -> pcN8: wm18 = [] I7hm = [] llHi = False for Ujs5, SUrk in zip(YKHO.levels, YKHO.codes): SUko = oyIN.where(oyIN.bincount(SUrk + 1) > 0)[0] - 1 Lk3B = int(len(SUko) and SUko[0] == -1) if len(SUko) != len(Ujs5) + Lk3B: if Ujs5.isna().any() and len(SUko) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kWZB(SOYA, bctv):\n APUD = YKHO[SOYA]\n for YRbF in sorted(bctv, reverse=True):\n APUD = APUD._drop_level_numbers([YRbF])\n return APUD", "def unLg(YKHO, uZq5='last', jDK_=1, LpaZ=False):\n\n def O0g3(HocT):\n return uK19.drop_duplicate_levels(HocT, keep=uZq5)\n return YKHO.apply...
[ "0.64183295", "0.6152343", "0.5993427", "0.59387267", "0.5914575", "0.58656716", "0.5614754", "0.54434067", "0.54245543", "0.5393707", "0.53626764", "0.5300463", "0.5259481", "0.52122736", "0.5204181", "0.5198902", "0.5162747", "0.5135656", "0.51253617", "0.5004618", "0.49938...
0.70321494
0
Swap level i with level j. Calling this method does not change the ordering of the values.
def wnh0(YKHO, YRbF=-2, r845=-1) -> pcN8: wm18 = list(YKHO.levels) I7hm = list(YKHO.codes) ukjG = list(YKHO.names) YRbF = YKHO._get_level_number(YRbF) r845 = YKHO._get_level_number(r845) wm18[YRbF], wm18[r845] = (wm18[r845], wm18[YRbF]) I7hm[YRbF], I7hm[r845] = (I7hm[r845], I7hm[YRbF]) u...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zh_p(YKHO, YRbF, r845):\n YKHO._data[YRbF], YKHO._data[r845] = (YKHO._data[r845], YKHO._data[YRbF])", "def zh_p(YKHO, YRbF, r845):\n YKHO._data[YRbF], YKHO._data[r845] = (YKHO._data[r845], YKHO._data[YRbF])", "def zh_p(YKHO, YRbF, r845):\n YKHO._data[YRbF], YKHO._data[r845] = (YKHO._data[r845], YK...
[ "0.73458374", "0.73458374", "0.7294086", "0.7292467", "0.7273556", "0.7194417", "0.7175104", "0.71259874", "0.7114592", "0.7006293", "0.69037265", "0.68555343", "0.6693857", "0.6670536", "0.664536", "0.66437215", "0.6585129", "0.6562594", "0.65603286", "0.6547494", "0.6513952...
0.74510264
0
Slice index between two labels / tuples, return new MultiIndex.
def G34s(YKHO, h3Aq=None, DOuq=None) -> pcN8: if DOuq and h3Aq and (DOuq < h3Aq): raise ValueError('after < before') YRbF, r845 = YKHO.levels[0].slice_locs(h3Aq, DOuq) LFlW, _tIi = YKHO.slice_locs(h3Aq, DOuq) wm18 = list(YKHO.levels) wm18[0] = wm18[0][YRbF:r845] I7hm = [SUrk[LFlW:_tIi] f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vn7Z(Emd4, jQ3Z, PKko, yKcO=None, JCyR=None, ZWCE=[]):\n assert Emd4.is_selector(PKko)\n SqIz = Emd4.get_tuples(jQ3Z, PKko, yKcO, JCyR)\n if not SqIz:\n raise ValueError('no tuples matching selector found')\n if all(map(oyIN.iterable, SqIz)):\n if oyIN.iterable(ZWCE) and ZWCE:\n ...
[ "0.6536686", "0.6037534", "0.5943314", "0.5835507", "0.5824985", "0.57659537", "0.5740893", "0.57109267", "0.56019133", "0.5578686", "0.5508475", "0.549459", "0.5400519", "0.53239614", "0.53100234", "0.53050214", "0.5281642", "0.52782875", "0.5255756", "0.5242891", "0.5227938...
0.4968026
50
Coerce the arraylike indexer to the smallest integer dtype that can encode all of the given categories.
def _PRi(QLR1, LeZt, jth9: bool=False) -> oyIN.ndarray: QLR1 = RLlu(QLR1, LeZt) if jth9: QLR1 = QLR1.copy() QLR1.flags.writeable = False return QLR1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LusU(jQ3Z):\n R8Ph = jQ3Z.select_dtypes('category').columns\n for fvDH in R8Ph:\n jQ3Z[fvDH] = jQ3Z[fvDH].cat.codes + 1\n P1M_ = len(jQ3Z[fvDH].unique())\n if P1M_ < 50:\n jQ3Z[fvDH] = jQ3Z[fvDH].astype('uint8')\n elif P1M_ < 16000:\n jQ3Z[fvDH] = jQ3Z[fv...
[ "0.6735268", "0.6106485", "0.6035604", "0.5996344", "0.59342873", "0.592266", "0.58900285", "0.58890307", "0.58890307", "0.58890307", "0.58890307", "0.58390737", "0.57942784", "0.5759401", "0.574761", "0.5687597", "0.5676159", "0.55336756", "0.55336756", "0.5487576", "0.54527...
0.6198376
1
Get a random element from the collection.
def UIrZ(YKHO) -> int: return tuKI.choice(YKHO.items)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P8Zf(YKHO) -> 'PFElement':\n return tuKI.choice(list(iter(YKHO)))", "def m5AQ(YKHO, OxJJ):\n yv6U = list(OxJJ)\n or8S = YKHO._rand_int(0, len(yv6U))\n return yv6U[or8S]", "def UIrZ(YKHO):\n Gv0a = ajWY(0, len(YKHO.list_val) - 1)\n return YKHO.list_val[Gv0a]", "def UIrZ(YKHO):\n retur...
[ "0.7651958", "0.7149041", "0.70814615", "0.7044879", "0.70404017", "0.7034526", "0.6959262", "0.69563407", "0.68719393", "0.68376184", "0.6797525", "0.670551", "0.6697882", "0.6692588", "0.6692588", "0.6692588", "0.6692588", "0.66815263", "0.66744214", "0.66513956", "0.663908...
0.6673934
19
creates a new superuser just created
def Zp54(YKHO, D3lj, mWFP, jTXt): CBIr = YKHO.create_user(D3lj, mWFP, jTXt) CBIr.is_superuser = True CBIr.is_staff = True CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zp54(YKHO, NtEF, D3lj, jTXt):\n print('creating super user....')\n CBIr = YKHO.create_user(username=NtEF, password=jTXt, email=D3lj, commit=False)\n CBIr.is_staff = True\n CBIr.is_superuser = True\n CBIr.save(using=YKHO._db)\n return CBIr", "def sX7Z(NtEF, D3lj, jTXt):\n if NtEF and D3lj...
[ "0.78085625", "0.77692896", "0.77619183", "0.77399", "0.75911707", "0.757191", "0.75698984", "0.7533488", "0.7508352", "0.7494578", "0.74885756", "0.74884254", "0.74800944", "0.7480034", "0.7475248", "0.7474135", "0.745501", "0.74531764", "0.74500483", "0.7447716", "0.7434037...
0.7629331
4
A perfect power is a positive integer n of the form m^k, where m>1 is a positive integer and k>=2. This function returns [m, K].
def gbcj(exwG: int): G1Hx = 2 q49w = round(exwG ** (1 / 2)) while True: r8hN = round(exwG ** (1 / G1Hx)) if r8hN ** G1Hx == exwG: return [r8hN, G1Hx] elif G1Hx > q49w: return None else: G1Hx += 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hNfw(exwG, XP5J, G1Hx, VNqG=False):\n exwG, XP5J, G1Hx = [Wa8K(YRbF) for YRbF in (exwG, XP5J, G1Hx)]\n if exwG < 0:\n if XP5J % 2:\n for a1PO in hNfw(-exwG, XP5J, G1Hx, VNqG):\n yield tuple((-YRbF for YRbF in a1PO))\n return\n if XP5J < 1 or G1Hx < 1:\n r...
[ "0.679824", "0.66985", "0.6617389", "0.6595739", "0.6545694", "0.65331304", "0.6508546", "0.6452992", "0.6445225", "0.63938683", "0.6377683", "0.6373241", "0.6370152", "0.63428986", "0.63234127", "0.6323138", "0.631711", "0.6306986", "0.6303868", "0.6283668", "0.62678844", ...
0.8165863
0
Constructs an array of booleans where an item is True if its position is in ``indices`` otherwise it is False. This can be viewed as the inverse of
def PFnI(_0VL, ROpF=None): _0VL = oyIN.asanyarray(_0VL) if _0VL.dtype.kind not in {'i', 'u'}: _0VL = _0VL.astype(int) if ROpF is None: ROpF = _0VL.max() + 1 ZHfW = oyIN.zeros(ROpF, dtype=bool) if ZHfW.ndim > 1: ZHfW[tuple(_0VL.T)] = True else: ZHfW[_0VL] = True ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SVHo(e5t6):\n if ~isinstance(e5t6, oyIN.ndarray):\n e5t6 = oyIN.array(e5t6)\n if e5t6[-1]:\n e5t6[-1] = False\n kg7d = oyIN.arange(e5t6.size)[e5t6 ^ oyIN.roll(e5t6, 1)]\n if len(kg7d) > 0:\n if kg7d[-1] == e5t6.size - 1:\n kg7d[-1] = e5t6.size\n return oyIN.re...
[ "0.676458", "0.641625", "0.6258842", "0.624677", "0.6062399", "0.6033272", "0.5918816", "0.5802164", "0.5790047", "0.57650036", "0.5590764", "0.55403525", "0.55307055", "0.54913014", "0.5486312", "0.5405002", "0.53583485", "0.5352769", "0.53451174", "0.5342532", "0.53240883",...
0.73741686
0
Returns the top ``num`` minimum indicies. This can be significantly faster than using argsort.
def pTCi(ezWE, mLGw, jDK_=None, aHEA=True): if jDK_ is not None: XkjC = ezWE.shape[jDK_] if mLGw == 0: EZd9 = list(ezWE.shape) EZd9[jDK_] = 0 return oyIN.empty(EZd9, dtype=int) elif mLGw == 1: etdq = list(ezWE.shape) etdq[jDK_] = 1 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SbUR(aTLP, mLGw):\n uuCL = oyIN.sort(aTLP, 1)\n uuCL = oyIN.flip(uuCL)\n e01B = oyIN.argsort(aTLP, 1)\n e01B = oyIN.flip(e01B)\n print(f'Top {mLGw} results:')\n for YRbF in range(mLGw):\n print(e01B[0][YRbF], uuCL[0][YRbF])\n return 0", "def YbSr(aO51, FGW3):\n Aofo = []\n a...
[ "0.7418698", "0.7147127", "0.6476449", "0.61975807", "0.61156195", "0.6089095", "0.59301776", "0.59248763", "0.589006", "0.5882065", "0.5865648", "0.5806599", "0.5789689", "0.5760827", "0.57488984", "0.5728192", "0.57275623", "0.5707767", "0.5677608", "0.5654873", "0.5653699"...
0.52173555
61
Like unique, but works on rows
def _NJ_(ezWE, aHEA=False, oQ6S=False): Umua = oyIN.dtype((oyIN.void, ezWE.dtype.itemsize * ezWE.shape[1])) MNY7 = ezWE.view(Umua) if aHEA: bKK0, DNs0 = oyIN.unique(MNY7, return_index=True) DNs0.sort() kNt0 = MNY7[DNs0].view(ezWE.dtype) zbqM = kNt0.reshape(-1, ezWE.shape[1]) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _NJ_(nPrm, BHGE=None):\n zr4t = aBy0(nPrm, digits=BHGE)\n Tm7A, kcwm, GOZd = oyIN.unique(zr4t, return_index=True, return_inverse=True)\n return (kcwm, GOZd)", "def RR7x(jzdc):\n T4Wy = oyIN.lexsort(jzdc.T)\n jzdc = jzdc[T4Wy]\n yk4i = oyIN.diff(jzdc, axis=0)\n GD_A = oyIN.ones(len(jzdc),...
[ "0.69672424", "0.6963373", "0.6865881", "0.6846622", "0.68000805", "0.6762686", "0.669262", "0.6674285", "0.66658926", "0.6631138", "0.6590475", "0.65817136", "0.6575414", "0.6536839", "0.64441615", "0.64194566", "0.63965786", "0.63751423", "0.6253804", "0.62278455", "0.61671...
0.62918735
18
A generalization of the logistic / sigmoid functions that allows for flexible specification of Sshaped curve. This is also known as a "Richards curve" [WikiRichardsCurve]_.
def TieB(WKvO, pBSp=0, b7hB=1, Nq1b=1, uayI=None, T8ck=None, nNKD=1, Ty9i=1): k0lF = pBSp nMvt = b7hB Nq1b = Nq1b tjUW = nNKD if uayI is not None: if T8ck is not None: raise AssertionError('cannot specify Q and y_intercept') T8ck = -Nq1b + ((k0lF - nMvt) / (k0lF - uayI)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def APZb(Q7kV=0, kFRf=1.0, nIPf=0, Rlmc=0.5, pSDG=1.0):\n caa_ = kFRf - Q7kV\n if caa_ == 0:\n\n def AdZ9(WKvO):\n return Q7kV\n return AdZ9\n kdsO = Rlmc - nIPf\n Ieq3 = pSDG * 0.5 * caa_ / kdsO\n Fg_i = 4.0 * Ieq3 / caa_\n\n def AdZ9(WKvO):\n d7pR = Fg_i * (Rlmc ...
[ "0.6601383", "0.6280292", "0.62607616", "0.6172488", "0.6172488", "0.61618966", "0.60993767", "0.60931927", "0.6071893", "0.60710996", "0.60702044", "0.6062761", "0.6051798", "0.6047526", "0.6046183", "0.6046183", "0.6046183", "0.6046183", "0.6046183", "0.6046183", "0.6036991...
0.0
-1
Disable missing svn access; raise NotFound..
def as5D(YKHO): CWI5 = S_Cy(YKHO.org_name, YKHO.user_id) CWI5.delete(YKHO.svn_repo_name) YKHO.assertRaises(P1dF.NotFound, CWI5.modify, enable=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z0u7(YKHO):\n CWI5 = S_Cy(YKHO.org_name, YKHO.user_id)\n CWI5.delete(YKHO.svn_repo_name)\n YKHO.assertRaises(P1dF.NotFound, CWI5.modify, enable=True)", "def qcGJ(YKHO):\n QAIN = 'o=%s' % YKHO.org_name\n Br4M = '%s=%s' % (YKHO.container_attr, YKHO.user_container)\n PObu = '%s=%s' % (YKHO.use...
[ "0.80089843", "0.70032465", "0.6633306", "0.6282554", "0.62268615", "0.62028176", "0.6000405", "0.57529354", "0.5589777", "0.5475212", "0.54704934", "0.5465017", "0.5455724", "0.53550005", "0.53503644", "0.534648", "0.5339711", "0.5336209", "0.53166074", "0.52957934", "0.5292...
0.80918866
0
Create a batch from a source sequences only.
def YrKN(Emd4, zZcM: T_LongTensor, KeVS: int, LHka: int, E0IQ: int) -> Qqmr: xZIv = zZcM != KeVS Ep8u = zZcM.shape[0] SYEB = ht2j.tensor([[LHka]] * Ep8u, device=zZcM.device) ViLl = ht2j.tensor([[E0IQ]] * Ep8u, device=zZcM.device) ovu8 = SYEB != KeVS JPHp = ht2j.zeros(Ep8u, 1, dtype=ht2j.long, de...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J1hN(JZXy, pan_, Ep8u):\n for a2Ls in range(0, len(JZXy) // Ep8u):\n fsWt = a2Ls * Ep8u\n DLhz = JZXy[fsWt:fsWt + Ep8u]\n oY9z = pan_[fsWt:fsWt + Ep8u]\n yield (oyIN.array(RloX(DLhz)), oyIN.array(RloX(oY9z)))", "def avBn(c7pe, x6A0, Ep8u, FM3J, pWIX):\n for a2Ls in range(0, ...
[ "0.6716162", "0.643453", "0.6406342", "0.6272184", "0.6247726", "0.61936194", "0.60441166", "0.5993861", "0.5975036", "0.5967578", "0.5964723", "0.596399", "0.5903492", "0.5900616", "0.59002256", "0.5879657", "0.5832277", "0.5812053", "0.5808935", "0.57994056", "0.5781162", ...
0.6316397
3
Initialize the Iterator Wrapper with the original iterator.
def FIMM(YKHO, oHE7: BucketIterator, KeVS: int, LHka: int, E0IQ: int) -> None: YKHO.iterator = oHE7 YKHO.pad_index = KeVS YKHO.sos_index = LHka YKHO.eos_index = E0IQ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, rIe8):\n super().__init__()\n YKHO.outerIterator = rIe8\n YKHO.innerIterator = None", "def FIMM(YKHO, oHE7):\n YKHO.iter = oHE7\n YKHO.tmpNext = oHE7.next() if oHE7.hasNext() else None", "def Vs4Q(YKHO):\n YKHO.iterator = 0\n return YKHO", "def Vs4Q(YKHO):\n YKHO.iterat...
[ "0.76188356", "0.7333537", "0.7290369", "0.7290369", "0.7290369", "0.7290369", "0.7206008", "0.71194106", "0.7109696", "0.70647407", "0.7035208", "0.67644656", "0.66755843", "0.65834635", "0.6548109", "0.65479785", "0.65442103", "0.6519445", "0.649507", "0.6493902", "0.645673...
0.63136816
27
Return the same length as the original iterator.
def szAg(YKHO): return len(YKHO.iterator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZBP0(YKHO, WhY1):\n return len(list(WhY1))", "def szAg(YKHO):\n if YKHO.length is None:\n YKHO.length = 0\n for bGrB in YKHO:\n YKHO.length += 1\n return YKHO.length", "def szAg(YKHO):\n if YKHO.length is None:\n YKHO.length = 0\n for bGrB in YKHO:\n ...
[ "0.7450412", "0.69837356", "0.69837356", "0.69837356", "0.69319147", "0.6910794", "0.6822537", "0.6749185", "0.6651546", "0.66056037", "0.6542198", "0.6502088", "0.6473856", "0.64374846", "0.6398692", "0.63731706", "0.632748", "0.63094914", "0.63094914", "0.6304582", "0.62889...
0.75736177
0
Render website's home page.
def kZiy(): return TvZl('home.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bVaH():\n return TvZl('index.html')", "def kZiy():\n return TvZl('homepage.html')", "def kZiy():\n return TvZl('home_page.html')", "def C_QL():\n return TvZl('home/index.html', title='Bem vindo!')", "def C_QL():\n return TvZl('home/a_homepage.html', title='Welcome')", "def C_QL():\n ...
[ "0.8724249", "0.85791856", "0.850329", "0.84860355", "0.84612614", "0.84362435", "0.8429879", "0.8419578", "0.8396612", "0.8396612", "0.8374868", "0.8356488", "0.8350785", "0.8340763", "0.8340763", "0.8336323", "0.8330013", "0.8329599", "0.8325031", "0.8317146", "0.8293699", ...
0.83374727
29
Render the website's about page.
def vsuQ(): return TvZl('about.html', name='Mary Jane')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vsuQ():\n return TvZl('about.html', title='About')", "def vsuQ():\n return TvZl('about_page.html', title='About')", "def vsuQ():\n return TvZl('about.html')", "def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')", "def vsuQ():\n return TvZl...
[ "0.87910306", "0.8698105", "0.86404276", "0.86124563", "0.8490408", "0.84784615", "0.8467779", "0.84352976", "0.84289914", "0.8424242", "0.8424242", "0.8424242", "0.8424242", "0.8424242", "0.8424242", "0.8424242", "0.8424242", "0.8424242", "0.8424242", "0.8424242", "0.8424242...
0.7684119
79
Add headers to both force latest IE rendering engine or Chrome Frame, and also to cache the rendered page for 10 minutes.
def PYz4(geh0): geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1' geh0.headers['Cache-Control'] = 'public, max-age=600' return geh0
{ "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=0'\n return geh0", "def PYz4...
[ "0.82234234", "0.81956995", "0.81631994", "0.81631994", "0.81631994", "0.81631994", "0.81631994", "0.81631994", "0.81631994", "0.81631994", "0.81631994", "0.81631994", "0.81631994", "0.81631994", "0.81631994", "0.81631994", "0.81631994", "0.81631994", "0.81631994", "0.81631994"...
0.822252
3
Accessor for the time interval's start.
def WEpS(YKHO): return YKHO._time_start
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yKcO(YKHO):\n return YKHO._start", "def yKcO(YKHO) -> qcWV:\n return YKHO._start", "def SWox(YKHO):\n return YKHO.time[0].to_pydatetime()", "def bCOv(YKHO):\n return YKHO.get_t_sect()['datetime_start']", "def meSR(YKHO):\n return YKHO.datetime_start", "def yKcO(YKHO):\n return YKHO....
[ "0.74500155", "0.7447435", "0.7303191", "0.7286964", "0.72022676", "0.71304", "0.7127673", "0.7120771", "0.7112563", "0.7096309", "0.70718575", "0.70496345", "0.70496345", "0.70496345", "0.70496345", "0.70496345", "0.70496345", "0.70496345", "0.70496345", "0.69662225", "0.695...
0.7216282
4
Accessor for the time interval's end.
def usV_(YKHO): return YKHO._time_end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A_2I(YKHO):\n return YKHO._start + YKHO._duration", "def Os4s(YKHO) -> qcWV:\n return YKHO._end", "def C7pn(YKHO):\n return YKHO._end_time", "def C7pn(YKHO):\n return YKHO._end_time", "def C7pn(YKHO):\n return YKHO._end_time", "def C7pn(YKHO):\n return YKHO._end_time", "def C7pn(Y...
[ "0.7803142", "0.76213586", "0.75952065", "0.75952065", "0.75952065", "0.75952065", "0.75952065", "0.75952065", "0.75899106", "0.7588204", "0.75714433", "0.7554405", "0.7553865", "0.75085384", "0.74625796", "0.7456855", "0.7427449", "0.73936117", "0.73402727", "0.73240787", "0...
0.7675933
1
Given an input array consisting on only 0, 1, and 2, sort the array in a single traversal.
def P20W(IqQl): xoIO = ZbOB = 0 Os4s = len(IqQl) - 1 while ZbOB <= Os4s: if IqQl[ZbOB] == 0: IqQl[ZbOB], IqQl[xoIO] = (IqQl[xoIO], IqQl[ZbOB]) xoIO += 1 ZbOB += 1 elif IqQl[ZbOB] == 2: IqQl[ZbOB], IqQl[Os4s] = (IqQl[Os4s], IqQl[ZbOB]) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BA9O(qw7D):\n for YRbF in range(0, len(qw7D)):\n for r845 in range(len(qw7D) - 1, YRbF, -1):\n if qw7D[r845] < qw7D[r845 - 1]:\n p1y5 = qw7D[r845]\n qw7D[r845] = qw7D[r845 - 1]\n qw7D[r845 - 1] = p1y5\n return qw7D", "def BA9O(YKHO, xYvp: L...
[ "0.6792707", "0.6758305", "0.6685668", "0.66711134", "0.6660409", "0.6644065", "0.66035944", "0.659015", "0.65542775", "0.6552274", "0.65011084", "0.64874375", "0.6465411", "0.6446616", "0.64315027", "0.64290977", "0.6422456", "0.6421703", "0.6418894", "0.64047986", "0.638907...
0.0
-1
Collect the outputs of all the exits and return them. The output of each exit was cached during the network forward.
def SSA8(YKHO, C3ST): o4Jx = [] for V424 in YKHO.exit_points: RC1y = b72f(C3ST, V424) hlel = RC1y.output assert hlel is not None o4Jx.append(hlel) return o4Jx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NBjn(YKHO):\n while not YKHO.halted:\n YKHO.step()\n return YKHO.outputs", "def Jvkf(YKHO):\n o4Jx = []\n v3uw = []\n for YRbF, mWFP in enumerate(YKHO.output_names[:]):\n try:\n BWXx = YKHO.proto.output_env.look_up(mWFP).unwrapped\n except Exception:\n ...
[ "0.6618349", "0.62767285", "0.61593467", "0.61307776", "0.6050383", "0.59833735", "0.5953864", "0.5943678", "0.59214", "0.5883286", "0.5879582", "0.58708173", "0.58692396", "0.58692396", "0.5866712", "0.5862258", "0.585536", "0.5802761", "0.5800473", "0.5800473", "0.57852036"...
0.6127013
4
Initiate the ship and set its initial position
def FIMM(YKHO, tJm0, Vjhr): super().__init__() YKHO.screen = Vjhr YKHO.ai_settings = tJm0 YKHO.image = a9eO.image.load('images/ship.bmp') YKHO.rect = YKHO.image.get_rect() YKHO.screen_rect = Vjhr.get_rect() YKHO.rect.centerx = YKHO.screen_rect.centerx YKHO.rect.bottom = YKHO.screen_rect....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jeB9(YKHO):\n YKHO._ship = riCe(xpNW / 2, WxMY + vbSn / 2, NfoE, vbSn, 'ship.png')", "def sFpz(YKHO):\n YKHO._ship = riCe()", "def FCbF(YKHO):\n global ship_image\n YKHO.spaceshipgame = NauM()\n YKHO.spaceshipgame.init()\n oeNL = [1, 1]\n y917 = [1, 1]\n YylR = 0\n LNo8 = ejEv\n ...
[ "0.74688536", "0.73925096", "0.7282132", "0.7282132", "0.7265301", "0.71920747", "0.7094937", "0.7037075", "0.70178735", "0.69778967", "0.6960078", "0.6939337", "0.69244725", "0.6922961", "0.6893168", "0.6881085", "0.67898005", "0.67804223", "0.67403555", "0.6687573", "0.6685...
0.70033896
9
Gets the dc_coupled of this HouseData.
def KDh5(YKHO): return YKHO._dc_coupled
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oCI5(YKHO):\n return YKHO._dc_data", "def Bc4p(YKHO):\n return oyIN.array(YKHO['dc_net'], dtype=oyIN.float32)", "def Bc4p(YKHO):\n return oyIN.array(YKHO['dc'], dtype=oyIN.float32) / 1000", "def ZZhR(YKHO):\n return YKHO.get_class_average(YKHO.DCC_class_level)", "def s4vu(YKHO):\n return...
[ "0.6604694", "0.6540403", "0.61643595", "0.61497825", "0.6048216", "0.59379596", "0.5924628", "0.5906544", "0.5902303", "0.58695346", "0.5744178", "0.57345384", "0.57135934", "0.5684726", "0.56818265", "0.56226134", "0.5620376", "0.5588807", "0.5571964", "0.5488626", "0.54634...
0.87088233
0
Sets the load_meter of this HouseData.
def tW85(YKHO, tW85): YKHO._load_meter = tW85
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b6uu(YKHO, rLtC: float) -> None:\n YKHO.load = rLtC", "def M5NB(YKHO, tyeH):\n YKHO.load = tyeH", "def _NHV(YKHO, tyeH: float, gjPR: int, KOfy: int) -> None:\n YKHO.setLoad(tyeH)\n YKHO.setLowerFrequencyBound(gjPR)\n YKHO.setUpperFrequencyBound(KOfy)", "def tW85(YKHO):\n return YKHO._lo...
[ "0.71961355", "0.6657098", "0.6501059", "0.62784505", "0.57750046", "0.56936467", "0.54715943", "0.53181064", "0.5250121", "0.5225849", "0.5183336", "0.51539314", "0.51253825", "0.5106525", "0.5075985", "0.5031486", "0.50192297", "0.50163555", "0.5010086", "0.50047344", "0.49...
0.84862006
0
Gets the solar_meter of this HouseData.
def xeRy(YKHO): return YKHO._solar_meter
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PyRh(YKHO):\n return YKHO._Meter", "def N5D3(YKHO):\n return YKHO._distance.to('m').value", "def Fefd(YKHO):\n return YKHO.read_register(4098, 1, 3)", "def b7v1(YKHO):\n return YKHO.data.solar_meta", "def ynIu(YKHO, mWFP):\n if mWFP not in YKHO.meters:\n return None\n return YK...
[ "0.67554307", "0.640753", "0.6277873", "0.616717", "0.61336553", "0.6038839", "0.6010272", "0.5993609", "0.59500605", "0.5888665", "0.58369154", "0.582259", "0.58135253", "0.5800709", "0.5791866", "0.57748806", "0.5771554", "0.5762523", "0.57592297", "0.57540345", "0.5752503"...
0.8894814
0
Sets the solar_phases of this HouseData.
def Ggu_(YKHO, Ggu_): YKHO._solar_phases = Ggu_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ggu_(YKHO):\n return YKHO._solar_phases", "def rYTr(YKHO, JT9N):\n if JT9N not in dict(YKHO.PHASES):\n raise ValueError(f'Invalid phase {JT9N}')\n YKHO.phase = JT9N", "def _z47(YKHO):\n YKHO.phase = oyIN.sign(YKHO._model())", "def jbiU(YKHO, jbiU):\n YKHO._load_phases = jbiU", "de...
[ "0.61740994", "0.5560123", "0.53640914", "0.5246248", "0.5019741", "0.49605498", "0.49297005", "0.478268", "0.4763144", "0.47445342", "0.471208", "0.47020367", "0.4693328", "0.46841028", "0.4667457", "0.4655861", "0.4623477", "0.46086714", "0.45770493", "0.45529512", "0.45429...
0.82005054
0
Gets the solar_streams_ac of this HouseData.
def LZch(YKHO): return YKHO._solar_streams_ac
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D2wh(YKHO):\n return YKHO._solar_streams_dc", "def LZch(YKHO, LZch):\n YKHO._solar_streams_ac = LZch", "def QI4D(YKHO):\n XB3u = YKHO.ins[0]\n pfRd = YKHO.outs[0]\n LrRw = YKHO._heat_utilities[0]\n qqiJ = LrRw._fresh\n kPp7 = LrRw._used\n return (XB3u, qqiJ, pfRd, kPp7)", "def JJX...
[ "0.751523", "0.65542555", "0.53761286", "0.53480744", "0.51395327", "0.50632006", "0.5053123", "0.5010916", "0.49984208", "0.4803883", "0.47884506", "0.47574258", "0.4740732", "0.47080755", "0.46892452", "0.4688138", "0.46870744", "0.4665904", "0.4635685", "0.46151915", "0.46...
0.88101447
0
Sets the solar_streams_ac of this HouseData.
def LZch(YKHO, LZch): YKHO._solar_streams_ac = LZch
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LZch(YKHO):\n return YKHO._solar_streams_ac", "def D2wh(YKHO, D2wh):\n YKHO._solar_streams_dc = D2wh", "def D2wh(YKHO):\n return YKHO._solar_streams_dc", "def Ggu_(YKHO, Ggu_):\n YKHO._solar_phases = Ggu_", "def LPZt(YKHO):\n if not YKHO.auth:\n raise s09c('Please use the remote()...
[ "0.70731646", "0.6751197", "0.53062844", "0.51466554", "0.4958905", "0.48913848", "0.48836237", "0.47593847", "0.46661678", "0.46238694", "0.46080375", "0.46080375", "0.45820865", "0.45030233", "0.44424072", "0.4438188", "0.44246235", "0.44037995", "0.4402603", "0.43383124", ...
0.8630888
0
Gets the solar_streams_dc of this HouseData.
def D2wh(YKHO): return YKHO._solar_streams_dc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LZch(YKHO):\n return YKHO._solar_streams_ac", "def D2wh(YKHO, D2wh):\n YKHO._solar_streams_dc = D2wh", "def rnMg(YKHO):\n return YKHO._dds", "def oCI5(YKHO):\n return YKHO._dc_data", "def wOb_(YKHO):\n nPrm = YKHO._client.get('streams', YKHO.name)['stream']\n if nPrm is not None:\n ...
[ "0.7310915", "0.65142596", "0.5719843", "0.55714786", "0.5327244", "0.53100216", "0.51808614", "0.5156609", "0.51547754", "0.5154202", "0.5080048", "0.49667823", "0.49384087", "0.49361813", "0.48597783", "0.48535278", "0.4834585", "0.48285556", "0.48269472", "0.4826004", "0.4...
0.89217335
0
Returns true if both objects are equal
def xa14(YKHO, Elif): return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.7961088", "0.7961088", "0.79433626", "0.79303336", "0.7926563", "0.7897525", "0.78826123", "0.78826123", "0.78806067", "0.7872423", "0.7868354", "0.78668815", "0.7825702", "0.7819993", "0.78162885", "0.78078854", "0.78068...
0.79670393
48
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
Allow relations if a model in the auth app is involved.
def j7eD(YKHO, BzZr, RL4V, **MDDt): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j7eD(YKHO, BzZr, RL4V, **MDDt):\n if YKHO.isAdminApp(BzZr) or YKHO.isAdminApp(RL4V):\n return True\n return None", "def j7eD(YKHO, BzZr, RL4V, **MDDt):\n Aofo = BzZr._meta.model_name in ldV1.defaultModels and RL4V._meta.model_name in ldV1.defaultModels\n return Aofo", "def j7eD(YKHO, BzZ...
[ "0.7264568", "0.70190156", "0.6919564", "0.6906994", "0.69009876", "0.6783787", "0.67391515", "0.67210835", "0.6704985", "0.6668281", "0.6638815", "0.6542443", "0.6541121", "0.65383524", "0.64997756", "0.64021367", "0.6397948", "0.63407576", "0.624081", "0.6170405", "0.600265...
0.6990835
2
Plot the value profile of a color map. Ensuring each colour has a different values helps make the colors distinguishable even in grey scale. It also helps that the value progression be monotonous, that way legends go from e.g. light to dark.
def hY0X(SXwH, _Cnz=None): if _Cnz is None: _Cnz = 'line' if len(SXwH) >= 8 else 'scatter' aNZO = QrM1.subplot(111) if _Cnz == 'line': aNZO.plot(Zmkp(SXwH)) else: aNZO.scatter(range(len(SXwH)), Zmkp(SXwH))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y30j(yqzY='rainbow'):\n iMGt = QrM1.get_cmap(yqzY)\n for Z9rn in range(256):\n QrM1.scatter([Z9rn], [0], s=500, c=iMGt(Z9rn), lw=0)\n QrM1.show()", "def KpVK(YKHO, Ux0P):\n N2SF = [f'rgb{YKHO.get_value_tuple(d6pt)}' for d6pt in range(YKHO.point_count)]\n if len(YKHO.interpolated_points)...
[ "0.68211716", "0.66382265", "0.6287913", "0.6286099", "0.6232615", "0.6203256", "0.6181341", "0.617763", "0.6023412", "0.5917912", "0.5879697", "0.58741736", "0.5871331", "0.5832376", "0.5800985", "0.5760505", "0.575366", "0.57489264", "0.5708508", "0.5705339", "0.5646912", ...
0.65808487
2
Replace URLs found in a text string with nothing (i.e. it will remove the URL from the string).
def EGZf(YKHO, VMDN): wQec = ' '.join(ZbWC.sub('http\\S+', '', VMDN).split()) return wQec
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EGZf(l5Ny):\n pass", "def EGZf(l5Ny):\n l5Ny = ZbWC.sub('(?P<url>https?://[^\\\\s]+)', '', l5Ny)\n return l5Ny", "def EGZf(YKHO, l5Ny):\n return ZbWC.sub('http.?://[^\\\\s]+[\\\\s]?', '', l5Ny)", "def o5jW(YKHO, l5Ny: str) -> str:\n mXDZ = 'http\\\\S+'\n return ZbWC.sub(mXDZ, ' ', str(l...
[ "0.84234834", "0.8375139", "0.8313424", "0.8136846", "0.8086758", "0.80581635", "0.7960113", "0.7952343", "0.7834781", "0.7703771", "0.7645327", "0.7403271", "0.7346439", "0.72760266", "0.7173462", "0.7153779", "0.7122551", "0.7063723", "0.7056413", "0.6891972", "0.68544376",...
0.7550426
11
Returns the key corresponding to the minimal value in a dictionnary
def WHwV(YKHO, Csk6): if not Csk6: return None kpLf = min(Csk6.values()) return [G1Hx for G1Hx in Csk6 if Csk6[G1Hx] == kpLf][0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hDxo(Csk6):\n Ty9i = list(Csk6.values())\n G1Hx = list(Csk6.keys())\n return G1Hx[Ty9i.index(min(Ty9i))]", "def z3hX(sTxG):\n Bb2H = []\n i1oS = []\n for YRbF in sTxG:\n Bb2H.append(sTxG[YRbF])\n kpLf = min(Bb2H)\n for YRbF in sTxG:\n if sTxG[YRbF] == kpLf:\n ...
[ "0.8475688", "0.73847765", "0.72780883", "0.7092336", "0.6946089", "0.69052476", "0.6904085", "0.68986154", "0.68128294", "0.6771498", "0.6696533", "0.6646679", "0.66122764", "0.6606074", "0.6558851", "0.6503057", "0.64937824", "0.6443012", "0.6403522", "0.6403522", "0.638910...
0.6698241
10
Plots the palette with or without the original image
def PQ4n(YKHO, JV6e=7, co3n=None, ieWU=True): if YKHO._colors is None: raise ValueError('Model must be fitted in order to plot results') Z1S6 = 20 vgXP = 5 oWHv = YKHO._n_colors if ieWU: LZpg, aNZO = QrM1.subplots(2, 1, facecolor='white') aNZO[0].imshow(YKHO._im, aspect='equa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ryfe(LNo8):\n QrM1.imshow(LNo8, interpolation='nearest')\n QrM1.axis('off')", "def iXC1(tn62='hsv', wqBK=12):\n U1zG = 'colors_{P}_{N}.png'.format(P=tn62, N=wqBK)\n bGrB, jDK_ = QrM1.subplots(1, 1, figsize=(6, 6))\n eaN4 = EecM(tn62, 0, wqBK - 1)\n Jw9H = [eaN4.get_hexstr(_nuU) for _nuU in ...
[ "0.6410979", "0.6292829", "0.6111741", "0.60944027", "0.59892374", "0.59699893", "0.5963698", "0.5959562", "0.5907712", "0.58973783", "0.58826107", "0.5882044", "0.5813558", "0.58097816", "0.575529", "0.5746549", "0.5722852", "0.57149655", "0.57042074", "0.56977355", "0.56974...
0.6250609
2
Put attention masks on hidden using hidden_features and query.
def v2uf(xDcj, CFh_=False): c3Oi = [] oxOY = [] for YRbF in Ni9Y(hC9O): with jj4W.variable_scope('Attention_%d' % YRbF): LVAh = bLAM._linear(xDcj, cshM, True) LVAh = _WqI.reshape(LVAh, [-1, 1, 1, cshM]) KCHu = qkSJ.reduce_sum(Ty9i[YRbF] * qkSJ.tanh(HqPd[YRbF] + LV...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OM0x(YKHO, Zode, ZHfW):\n ZHfW = ZHfW.unsqueeze(-1).expand_as(Zode)\n XHim = Zode[ZHfW].contiguous().view(-1, Zode.size(-1))\n return XHim", "def It5M(Zode, ZHfW):\n if len(ZHfW) != 0:\n Zode[:, ZHfW, :] = 0\n return Zode", "def v2uf(xDcj, YPaw):\n if pf_1.is_sequence(xDcj):\n ...
[ "0.6559086", "0.62840223", "0.6111259", "0.59778535", "0.59240407", "0.590074", "0.5858773", "0.57706964", "0.5740448", "0.5705913", "0.5692008", "0.56839246", "0.56740963", "0.5588107", "0.55809724", "0.55534023", "0.55418223", "0.5530451", "0.54474396", "0.5420755", "0.5420...
0.58081996
7
Test to and from json
def PMac(): M9Bj = lx4i.matgame([[[1, 2], [3, 4]], [[5, 6], [7, 8]], [[9, 10], [11, 12]]]) GLii = {'players': {'r0': 1, 'r1': 1}, 'strategies': {'r0': ['s0', 's1', 's2'], 'r1': ['s3', 's4']}, 'payoffs': {'s0': {'s3': {'r0': 1, 'r1': 2}, 's4': {'r0': 3, 'r1': 4}}, 's1': {'s3': {'r0': 5, 'r1': 6}, 's4': {'r0': 7,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kr2R(YKHO):\n KrbB = {'id': 5, 'class': 'string', 'list': [], 'set': {}}\n YKHO.assertEqual([KrbB], i_Aq.from_json_string(qQXR.dumps([KrbB])))", "def kr2R(YKHO):\n KrbB = {'id': 5, 'class': 'string', 'list': [], 'set': {}}\n YKHO.assertEqual([KrbB, KrbB], i_Aq.from_json_string(qQXR.dumps([KrbB, K...
[ "0.7554929", "0.7507045", "0.74782544", "0.74291545", "0.7233946", "0.71158844", "0.6974972", "0.6964633", "0.68560344", "0.6853396", "0.68450683", "0.6831718", "0.6827157", "0.6801319", "0.6768733", "0.6760327", "0.674297", "0.6739218", "0.6722127", "0.67148465", "0.6675802"...
0.61004174
91
Returns data read from json file at found at 'json_path' location.
def JtLx(RsFk): with open(RsFk, 'r') as wM3v: nPrm = qQXR.load(wM3v) return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PSj2(pmON):\n with open(pmON) as wM3v:\n nPrm = qQXR.load(wM3v)\n return nPrm", "def GvL1(pmON):\n with open(pmON, 'r') as _qOE:\n nPrm = qQXR.load(_qOE)\n return nPrm", "def Nwr9(pmON):\n with open(pmON) as wM3v:\n nPrm = qQXR.load(wM3v)\n return nPrm", "def Kr...
[ "0.8522099", "0.84905845", "0.8424821", "0.82144815", "0.8133503", "0.81079245", "0.79976314", "0.79738456", "0.7885579", "0.78748626", "0.7842806", "0.78236926", "0.78048843", "0.77712125", "0.7758499", "0.7711884", "0.77085274", "0.76701415", "0.7620861", "0.75819886", "0.7...
0.86335784
0
cast signed 32 bit integer to an unsigned integer
def aAOR(YRbF): return YRbF & 4294967295
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K3A2(BWXx: bytes, dmhX: str='little', Zihr: bool=False) -> int:\n return MZ6z(BWXx, 32, dmhX, Zihr)", "def K3A2(Csk6):\n return MZ6z('<I', Csk6)[0]", "def ipB4(D92J: typing.List[int]) -> int:\n return sqoO(D92J, False)", "def lQYI(wEf2):\n if pJQY:\n return _Tdf(wEf2)\n else:\n ...
[ "0.72784126", "0.6967825", "0.67574114", "0.66905993", "0.66078043", "0.6566256", "0.6508671", "0.6500486", "0.64816904", "0.64786464", "0.64373994", "0.64254564", "0.6403062", "0.6380647", "0.63588524", "0.63213164", "0.63132274", "0.63097215", "0.62989795", "0.6284697", "0....
0.7890273
0
Close the syslog server.
def DDI8(YKHO) -> None: YKHO.transport.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DOtz(YKHO):\n YKHO.socket.close()", "def DDI8(YKHO):\n YKHO.Log.log('Server Closed')\n for mv1M in YKHO.Users.values():\n mv1M.getSocket.shutdown(GGmw.SHUT_RDWR)\n mv1M.getSocket.close()\n YKHO.DB.close_connection()\n YKHO.Log.closeFile()\n Hy7s._exit(0)", "def vNXD():\n ...
[ "0.6726157", "0.67099714", "0.66559184", "0.6650795", "0.65764636", "0.65623915", "0.65454465", "0.64631325", "0.6448734", "0.6287994", "0.62663573", "0.6249086", "0.62442166", "0.6178881", "0.6137097", "0.6136726", "0.6134782", "0.6134782", "0.6134782", "0.6134782", "0.61347...
0.0
-1
Get url for Cars detail view.
def hlzF(YKHO): return gxEw('cars:detail', kwargs={'slug': YKHO.slug})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hlzF(YKHO):\n return gxEw('market:category-detail', args=[str(YKHO.id)])", "def Ua71(id):\n return gxEw('category:category-detail', args=[id])", "def hlzF(YKHO):\n return gxEw('category-detail', args=[str(YKHO.categoryId)])", "def hlzF(YKHO):\n return gxEw('csv-detail', args=[str(YKHO.id)])",...
[ "0.7254118", "0.7016152", "0.69017005", "0.68566227", "0.6847931", "0.6825237", "0.6782469", "0.67527354", "0.66832715", "0.66817003", "0.66729796", "0.66469187", "0.6637912", "0.6637912", "0.6637912", "0.6606177", "0.6599574", "0.6578265", "0.6575122", "0.6556195", "0.654518...
0.708076
1
Get url for Rental's list view.
def hlzF(YKHO): return gxEw('cars:rental_list')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hlzF(YKHO):\n return gxEw('view_list', args=[YKHO.id])", "def ILHV(YKHO):\n return gxEw('{}:{}_list'.format(YKHO.label, YKHO.model_map[YKHO.label]))", "def bD7m(YKHO):\n return gxEw('snippet-list')", "def hlzF(YKHO):\n return gxEw('cars:reservation_list')", "def hlzF(YKHO):\n return gxEw...
[ "0.73320866", "0.70137763", "0.6585105", "0.65309435", "0.65157586", "0.650917", "0.6389919", "0.6299749", "0.6267909", "0.6246725", "0.6245288", "0.62239236", "0.62152666", "0.6191842", "0.6189854", "0.61805797", "0.61686975", "0.61682796", "0.61682796", "0.61641526", "0.614...
0.7494777
0
Helper function to ensure empty parent categories are included, and in correct hierarchical order.
def pppX(ACia, VWe_='/'): zSv7 = ACia.split(VWe_) return [VWe_.join(zSv7[:YRbF]) for YRbF in range(1, len(zSv7))]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q3qC(YKHO):\n YKHO.assertEqual(YKHO.category.get_parents(), [])", "def dBWV(YKHO):\n pass", "def vkkC(YKHO):\n YKHO.categoryParent.clear()\n ACnF = YKHO.orm.fetch_parents()\n YKHO.categoryParent.addItems([XP5J.name for XP5J in ACnF])\n YKHO.categoryParent.addItem('')\n YKHO.categoryPar...
[ "0.6736643", "0.64431727", "0.61992127", "0.5955592", "0.5849891", "0.5825452", "0.57866925", "0.57664514", "0.5742064", "0.571915", "0.5672635", "0.5653762", "0.56287664", "0.5586052", "0.55782133", "0.55561423", "0.55531645", "0.55225635", "0.5497372", "0.5467506", "0.54416...
0.0
-1
Initializes a Record object for a given style.
def FIMM(YKHO, C3ST: Union[str, io.IOBase, DM, None]=None, mWFP: Optional[str]=None, p9bx=None): super().__init__(model=C3ST, name=mWFP, database=p9bx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, M24H, FT3f):\n YKHO.styles = M24H\n YKHO.nature = FT3f", "def FIMM(YKHO, nPrm, xzCw=False):\n YKHO._validate = xzCw\n super(dI0d, YKHO).__init__(nPrm or {})", "def FIMM(YKHO, AIu6=None):\n YKHO.record = AIu6", "def Ij7R(_Cnz):\n if isinstance(_Cnz, (str, dict)):\n retu...
[ "0.60679305", "0.5947927", "0.59251535", "0.58511496", "0.56204385", "0.5543454", "0.55402297", "0.5513867", "0.550229", "0.5483007", "0.5447827", "0.5371813", "0.5368332", "0.5364484", "0.5348912", "0.53422546", "0.5315233", "0.5280887", "0.52761346", "0.5262303", "0.5239653...
0.0
-1
Checks if an event is of a given type.
def Aa6U(tvqc, hEKL): return tvqc['meta']['type'] == hEKL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RdPq(tvqc: Any) -> bool:\n return isinstance(tvqc, fx6m) or str(type(tvqc)) == \"<class 'pygame_menu.events.MenuAction'>\"", "def glwj(YKHO, hEKL):\n return hEKL in YKHO._watchable_events or (hEKL == YKHO.ANY and YKHO._allow_any)", "def RdPq(YKHO):\n return YKHO._is_name_type(YKHO.EVENT)", "def ...
[ "0.74271184", "0.7038774", "0.703722", "0.6969158", "0.68571806", "0.6772961", "0.6551863", "0.6551863", "0.65242517", "0.6511125", "0.6253715", "0.62417936", "0.6198896", "0.617824", "0.6177374", "0.6119438", "0.6104513", "0.60985553", "0.6097152", "0.6044385", "0.60175997",...
0.7812664
0
"Obtain the mean of tensor on different GPUs.
def IotL(vhpA): if not (pImw.is_available() and pImw.is_initialized()): return vhpA vhpA = vhpA.clone() pImw.all_reduce(vhpA.div_(pImw.get_world_size()), op=pImw.ReduceOp.SUM) return vhpA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QOgx(YKHO):\n return YKHO.mean(dim='mem')", "def AKNL(EcVT, fuBA):\n cIop = nMvt.clip(nMvt.batch_flatten(EcVT), 0.0, 1.0)\n CfeM = nMvt.clip(nMvt.batch_flatten(fuBA), 0.0, 1.0)\n cIop = nMvt.cast(nMvt.greater(cIop, 0.5), 'float32')\n CfeM = nMvt.cast(nMvt.greater(CfeM, 0.5), 'float32')\n iQ...
[ "0.67156863", "0.6624079", "0.63271046", "0.6325413", "0.6312363", "0.62749434", "0.6229309", "0.622327", "0.6207307", "0.6173767", "0.61488575", "0.6117647", "0.6071423", "0.60597605", "0.60274136", "0.59943736", "0.5977635", "0.5942434", "0.59333897", "0.5926111", "0.589711...
0.6363062
2
Whether or not to set the range of the spinbox based on userdefined limits. Will also reset the range of the spinbox in case this is called while the application is running to ensure it matches what the user requested.
def XOWy(YKHO, uBoX: bool) -> None: YKHO._user_defined_limits = uBoX YKHO.reset_limits()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D9HT(YKHO) -> None:\n if YKHO.userDefinedLimits:\n if YKHO.userMinimum is None or YKHO.userMaximum is None:\n return\n YKHO.setMinimum(YKHO.userMinimum)\n YKHO.setMaximum(YKHO.userMaximum)\n else:\n if YKHO._lower_ctrl_limit is None or YKHO._upper_ctrl_limit is None...
[ "0.75314075", "0.7352342", "0.68105096", "0.6468874", "0.6453545", "0.63285416", "0.6212366", "0.6210483", "0.62017846", "0.6158805", "0.6148999", "0.6049452", "0.6021119", "0.6008431", "0.5981158", "0.59481835", "0.5947525", "0.5915399", "0.59140646", "0.59099233", "0.588906...
0.6112849
11
Set the Lower userdefined limit value, updates the range of the spinbox if needed
def Jkdf(YKHO, LWLc: float) -> None: YKHO._user_minimum = LWLc YKHO.reset_limits()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def remM(YKHO, range):\n YKHO.range = range\n YKHO.slider.setMinimum(0.0)\n YKHO.slider.setMaximum(100.0)\n YKHO.spinbox.setRange(YKHO.range[0], YKHO.range[1])\n yk4i = YKHO.range[1] - YKHO.range[0]\n if yk4i <= 1:\n YKHO.spinbox.setSingleStep(0.01)", "def pVfA(YKHO, Nygx, Qwxx):\n su...
[ "0.71557677", "0.7068435", "0.6977307", "0.6972797", "0.68999773", "0.6886954", "0.67278945", "0.6724877", "0.6704502", "0.6704502", "0.6668009", "0.66628265", "0.6652776", "0.6649353", "0.6619426", "0.6611085", "0.65781635", "0.65781635", "0.65715647", "0.65578175", "0.65301...
0.5976795
51
Set the upper userdefined limit value, updates the range of the spinbox if needed
def wvWX(YKHO, l2lq: float) -> None: YKHO._user_maximum = l2lq YKHO.reset_limits()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hDGm(YKHO, BWXx: int) -> None:\n YKHO.__max_value = BWXx * 2000\n HItf = YKHO.__max_value // 2\n YKHO.__x_spinbox.configure(from_=-HItf, to=HItf)\n YKHO.__x_scale.configure(from_=HItf, to=-HItf)\n YKHO.__y_spinbox.configure(from_=-HItf, to=HItf)\n YKHO.__y_scale.configure(from_=-HItf, to=HItf...
[ "0.7456495", "0.7229764", "0.7080934", "0.700931", "0.69445777", "0.6728854", "0.6706969", "0.6694014", "0.66746736", "0.6663448", "0.6663448", "0.664382", "0.6643003", "0.6643003", "0.6618452", "0.6613077", "0.6583927", "0.65600157", "0.6530531", "0.65131384", "0.6457018", ...
0.595102
65
Will reset the lower and upper limits to either the ones set by the user, or the ones from the channel depending on the current state of userDefinedLimits(). If a None value would be set, do not attempt the update.
def D9HT(YKHO) -> None: if YKHO.userDefinedLimits: if YKHO.userMinimum is None or YKHO.userMaximum is None: return YKHO.setMinimum(YKHO.userMinimum) YKHO.setMaximum(YKHO.userMaximum) else: if YKHO._lower_ctrl_limit is None or YKHO._upper_ctrl_limit is None: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XOWy(YKHO, uBoX: bool) -> None:\n YKHO._user_defined_limits = uBoX\n YKHO.reset_limits()", "def QTns(YKHO):\n if len(YKHO) == 0:\n YKHO.limits = oyIN.array([[0.0, 0.0], [0.0, 0.0]])\n else:\n wBZN, re6M = (YKHO.buf[YKHO.rear][0], YKHO.buf[YKHO.front][0])\n KDmU, rwK9 = YKHO.s...
[ "0.6986642", "0.65963954", "0.65207833", "0.62716544", "0.61193484", "0.6103533", "0.6092916", "0.6036534", "0.6035578", "0.59823394", "0.59669685", "0.59240234", "0.5914237", "0.58373964", "0.5829013", "0.5818958", "0.57566434", "0.5751602", "0.5746164", "0.5744281", "0.5710...
0.80892944
0
Checks if the neighbour cells(left, right, up, down) of a cell contain a piece
def b7QF(iBIi, rdlD, iVRZ, mrj1): bdxl = [] for aFUE, axXY in WVhd.DIRECTIONS.values(): if 0 <= rdlD + aFUE < len(iBIi) and 0 <= iVRZ + axXY < len(iBIi[0]): bdxl.append((rdlD + aFUE, iVRZ + axXY)) for aFUE, axXY in bdxl: if iBIi[aFUE][axXY] == mrj1: return True re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EtVe(iBIi, rdlD, iVRZ, mrj1):\n bdxl = list(WVhd.neighborsList(iBIi, 1, rdlD, iVRZ))\n for U6D_ in bdxl:\n if iBIi[U6D_[0]][U6D_[1]] == mrj1:\n return True\n return False", "def bGUf(YKHO, Ykgi, VVqd, HGCR, Bc4p, p37X, EUtV=None, Nlbv=None):\n if EUtV != None and Nlbv != None an...
[ "0.76284134", "0.73758364", "0.7342762", "0.71909374", "0.70696115", "0.7039344", "0.700078", "0.69598275", "0.68701446", "0.6826606", "0.67978835", "0.6761646", "0.6760024", "0.6750912", "0.6745681", "0.6744129", "0.67328036", "0.6694655", "0.6661721", "0.66559386", "0.66550...
0.7851798
0
Neighbors as a list
def _slj(iBIi, rdlD, iVRZ): bdxl = list(WVhd.neighborsList(iBIi, 1, rdlD, iVRZ)) qjIb = [] for rdlD, iVRZ in bdxl: if WVhd.isEmpty(iBIi, rdlD, iVRZ): qjIb.append((rdlD, iVRZ)) return qjIb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JC0M(YKHO):\n return YKHO.to_coo_matrix().tolil().rows.tolist()", "def qIRx(YKHO):\n return []", "def BTfj(YKHO):\n return [AAbN for AAbN, bGrB in YKHO.neighbors.items()]", "def OPAV(YKHO):\n return YKHO.neighbors", "def OPAV(YKHO):\n return YKHO.Neighbors", "def BTfj(YKHO):\n retur...
[ "0.78987205", "0.78736323", "0.7668056", "0.7640512", "0.75295043", "0.73637086", "0.73570037", "0.73450565", "0.73450565", "0.73450565", "0.73450565", "0.7295819", "0.72040015", "0.71745765", "0.71330017", "0.71217215", "0.7106848", "0.70968086", "0.70505387", "0.70325005", ...
0.63921463
67
Put the ball at the center of the window
def Tv1m(YKHO): YKHO.__window.remove(YKHO.__ball) YKHO.__window.add(YKHO.__ball, (YKHO.__window.width - YKHO.__ball.width) / 2, (YKHO.__window.height - YKHO.__ball.height) / 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HY61(YKHO):\n YKHO.window.add(YKHO.ball, x=(YKHO.window.width - YKHO.ball.width) / 2, y=(YKHO.window.height - YKHO.ball.height) / 2)", "def HY61(YKHO):\n YKHO.window.add(YKHO.ball, x=(YKHO.window.width - YKHO.radius * 2) / 2, y=(YKHO.window.height - YKHO.radius * 2) / 2)\n YKHO.window.add(YKHO.start...
[ "0.7453881", "0.74392587", "0.73138", "0.7275719", "0.72626454", "0.725513", "0.71594524", "0.7147322", "0.7109163", "0.7085537", "0.70269406", "0.70195967", "0.6952797", "0.6915902", "0.68783677", "0.68341815", "0.67195797", "0.67095774", "0.6685317", "0.6638953", "0.6638953...
0.7590598
0
Put the paddle in the middle of the window
def ZXcU(YKHO): YKHO.__window.remove(YKHO.__paddle) YKHO.__window.add(YKHO.__paddle, (YKHO.__window.width - YKHO.__paddle.width) / 2, YKHO.__window.height - YKHO.__paddle_offset)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.center = PvyL()\n YKHO.center.x = zMH2 - 10\n YKHO.center.y = vkJL / 2", "def sZd6(YKHO):\n YKHO.top_center = YKHO.screen_rect.centerx - YKHO.screen_rect.centerx / 2\n YKHO.bot_center = YKHO.screen_rect.centerx - YKHO.screen_rect.centerx / 2", "def dG1x(YKHO):\n YKHO.y ...
[ "0.7819728", "0.76501036", "0.71932906", "0.716291", "0.6831572", "0.67216986", "0.6610099", "0.6514275", "0.64715", "0.64278567", "0.64089906", "0.6407768", "0.6406992", "0.6406575", "0.6351488", "0.63323987", "0.6332168", "0.62906855", "0.6281897", "0.62622166", "0.62516415...
0.8017165
0
To see if the ball hit the paddle
def faK1(YKHO, rlcD): return rlcD == YKHO.__paddle
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RT98(YKHO):\n pass", "def ybvY(YKHO):\n DTSn = _Z6J / 2 + oat2\n mgki = dbOv / 2 + oat2\n if abs(YKHO.ball.center.x - YKHO.paddle.center.x) < DTSn and abs(YKHO.ball.center.y - YKHO.paddle.center.y) < mgki and (YKHO.ball.velocity.dx > 0):\n YKHO.ball.bounce_horizontal()\n YKHO.score ...
[ "0.8416342", "0.79500014", "0.7851007", "0.7644582", "0.76224506", "0.73810154", "0.73634684", "0.7194109", "0.71051097", "0.7101073", "0.70689505", "0.6968781", "0.6764257", "0.6660021", "0.6537229", "0.6526546", "0.64815164", "0.64441", "0.6430917", "0.6413303", "0.6405508"...
0.7832681
3
converts non standard akkadian into standard UTF characters. Note that the root column does not and cannot contain contracted or long vowels, hence the asymmetry in the number of replacements needed
def f34d(vJtP): vJtP['root'] = vJtP['root'].str.replace('T', 'ṭ') vJtP['root'] = vJtP['root'].str.replace('c', 'š') vJtP['root'] = vJtP['root'].str.replace('S', 'ṣ') vJtP['root'] = vJtP['root'].str.replace('x', "'") vJtP['infinitive'] = vJtP['infinitive'].str.replace('T', 'ṭ') vJtP['infinitive']...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QWVy(_R9Q):\n _0SK = {192: 'A', 193: 'A', 194: 'A', 195: 'A', 196: 'A', 197: 'A', 198: 'Ae', 199: 'C', 200: 'E', 201: 'E', 202: 'E', 203: 'E', 204: 'I', 205: 'I', 206: 'I', 207: 'I', 208: 'Th', 209: 'N', 210: 'O', 211: 'O', 212: 'O', 213: 'O', 214: 'O', 216: 'O', 217: 'U', 218: 'U', 219: 'U', 220: 'U', 221:...
[ "0.63565314", "0.6283198", "0.6068743", "0.6004264", "0.59716773", "0.5950174", "0.5925195", "0.5923654", "0.5887589", "0.5806115", "0.57845527", "0.5768532", "0.57665694", "0.5756962", "0.57355344", "0.57063645", "0.5687655", "0.5645826", "0.56394744", "0.5630439", "0.562005...
0.73196036
0
Sort a list of tuples by comparing elements of given index, using collation for given language. If C{lang} is C{None}, current locale is used for collation.
def anED(yv6U, d6pt, DuqQ=None): fVSB = FQmN(DuqQ) yv6U.sort(lambda WKvO, LVAh: NCqB.strcoll(WKvO[d6pt], LVAh[d6pt])) fVSB()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nu3V(yv6U, DuqQ=None):\n fVSB = FQmN(DuqQ)\n yv6U.sort(NCqB.strcoll)\n fVSB()", "def rVaB():\n\n def qk7K(jzdc, Fg_i):\n if jzdc.name == u'English':\n return -1\n elif Fg_i.name == u'English':\n return 1\n else:\n return eHkp(jzdc, Fg_i)\n ...
[ "0.66975147", "0.5091974", "0.50063735", "0.49946716", "0.4973507", "0.49685755", "0.49521363", "0.48961574", "0.4809702", "0.47563213", "0.46868575", "0.46784845", "0.46690688", "0.46400306", "0.46165967", "0.46158993", "0.45997033", "0.455784", "0.45509714", "0.45443237", "...
0.7953653
0
Retrieves the list of all State objects
def K43E(): wspz = [] NC2V = S8SU.all('State').values() for YEnM in NC2V: wspz.append(YEnM.to_dict()) return pz3A(wspz)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fqm3(YKHO):\n return YKHO._states", "def K43E():\n dict = S8SU.all(wHLO)\n list = []\n for QTBn in dict.values():\n list.append(QTBn.to_dict())\n return pz3A(list)", "def qYvF(YKHO):\n return YKHO.states", "def fqm3():\n wspz = S8SU.all(wHLO).values()\n return (pz3A([QTBn.t...
[ "0.8137676", "0.8114916", "0.80541945", "0.79778695", "0.7974168", "0.79698193", "0.78558934", "0.77833647", "0.77445245", "0.7663341", "0.765244", "0.7569619", "0.7534709", "0.7502574", "0.74869597", "0.7467144", "0.7464845", "0.732207", "0.7299296", "0.7243289", "0.72340447...
0.81053764
2
Returns the COMPSS_HOME environment variable
def Y3S_(YKHO): return YKHO.compss_home
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hxxT(YKHO):\n return Hy7s.environ['HOME']", "def hxxT(YKHO):\n return Hy7s.environ['HOME']", "def TjTF():\n from os.path import expanduser\n kZiy = expanduser('~')\n return kZiy", "def bbTC():\n if a9EH.system() == 'Linux':\n try:\n return Hy7s.environ.get('XDG_CONFIG_...
[ "0.70737743", "0.70737743", "0.69509983", "0.67604345", "0.6651154", "0.66254586", "0.6606972", "0.65336055", "0.6519404", "0.63782895", "0.63572073", "0.63210636", "0.6248638", "0.62040174", "0.6149731", "0.61052847", "0.60641414", "0.6017384", "0.6003851", "0.5988884", "0.5...
0.7135089
0
Returns the path to store the tests execution sandbox
def zZ3r(YKHO): return YKHO.target_base_dir
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Togj():\n WFPA = Hy7s.path.dirname(Hy7s.path.abspath(tq_1.getfile(tq_1.currentframe())))\n return Hy7s.path.join(WFPA, 'tests')", "def ednp(YKHO):\n return YKHO.m.swarming_client.path.join('run_isolated.py')", "def l_jd():\n return Hy7s.path.abspath(Hy7s.path.dirname(xAKo))", "def WLhE(YKHO):...
[ "0.6948231", "0.67171586", "0.6711542", "0.66976327", "0.6673063", "0.66638327", "0.65690553", "0.6562768", "0.6550627", "0.64866877", "0.6475483", "0.64753425", "0.64646876", "0.64535296", "0.63497835", "0.6305346", "0.6267874", "0.62099504", "0.61871815", "0.6165046", "0.61...
0.0
-1
Retrieves the object from the data layer with the given key. Returns None if the object is not found. By default this method utilizes the memcache.Client at ``pykvdal.store``. Repurpose this method to use a different data layer.
def toHe(H5ew): global store return VUF1.get(uRlK.quote(H5ew))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO, H5ew):\n try:\n ZfUD = YKHO._item_to_dict(YKHO.client.get_item(**YKHO._prepare_get_request(str(H5ew))))\n if not ZfUD:\n return None\n if ITS7() > float(ZfUD[YKHO._expiry_field.name]):\n return None\n return YKHO.load_object(leDs(ZfUD.get(YKHO._va...
[ "0.76607823", "0.7387342", "0.7363371", "0.73449254", "0.73348904", "0.7309015", "0.7302387", "0.72820723", "0.7277683", "0.7277683", "0.72235066", "0.71865475", "0.7046676", "0.6960232", "0.6960179", "0.6953953", "0.6946638", "0.6926815", "0.6873523", "0.68659115", "0.686108...
0.63479245
67
Build and return a data loader.
def dbLd(HR6F, DqxE, JiRX, IRlE, HLKd=178, Ep8u=16, I7Gy=8, M3uE=True, DgZJ={'brightness': 0.05, 'contrast': 0.05, 'saturation': 0.05, 'hue': 0.05}): C3IF = [] ruCj = [] C3IF.append(X6jI()) ruCj.append(Kt_s.Resize(900)) C3IF.append(Kt_s.RandomCrop(HLKd, pad_if_needed=True, padding_mode='reflect')) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RuZU(nPrm, qQXR, Ep8u, hXNa, I7Gy):\n __n6 = uUr5(nPrm, qQXR)\n zQKy = ht2j.utils.data.DataLoader(dataset=__n6, batch_size=Ep8u, shuffle=hXNa, num_workers=I7Gy, collate_fn=QxcP)\n return zQKy", "def cMaC(YKHO) -> pVAc:\n pass", "def rHzL(YKHO, **B2fa):\n return pVAc(YKHO, **B2fa)", "def JW...
[ "0.74889874", "0.73519504", "0.711431", "0.70320064", "0.6991118", "0.6990211", "0.6968911", "0.6925782", "0.69233835", "0.6864498", "0.68342435", "0.6819947", "0.68127316", "0.6809393", "0.68059325", "0.6692377", "0.6691707", "0.6687672", "0.66781133", "0.66521686", "0.66456...
0.0
-1
Sets up data for the tests.
def _DIw(vtkQ): P1H1 = uwaB.Country.united_kingdom.value.id liZJ = uwaB.Country.united_states.value.id l44h = uwaB.UKRegion.south_east.value.id HhDg(name='abc defg ltd', trading_names=['helm', 'nop'], address_1='1 Fake Lane', address_town='Downtown', address_country_id=P1H1, uk_region_id=l44h) HhDg(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def izSt(Emd4):\n BJsk.initialize_empty_volunteer()", "def izSt(Emd4):\n tOFR.run()", "def izSt(Emd4):\n tOFR.run()", "def izSt(Emd4):\n tOFR.run()", "def izSt(Emd4):\n tOFR.run()", "def FCbF(YKHO):\n YKHO.test_data_path = 'testing/test_data/'", "def FCbF(YKHO):\n YKHO.dataset = ei...
[ "0.81127256", "0.8057943", "0.8057943", "0.8057943", "0.8057943", "0.80004704", "0.7991069", "0.77982366", "0.77596", "0.775312", "0.77453804", "0.76861817", "0.76845056", "0.76102936", "0.7474673", "0.7433597", "0.74293596", "0.742385", "0.7413854", "0.7412238", "0.73999125"...
0.0
-1
Load from a dictionary.
def jG8h(YKHO, Csk6={}): return jGS9(atoms=geHR.from_dict(Csk6['atoms']), defect_structure=geHR.from_dict(Csk6['defect_structure']), defect_index=Csk6['defect_index'], wyckoff_multiplicity=Csk6['wyckoff_multiplicity'], symbol=Csk6['symbol'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vj_J(YKHO, fK8P):\n pass", "def SWln(YKHO, Csk6):\n YKHO._data = Csk6\n YKHO._doDefaults()", "def AXOg(YKHO, vj_J):\n YKHO._data_ = vj_J", "def AXOg(YKHO, vj_J):\n try:\n YKHO.v_protocol = vj_J.pop(zT_u.PROTOCOL)\n except KeyError:\n ChRH = next(vj_J.values())\n YKH...
[ "0.79526144", "0.78697616", "0.7191981", "0.71797186", "0.6959093", "0.6824042", "0.6815806", "0.67868626", "0.6686988", "0.66857815", "0.6684767", "0.6667591", "0.6628185", "0.6613605", "0.6611746", "0.65272284", "0.65208036", "0.6468286", "0.63865453", "0.63865453", "0.6386...
0.0
-1
The constructor for NNData Class.
def FIMM(YKHO, bySB=None, Crrw=None, AQh5=0.9): YKHO._train_factor = lxTP.percentage_limiter(AQh5) YKHO._train_indices = [] YKHO._test_indices = [] YKHO._train_pool = g760.deque() YKHO._test_pool = g760.deque() if bySB is None: bySB = [] YKHO._features = None if Crrw is None: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, r8hN, exwG, nPrm):\n YKHO.m = r8hN\n YKHO.n = exwG\n YKHO.data = nPrm", "def FIMM(YKHO, nPrm, ni6b=0, zCL7=0, vsmE=0, Ziit={}, B6bW=[], jmzt=0, f6Fl=[], _tb5=[], KtG1={}, wPdp={}, yrqc={}, f310=[]):\n YKHO.data = nPrm\n YKHO.dimX, YKHO.dimY, YKHO.dimT = YKHO.data.shape\n YKHO.nod...
[ "0.7481049", "0.7048846", "0.6989654", "0.69872123", "0.69722104", "0.69353855", "0.69345397", "0.6934138", "0.69143593", "0.68904585", "0.6841752", "0.6841528", "0.6833406", "0.6815317", "0.68038726", "0.67527837", "0.6715857", "0.66883916", "0.6685127", "0.6668005", "0.6660...
0.6459548
47
(LinkedList, int, object) > NoneType Insert a new node containing item at position index. Raise IndexError if index is > the length of self. Note that adding to the end of a linked list is okay. >>> lst = LinkedList(['CSC', 'hi', 15, 3.14]) >>> lst.insert(2, 42) >>> lst contains 'CSC', 'hi', 42, 15, 3.14
def JPHp(YKHO, d6pt, ZfUD): sbHd = o7DN(ZfUD) ZbOB = YKHO.first for YRbF in range(d6pt - 1): ZbOB = ZbOB.next QmHV = ZbOB.next ZbOB.next = Esd_ Esd_.next = QmHV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JPHp(YKHO, d6pt, ZfUD):\n if d6pt > len(YKHO):\n raise IndexError\n elif d6pt == 0:\n YKHO.insert_first(ZfUD)\n else:\n YKHO._rest.insert(d6pt - 1, ZfUD)", "def JPHp(YKHO, d6pt, nPrm):\n exwG = o7DN(nPrm)\n if YKHO.empty() and d6pt != 0:\n print('Linked List is Empt...
[ "0.7871121", "0.776206", "0.7720387", "0.7657963", "0.7591564", "0.7544568", "0.7462508", "0.74456376", "0.7424423", "0.74085724", "0.73337936", "0.7316769", "0.7289341", "0.72872275", "0.7267037", "0.71765625", "0.71505976", "0.71348876", "0.7131583", "0.7123947", "0.7089724...
0.70293206
24
Gets a list of boundingboxes, representing each cell in the FOV.
def Mzp2(N0ky): ZCIQ = N0ky[0] / aIpm fVtb = N0ky[1] / iWS0 c8oy = [] h3cg = 0 for rdlD in range(iWS0): BQGg = 0 for iVRZ in range(aIpm): cviu = MWr7(BQGg, h3cg, BQGg + ZCIQ, h3cg + fVtb) c8oy.append(cviu) BQGg = BQGg + ZCIQ h3cg = h3cg + f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NncF(YKHO, SVFM):\n c8oy = []\n while len(SVFM) > 0:\n nUPH = SVFM.pop(0)\n L5VR = True\n while L5VR:\n L5VR = False\n lHJN = 0\n while lHJN < len(SVFM):\n if YKHO.get_distance(nUPH, SVFM[lHJN]) <= YKHO.max_distance:\n ...
[ "0.7128498", "0.67393553", "0.66903865", "0.6600977", "0.65460396", "0.6500302", "0.6448963", "0.64315706", "0.6422916", "0.6383243", "0.638317", "0.63745356", "0.63262737", "0.6292145", "0.6274384", "0.6257264", "0.625344", "0.6236458", "0.6227581", "0.62205577", "0.6217417"...
0.7421705
0
adds an elevation to the LateralProfile
def vhVg(YKHO, gZ0R): if not isinstance(gZ0R, _oUn): raise TypeError('add_elevation requires an _Elevation as input, not ' + str(type(gZ0R))) YKHO.superelevations.append(gZ0R)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tB45(YKHO, yzQA):\n if not isinstance(yzQA, _oUn):\n raise TypeError('add_elevation requires an _Poly3Profile as input, not ' + str(type(yzQA)))\n YKHO.elevations.append(yzQA)", "def yzQA(YKHO, yzQA):\n YKHO.container['elevation'] = yzQA", "def ehPr(YKHO, yzQA):\n YKHO.platform.set_eleva...
[ "0.7866283", "0.7541173", "0.6632503", "0.59285116", "0.5915756", "0.5858479", "0.58203554", "0.5817699", "0.58102375", "0.57906765", "0.5745034", "0.5654982", "0.56413853", "0.5635653", "0.5591043", "0.55278313", "0.5497286", "0.54743564", "0.54320055", "0.5428754", "0.53951...
0.694613
2
adds an elevation to the LateralProfile
def ygNE(YKHO, ROpF): if not isinstance(ROpF, _oUn): raise TypeError('add_elevation requires an _Elevation as input, not ' + str(type(ROpF))) YKHO.shapes.append(ROpF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tB45(YKHO, yzQA):\n if not isinstance(yzQA, _oUn):\n raise TypeError('add_elevation requires an _Poly3Profile as input, not ' + str(type(yzQA)))\n YKHO.elevations.append(yzQA)", "def yzQA(YKHO, yzQA):\n YKHO.container['elevation'] = yzQA", "def vhVg(YKHO, gZ0R):\n if not isinstance(gZ0R,...
[ "0.7866283", "0.7541173", "0.694613", "0.6632503", "0.59285116", "0.5915756", "0.5858479", "0.58203554", "0.5817699", "0.57906765", "0.5745034", "0.5654982", "0.56413853", "0.5635653", "0.5591043", "0.55278313", "0.5497286", "0.54743564", "0.54320055", "0.5428754", "0.5395173...
0.58102375
9
Get the name of file.
def g_2H(bpkq, qm1k): ZI14 = '.json' if not qm1k.endswith('.json') else '' gIsw = f'{qm1k}{ZI14}' return Hy7s.path.join(bpkq, gIsw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g_2H(YKHO):\n return str(YKHO.get_file())", "def W0tD(YKHO):\n return YKHO.file_name", "def W0tD(YKHO):\n return YKHO._file.name", "def g_2H(YKHO):\n return YKHO.file_name", "def g_2H(YKHO):\n return YKHO._fileName", "def g_2H(YKHO):\n return YKHO.__file_name", "def MgDA(YKHO):\n ...
[ "0.8970578", "0.86232793", "0.86175895", "0.85611826", "0.85280865", "0.8525119", "0.84631115", "0.84529465", "0.83937883", "0.83937883", "0.83937883", "0.83937883", "0.83937883", "0.83103794", "0.8258796", "0.8249211", "0.804179", "0.80200344", "0.80096227", "0.7991372", "0....
0.0
-1
Remove an entire group and its imported buckets. Delete from auth JSON and delete .conf file
def xsZs(qIxc): qIxc.suppress_verify_output = True if qutR(qIxc) != 0: HwRy.stdout = HwRy.__stdout__ print('OIDC config file not valid, please use the verify function to debug') return 1 T1uc = nCLl(qIxc) RfbL = DMOV(qIxc) if T1uc != 0 and RfbL != 0: print('Error. Gro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PY1E():\n pass", "def w4jV(qIxc):\n Zt2E = qIxc.group.replace('/', '-')\n with open(qIxc.file, 'r') as eHNT:\n If_q = qQXR.load(eHNT)\n for uOe2 in If_q['groups']:\n if uOe2['name'] == Zt2E:\n for WE7e in uOe2['buckets']:\n if WE7e['name'] == qIxc.bucket:\n...
[ "0.78195804", "0.7365278", "0.690582", "0.6884984", "0.68479836", "0.66439795", "0.65848356", "0.6546363", "0.65119165", "0.629689", "0.62732553", "0.6237461", "0.61938775", "0.6176432", "0.6161303", "0.6147338", "0.61454344", "0.61454344", "0.6100429", "0.60979414", "0.60952...
0.68554175
4
Find the patient indices corresponding to all nonmissing values grouped in TMT experiments.
def rALr(EcVT): nPrm = EcVT.select_dtypes(include=['float64']) or8S = oyIN.argwhere(~oyIN.isnan(nPrm.values)) or8S[:, 1] += 4 vMgG = rLdf.read_csv('msresist/data/MS/CPTAC/IDtoExperiment.csv') assert all(vMgG.iloc[:, 0] == nPrm.columns), "Sample labels don't match." vMgG = vMgG.iloc[:, 1].values ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R_rt(*cRc2: Tensor) -> llWB:\n if len(cRc2) == 0:\n raise ValueError('Must pass at least one tensor as argument')\n qBwg = cRc2[0]\n mrTw = ht2j.zeros(len(qBwg), dtype=ht2j.bool, device=qBwg.device)\n for vhpA in cRc2:\n Z84D = vhpA.flatten(start_dim=1)\n mrTw |= ht2j.any(ht2j....
[ "0.58136404", "0.5708731", "0.56316876", "0.55939835", "0.54255754", "0.53853405", "0.53554946", "0.53549314", "0.53431654", "0.53254133", "0.53028256", "0.52759653", "0.5254565", "0.52477795", "0.52104425", "0.52104425", "0.52104425", "0.51636666", "0.51404786", "0.5124555", ...
0.6025363
0
Filter rows for those containing more than cutoff variance. Variance across conditions per peptide. Note this should only be used with logscaled, meancentered data.
def tKxP(EcVT, QRBv, WN42=0.1): ueTo = oyIN.var(EcVT[QRBv].values, axis=1) > WN42 return EcVT.iloc[ueTo, :]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yi8n(ieZh, gwAu=0.005):\n T8e5 = oyIN.sqrt(ieZh)\n return T8e5 >= gwAu", "def Srr_(YKHO):\n ZImU = YKHO.variant_df.query('gnomAD_exome_ALL == \".\"')\n mCgZ = YKHO.variant_df.query('gnomAD_exome_ALL != \".\"')\n YKHO.unknown_maf_count = ZImU.shape[0]\n mCgZ = mCgZ[mCgZ['gnomAD_exome_ALL'].a...
[ "0.6006151", "0.590222", "0.5869065", "0.56981874", "0.5553796", "0.55403906", "0.55360204", "0.5501963", "0.5459607", "0.54577994", "0.54571337", "0.5424561", "0.5406711", "0.53542566", "0.52668524", "0.52435094", "0.5240034", "0.5233578", "0.52180266", "0.52070886", "0.5202...
0.64819884
0
Remove any sample in zeroth dimension which holds a nan
def rHar(YKHO, nzV8, OJCd): cDK5 = nzV8.shape[0] if cDK5 != OJCd.shape[0]: raise ValueError("x and y sample lengths don't match") y92i = oyIN.zeros(cDK5) for YRbF in range(cDK5): fJpR = nzV8[YRbF, :] ZqT5 = OJCd[YRbF, :] y92i[YRbF] = oyIN.isfinite(fJpR).all() and oyIN.isf...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Oe7i(nPrm):\n for YRbF in nPrm[:]:\n QyVM = nPrm.index(YRbF)\n for r845 in YRbF:\n if oyIN.isnan(r845):\n nPrm.remove(YRbF)\n break\n return nPrm", "def XEBk(jNOo):\n KCHu = oyIN.apply_along_axis(sum, 1, oyIN.isnan(jNOo[1])) == 0\n jNOo[0] = ...
[ "0.7291344", "0.7101682", "0.6896953", "0.6789577", "0.67172015", "0.6643837", "0.66388255", "0.66103345", "0.66024375", "0.6585844", "0.65760493", "0.6542907", "0.64785993", "0.6429807", "0.6405613", "0.63979244", "0.63931096", "0.63767695", "0.63621247", "0.63577837", "0.63...
0.66236323
7
Returns set of interfaces that are required if `pkg` were to implement `ifc`. Returned set of interfaces not closed under subsumption.
def DR1S(RuJL, sKYw, SxG5): return RuJL._pkg_ifc_reqs.get((sKYw, SxG5), frozenset())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qniN(RuJL, sKYw, w8PB):\n R2Dr = set()\n for YRbF in w8PB:\n if (sKYw, YRbF) in RuJL._pkg_ifc_reqs:\n R2Dr.update(RuJL._pkg_ifc_reqs[sKYw, YRbF])\n return R2Dr", "def bq6c(RuJL, SxG5):\n return RuJL._ifc_imps.get(SxG5, frozenset())", "def ShPv(RuJL, SxG5):\n return RuJL._if...
[ "0.775189", "0.70071", "0.60531425", "0.55922616", "0.5562154", "0.5434335", "0.5393135", "0.5346833", "0.5247362", "0.5234199", "0.52315986", "0.51823986", "0.5132653", "0.5073703", "0.50524145", "0.5041055", "0.5034936", "0.5025728", "0.5019404", "0.50037515", "0.4985805", ...
0.8017148
0
Given an iterable of interfaces, returns a set of those which are minimal in the subsumption heirarchy.
def C6XK(RuJL, w8PB): K6XO = RuJL._eqrep _qVU = RuJL._eqset kkNl = RuJL._ifc_bigs w8PB = set(w8PB) eRPr = set((K6XO[jzdc] for jzdc in w8PB)) for jzdc in list(eRPr): eRPr.difference_update((K6XO[Fg_i] for Fg_i in kkNl[jzdc] if K6XO[Fg_i] != jzdc)) P6bq = set() for Mkmy in eRPr: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m1gX(RuJL, w8PB, IDBL):\n K6XO = RuJL._eqrep\n _qVU = RuJL._eqset\n zbDt = RuJL._ifc_subs\n r8hN = {}\n for YRbF in w8PB:\n YRbF = K6XO[YRbF]\n WKvO = None\n for TPao in _qVU[YRbF]:\n o4D3 = IDBL(YRbF)\n if WKvO is None:\n WKvO = o4D3\n ...
[ "0.68048155", "0.5650379", "0.5578197", "0.5515608", "0.5418277", "0.5362869", "0.5359932", "0.5244764", "0.5217986", "0.5217473", "0.5179484", "0.51671064", "0.5166366", "0.51520455", "0.5145244", "0.51439434", "0.513242", "0.5074704", "0.5069232", "0.50639194", "0.5041791",...
0.65822804
1
construct of lrelu activation
def l_xx(YKHO, WKvO): return YKHO.max(WKvO * 0.2, WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tRmQ(YKHO):\n return YKHO.add_layer(tRmQ)", "def zMt_(input):\n CkYf = GVKG(axis=3)(input)\n return MroH('relu')(CkYf)", "def zMt_(input):\n CkYf = GVKG()(input)\n return MroH('relu')(CkYf)", "def zMt_(input):\n CkYf = GVKG()(input)\n return MroH('relu')(CkYf)", "def zMt_(input):\n...
[ "0.7797504", "0.745127", "0.7377045", "0.7377045", "0.7354408", "0.72624815", "0.72624815", "0.7073564", "0.6981284", "0.6966602", "0.6966602", "0.6953286", "0.6925608", "0.6911421", "0.6769586", "0.66786194", "0.6672061", "0.66297936", "0.65981644", "0.657847", "0.6552481", ...
0.0
-1
Returns a JSON response, transforming 'context' to make the payload.
def SGJU(YKHO, QpfX, **TIVb): qQXR = YKHO.convert_context_to_json(QpfX) db6b = YKHO.request.GET.get('callback', None) if db6b: TIVb['content_type'] = 'application/javascript' qQXR = '%s(%s);' % (db6b, qQXR) return YKHO.response_class(qQXR, **TIVb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SGJU(YKHO, QpfX):\n return YKHO.get_json_response(YKHO.convert_context_to_json(QpfX))", "def SGJU(YKHO, QpfX):\n return YKHO.get_json_response(YKHO.convert_context_to_json(QpfX))", "def EK31(YKHO, QpfX, **TIVb):\n return igJ6(YKHO.convert_context_to_json(QpfX), content_type='application/json', **T...
[ "0.7900071", "0.78258467", "0.7675795", "0.7675795", "0.7558514", "0.75040793", "0.7409266", "0.7409266", "0.7409266", "0.7409266", "0.7409266", "0.73804635", "0.73667556", "0.7348796", "0.73462486", "0.73103166", "0.7131352", "0.6942184", "0.6894355", "0.67183167", "0.663160...
0.6624334
24
Returns a list of all aggregator classes
def pi1E(): ycBG = tq_1.getmembers(HwRy.modules[__name__], tq_1.isclass) return [YRbF[1] for YRbF in ycBG if YRbF[0] != 'Aggregator']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KndY(YKHO):\n return list(YKHO._classes_generator())", "def Uh81(YKHO):\n YKHO._process()\n return YKHO._sets", "def qqu8(YKHO):\n KZ52 = []\n KndY = []\n pmON = Hy7s.path.dirname(Hy7s.path.abspath(xAKo))\n HZhf = Hy7s.path.join(pmON, 'measures')\n Cui_ = 'ruler.measures'\n for e...
[ "0.7129108", "0.70857936", "0.7041384", "0.6905891", "0.68920404", "0.6885957", "0.6814019", "0.6746654", "0.6598072", "0.6582139", "0.6566984", "0.6559369", "0.65102065", "0.64400405", "0.6383464", "0.63516015", "0.63365006", "0.63088375", "0.63088375", "0.63088375", "0.6308...
0.8026953
0
Returns a certain quantile from the array
def FIMM(YKHO, aM62): YKHO.quantile = aM62 if YKHO.quantile < 0 or YKHO.quantile > 1: WIbG.util.error('Quantile must be between 0 and 1')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aM62(WKvO, XP5J):\n yac5 = int(XP5J * len(WKvO))\n return sorted(WKvO)[yac5]", "def aM62(WKvO, XP5J):\n yac5 = int(XP5J * len(WKvO))\n return sorted(WKvO)[yac5]", "def aM62(WKvO, XP5J):\n yac5 = int(XP5J * len(WKvO))\n return sorted(WKvO)[yac5]", "def aM62(WKvO, XP5J):\n yac5 = int(X...
[ "0.75492483", "0.7503795", "0.7503795", "0.7503795", "0.7466237", "0.74399054", "0.7174253", "0.7157689", "0.7140044", "0.710925", "0.70857894", "0.6915604", "0.69024676", "0.68599886", "0.68067646", "0.6739679", "0.67258936", "0.67170143", "0.67170143", "0.66894203", "0.6673...
0.0
-1
Float string s as in exponential format
def fb89(KCHu: str) -> str: return KCHu if 'e' in KCHu else '{:1.0e}'.format(float(KCHu))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bZxL(WKvO):\n return '{:.2e}'.format(WKvO)", "def QKKu(Ty9i):\n if not isinstance(Ty9i, float):\n raise zGgz('Value %s is not a float.' % Ty9i)\n else:\n return '%e' % Ty9i", "def G7HL(BWXx):\n if abs(BWXx) < 1e-09 or abs(BWXx) > 9999000000.0:\n raise ValueError('value is t...
[ "0.72706103", "0.7191039", "0.717974", "0.6932884", "0.6918706", "0.69159305", "0.6826443", "0.68035823", "0.68007165", "0.67797506", "0.6731136", "0.6698608", "0.669571", "0.66874605", "0.6655898", "0.6636667", "0.6627454", "0.65868235", "0.65603083", "0.6525312", "0.6524964...
0.8536248
0
Snippet list POST must return a 403 Forbidden response to anonymous users if the FORBID_ANONYMOUS setting is True.
def i3Ym(YKHO): YKHO.check_post_forbid_anonymous('FORBID_ANONYMOUS')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nTtB(QePW, format=None):\n if QePW.method == 'GET':\n AzR4 = h5vu.objects.all()\n ZMzz = u0KZ(AzR4, many=True, context={'request': QePW})\n return jnRN(ZMzz.data, safe=False)\n elif QePW.method == 'POST':\n nPrm = t3vE().parse(QePW)\n ZMzz = u0KZ(data=nPrm, context={'re...
[ "0.68211657", "0.6723153", "0.66859794", "0.66859794", "0.62415856", "0.6184953", "0.5469489", "0.5392837", "0.53698754", "0.5368289", "0.5341587", "0.5333831", "0.5302393", "0.52292717", "0.5176539", "0.51717633", "0.5164515", "0.5144951", "0.51305294", "0.5129975", "0.51180...
0.5499549
6
Snippet list POST must return a 403 Forbidden response to anonymous users if the FORBID_ANONYMOUS_CREATE setting is True.
def DDB0(YKHO): YKHO.check_post_forbid_anonymous('FORBID_ANONYMOUS_CREATE')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nTtB(QePW, format=None):\n if QePW.method == 'GET':\n AzR4 = h5vu.objects.all()\n ZMzz = u0KZ(AzR4, many=True, context={'request': QePW})\n return jnRN(ZMzz.data, safe=False)\n elif QePW.method == 'POST':\n nPrm = t3vE().parse(QePW)\n ZMzz = u0KZ(data=nPrm, context={'re...
[ "0.68456674", "0.6693871", "0.6668688", "0.6668688", "0.62455344", "0.6170572", "0.57565457", "0.5607574", "0.5569667", "0.55346763", "0.5495014", "0.5492069", "0.5443721", "0.5405239", "0.52483994", "0.52196056", "0.519896", "0.51826507", "0.5160289", "0.5144427", "0.5115973...
0.53924054
14
Returns a Q object that filters for the linkable instance across all LinkFields on the linker model.
def aNkK(h0WD, YTLW): m5r4 = DDS9.objects.get_for_model(YTLW) return Pusg(nZvB, (FYrf.Q(**{Jyyj.ct_field: m5r4, Jyyj.fk_field: YTLW.pk}) for Jyyj in h0WD._meta.virtual_fields if isinstance(Jyyj, cGoy)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OPRw(YKHO):\n vexM = NCls.Query(YKHO.KIND, keys_only=YKHO.KEYS_ONLY)\n for QWcs, BWXx in YKHO.FILTERS:\n vexM.filter('%s =' % QWcs, BWXx)\n if YKHO.ancestor:\n vexM.ancestor(YKHO.ancestor)\n vexM.order(YKHO.ORDER_BY)\n return vexM", "def t66o(YKHO):\n pass", "def Qre7(YKHO):...
[ "0.54400134", "0.540497", "0.5374437", "0.5347432", "0.53409034", "0.52882236", "0.52324855", "0.52158034", "0.5199173", "0.51645124", "0.5145068", "0.51381785", "0.5109251", "0.51035553", "0.5099466", "0.5053235", "0.5050093", "0.5038907", "0.50305086", "0.4998876", "0.49960...
0.62688875
0
Constructor pass in username/apikey or public/private key pair for MongoDB Atlas. Override `base_url` for use with an instance of MongoDB Ops Manager.
def FIMM(YKHO, dD1L=Otor.get(Otor.PUBLIC_KEY), x03U=Otor.get(Otor.PRIVATE_KEY), g9KT=Otor.get(Otor.ORG_ID), ekCf=Otor.get(Otor.PROJECT_ID), NKRf='https://cloud.mongodb.com'): YKHO.public_key = dD1L YKHO.private_key = x03U YKHO.org_id = g9KT YKHO.project_id = ekCf if isinstance(NKRf, c_hY): Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, NtEF, rJDA, zn0c, AU45=None, **B2fa):\n YKHO.user = NtEF\n YKHO.key = rJDA\n YKHO.region = zn0c.upper()\n if not AU45:\n AU45 = GDa9.default_authurl\n YKHO.debug = int(B2fa.get('debug', 0))\n YKHO.client = rJpn(YKHO.user, YKHO.key, AU45, 'cloudDatabases', YKHO.region, debug=...
[ "0.6838913", "0.6681511", "0.6657643", "0.6552255", "0.6541692", "0.64658123", "0.6409456", "0.63842857", "0.63785756", "0.6363788", "0.6318257", "0.62643397", "0.624119", "0.6198935", "0.6158917", "0.61253655", "0.6121117", "0.61211103", "0.61100906", "0.6107417", "0.6101646...
0.80440503
0
Return cluster by name for this organization.
def iBC6(YKHO, c0yN, ekCf=''): print(f'>>>>>>{YKHO.project_id}') if ekCf == '': ekCf = YKHO.project_id return YKHO.get('{}/groups/{}/clusters/{}'.format(gsRm.A1.value, ekCf, c0yN))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zWug(OaeV, c0yN, B5PH):\n bNKA = OaeV.obj.groups.byName[B5PH].get().data\n hKn5 = OaeV.obj.groups[bNKA.id].clusters[c0yN].get()\n CgYo(hKn5.data)", "def oT52(mWFP: str) -> PwH5:\n GikI = _JSP().environment\n return GikI.clusters[mWFP]", "def c0yN(YKHO):\n return YKHO.name", "def EYTi(c0...
[ "0.7661818", "0.7627722", "0.70136595", "0.68634033", "0.682182", "0.682182", "0.6767521", "0.6745533", "0.6745533", "0.6722927", "0.67057276", "0.67029464", "0.67029464", "0.67029464", "0.67029464", "0.67029464", "0.6694726", "0.6686361", "0.66803277", "0.6643556", "0.659092...
0.7107379
2
Turn an individual value into a np.ndarray of length 1.
def DBpR(wEf2): Pazz = I5ib._make_np_iterable(wEf2) assert isinstance(Pazz, oyIN.ndarray) assert len(Pazz) == 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CWRi(WKvO):\n U5bT = oyIN.ones(len(WKvO))\n return U5bT", "def I4W5(nPrm):\n return oyIN.atleast_1d(getattr(nPrm, 'values', nPrm))", "def Jmd6(YKHO):\n return jrZd.to_1d(YKHO._obj, raw=True)", "def KGm9(WKvO):\n try:\n WKvO = oyIN.asfarray(WKvO).squeeze()\n except ValueError:\n ...
[ "0.73517627", "0.7070868", "0.68515253", "0.6691133", "0.65931267", "0.64962554", "0.64918286", "0.644431", "0.643734", "0.6403479", "0.63977665", "0.63632137", "0.6356173", "0.6352373", "0.6350322", "0.6311138", "0.6287624", "0.6239727", "0.619818", "0.6175534", "0.61736345"...
0.57535267
56
Turn a list / similar into a np.ndarray of length 1.
def ffqO(wEf2): Pazz = I5ib._make_np_iterable(wEf2) assert isinstance(Pazz, oyIN.ndarray) assert len(Pazz) == len(wEf2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WTDd(jzdc: List[tvm.nd.NDArray]) -> x1iM[oyIN.ndarray]:\n assert jzdc is not None, 'Empty result cannot be converted to numpy'\n return [WKvO.numpy() for WKvO in jzdc]", "def dM2F(pKvt: Iterable, jth9=False) -> oyIN.ndarray:\n return oyIN.array([None] + list(pKvt), dtype=object, copy=jth9)[1:]", "...
[ "0.7527172", "0.74122053", "0.69679517", "0.6966055", "0.679222", "0.67558897", "0.6677785", "0.6649249", "0.6613946", "0.6611458", "0.6600892", "0.6572598", "0.6520345", "0.6474259", "0.6317794", "0.63099134", "0.6287494", "0.6233881", "0.6218633", "0.61926574", "0.6187089",...
0.0
-1
Create the data substructure based on a YAML file
def GE78(YKHO): try: with open(YKHO.source) as eHNT: HrwS = eJb6.load(eHNT) except: tO9_ = "Error: the HBase substructure could not be created. File %s could not be loaded. Please check the syntax of the '.yml' file." % YKHO.source raise BimD(tO9_) jGRS = 'failed' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eLpg(YKHO):\n uQZ1 = YKHO.source\n if uQZ1.endswith('.yml'):\n print('Generating the data substructure based on the YML file')\n jGRS = YKHO.create_datastructure_from_yaml_file()\n else:\n jGRS = 'failed'\n raise ImHN('Error: this file type is not yet supported')\n retur...
[ "0.6683344", "0.63193464", "0.61889696", "0.6151949", "0.6144548", "0.6132568", "0.61238873", "0.61196095", "0.61189926", "0.6048359", "0.60384846", "0.5928613", "0.5921998", "0.58116454", "0.5802794", "0.5772116", "0.57433647", "0.57385534", "0.5736408", "0.5726731", "0.5721...
0.6845177
0
Converts strings to uppercase
def ZSc6(Q6kx): if isinstance(Q6kx, jZ4I.StringValue): if isinstance(Q6kx.value, str): return Q6kx.value.upper() return Q6kx.value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QmjV(str):\n return str.upper()", "def yfUa(l5Ny):\n return l5Ny.upper()", "def QmjV(vIwR):\n return str(vIwR).upper()", "def M1kB(YKHO, l5Ny):\n return l5Ny.upper()", "def CN9P(vIwR):\n st9m = ''\n for hcXw in vIwR:\n if hcXw.isalpha() and (not hcXw.isupper()):\n hc...
[ "0.81250125", "0.8103617", "0.7936961", "0.7930193", "0.76856434", "0.76575416", "0.75560963", "0.7443349", "0.7334456", "0.7305676", "0.7223347", "0.7217082", "0.7197907", "0.71412665", "0.7109376", "0.69752544", "0.68996614", "0.6884158", "0.687342", "0.68482286", "0.679561...
0.0
-1
Reformats date to original Switches date column from integers of days since first entry into a timedelta. Then, adds that timedelta to the min_date In the end getting a datetime.
def Zntt(koNC, mFQo): koNC['date'] = [qcWV.timedelta(WKvO) for WKvO in koNC['date']] koNC['date'] = koNC['date'] + mFQo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mFQo(YKHO, usx6: List[Row], iVRZ: DateColumn) -> Qrp8:\n mQEc = [rdlD.values[iVRZ.name] for rdlD in usx6 if rdlD.values[iVRZ.name] is not None]\n if not mQEc:\n return Qrp8(-1, -1, -1)\n if not all([isinstance(BWXx, Qrp8) for BWXx in mQEc]):\n raise z1P8(f'Invalid values for date selecti...
[ "0.60667294", "0.56381744", "0.5583762", "0.55656195", "0.5565095", "0.54344136", "0.5414903", "0.54056257", "0.5309771", "0.52710533", "0.5220491", "0.5190669", "0.5152039", "0.51239455", "0.51133674", "0.51097226", "0.50717074", "0.50623274", "0.50467855", "0.4990437", "0.4...
0.7147386
0
String for representing the Model object.
def zAg0(YKHO): return YKHO.title
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()", "def zAg0(YKHO):\n return 'DataModel(name={},attributes={},description={})'.format(YKHO.name, {jzdc.name: str(jzdc) for jzdc in YKHO.attributes}, YKHO.description)", "def zAg0(YKHO):\n Ylbp = ['>>> Model %(model_name)s <<<']\n Ylbp...
[ "0.82368803", "0.79901737", "0.7849152", "0.78468513", "0.77520275", "0.7625378", "0.7625378", "0.76225406", "0.76225406", "0.75483394", "0.7522958", "0.7470355", "0.7469358", "0.7447144", "0.7447144", "0.74314755", "0.7427648", "0.7389925", "0.7351721", "0.73424315", "0.7322...
0.0
-1
Return the string with invalid filename characters excluded.
def zZYa(KCHu): return filter(lambda WKvO: WKvO in UeEl, KCHu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QjXG(Ux0P: str) -> str:\n if V1Lg['download']['ascii']:\n return ''.join((YRbF for YRbF in Ux0P if YRbF in IgE1))\n else:\n return ''.join((YRbF for YRbF in Ux0P if YRbF not in tcEL))", "def WOHH(eHNT):\n E68i = (' ', '.', '_')\n return ''.join((Z9rn for Z9rn in eHNT if Z9rn.isalnum...
[ "0.8169112", "0.7668292", "0.7615177", "0.75587046", "0.7555444", "0.7553094", "0.7540749", "0.7485333", "0.7453738", "0.7430725", "0.73914933", "0.736258", "0.73283887", "0.7259114", "0.7205139", "0.72023153", "0.7136878", "0.7130237", "0.71038824", "0.7087985", "0.6999256",...
0.7585273
3
Gets the first_slice_angle of this Chart. Gets or sets the angle of the first piechart or doughnutchart slice, in degrees (clockwise from vertical). Applies only to pie, 3D pie, and doughnut charts, 0 to 360.
def uVf6(YKHO): return YKHO.container['first_slice_angle']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uVf6(YKHO, uVf6):\n YKHO.container['first_slice_angle'] = uVf6", "def y7iC(YKHO, WKvO, LVAh, Mkmy, lGE9, n2Q1, Emd4=None, _Cnz=None):\n PgnT = epAf.radians(lGE9)\n qI27 = epAf.radians(n2Q1)\n nJ9F = WKvO + Mkmy * epAf.cos(PgnT)\n nxyw = LVAh + Mkmy * epAf.sin(PgnT)\n o4D3 = WKvO + Mkmy * ep...
[ "0.77468836", "0.5396452", "0.5396452", "0.5371567", "0.5129852", "0.48152226", "0.48152226", "0.48120353", "0.4805761", "0.46756354", "0.4673196", "0.4552097", "0.45436895", "0.45179063", "0.44669732", "0.44526485", "0.44424266", "0.44206753", "0.44202927", "0.44107357", "0....
0.7893725
0
Gets the floor of this Chart. Returns a Floor object that represents the walls of a 3D chart.
def pBSp(YKHO): return YKHO.container['floor']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pBSp(YKHO):\n return YKHO._floor", "def ArII(eL5z):\n eEZP = Hyz4.new()\n eEZP.from_object(kZw_.data.objects['FLOOR_CENTER'], kZw_.context.scene)\n I1j6.add_floor_corners(eEZP, eL5z)\n eEZP.from_object(kZw_.data.objects[eL5z.terrain_type().name], kZw_.context.scene)\n I1j6.add_ceiling_cente...
[ "0.68585765", "0.6825907", "0.618636", "0.5739427", "0.5696196", "0.5618267", "0.5481646", "0.547839", "0.5463278", "0.5455132", "0.54339147", "0.53986925", "0.53722566", "0.534703", "0.5314356", "0.5313804", "0.5270356", "0.5215145", "0.5190766", "0.51876855", "0.5186105", ...
0.7297509
0