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
Adds the user data into the session
def _DuO(uJjO, BaHi, ZcQa, Jo_v): cuiw['user_id'] = uJjO cuiw['user_name'] = BaHi cuiw['user_username'] = ZcQa cuiw['user_admin'] = Jo_v cuiw['logged_in'] = True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gigi(geh0):\n cuiw.regenerate()\n P4t4.session_interface.save_session(P4t4, cuiw, geh0)\n Q565(cuiw)\n IXCH.datastore.commit()\n return geh0", "def EmlT(CBIr):\n WsL5.session['user'] = {'fullname': CBIr['fullname'], 'roles': CBIr['roles']}", "def mN2j():\n print('ADD USER RAN')\n if...
[ "0.71676725", "0.7017254", "0.69864005", "0.69717526", "0.6959868", "0.6959868", "0.6959868", "0.6959868", "0.6959868", "0.6959868", "0.6959868", "0.6959868", "0.6944739", "0.6934705", "0.6934705", "0.6934705", "0.6934705", "0.6934705", "0.6914449", "0.6872965", "0.6838417", ...
0.7767719
0
Creates equally spaced points from x.min() to x.max(), rounded to the nearest integer
def FEDt(WKvO): JRC0 = oyIN.ceil(WKvO.min()) IA3S = oyIN.floor(WKvO.max()) MEXo = IA3S - JRC0 return JRC0 + oyIN.arange(MEXo + 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(WKvO, JRC0, IA3S):\n return (WKvO - JRC0) / (IA3S - JRC0)", "def KSES(min, max, WKvO):\n return (float(WKvO) - min) / (max - min)", "def NgXe(doEt, XWbt, RFIa):\n LTIa = []\n LTIa = XWbt * oyIN.random.randn(RFIa, 2) + doEt\n return oyIN.asarray(LTIa)", "def JTYK(UoOD, vELP=0, PtQX=50)...
[ "0.6461862", "0.6445296", "0.6418257", "0.63824403", "0.6363943", "0.6318972", "0.62861174", "0.62844217", "0.62806475", "0.61912477", "0.61644983", "0.6163285", "0.6162816", "0.6109319", "0.6093939", "0.60784847", "0.60534036", "0.601908", "0.60179627", "0.60172075", "0.6016...
0.75825185
0
If the user didn't confirm his email address, his will be inactive
def eLpg(YKHO, vGfb): if not vGfb['user'].profile.is_valid: vGfb['is_active'] = False return super(PnDH, YKHO).create(validated_data=vGfb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def izyB(YKHO, QePW, _sei=None):\n try:\n CBIr = mv1M.objects.get(username=QePW.GET.get('pk'))\n AwQR = abs(hash(CBIr.date_joined))\n if int(QePW.GET.get('confirm')) == AwQR:\n CBIr.is_active = True\n CBIr.save()\n return vKnz(gCuF.FRONTEND_ADDRESS + '/login...
[ "0.7780375", "0.75083643", "0.7201015", "0.7124434", "0.7102499", "0.7098138", "0.7017593", "0.6893546", "0.6851536", "0.68049866", "0.6770753", "0.667495", "0.6670295", "0.6651703", "0.66510767", "0.6629614", "0.66176325", "0.6611554", "0.6611448", "0.6591918", "0.65645295",...
0.0
-1
Loads the tensorflow model
def wX8m(eG0V, DMw4, tZ2K): PhKv = VjaF.createFlds(DMw4) r8hN, Lh1F = VjaF.build_estimator(eG0V, DMw4, tZ2K, PhKv) return (r8hN, PhKv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl(YKHO) -> None:\n with ZylS.gfile.GFile(YKHO.model_path, 'rb') as nUeQ:\n r8JX = ZylS.GraphDef()\n r8JX.ParseFromString(nUeQ.read())\n with ZylS.Graph().as_default() as pNZh:\n ZylS.import_graph_def(r8JX, name='import')\n YKHO._session = ZylS.Session(graph=pNZh)\n YKHO.read...
[ "0.84539485", "0.83979285", "0.81605023", "0.8142081", "0.81269395", "0.8088707", "0.79709136", "0.79239875", "0.7916475", "0.7907927", "0.78955007", "0.78906906", "0.783715", "0.7825621", "0.78102803", "0.77755415", "0.77628857", "0.77459115", "0.7663581", "0.765919", "0.764...
0.0
-1
Transform lists of logs to hostlog matrix.
def SZFh(YKHO, YApv): if not hasattr(YKHO, 'logs_'): YKHO._validate_logs() YKHO._check_logs() bGrB, EcVT = YKHO._count_logs(YApv, fixed_logs=True) return EcVT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gb9_(YKHO, YApv, wYWU):\n if wYWU:\n nfqd = YKHO.logs_\n else:\n nfqd = oRi_()\n nfqd.default_factory = nfqd.__len__\n V8qt = []\n U4J6 = []\n hkxX = TBtm()\n U4J6.append(0)\n for RnS9 in YApv:\n uTF9 = {}\n RnS9 = [str(WKvO) for WKvO in RnS9]\n fo...
[ "0.6392758", "0.61108935", "0.5904145", "0.5893698", "0.5737512", "0.57132804", "0.5675343", "0.5571737", "0.55436015", "0.55293286", "0.54946965", "0.5441335", "0.54303825", "0.5428505", "0.54213816", "0.54098266", "0.5388131", "0.53824925", "0.53797", "0.5314124", "0.527612...
0.73016715
0
This view should return a list of all the Chats for the currently authenticated user.
def k66M(YKHO): CBIr = YKHO.request.user print(CBIr, 'user') return ZrQz.objects.filter(recipient=CBIr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def list(YKHO, **B2fa):\n return YKHO._get('/chats.json', params=B2fa)", "def list(YKHO, QePW):\n siZ_ = GIXS(QePW.user)\n z0Ua = [D0cE(w80X(UzPC.coach.user, UzPC.coachee.user), many=True).data for UzPC in siZ_]\n return oGir(z0Ua)", "def VNhV():\n uJjO = QePW.cookies.get('user_id')\n CBIr = ...
[ "0.78985757", "0.77852064", "0.75424427", "0.6869264", "0.67963547", "0.6696788", "0.6657579", "0.65221655", "0.64362633", "0.6413411", "0.63842237", "0.63842237", "0.6198427", "0.61557305", "0.61448395", "0.61403227", "0.6120705", "0.6106596", "0.6098548", "0.60971206", "0.6...
0.6545424
7
Overload the class creation.
def fwuD(Emd4, mWFP, gitN, _63S): RI88 = ftIh.ABCMeta.__new__(Emd4, mWFP, gitN, _63S) RI88._register() return RI88
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fwuD(Emd4, *qIxc, **B2fa):\n raise NotImplementedError", "def eLpg(YKHO, vOsx):\n raise NotImplementedError()", "def fwuD(Emd4, *qIxc, **B2fa):\n raise NotImplementedError('Class should not be instantiated')", "def sfxH(Emd4, *qIxc, **B2fa):\n pass", "def BdN0(Emd4, **B2fa):\n raise NotI...
[ "0.77644163", "0.77503437", "0.7573713", "0.7573287", "0.75337714", "0.7468226", "0.7402864", "0.73806524", "0.73328966", "0.73328966", "0.73328966", "0.7322242", "0.73182094", "0.7313153", "0.7297088", "0.72926736", "0.72613174", "0.72613174", "0.72477597", "0.7245678", "0.7...
0.0
-1
Returns the registration manager for this plugin. This must be an
def ddDJ(Emd4): raise RuntimeError(Emd4.__name__ + ': must implement the class method get_plugin_manager.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p246(YKHO):\n return YKHO._pm", "def iRb3():\n return tFH4", "def bfMs(YKHO):\n return YKHO.__manager", "def Z_6v(YKHO):\n nDMj = gk2W.c_void_p()\n ZSvt = YKHO.mAPIContext.SDApplication_getPluginMgr(YKHO.mHandle, gk2W.byref(nDMj))\n if ZSvt != ll8f.NoError.value:\n if ZSvt == ll8...
[ "0.73718506", "0.6996335", "0.69919515", "0.69734234", "0.6787247", "0.6697512", "0.66548246", "0.65777284", "0.6553759", "0.64935005", "0.6477658", "0.6456433", "0.63481504", "0.63481504", "0.6338468", "0.6313298", "0.6295982", "0.6218591", "0.6217268", "0.6206052", "0.61838...
0.6910522
4
Horizontally pad one or more numpy arrays
def hVLt(WKvO, Z9rn=None): if type(WKvO) is list: if Z9rn is None: Z9rn = oyIN.max([Csk6.shape[1] for Csk6 in WKvO]) return [hVLt(Csk6, Z9rn) for Csk6 in WKvO] if Z9rn is None: return WKvO LVAh = oyIN.zeros([WKvO.shape[0], Z9rn]) exwG = oyIN.min([Z9rn, WKvO.shape[1]])...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ukYQ(Sk_F: Union[List[np.ndarray], np.ndarray], hVLt: int=32):\n if isinstance(Sk_F, oyIN.ndarray) and len(Sk_F.shape) > 1:\n dvgN = int(oyIN.ceil(Sk_F.shape[1] / hVLt)) * hVLt - Sk_F.shape[1]\n _xz6 = tuple(((0, 0) for bGrB in Sk_F.shape[2:]))\n return oyIN.pad(Sk_F, ((0, 0), (0, dvgN)...
[ "0.7870426", "0.74062973", "0.7208141", "0.70008934", "0.6973653", "0.6969696", "0.6934758", "0.6927894", "0.69130546", "0.6855492", "0.6818952", "0.6789897", "0.6754747", "0.67446184", "0.67411965", "0.67401856", "0.671062", "0.670927", "0.6708518", "0.67021096", "0.6687604"...
0.0
-1
Get the matplotlib.colors.LinearSegmentedColormap object regardless of the input
def tUOi(iMGt): if iMGt is None: return VSIE elif type(iMGt) in [str, QMSQ]: return QrM1.get_cmap(iMGt) return iMGt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DF6U(mWFP, qfpW, ywwl, KMvS=1.0):\n VSIE = nmjP.from_list(mWFP, qfpW, ywwl, KMvS)\n return VSIE", "def NiXE(YKHO, **B2fa):\n if not mWIJ:\n raise RuntimeError('matplotlib not available.')\n iMGt = nmjP.from_list(YKHO.name, YKHO.mpl_colors, **B2fa)\n return iMGt", "def I6YS(dg7v='white...
[ "0.7233782", "0.7095501", "0.69166404", "0.68361986", "0.6761616", "0.6730775", "0.66055465", "0.6570582", "0.6565775", "0.6548658", "0.6544561", "0.6542511", "0.6538161", "0.650669", "0.6488589", "0.6486309", "0.64861625", "0.6454594", "0.64188564", "0.6418622", "0.6418622",...
0.0
-1
Generates a colormap given a matlabstyle interpolation table
def zawk(mWFP, RUkJ, JFex): JFex = oyIN.round(1.0 * JFex) pXRx = {'red': tuple([(pImw / JFex, Jw9H[0] / JFex, Jw9H[0] / JFex) for pImw, Jw9H in RUkJ][::-1]), 'green': tuple([(pImw / JFex, Jw9H[1] / JFex, Jw9H[1] / JFex) for pImw, Jw9H in RUkJ][::-1]), 'blue': tuple([(pImw / JFex, Jw9H[2] / JFex, Jw9H[2] / JFex)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aqMs():\n pXRx = {'red': [(0.0, 220 / 256, 220 / 256), (0.5, 42 / 256, 42 / 256), (1.0, 6 / 256, 6 / 256)], 'green': [(0.0, 220 / 256, 220 / 256), (0.5, 145 / 256, 145 / 256), (1.0, 37 / 256, 27 / 256)], 'blue': [(0.0, 220 / 256, 220 / 256), (0.5, 174 / 256, 174 / 256), (1.0, 170 / 256, 170 / 256)]}\n re...
[ "0.6884259", "0.65487355", "0.6533801", "0.6485073", "0.6468518", "0.64633393", "0.6461781", "0.64566785", "0.6448305", "0.6448305", "0.6445406", "0.6439435", "0.6433272", "0.63967025", "0.63810456", "0.6370398", "0.6363797", "0.6355265", "0.6307725", "0.62836635", "0.6255246...
0.61916685
21
Create an Nbin discrete colormap from the specified input map specified
def HX90(rebk, iMGt=None): if iMGt is None: iMGt = VSIE.name elif type(iMGt) not in [QMSQ, str]: iMGt = iMGt.name return QrM1.get_cmap(iMGt, rebk)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jmzj(exwG, iMGt):\n RFG3 = [iMGt(YRbF) for YRbF in range(iMGt.N)]\n RFG3[0] = (0, 0, 0, 1.0)\n iMGt = iMGt.from_list('discrete-cmap', RFG3, exwG)\n iMGt = [iMGt(YRbF) for YRbF in range(iMGt.N)]\n return iMGt", "def HX90(ywwl, j9kp=None):\n P8oC = QrM1.cm.get_cmap(j9kp)\n F4JO = P8oC(oyIN...
[ "0.7429906", "0.71265095", "0.7046426", "0.7034514", "0.7033827", "0.7013698", "0.69500643", "0.687844", "0.68553567", "0.68451494", "0.68451494", "0.68451494", "0.68181837", "0.6812271", "0.6810232", "0.6810232", "0.6810232", "0.6810232", "0.6810232", "0.6810232", "0.6805153...
0.6657734
27
Plots an image within the given axis with a color bar + label and appropriate X, Y tick labels. This is particularly useful to get readily interpretable plots for papers
def Wtyp(jDK_, VXjJ, zFrZ=True, pVHC=True, Yjog=None, nnyg=None, uhkg=4, CtMr=None, bmgf=None, c0im=14, hLRM='lower', **B2fa): if CtMr is not None: go03 = oyIN.mean(VXjJ) sb4g = oyIN.std(VXjJ) B2fa.update({'clim': [go03 - CtMr * sb4g, go03 + CtMr * sb4g]}) B2fa.update({'origin': hLRM}) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LP76(yIkc, g0Hx=0, dlau=0, TVTK=None, H2v2=None, HYm9=None, iMGt='jet', vEPh=1.0, FPEn='pixels', leAC=None, m3Xs=0, RKD7=False, A4Zl=None, jVhF=12, EaWT=11, rR9N='both', Ew8X=True, ov8r='right', JyT7=None, mZCM=11, K2m3=10, A_EH=False):\n if type(yIkc) == str:\n n8OE = tujn.open(yIkc)\n GtNU =...
[ "0.6751298", "0.67328286", "0.66556865", "0.66235", "0.65572363", "0.6501785", "0.6484799", "0.6413547", "0.6389868", "0.6369295", "0.6348165", "0.63455695", "0.6335724", "0.6323158", "0.63081115", "0.6302817", "0.6298709", "0.6260745", "0.6240831", "0.6235359", "0.6229433", ...
0.6988386
0
Return a mock function.
def IBRb(YKHO, mWFP='function'): m2Zb = TMAJ.MagicMock() setattr(m2Zb, '__qualname__', mWFP) setattr(m2Zb, '__name__', mWFP) return m2Zb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pOwX(*qIxc, **B2fa):\n return True", "def lWE1(kl6f, QePW):\n pc4v = Po4F(kl6f)\n QePW.addfinalizer(pc4v.stop)\n return pc4v.start()", "def f_8k(U3Qp, *qIxc):\n\n def pOwX(WKvO):\n return U3Qp(WKvO, *qIxc)\n return pOwX", "def _TCo() -> FM6F:\n return FM6F", "def pOwX(mkPq, ...
[ "0.7496854", "0.73002464", "0.7178009", "0.7167349", "0.69585603", "0.69228566", "0.6702531", "0.6679299", "0.6647815", "0.6633825", "0.6612572", "0.6612572", "0.6612572", "0.6612572", "0.6612572", "0.6612572", "0.6612572", "0.659919", "0.65957415", "0.657312", "0.6536316", ...
0.80890846
0
With two point, calculate return slope as (my, mx)
def BONv(EBgd, HpuQ): o4D3 = EBgd[0] si3g = EBgd[1] ajwV = HpuQ[0] skBL = HpuQ[1] suhQ = skBL - si3g RsfQ = ajwV - o4D3 if suhQ == 0: return 0 elif RsfQ == 0: return 'inf' else: return round(float(suhQ) / float(RsfQ), 8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VMex(o4D3, si3g, ajwV, skBL):\n return (skBL - si3g) / (ajwV - o4D3)", "def VMex(o4D3, si3g, ajwV, skBL):\n r8hN = (skBL - si3g) / (ajwV - o4D3)\n return r8hN", "def VMex(o4D3, si3g, ajwV, skBL):\n return (skBL - si3g) / (ajwV - o4D3)", "def VMex(o4D3, si3g, ajwV, skBL):\n return (skBL - s...
[ "0.82788604", "0.8278241", "0.8270749", "0.8259587", "0.81356037", "0.7953359", "0.79278314", "0.7912621", "0.79087305", "0.7779275", "0.7767749", "0.76519895", "0.7630132", "0.7592273", "0.7580776", "0.75767404", "0.7571789", "0.7541004", "0.7537387", "0.7533702", "0.7508681...
0.8151798
4
With slope and lines, return yintercept
def Ot58(AU8u, VMex, Nqlg): k3iQ = BF4U(AU8u, VMex) Oluk = k3iQ + _hZ2 y4yn = k3iQ - _hZ2 if VMex in Nqlg: if Oluk in Nqlg[VMex]: return Oluk elif y4yn in Nqlg[VMex]: return y4yn return k3iQ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BF4U(AU8u, VMex):\n o4D3 = AU8u[0]\n si3g = AU8u[1]\n if VMex == 0:\n return si3g\n elif VMex == 'inf':\n return o4D3\n else:\n LVAh = VMex * float(o4D3) * -1 + float(si3g)\n return round(LVAh, 8)", "def BlB8(zFiD):\n return zFiD.y1 - VMex(zFiD) * zFiD.x1", "de...
[ "0.8345993", "0.83119935", "0.82113", "0.8072411", "0.80211246", "0.8006559", "0.7978482", "0.77650464", "0.7758114", "0.772774", "0.7668145", "0.76509106", "0.76144236", "0.74125075", "0.74114215", "0.73237294", "0.7264143", "0.7264143", "0.72280896", "0.72256947", "0.721482...
0.8157858
3
With a point(x, y) and a slope(my, mx) return y intercept as float
def BF4U(AU8u, VMex): o4D3 = AU8u[0] si3g = AU8u[1] if VMex == 0: return si3g elif VMex == 'inf': return o4D3 else: LVAh = VMex * float(o4D3) * -1 + float(si3g) return round(LVAh, 8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IP0z(VMex, WKvO, LVAh):\n return LVAh - VMex * WKvO", "def BlB8(zFiD):\n return zFiD.y1 - VMex(zFiD) * zFiD.x1", "def BF4U(WKvO, LVAh, VMex):\n return LVAh - VMex * WKvO", "def Ot58(AU8u, VMex, Nqlg):\n k3iQ = BF4U(AU8u, VMex)\n Oluk = k3iQ + _hZ2\n y4yn = k3iQ - _hZ2\n if VMex in Nq...
[ "0.7864001", "0.7833806", "0.77602893", "0.77571625", "0.7730074", "0.76163834", "0.75904536", "0.74855053", "0.74387705", "0.7438419", "0.741765", "0.740168", "0.7398684", "0.73949313", "0.7360115", "0.7283279", "0.72780323", "0.72722983", "0.7147974", "0.7138283", "0.712255...
0.8290349
0
Get the front item from the queue.
def y9BR(YKHO): if YKHO.isEmpty(): return -1 else: vbCJ = YKHO.next_index(YKHO.head) return YKHO.q[vbCJ]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uW34(YKHO):\n if YKHO.isEmpty():\n return -1\n else:\n return YKHO._queue[0]", "def XL7A(YKHO):\n if YKHO.is_empty():\n raise nKJm\n return YKHO.queue[YKHO.front]", "def cntZ(YKHO):\n if YKHO.is_empty():\n raise Exception('Queue is empty')\n return YKHO._data[Y...
[ "0.8798078", "0.8572529", "0.8540872", "0.8515494", "0.8485089", "0.847636", "0.84697104", "0.84185034", "0.8405229", "0.83587384", "0.83587384", "0.83587384", "0.83575267", "0.8354808", "0.8334299", "0.830078", "0.8300439", "0.8285944", "0.8270942", "0.8233948", "0.82222867"...
0.75705904
62
Get the last item from the queue.
def kITm(YKHO): if YKHO.isEmpty(): return -1 else: Ylbp = YKHO.q[YKHO.tail] return Ylbp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FrVQ(YKHO):\n h9Wc = JRxa()\n h9Wc.acquire()\n if len(YKHO.__queue) == 0:\n h9Wc.release()\n return\n XVAW = YKHO.__queue[len(YKHO.__queue) - 1][1]\n h9Wc.release()\n return XVAW", "def fEPq(YKHO):\n return YKHO.queue[0]", "def NMoC(YKHO):\n try:\n return YKHO._...
[ "0.8396074", "0.81645465", "0.7951325", "0.78656304", "0.77771604", "0.7763599", "0.77440494", "0.7720387", "0.7708409", "0.76988816", "0.7698064", "0.7676833", "0.7654079", "0.7645605", "0.76397914", "0.75990695", "0.75695676", "0.7551793", "0.75385815", "0.7531344", "0.7522...
0.0
-1
Compute the kurtosis of each attribute.
def Cbdt(Emd4, ywwl: np.ndarray, NKcE: int=3, oug5: bool=True) -> oyIN.ndarray: k3R8 = oyIN.apply_along_axis(func1d=K1XI.sum_kurtosis, axis=0, arr=ywwl, method=NKcE, bias=oug5) return k3R8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HiYA(YKHO):\n jzdc = (YKHO.df - 2) ** 2 * oC2Y(YKHO.df / 2 - 2)\n return 3 * (jzdc / (4 * oC2Y(YKHO.df / 2)) - 1)", "def HiYA(__n6, CHNM=False):\n r8hN = JBMS(__n6)\n exwG = len(__n6) if CHNM else len(__n6) - 1\n M6pt = sum([(Y7fn - r8hN) ** 4 for Y7fn in __n6])\n UUZ1 = exwG * mJX1(__n6) *...
[ "0.8100896", "0.7554306", "0.7466593", "0.740291", "0.7383781", "0.73617154", "0.7334898", "0.7197633", "0.7165676", "0.71126854", "0.7085492", "0.70823574", "0.7070612", "0.7011031", "0.6989434", "0.69226915", "0.688611", "0.6857796", "0.65469176", "0.6257873", "0.6213774", ...
0.5822396
26
Compute a statistical test for homogeneity of covariances. The test applied is the Box's M Test for equivalence of covariances. The null hypothesis of this test states that the covariance matrices of the instances of every class are equal.
def I4O7(Emd4, ywwl: np.ndarray, LVAh: np.ndarray, P_MT: int=1, KndY: t.Optional[np.ndarray]=None, gL8o: t.Optional[np.ndarray]=None) -> float: def emK_(ywwl, LVAh, P_MT): """Calculate the Sample Covariance Matrix for each class.""" kuCz = oyIN.array([oyIN.cov(ywwl[LVAh == CQwJ, :], rowvar=False, d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NCk4():\n PFC2 = laSY()\n PFC2.fit(EcVT)\n t_0o(_iQa(EcVT), PFC2.covariance_, 4)\n Xgmb(PFC2.error_norm(_iQa(EcVT)), 0)\n Xgmb(PFC2.error_norm(_iQa(EcVT), norm='spectral'), 0)\n Xgmb(PFC2.error_norm(_iQa(EcVT), norm='frobenius'), 0)\n Xgmb(PFC2.error_norm(_iQa(EcVT), scaling=False), 0)\n ...
[ "0.6990251", "0.69352305", "0.67310035", "0.6607862", "0.65764564", "0.65515995", "0.6447076", "0.644174", "0.6428005", "0.6418094", "0.6410994", "0.6381922", "0.6352947", "0.6339956", "0.6332388", "0.62772334", "0.6275332", "0.6241292", "0.62379426", "0.61888653", "0.6082305...
0.0
-1
Calculate the Sample Covariance Matrix for each class.
def emK_(ywwl, LVAh, P_MT): kuCz = oyIN.array([oyIN.cov(ywwl[LVAh == CQwJ, :], rowvar=False, ddof=P_MT) for CQwJ in KndY]) return oyIN.flip(m=kuCz, axis=(0, 1))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UyqE(YKHO, EcVT):\n a9gw = YKHO._rbf_kernel(YKHO.X_train, YKHO.X_train, YKHO.alpha, YKHO.l) + YKHO.sigma ** 2 * oyIN.identity(YKHO.n)\n d03S = YKHO._rbf_kernel(YKHO.X_train, EcVT, YKHO.alpha, YKHO.l)\n NWK6 = YKHO._rbf_kernel(EcVT, YKHO.X_train, YKHO.alpha, YKHO.l)\n C4kK = YKHO._rbf_kernel(EcVT, E...
[ "0.6949062", "0.6948389", "0.6943964", "0.6865528", "0.68186504", "0.6797209", "0.67943937", "0.67776036", "0.6737733", "0.67262626", "0.66943026", "0.6606685", "0.65827763", "0.65714616", "0.6476922", "0.64753586", "0.6465691", "0.6460517", "0.6448189", "0.6428561", "0.64271...
0.68281716
4
Checks if a timer of a hit reached 0, if so, damages the target and checks effects.
def oliL(S6Fl, Vo9x, oyg0, gREP, lGbz): for YRbF in range(Vo9x.nPH - 1, -1, -1): if Vo9x.PHits[YRbF].Time == 0: if all([oyg0.GreaterChain, oyg0.ChanAbil]): t1hI = S6Fl.AbilNames.index(Vo9x.PHits[YRbF].Name) oyg0.GreaterChainHitN += 1 gjQi = A7QT.St...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UZ_k(YKHO):\n if YKHO.health > 0:\n YKHO.health -= 1", "def UZ_k(YKHO, pan_):\n pan_.bloodDrop(YKHO.power)", "def UZ_k(YKHO):\n YKHO.health -= 1\n if YKHO.health <= 0:\n Jmjd = iHv3.connect('../datos.db')\n N1p7 = Jmjd.cursor()\n N1p7.execute('UPDATE torres SET estad...
[ "0.67228377", "0.6532654", "0.6503487", "0.6499454", "0.6449808", "0.6415547", "0.64136076", "0.6355298", "0.6350974", "0.6228308", "0.620163", "0.6114663", "0.61145896", "0.6066263", "0.60569525", "0.6037105", "0.6031154", "0.6015022", "0.6001395", "0.59830683", "0.59000087"...
0.0
-1
Return a fresh spawn of g unless g is already contained in this SpawnMapping, in which case return the previously spawned generator.
def ommq(YKHO, Oa1e): try: return YKHO.mapping[Oa1e] except KeyError: return Oa1e._spawn(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TW64(YKHO, Oa1e):\n try:\n return YKHO.mapping[Oa1e]\n except KeyError:\n return Oa1e", "def cl53(YKHO, BbaQ=None):\n BbaQ = BbaQ or _Nqo()\n if YKHO.parent is not None:\n if YKHO.parent in BbaQ:\n return BbaQ[YKHO.parent].clone()\n else:\n raise ...
[ "0.7252934", "0.7084072", "0.61138165", "0.5705143", "0.56680155", "0.5563803", "0.55289054", "0.54910254", "0.54793817", "0.5463631", "0.5445945", "0.543721", "0.54103065", "0.530562", "0.52542883", "0.52442646", "0.52441055", "0.52355665", "0.52213144", "0.5180668", "0.5148...
0.83984596
0
If a mapping exists for g, return the previously spawned generator, otherwise return g itself.
def TW64(YKHO, Oa1e): try: return YKHO.mapping[Oa1e] except KeyError: return Oa1e
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ommq(YKHO, Oa1e):\n try:\n return YKHO.mapping[Oa1e]\n except KeyError:\n return Oa1e._spawn(YKHO)", "def cl53(YKHO, BbaQ=None):\n BbaQ = BbaQ or _Nqo()\n if YKHO.parent is not None:\n if YKHO.parent in BbaQ:\n return BbaQ[YKHO.parent].clone()\n else:\n ...
[ "0.86226106", "0.60996956", "0.6080235", "0.60084254", "0.59565264", "0.59303397", "0.59303397", "0.57903415", "0.57891965", "0.5704512", "0.56785876", "0.5673908", "0.5635725", "0.56049526", "0.55861866", "0.5582231", "0.54948753", "0.54854983", "0.548248", "0.54661196", "0....
0.7429269
1
Return sequence of `num` elements. If `seed` is not None, the generator is reset using this seed before generating the elements.
def C6M2(YKHO, mLGw, *, yokr=None, FRUU=False): if yokr is not None: YKHO.reset(yokr) DumB = uOgj(YKHO, mLGw) if FRUU: DumB = PRqg(DumB, total=mLGw) xpKR = [WKvO for WKvO in DumB] return _Q6i(xpKR, mLGw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yMZb(mLGw, yokr):\n tuKI.seed(yokr)\n Z4a9 = []\n while len(Z4a9) != mLGw:\n JpKC = tuKI.randint(0, 99)\n if JpKC not in Z4a9:\n Z4a9.append(JpKC)\n return Z4a9", "def gWVt(YKHO, ywwl: int, yokr: str=''):\n if not isinstance(ywwl, int):\n raise IOError('N must b...
[ "0.61138046", "0.5820932", "0.5766009", "0.5689556", "0.5642009", "0.5642009", "0.5602376", "0.5602376", "0.55989885", "0.55405843", "0.55275196", "0.5479959", "0.5477381", "0.54753375", "0.5471805", "0.546329", "0.5451505", "0.5442174", "0.54352176", "0.5428899", "0.5426075"...
0.5581207
9
Return an exact copy of this generator which behaves the same way (i.e., produces the same elements in the same order) but is otherwise independent, i.e. there is no link between the two generators (as opposed to a cloned generator, which is automatically reset whenever the original generator is reset).
def cl53(YKHO, BbaQ=None): BbaQ = BbaQ or _Nqo() if YKHO.parent is not None: if YKHO.parent in BbaQ: return BbaQ[YKHO.parent].clone() else: raise KzG1('Cannot spawn a cloned generator without being able to map its parent.') else: _yOu = BbaQ.spawn_generator(YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i3ak(YKHO) -> oNY0:\n raise NotImplementedError", "def FzJk(YKHO):\n return YKHO.dup()", "def i3ak(YKHO):\n return _qLf(YKHO)", "def d9kX(YKHO):\n return YKHO.dup()", "def LHwl(YKHO):\n return YKHO.__copy__()", "def jth9(YKHO):\n return wUFg.SwigPyIterator_copy(YKHO)", "def QyFW(Y...
[ "0.7177272", "0.7062779", "0.6953724", "0.694545", "0.6906848", "0.69064337", "0.68768144", "0.6874856", "0.68637174", "0.68619186", "0.6841223", "0.6841223", "0.6841223", "0.6841223", "0.6829914", "0.6822095", "0.6822095", "0.6814274", "0.6814274", "0.6802916", "0.6797633", ...
0.0
-1
Return an exact copy of this generator which behaves the same way (i.e., produces the same elements in the same order) and which is automatically reset whenever the original generator is reset.
def i3ak(YKHO, BbaQ=None): Z9rn = YKHO.spawn(BbaQ) YKHO.register_clone(Z9rn) Z9rn.register_parent(YKHO) return Z9rn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i3ak(YKHO) -> oNY0:\n raise NotImplementedError", "def FzJk(YKHO):\n return YKHO.dup()", "def jth9(YKHO):\n return wUFg.SwigPyIterator_copy(YKHO)", "def jth9(YKHO):\n return Tw7d.SwigPyIterator_copy(YKHO)", "def QyFW(YKHO):\n return jth9.deepcopy(YKHO)", "def d9kX(YKHO):\n return YK...
[ "0.7030407", "0.6751502", "0.67331356", "0.6723464", "0.66952455", "0.6637948", "0.66371363", "0.6632501", "0.6623604", "0.66092587", "0.660568", "0.6594499", "0.6587329", "0.6587329", "0.6587329", "0.6587329", "0.65820813", "0.65558064", "0.6547579", "0.6547579", "0.6527933"...
0.0
-1
Replaces first colon in format string with an underscore. This will cause issues if any identifier is provided that does not contain a colon. This should not happen according to the MPRIS2 specification!
def hfK9(YKHO, sI3h): sI3h = MgwJ.sub('{\\2_\\3\\4}', sI3h) return vIwR.Formatter.parse(YKHO, sI3h)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aLw_(YKHO, FUjE):\n if FUjE.startswith('_'):\n return FUjE[:2].replace('_', '~') + FUjE[2:]\n else:\n return FUjE", "def YYzX(xqoZ):\n sWfS = U8Lr([('-', '_'), (' ', '_')])\n for G1Hx, Ty9i in sWfS.items():\n Aofo = ZbWC.sub(G1Hx, Ty9i, xqoZ)\n xqoZ = Aofo\n return ...
[ "0.70246416", "0.69588995", "0.6889864", "0.6881192", "0.6852765", "0.68499273", "0.68357754", "0.6732167", "0.65785366", "0.6578355", "0.6556412", "0.6552805", "0.65480214", "0.6533894", "0.6523089", "0.6521139", "0.64198107", "0.6373169", "0.63685346", "0.63656205", "0.6357...
0.0
-1
compute the 2's compliment of int value val
def h7al(YKHO, wEf2, UOVU=16): if wEf2 & 1 << UOVU - 1 != 0: wEf2 = wEf2 - (1 << UOVU) return wEf2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HeEe(wEf2):\n assert all([Ty9i in ['0', '1'] for Ty9i in wEf2]), 'val may contain [0,1]'\n kAne = UnkV(wEf2)\n if wEf2[0] == '1':\n kAne -= 1\n return kAne", "def Ppne(wEf2, BHGE=32):\n assert isinstance(wEf2, float), 'val must be float'\n UOVU = BQpl(wEf2, BHGE)\n if UOVU[0] == '...
[ "0.7236958", "0.71468997", "0.6957991", "0.69546944", "0.6950571", "0.6538271", "0.6464252", "0.64419705", "0.6427225", "0.63970083", "0.63878846", "0.62785333", "0.6258334", "0.62322795", "0.61946887", "0.61868984", "0.61861575", "0.61579794", "0.61036366", "0.60959834", "0....
0.589244
35
Displays statistics on the most frequent times of travels.
def dWJR(jQ3Z): print('\nCalculating The Most Frequent Times of Travel...\n') SWox = ITS7.time() XYie = jQ3Z['month'].mode()[0] print('common month is: \n ', XYie) SOOw = jQ3Z['day'].mode()[0] print('common month is: \n ', SOOw) jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour pRsb = jQ3Z['hour...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i...
[ "0.7996785", "0.7925537", "0.790895", "0.7870784", "0.78639895", "0.78339344", "0.7802136", "0.7775418", "0.7741867", "0.7727316", "0.77242774", "0.7710327", "0.7702425", "0.7696563", "0.7690659", "0.7684289", "0.7684269", "0.76687473", "0.7668652", "0.7661644", "0.76599246",...
0.74576676
79
Displays statistics on the most popular stations and trip.
def Huc_(jQ3Z): print('\nCalculating The Most Popular Stations and Trip...\n') SWox = ITS7.time() EUvR = jQ3Z['Start Station'].mode()[0] print('Most common start satation : \n', EUvR) vj_h = jQ3Z['End Station'].mode()[0] print('Most common end satation : \n', vj_h) p9F2 = rLdf.DataFrame(jQ3...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)", "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ...
[ "0.7665365", "0.76264536", "0.7610902", "0.75852126", "0.7576492", "0.7567089", "0.75577486", "0.7538181", "0.75294757", "0.7502035", "0.74997437", "0.7496321", "0.74872565", "0.74840283", "0.7475714", "0.7472988", "0.7437631", "0.74366206", "0.7433223", "0.7428372", "0.74269...
0.0
-1
Displays statistics on the total and average trip duration.
def kDMA(jQ3Z): print('\nCalculating Trip Duration...\n') SWox = ITS7.time() RGHr = jQ3Z['Trip Duration'].sum() print('total travel time is : \n', RGHr) IvhD = jQ3Z['Trip Duration'].mean() print('average travel time is : \n', int(IvhD)) print('\nThis took %s seconds.' % (ITS7.time() - SWox))...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ...
[ "0.8251978", "0.81471264", "0.80965656", "0.80127156", "0.7987783", "0.79834235", "0.7978646", "0.79705906", "0.7965226", "0.79636025", "0.79616374", "0.79614663", "0.79523134", "0.7948989", "0.79445267", "0.7937707", "0.7923821", "0.792045", "0.79198813", "0.7918623", "0.791...
0.78664464
50
Creates a new error.
def FIMM(YKHO, Ol8d): Exception.__init__(YKHO, Ol8d)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yw4j(YKHO, MOPg, QpfX, pB3N):\n XObx = nh7Y(MOPg, QpfX, pB3N)\n return XObx", "def s0bf(wfRC, Wxnj, Ol8d):\n return {'type': wfRC, 'code': Wxnj, 'message': Ol8d}", "def OdgU(YKHO):\n return YKHO.exception_type(YKHO.message)", "def FIMM(YKHO, P1dF):\n Exception.__init__(YKHO)\n YKHO.erro...
[ "0.7275227", "0.7107893", "0.6818645", "0.6556275", "0.652438", "0.6502656", "0.6461266", "0.644049", "0.6370338", "0.63575995", "0.6268426", "0.62461364", "0.61573493", "0.6145487", "0.6107584", "0.6100465", "0.6099708", "0.6098807", "0.607713", "0.60631233", "0.6062564", ...
0.0
-1
Create the absolute url to the admin user detail view.
def hlzF(YKHO): return gxEw('account-admin:user_detail', kwargs={'slug': YKHO.uuid})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hlzF(YKHO):\n return gxEw('user-detail', args=[str(YKHO.id)])", "def hlzF(YKHO):\n return gxEw('users:detail', kwargs={'username': YKHO.username})", "def hlzF(YKHO):\n return gxEw('users:detail', kwargs={'username': YKHO.username})", "def hlzF(YKHO):\n return gxEw('users:detail', kwargs={'use...
[ "0.76039153", "0.75518334", "0.75518334", "0.75518334", "0.75518334", "0.75518334", "0.7286856", "0.7154192", "0.71505666", "0.71505666", "0.7125913", "0.7125913", "0.7111145", "0.7102562", "0.7084881", "0.70661235", "0.70638895", "0.7041596", "0.70306313", "0.69755495", "0.6...
0.8047224
0
The `cons` functions prepends an element to the front of a list.
def Qs5b(): Aofo = b7La(hfK9("(cons 0 '(1 2 3))"), zAej()) LLrw(hfK9('(0 1 2 3)'), Aofo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sDym(LihS, mcM9):\n return mcM9 + LihS", "def e7SI(yv6U, BWXx):\n yv6U.remove(BWXx)\n yv6U.insert(0, BWXx)", "def e7SI(yv6U, BWXx):\n yv6U.remove(BWXx)\n yv6U.insert(0, BWXx)", "def m63X(wEf2, Q6uT):\n return wz2S(wEf2, Q6uT) + Q6uT", "def qIuc(YKHO, BWXx):\n YKHO._front = _nEQ(BWX...
[ "0.63274175", "0.6134363", "0.6134363", "0.61135656", "0.60724145", "0.5967351", "0.5963316", "0.5934713", "0.5810474", "0.5808779", "0.5794526", "0.5791584", "0.57077426", "0.56970066", "0.56873065", "0.5679923", "0.56552035", "0.563835", "0.56001097", "0.5575042", "0.555968...
0.53902876
28
If the list is empty there is no first element, and `head should raise an error.
def EvMa(): with DQkc(Qi9m): b7La(hfK9('(head (quote ()))'), zAej())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cntZ(yv6U):\n if yv6U == lsmZ:\n raise lymD('Cannot call first on the empty list!')\n return _6NH(yv6U)", "def sdCG(vC9B):\n if vC9B:\n return MTKo(vC9B[0])\n else:\n return rWmY", "def cntZ(YKHO):\n if YKHO.head is None:\n return None\n else:\n return Y...
[ "0.7649271", "0.76106673", "0.7533091", "0.72958326", "0.7105389", "0.70950824", "0.7083569", "0.7073875", "0.70724845", "0.7052251", "0.6991758", "0.6991758", "0.6960707", "0.6954228", "0.69457954", "0.6917849", "0.6899114", "0.68876415", "0.6877333", "0.6872894", "0.678244"...
0.7448033
3
Get this DBRef's _id.
def id(YKHO): return YKHO.__id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _eu6(YKHO):\n if YKHO.__id is None:\n YKHO.__id = YKHO.rel._id\n return YKHO.__id", "def unpH(YKHO) -> uphu:\n return YKHO.__id", "def unpH(YKHO):\n return YKHO._id", "def unpH(YKHO):\n return YKHO._id", "def unpH(YKHO):\n return YKHO._id", "def unpH(YKHO):\n return YKHO._...
[ "0.7928353", "0.7921681", "0.7894494", "0.7828004", "0.7828004", "0.7828004", "0.7828004", "0.7828004", "0.7828004", "0.7828004", "0.7828004", "0.7828004", "0.7828004", "0.7811393", "0.7811393", "0.7811393", "0.7769239", "0.7769239", "0.7769239", "0.7769239", "0.77527344", ...
0.0
-1
Get environment suffix for secret token
def bNbi() -> str: if XCPK.env == 'production': ZI14: str = 'prod' else: ZI14 = 'staging' return ZI14
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BO8Z() -> str:\n return '__MMDEPLOY_SNPE_URI'", "def kLRF():\n _63S = wk5E.config.get('POD_NAMESPACE').lower()\n if _63S.endswith('dev'):\n return 'DEV'\n if _63S.endswith('test'):\n return 'TEST'\n if _63S.endswith('tools'):\n return 'SANDBOX'\n return ''", "def kLRF...
[ "0.72278404", "0.6904602", "0.6904602", "0.6904602", "0.68292606", "0.66676456", "0.65145504", "0.6511024", "0.65013105", "0.64913064", "0.64822114", "0.6467687", "0.64177614", "0.6379617", "0.63722974", "0.6339079", "0.6315364", "0.62671924", "0.6261217", "0.62228113", "0.62...
0.7937064
0
Get indeces for given gradient orientation.
def A3Vt(YKHO, rVnq): return YKHO._R[rVnq]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KdH8(CmPs):\n G3_m = Zxt2.signal.convolve2d(CmPs, oyIN.array([[1, -1]]), mode='same', boundary='fill', fillvalue=0)\n YO1Y = Zxt2.signal.convolve2d(CmPs, oyIN.array([[1], [-1]]), mode='same', boundary='fill', fillvalue=0)\n _U8B = oyIN.sqrt(oyIN.power(G3_m, 2) + oyIN.power(YO1Y, 2))\n sdhi = oyIN.a...
[ "0.6545936", "0.63535595", "0.6213815", "0.6090303", "0.59067386", "0.58367", "0.5790488", "0.5775558", "0.5703504", "0.56303287", "0.56178796", "0.56177205", "0.5560181", "0.55568284", "0.5556065", "0.5554595", "0.5553445", "0.5538938", "0.5537729", "0.55300343", "0.5501653"...
0.0
-1
Returns the token to auth/log in the `user` Typically would want to include the generated token in an email so that that user can directly log in to the app.
def k1aQ(CBIr, QPzU=None): B7YX = hkb8(CBIr) QPzU = QPzU if QPzU else htn5('HTK_USER_TOKEN_AUTH_EXPIRES_MINUTES') yxS0 = wj6w() + qcWV.timedelta(minutes=QPzU) pSTO = iUuv(yxS0) Nzyw = R5eO(CBIr, pSTO) nPrm = {'user': B7YX, 'expires': pSTO, 'hash': Nzyw} eOtH = WR89.b64encode(qQXR.dumps(nPrm)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yexg(YKHO):\n return CBIr.get_token()", "def MC83(YKHO, CBIr: User) -> str:\n YKHO.logger.debug('Logging user with email %s' % CBIr.get_email())\n cshm = YKHO.sign_in_with_email_and_password(CBIr.get_email(), CBIr.get_secured_password_string())\n return cshm", "def O4b7(YKHO, CBIr):\n rG7T =...
[ "0.7738679", "0.76624423", "0.74920285", "0.7476094", "0.7464161", "0.7446969", "0.7412052", "0.7342128", "0.72812045", "0.7182617", "0.7176137", "0.7176137", "0.7158945", "0.715678", "0.7120712", "0.7109704", "0.7109704", "0.7105366", "0.71041006", "0.70769507", "0.70769507"...
0.6987908
27
return the argparse parser for this program
def EpPs(): wvEv = j1Jz.ArgumentParser(__name__) wvEv.add_argument('-H', '--host', default='localhost', help='host to connect for the vault api') wvEv.add_argument('-P', '--port', default=8200, type=int, help='port to connect for the vault api') wvEv.add_argument('-B', '--base', default='/keys/', help='...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z0ba(YKHO, **B2fa):\n import argparse\n VqfF = argparse.ArgumentParser(prog=B2fa['argv0'], description=YKHO.summary)\n return VqfF", "def C5D6(YKHO):\n wvEv = j1Jz.ArgumentParser()\n return wvEv", "def z0ba(YKHO):\n return YKHO.get_base_arg_parser()", "def EpPs():\n wvEv = j1Jz.Argum...
[ "0.8409725", "0.81829196", "0.80102307", "0.7986662", "0.79645663", "0.7865357", "0.78440243", "0.7827236", "0.7825532", "0.7796685", "0.7789364", "0.77804613", "0.777378", "0.7763877", "0.7752687", "0.77523774", "0.77515477", "0.77457833", "0.77357966", "0.77308357", "0.7730...
0.73723257
61
This function returns a Keras model object of a singlelayer acceptor LSTM. It is meant for the singlestep prediction of a univariate series with input window size input_timesteps
def RoVg(mAsl, BzNs): C3ST = ileL() C3ST.add(HGYM(mAsl, input_shape=(BzNs, 1))) C3ST.add(l6ZH(1)) C3ST.compile(loss='mse', optimizer='RMSprop') return C3ST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YZe9(YKHO):\n g4y1 = G1Hx.layers.Input(shape=(YKHO.window, YKHO.dimensions))\n WKvO = g4y1\n for YRbF in range(YKHO.n_layers - 1):\n WKvO = G1Hx.layers.LSTM(units=YKHO.layers_size[YRbF], return_sequences=True)(WKvO)\n WKvO = G1Hx.layers.BatchNormalization()(WKvO)\n WKvO = G1Hx.layers....
[ "0.7072068", "0.69655097", "0.6956354", "0.6937885", "0.69148886", "0.69098216", "0.68791634", "0.6872344", "0.6830495", "0.68108916", "0.67559725", "0.67012095", "0.66920865", "0.66729873", "0.65894455", "0.6571166", "0.6542952", "0.6520521", "0.65151685", "0.6507448", "0.64...
0.6423552
26
This function returns a Keras model object of a singlelayer acceptor LSTM. It is meant for the singlestep prediction of a onehot encoded univariate series with input window size input_timesteps and whose onehot encoded label values are in the range [0, class_count)
def xehn(mAsl, BzNs, y6i2): C3ST = ileL() C3ST.add(HGYM(mAsl, input_shape=(BzNs, y6i2))) C3ST.add(l6ZH(y6i2), activation='softmax') C3ST.compile(loss='sparse_categorical_crossentropy', optimizer='RMSprop') return C3ST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZrUA(zNgr, ZDXo):\n assert zNgr > 9, ' The maximum length of the amino acid can not be \\n shorter than 9 amino acids. your current input length is {}'.format(zNgr)\n W9Vw = ZylS.keras.layers.Input((zNgr, ZDXo), name='InputLayer')\n iHrl = ZylS.keras.layers.LSTM(units=12, name='LSTMLayer')(W9Vw)\n ...
[ "0.71991193", "0.70873725", "0.70478296", "0.6941639", "0.6856118", "0.6851419", "0.6808573", "0.67917544", "0.67375773", "0.67255104", "0.6643236", "0.6611746", "0.6582596", "0.65615785", "0.65289265", "0.6517383", "0.64955497", "0.6472948", "0.64680284", "0.64533615", "0.63...
0.61831135
36
Return which team the uploader was on.
def F3uj(IHX6): for dZPi in ['orange', 'blue']: EghX = IHX6['uploader']['name'] Bwa6 = IHX6[dZPi]['players'] for XP5J in Bwa6: if XP5J['name'] == EghX: return dZPi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L7Cr(YKHO):\n return YKHO.team", "def dZPi(YKHO):\n return YKHO._team", "def zjbk(YKHO):\n return YKHO._team", "def dZPi(YKHO, QePW):\n return QePW.getfixturevalue(QePW.param)", "def sKxE(YKHO):\n return YKHO.team", "def dZPi(YKHO):\n Skwb = YKHO.team_num\n if not Skwb:\n ...
[ "0.7289573", "0.71827406", "0.7164132", "0.7041211", "0.7035088", "0.6836268", "0.66807485", "0.6680441", "0.65607685", "0.65544426", "0.6510164", "0.650832", "0.64633995", "0.64244574", "0.6418493", "0.63992804", "0.63405627", "0.6316658", "0.6308133", "0.62981963", "0.62981...
0.7410034
0
Sets the creation_date of this Job.
def d8PD(YKHO, d8PD): if d8PD is None: raise ValueError('Invalid value for `creation_date`, must not be `None`') YKHO._creation_date = d8PD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d8PD(YKHO, d8PD):\n YKHO._creation_date = d8PD", "def d8PD(YKHO, d8PD):\n YKHO._creation_date = d8PD", "def d8PD(YKHO, d8PD):\n YKHO._creation_date = d8PD", "def d8PD(YKHO, d8PD):\n YKHO._creation_date = d8PD", "def d8PD(YKHO, d8PD):\n YKHO._creation_date = d8PD", "def d8PD(YKHO, d8PD)...
[ "0.8355701", "0.8355701", "0.8355701", "0.8355701", "0.8355701", "0.8355701", "0.8355701", "0.80233675", "0.78863645", "0.7791531", "0.7564137", "0.75333935", "0.75333935", "0.75333935", "0.75333935", "0.75333935", "0.75333935", "0.7513906", "0.75043595", "0.74317455", "0.743...
0.77783513
10
Sets the start_date of this Job.
def kepv(YKHO, kepv): YKHO._start_date = kepv
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YFxH(YKHO, kepv):\n YKHO._start_date = kepv", "def YFxH(YKHO, kepv):\n YKHO.__start_date = kepv", "def kepv(YKHO, kepv: datetime):\n if kepv is None:\n raise ValueError('Invalid value for `start_date`, must not be `None`')\n YKHO._start_date = kepv", "def kepv(YKHO, kepv):\n if kepv...
[ "0.8873785", "0.8852955", "0.8445941", "0.8413657", "0.8288031", "0.82135135", "0.82135135", "0.82135135", "0.82135135", "0.82135135", "0.80639225", "0.7956295", "0.78807944", "0.77889144", "0.7639422", "0.74779767", "0.73288774", "0.72961384", "0.72661626", "0.72661626", "0....
0.85997677
5
Sets the end_date of this Job.
def KhBf(YKHO, KhBf): YKHO._end_date = KhBf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eiFi(YKHO, eiFi: datetime):\n YKHO._enddate = eiFi", "def ddKN(YKHO, ddKN):\n YKHO._date_end = ddKN", "def ddKN(YKHO, ddKN):\n YKHO._date_end = ddKN", "def ddKN(YKHO, ddKN):\n YKHO._date_end = ddKN", "def KhBf(YKHO, KhBf: datetime):\n if KhBf is None:\n raise ValueError('Invalid v...
[ "0.8533848", "0.8480748", "0.8480748", "0.8480748", "0.8343622", "0.81845224", "0.8064618", "0.77775204", "0.75115854", "0.74331725", "0.7370032", "0.7370032", "0.7370032", "0.73680633", "0.73680633", "0.73680633", "0.73680633", "0.73680633", "0.73680633", "0.73680633", "0.73...
0.8763224
3
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
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 return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Given a stop_id, returns the stop object associated with that id in the database
def dt4q(zL37): JCyR = DMju.query(pm1c).filter_by(stop_id=zL37).first() return JCyR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cutj(pzC4, PObu):\n U2__ = {'run_start': str(PObu)}\n JCyR = list(pzC4['run_stop'].find(U2__))[0]\n JCyR.pop('_id')\n return JCyR", "def vvLS(zL37):\n return [pm1c.from_json(uz1h('stops/bystop/' + zL37))]", "def vrFf(Emd4, cuiw, zL37, Lp5E=False, lwiR=None):\n UxQk = None\n try:\n ...
[ "0.77013487", "0.7266567", "0.7076204", "0.6608575", "0.6571126", "0.6401839", "0.6382311", "0.62131864", "0.61114955", "0.605091", "0.60473996", "0.6002027", "0.5949428", "0.5869337", "0.58572626", "0.5827616", "0.5807936", "0.5768203", "0.576364", "0.5753513", "0.57510036",...
0.89274853
0
Validate that the given quantity is available.
def SsZn(YKHO): gFIc = Agby.objects.get(sku=YKHO.instance.sku) cTRz = YKHO.cleaned_data['quantity'] if not gFIc.has_stock(cTRz - YKHO.instance.quantity): P1dF = fJJZ['no_stock_quantity'].rstrip('.') raise H6V6.ValidationError('%s: %s' % (P1dF, cTRz)) return cTRz
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sXWt(Emd4, nPrm: dict):\n Mc9N = nPrm.get('product_id')\n cTRz = nPrm.get('quantity')\n Emd4.validate_product_id(Mc9N)\n Emd4.validate_quantity(cTRz)\n Lx3t = msfn.find_by_id(Mc9N)\n mDkQ = Lx3t.quantity\n cetm = cTRz\n if mDkQ - cetm < 0:\n SWH1('The product is not available')",...
[ "0.78879243", "0.7308014", "0.7272454", "0.726648", "0.72352374", "0.72272015", "0.71540374", "0.713282", "0.7048273", "0.7046825", "0.7015785", "0.6874104", "0.686964", "0.6726874", "0.6725455", "0.66820085", "0.66536987", "0.6645471", "0.65075696", "0.6502941", "0.64733624"...
0.6798757
13
Used for retrieving a single order, ensuring the user in the given request object can access it.
def FpV6(YKHO, zJ7I, QePW): ccBJ = {'id': zJ7I} if not QePW.user.is_authenticated(): ccBJ['key'] = QePW.session.session_key elif not QePW.user.is_staff: ccBJ['user_id'] = QePW.user.id return YKHO.get(**ccBJ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO, QePW, *qIxc, **B2fa):\n if 'order_pk' in YKHO.kwargs:\n CBIr = YKHO.request.user\n YKHO.order = Iofl(L9Jq, id=YKHO.kwargs['order_pk'], created_by=CBIr)\n return super().get(YKHO, QePW, *qIxc, **B2fa)", "def FpV6(YKHO, zJ7I, QePW):\n ccBJ = {'id': zJ7I}\n if not QePW.user....
[ "0.75251156", "0.73631126", "0.7347151", "0.72578186", "0.71931636", "0.6967299", "0.69628537", "0.6939075", "0.6885492", "0.68249184", "0.68099785", "0.67846406", "0.66281474", "0.658472", "0.6543652", "0.64108723", "0.6392306", "0.6377447", "0.63693166", "0.61524963", "0.61...
0.7358104
2
Create an empty variation (no options) if none exist, otherwise if multiple variations exist ensure there is no redundant empty variation. Also ensure there is at least one default variation.
def cs1Y(YKHO): p1WN = YKHO.count() if p1WN == 0: YKHO.create() elif p1WN > 1: YKHO.filter(**YKHO._empty_options_lookup()).delete() try: YKHO.get(default=True) except YKHO.model.DoesNotExist: sKjn = YKHO.all()[0] sKjn.default = True sKjn.save()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cs1Y(YKHO):\n p1WN = YKHO.count()\n if p1WN == 0:\n YKHO.create()\n elif p1WN > 1:\n YKHO.filter(**YKHO._empty_options_lookup()).delete()\n try:\n YKHO.get(default=True)\n except YKHO.model.DoesNotExist:\n sKjn = YKHO.all()[0]\n sKjn.default = True\n sKj...
[ "0.76901484", "0.65231484", "0.64733136", "0.5927077", "0.5627822", "0.5576729", "0.5562504", "0.5371477", "0.5331332", "0.5256696", "0.5198765", "0.5181685", "0.51406753", "0.51187426", "0.51124716", "0.5108221", "0.5066649", "0.50547457", "0.50117", "0.50007284", "0.4939514...
0.76671493
1
Returns True if there is a valid price.
def OWOV(YKHO): return YKHO.on_sale() or YKHO.unit_price is not None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D1Cn(YKHO):\n try:\n hI0L = okPj(YKHO.ticker).price()\n if hI0L:\n return True\n else:\n return False\n except (Exception, TypeError):\n return False", "def hcVR(YKHO, hI0L):\n lU6q(hI0L > 0, 'invalid price: %s' % hI0L)", "def Vsmd(Wxnj, hI0L):\n ...
[ "0.8366827", "0.79330564", "0.76014566", "0.74550545", "0.7286392", "0.71300423", "0.7061015", "0.7046485", "0.701419", "0.6953296", "0.68804014", "0.6876538", "0.68648726", "0.6827225", "0.67592716", "0.6728465", "0.65955174", "0.65593207", "0.6537277", "0.6528327", "0.64409...
0.7496295
3
Template helper function does the cart have items?
def XE3e(YKHO): return len(list(YKHO)) > 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sdxo(ZrNc, xryH):\n return ZrNc and len(xryH) > 0", "def szAg(YKHO):\n return len(YKHO.cart.items)", "def flqF(YKHO):\n return YKHO.inventory.is_empty()", "def szAg(YKHO):\n return sum((ZfUD['quantity'] for ZfUD in YKHO.cart.values()))", "def _A_F(YKHO):\n YKHO.should_not_be_items_in_the...
[ "0.7132533", "0.69412583", "0.6343687", "0.63291144", "0.6322702", "0.6310511", "0.62725246", "0.62529045", "0.6252435", "0.62506574", "0.624162", "0.61941934", "0.6152861", "0.6106211", "0.6100367", "0.60991013", "0.6093701", "0.6055309", "0.60508066", "0.60294217", "0.59690...
0.644601
2
Returns a list of skus for items in the cart. Used by ``upsell_products`` and ``calculate_discount``.
def wXG3(YKHO): return [ZfUD.sku for ZfUD in YKHO]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xbOZ(Emd4):\n De8Y = rIAI.now() - JRYC.timedelta(days=30)\n wXG3 = I45f.objects.variations().active().filter(modified_at__gt=De8Y).values_list('sku', flat=True)\n return set(wXG3)", "def PXIM(YKHO) -> qe4Y.Input['SkuArgs']:\n return qe4Y.get(YKHO, 'sku')", "def tYM3(Emd4, PXIM: str):\n bo34....
[ "0.68849975", "0.63457555", "0.63282645", "0.6308996", "0.627844", "0.6257449", "0.62372553", "0.6178792", "0.61752015", "0.61494577", "0.6147002", "0.6028", "0.6028", "0.60156137", "0.60156137", "0.60156137", "0.60156137", "0.59898055", "0.59898055", "0.59898055", "0.5989805...
0.80325216
0
Return the selected products as well as the products in the selected categories.
def wv_W(YKHO): KUnM = [Ghho.filters() for Ghho in YKHO.categories.all()] KUnM = Pusg(Hlvh, KUnM + [T8ck(id__in=YKHO.products.only('id'))]) return msfn.objects.filter(KUnM).distinct()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sYcD(boUX):\n Hhgp = msfn.select().where(msfn.Category == boUX).dicts()\n for l3QS in Hhgp:\n SxZn.articles_ids.append(l3QS['idProduct'])\n print(f'{l3QS['idProduct']} : {l3QS['ProductName']}')", "def CxaC(YKHO):\n return LeZt.Product.objects.all().order_by('name')", "def t72v(YKHO):...
[ "0.7036789", "0.6906762", "0.68213934", "0.67499244", "0.66401345", "0.66133416", "0.657176", "0.65590817", "0.6549605", "0.65491617", "0.6469665", "0.64405596", "0.64148873", "0.6391856", "0.638443", "0.6377545", "0.63525796", "0.63284725", "0.6315146", "0.62858754", "0.6239...
0.7228705
0
Clear this sale from products when deleting the sale.
def PTpj(YKHO, *qIxc, **B2fa): YKHO._clear() super(fkka, YKHO).delete(*qIxc, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fccZ(YKHO):\n QdZT = {'sale_id': None, 'sale_price': None, 'sale_from': None, 'sale_to': None}\n for Sx41 in (msfn, Agby):\n Sx41.objects.filter(sale_id=YKHO.id).update(**QdZT)", "def LZwO(YKHO):\n for YRbF in YKHO.items_in_cart.all():\n YRbF.delete()", "def HkMl(YKHO):\n for Lx3t...
[ "0.6850429", "0.6592931", "0.6488661", "0.6381184", "0.62367934", "0.62340283", "0.6118103", "0.60873866", "0.6052558", "0.59689236", "0.59689236", "0.5963359", "0.5912153", "0.58419216", "0.58312035", "0.5824947", "0.5820487", "0.58151364", "0.5812873", "0.5748425", "0.57115...
0.81039244
0
Format a value as currency according to locale.
def VIXL(BWXx): D8g0() if not BWXx: BWXx = 0 if hasattr(NCqB, 'currency'): BWXx = NCqB.currency(ZjSO(BWXx), grouping=True) if a9EH.system() == 'Windows': try: BWXx = str(BWXx, encoding='iso_8859_1') except TypeError: pass el...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VIXL(BWXx):\n return aJMI[fvfo['currency_locale']].format_currency(BWXx)", "def VIXL(BWXx):\n uA8h = NCqB.getlocale()\n if gCuF.CONVERT_XPF:\n return '%s XPF' % lWPh(BWXx)\n try:\n NB7L = NCqB.normalize(y_o0.to_locale('%s.utf8' % y_o0.get_language()))\n NCqB.setlocale(NCqB.LC...
[ "0.8667011", "0.8585587", "0.8025576", "0.7524078", "0.7520767", "0.74695295", "0.7256894", "0.7211421", "0.7206184", "0.71309024", "0.7099822", "0.69577265", "0.6871519", "0.6851363", "0.67361695", "0.6586863", "0.65396833", "0.6526271", "0.65253866", "0.6511026", "0.6497165...
0.8284538
2
Text version of order_totals.
def AkXl(QpfX): return Rcvs(QpfX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zitA(QpfX):\n return Rcvs(QpfX)", "def r76v(YKHO, wc14):\n return QMSQ(bGrB('Total (%d rows)') % wc14.get_total_count())", "def WyNQ(YKHO):\n print(f'Totals: {YKHO.actions} Action(s), {YKHO.buys} Buy(s), {YKHO.coins} Coin(s)')", "def htdN(YKHO):\n wjRY = 0\n for rdlD in YKHO.row_widgets.va...
[ "0.7140172", "0.6816808", "0.6769566", "0.65099007", "0.65089965", "0.63934004", "0.63614017", "0.63042897", "0.62481356", "0.6179358", "0.6074708", "0.59802383", "0.5979918", "0.5973502", "0.596048", "0.59523886", "0.5936294", "0.5926946", "0.5922468", "0.5896183", "0.586328...
0.863922
0
Tests the number of products returned by the category's current filters.
def WWX6(YKHO, derQ): Ldyl = msfn.objects.filter(YKHO._category.filters()) YKHO.assertEqual(Ldyl.distinct().count(), derQ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WWX6(YKHO, derQ):\n Ldyl = msfn.objects.filter(YKHO._category.filters())\n YKHO.assertEqual(Ldyl.distinct().count(), derQ)", "def fBlK(YKHO):\n YKHO._product.variations.all().delete()\n YKHO.assertCategoryFilteredProducts(0)\n o4Rl, xAU6 = list(YKHO._options.items())[0]\n hpNF, mAnY = xAU6[...
[ "0.80254173", "0.67024827", "0.66765624", "0.65084296", "0.6502503", "0.6502503", "0.6502503", "0.6502503", "0.6502503", "0.6502503", "0.6497607", "0.64696777", "0.6467841", "0.64526457", "0.6452485", "0.63968015", "0.6390901", "0.63269496", "0.6265332", "0.6256508", "0.62072...
0.8080084
0
Test the category filters returns expected results.
def fBlK(YKHO): YKHO._product.variations.all().delete() YKHO.assertCategoryFilteredProducts(0) o4Rl, xAU6 = list(YKHO._options.items())[0] hpNF, mAnY = xAU6[:2] YKHO._product.variations.create_from_options({o4Rl: [hpNF]}) MTKo = Tv3u.objects.get(type=o4Rl[-1], name=mAnY) YKHO.assertCategoryF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fBlK(YKHO):\n YKHO._product.variations.all().delete()\n YKHO.assertCategoryFilteredProducts(0)\n o4Rl, xAU6 = list(YKHO._options.items())[0]\n hpNF, mAnY = xAU6[:2]\n YKHO._product.variations.create_from_options({o4Rl: [hpNF]})\n MTKo = Tv3u.objects.get(type=o4Rl[-1], name=mAnY)\n YKHO.ass...
[ "0.7878643", "0.74006766", "0.710833", "0.70750993", "0.70193964", "0.6932811", "0.69286305", "0.6901099", "0.68777096", "0.6860895", "0.68557", "0.6846967", "0.6829925", "0.6818026", "0.68174344", "0.6805821", "0.6792191", "0.67830634", "0.67698973", "0.6746957", "0.67446876...
0.786104
1
Stores the shipping type and total in the session.
def oBNf(QePW, SbZu, rcmq): QePW.session['shipping_type'] = EIOD(SbZu) QePW.session['shipping_total'] = EIOD(rcmq)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m8z6(YKHO, QePW, *qIxc, **B2fa):\n BCUZ = QePW.POST.get('method_code', '')\n bFvU = QePW.POST.get('insurance', 'no')\n SGVO = False\n B5hb = QePW.basket.get_package()\n if not B5hb or B5hb.owner.id != QePW.user.id:\n return lTKP(QePW)\n na_E = YKHO.get_available_shipping_methods(B5hb)\...
[ "0.60734004", "0.5988986", "0.5825648", "0.5785835", "0.57763886", "0.5642567", "0.55705184", "0.55688685", "0.5548967", "0.5488575", "0.54615057", "0.54286665", "0.5362299", "0.5362299", "0.53296876", "0.5324362", "0.5307302", "0.5307302", "0.5307302", "0.5304857", "0.529904...
0.821329
0
Redirected to once an order is complete pass the order object for tracking items via Google Anayltics, and displaying in the template if required.
def Fd4y(QePW, rPXJ='shop/complete.html'): try: T4Wy = L9Jq.objects.from_request(QePW) except L9Jq.DoesNotExist: raise uhgT DumB = T4Wy.items.all() wXG3 = [ZfUD.sku for ZfUD in DumB] TATJ = Agby.objects.filter(sku__in=wXG3) ZWCE = {} for gFIc in TATJ.select_related(depth=1): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qv8j(YKHO, T4Wy):\n YKHO.send_confirmation_message(T4Wy)\n YKHO.checkout_session.flush()\n YKHO.request.session['checkout_order_id'] = T4Wy.id\n geh0 = Yd7Q(YKHO.get_success_url())\n YKHO.send_signal(YKHO.request, geh0, T4Wy)\n return geh0", "def NdPK(YKHO, T4Wy: OrderData):\n pass", "...
[ "0.67685115", "0.63441235", "0.63172615", "0.6287177", "0.6287177", "0.6287177", "0.6287177", "0.6287177", "0.6287177", "0.6242577", "0.61805534", "0.61768925", "0.61399883", "0.61354977", "0.6070723", "0.606008", "0.6042873", "0.60427046", "0.6037153", "0.60045326", "0.60027...
0.5936837
24
Display a list of the currently loggedin user's past orders.
def zXsq(QePW, rPXJ='shop/order_history.html'): f0Uf = L9Jq.objects.filter(user_id=QePW.user.id).annotate(quantity_total=zphJ('items__quantity')) BgK2 = roPg(f0Uf.order_by('-time'), QePW.GET.get('page', 1), gCuF.SHOP_PER_PAGE_CATEGORY, gCuF.MAX_PAGING_LINKS) QpfX = {'orders': BgK2} return _1tc(QePW, rPX...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zXsq(QePW):\n CBIr = QePW.user\n WmLG = Iofl(q4hs, user=CBIr)\n jXT_ = L9Jq.objects.filter(customer=WmLG)\n AIXH = mL5s.objects.all()\n QpfX = {'orders': jXT_}\n return _1tc(QePW, 'profiles/order_history.html', QpfX)", "def FLXQ():\n uJjO = cuiw.get('user_id')\n BgK2 = []\n lAo6 = ...
[ "0.6677787", "0.65071803", "0.6233159", "0.61240166", "0.6113083", "0.6066891", "0.60429937", "0.6040861", "0.6000607", "0.5992196", "0.59509313", "0.5936271", "0.5917024", "0.5868814", "0.5799681", "0.5790898", "0.57847977", "0.57725096", "0.5745469", "0.5735989", "0.5702085...
0.64353526
2
Show likes of said user
def BdxA(YKHO): with P4t4.test_client() as Z9rn: with Z9rn.session_transaction() as cb_Q: cb_Q[tQkc] = YKHO.testuser.id YKHO.testmsg = LuKW(id=112, text='Test User Message 2', user_id=YKHO.testuser.id) NCls.session.add(YKHO.testmsg) NCls.session.commit() YKHO.test...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fjNQ(YKHO):\n return '\\n'.join([str(nUHY) for nUHY in YKHO.likes.all()])", "def t5pp(YKHO):\n with YKHO.client as Z9rn:\n with Z9rn.session_transaction() as cb_Q:\n cb_Q[tQkc] = YKHO.uid_1\n _hkX = Z9rn.get(f'/users/{YKHO.uid_1}/likes')\n _R2e = _hkX.get_data(as_text=Tr...
[ "0.78344065", "0.7195048", "0.70977944", "0.7073119", "0.7034323", "0.6996081", "0.6960699", "0.68939745", "0.6769203", "0.67473", "0.67106557", "0.6672505", "0.6658205", "0.6658205", "0.66413516", "0.6640854", "0.6494626", "0.6476942", "0.64705825", "0.6444359", "0.6417151",...
0.7027561
5
Set this person as dead
def ZHYy(YKHO): YKHO.blackout.image = 'panel_redout' YKHO.blackout.visible = True YKHO.set_drinking_state(nLtL) YKHO.clear_wants_to_talk() YKHO.hide_button() YKHO.is_dead = True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VG4O(YKHO, ee8c):\n YKHO.dead = ee8c", "def ZHYy(YKHO):\n print('Cell at {} dies.'.format(YKHO.pos))\n YKHO.status = 0", "def Hf9x(YKHO, BWXx):\n YKHO.deadOnce = BWXx", "def yZTu(YKHO, Q6kx):\n with YKHO._lock:\n if Q6kx in YKHO.live_nodes:\n YKHO.live_nodes.discard(Q6kx)...
[ "0.81214714", "0.7455816", "0.738696", "0.6662458", "0.6656986", "0.6525596", "0.6471103", "0.6467457", "0.6441541", "0.64171475", "0.6386661", "0.63858634", "0.63748115", "0.6332882", "0.632566", "0.627929", "0.62176347", "0.6203363", "0.61883205", "0.61756986", "0.6164788",...
0.63551825
13
Compute softmax values for each sets of scores in x.
def N93T(WKvO): uw5A = oyIN.exp(WKvO - oyIN.max(WKvO)) return uw5A / uw5A.sum()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oSvh(WKvO):\n S2MS = []\n if oyIN.array(WKvO).ndim == 1:\n hrCc = oyIN.exp(WKvO)\n RmXN = oyIN.sum(hrCc)\n xzMv = hrCc / RmXN\n dzye = xzMv\n else:\n dzye = oyIN.exp(cCrA) / oyIN.sum(oyIN.exp(cCrA), axis=0)\n return dzye", "def N93T(WKvO):\n j1LR = oyIN.exp(o...
[ "0.80113125", "0.77607703", "0.77607703", "0.7687368", "0.76707524", "0.76605", "0.76571554", "0.76571554", "0.76571554", "0.76571554", "0.76571554", "0.76571554", "0.76571554", "0.76397043", "0.762786", "0.7551623", "0.7532752", "0.74565", "0.73242354", "0.73171765", "0.7298...
0.7092462
61
Attach a lot of summaries to a Tensor (for TensorBoard visualization).
def g4Yp(SRYB): with ZylS.name_scope('summaries'): JBMS = ZylS.reduce_mean(SRYB) ZylS.summary.scalar('mean', JBMS) with ZylS.name_scope('stddev'): z2bo = ZylS.sqrt(ZylS.reduce_mean(ZylS.square(SRYB - JBMS))) ZylS.summary.scalar('stddev', z2bo) ZylS.summary.scalar('max', ZylS.reduce_m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oxpy(YKHO):\n with ZylS.name_scope('summaries'):\n ZylS.summary.scalar('loss', YKHO.loss)\n ZylS.summary.scalar('accuracy', YKHO.accuracy)\n ZylS.summary.histogram('W', YKHO.W)\n ZylS.summary.histogram('B', YKHO.B)\n YKHO.summary = ZylS.summary.merge_all()", "def oxpy(YK...
[ "0.773631", "0.7636054", "0.71544313", "0.7066801", "0.7010252", "0.70038253", "0.6864809", "0.679064", "0.6711722", "0.67016", "0.669732", "0.6652493", "0.6650507", "0.6646651", "0.6623788", "0.6604622", "0.6596553", "0.6581095", "0.6570419", "0.6537464", "0.65369606", "0....
0.0
-1
Get absolute path to resource, works for dev and for PyInstaller
def JFat(t_yv): try: XSj5 = HwRy._MEIPASS except Exception: XSj5 = Hy7s.path.abspath('.') return Hy7s.path.join(XSj5, t_yv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gZBG():\n return khtY.abspath(khtY.join(khtY.dirname(xAKo), 'resources') + khtY.sep)", "def JFat(Qth0):\n if getattr(HwRy, 'frozen', None):\n ObT1 = HwRy._MEIPASS\n else:\n ObT1 = Hy7s.path.join(Hy7s.getcwd())\n return Hy7s.path.join(ObT1, Qth0)", "def JFat(t_yv):\n try:\n ...
[ "0.86645055", "0.8190357", "0.8175001", "0.8163073", "0.80863976", "0.80863976", "0.80863976", "0.80863976", "0.80784917", "0.8077746", "0.8073863", "0.8065137", "0.80625504", "0.80625504", "0.80625504", "0.80625504", "0.80625504", "0.80625504", "0.80625504", "0.8059543", "0....
0.8086095
8
Instantiate a template with solved coefficient values
def aUx1(Emd4, rPXJ, OiIQ): assert Emd4.is_expr(rPXJ), rPXJ if not OiIQ: return [] if len(OiIQ) > 1: nbTs.warning('instantiate_template with sols: len(sols) = {}'.format(len(OiIQ))) nbTs.warning(str(OiIQ)) def BSJB(Csk6): TYyO = rPXJ(Csk6) DDrG = Emd4.get_vars(Cs...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, zZRI, x6A0):\n YKHO.coefficient = zZRI\n YKHO.targets = x6A0\n YKHO.multinoms = []", "def FIMM(YKHO, vqVR):\n YKHO.coef = vqVR", "def FIMM(YKHO, C3ST, Es0b, Cqok):\n YKHO.model = C3ST\n YKHO.variable = Es0b\n YKHO.multiplier = Cqok['multiplier'] if 'multiplier' in Cqok else ...
[ "0.6144823", "0.5990255", "0.58574474", "0.5847954", "0.58353484", "0.5802975", "0.5794845", "0.5755631", "0.57549435", "0.574541", "0.5742113", "0.57286745", "0.5662557", "0.5662557", "0.56594753", "0.56155056", "0.56150633", "0.5596215", "0.5595522", "0.55594534", "0.552256...
0.62424654
0
Test making an event service delivery a nonevent service delivery.
def Mz5J(YKHO): e1au = ITWk() bD7m = gxEw('api-v3:interaction:item', kwargs={'pk': e1au.pk}) geh0 = YKHO.api_client.patch(bD7m, data={'is_event': False, 'event': None}) assert geh0.status_code == jGRS.HTTP_200_OK Bv0m = geh0.json() assert Bv0m['is_event'] is False assert Bv0m['event'] is Non...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CJ8O(YKHO):\n SjMt(YKHO._default_event.service, 'unit-test-service')", "def Izju(YKHO):\n e1au = lUBY()\n tvqc = PC4r()\n bD7m = gxEw('api-v3:interaction:item', kwargs={'pk': e1au.pk})\n geh0 = YKHO.api_client.patch(bD7m, data={'is_event': True, 'event': tvqc.pk})\n assert geh0.status_code ...
[ "0.7259893", "0.71488976", "0.6955111", "0.67751104", "0.6707425", "0.6667196", "0.6556222", "0.6496421", "0.64926076", "0.6461967", "0.63957494", "0.63840234", "0.6383429", "0.63683885", "0.6336366", "0.6323337", "0.6312286", "0.6309911", "0.6301298", "0.6268202", "0.6261877...
0.7496479
0
Initializes an empty board.
def FIMM(YKHO): YKHO.rows = [[' ', ' ', ' '], [' ', ' ', ' '], [' ', ' ', ' ']] print('init', YKHO.rows)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yqe1(YKHO):\n YKHO.board = [[None] * YKHO.board_size for bGrB in range(YKHO.board_size)]", "def A6EF(YKHO):\n YKHO.board = oyIN.full(pow(YKHO.size + 2, 2), pqZk, dtype='U')\n for rdlD in range(1, YKHO.size + 1):\n yKcO = YKHO.row_start(rdlD)\n YKHO.board[yKcO:yKcO + YKHO.size] = KAvf\n...
[ "0.83902335", "0.82052463", "0.8164288", "0.8158754", "0.81452835", "0.8135046", "0.81071025", "0.7947459", "0.78908277", "0.78445333", "0.7791829", "0.7789609", "0.7776736", "0.7763588", "0.77259624", "0.7646994", "0.7646994", "0.7637816", "0.76322967", "0.7617328", "0.76129...
0.0
-1
Returns a string representation of the board. Should be three rows with each cell separated by a '|'. X| | |X|O | |
def zAg0(YKHO): I0Q3 = ['|'.join(bGrB) for bGrB in YKHO.rows] _UdN = '\n'.join(I0Q3) + '\n' return _UdN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lMxb(YKHO):\n vIwR = ''\n for WKvO in range(3):\n for LVAh in range(3):\n if YKHO.board[WKvO][LVAh] == 0:\n vIwR += ' '\n elif YKHO.board[WKvO][LVAh] == 1:\n vIwR += 'X'\n else:\n vIwR += 'O'\n if LVAh < 2:\n ...
[ "0.8630599", "0.8420842", "0.84001595", "0.83686817", "0.83636075", "0.83273184", "0.8301634", "0.8293702", "0.82499933", "0.8200312", "0.8189561", "0.81780046", "0.81412286", "0.8128831", "0.81169087", "0.81008756", "0.8100304", "0.8082469", "0.8063337", "0.8060089", "0.8059...
0.8028806
22
Initializes an empty board.
def FIMM(YKHO): YKHO.pos_to_token = {'a1': ' ', 'b1': ' ', 'c1': ' ', 'a2': ' ', 'b2': ' ', 'c2': ' ', 'a3': ' ', 'b3': ' ', 'c3': ' '}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yqe1(YKHO):\n YKHO.board = [[None] * YKHO.board_size for bGrB in range(YKHO.board_size)]", "def A6EF(YKHO):\n YKHO.board = oyIN.full(pow(YKHO.size + 2, 2), pqZk, dtype='U')\n for rdlD in range(1, YKHO.size + 1):\n yKcO = YKHO.row_start(rdlD)\n YKHO.board[yKcO:yKcO + YKHO.size] = KAvf\n...
[ "0.83902335", "0.82052463", "0.8164288", "0.8158754", "0.81452835", "0.8135046", "0.81071025", "0.7947459", "0.78908277", "0.78445333", "0.7791829", "0.7789609", "0.7776736", "0.7763588", "0.77259624", "0.7646994", "0.7646994", "0.7637816", "0.76322967", "0.7617328", "0.76129...
0.0
-1
Return which token type won ('X' or 'O') or None if no one has won yet.
def kTv5(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aUCC(YKHO, QePW):\n GMPf = sorted(((a1PO.estimate_type(QePW), exwG) for exwG, a1PO in YKHO.tokens.items()))\n return GMPf[0][1] if len(GMPf) else None", "def sOU6(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'token_type')", "def sOU6(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'token_type')", ...
[ "0.6582736", "0.6398036", "0.6398036", "0.63274544", "0.63263804", "0.61910075", "0.6151438", "0.61228615", "0.60432225", "0.5992363", "0.5992363", "0.59505296", "0.5872591", "0.57842416", "0.5777732", "0.5753561", "0.5744334", "0.5744334", "0.5744334", "0.5744334", "0.574433...
0.0
-1
Returns a string representation of the board. Should be three rows with each cell separated by a '|'. X| | |X|O | |
def zAg0(YKHO): zZcM = YKHO.create_column_sorted_tokens() I0Q3 = ['|'.join(bGrB) for bGrB in YKHO.column_sorted_tokens] return '\n'.join(I0Q3) pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lMxb(YKHO):\n vIwR = ''\n for WKvO in range(3):\n for LVAh in range(3):\n if YKHO.board[WKvO][LVAh] == 0:\n vIwR += ' '\n elif YKHO.board[WKvO][LVAh] == 1:\n vIwR += 'X'\n else:\n vIwR += 'O'\n if LVAh < 2:\n ...
[ "0.8630966", "0.84204525", "0.83997655", "0.83680665", "0.8363206", "0.8327488", "0.83011866", "0.82939565", "0.8248682", "0.81996834", "0.81888914", "0.8177081", "0.81403273", "0.81283826", "0.81161857", "0.8100935", "0.8100277", "0.8082031", "0.806255", "0.8059676", "0.8058...
0.0
-1
Initalizes an empty board.
def FIMM(YKHO): YKHO.x_y_token_triplets = []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yqe1(YKHO):\n YKHO.board = [[None] * YKHO.board_size for bGrB in range(YKHO.board_size)]", "def A6EF(YKHO):\n YKHO.board = oyIN.full(pow(YKHO.size + 2, 2), pqZk, dtype='U')\n for rdlD in range(1, YKHO.size + 1):\n yKcO = YKHO.row_start(rdlD)\n YKHO.board[yKcO:yKcO + YKHO.size] = KAvf\n...
[ "0.83927166", "0.8306863", "0.80075276", "0.7919966", "0.7851035", "0.77922773", "0.77878094", "0.77155095", "0.76771957", "0.76533926", "0.7641544", "0.75988257", "0.7580967", "0.75767386", "0.7544129", "0.75301075", "0.75298965", "0.74781317", "0.74657065", "0.7443521", "0....
0.0
-1
Returns a string representation of the board. Should be three rows with each cell separated by a '|'. X| | |X|O | |
def zAg0(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lMxb(YKHO):\n vIwR = ''\n for WKvO in range(3):\n for LVAh in range(3):\n if YKHO.board[WKvO][LVAh] == 0:\n vIwR += ' '\n elif YKHO.board[WKvO][LVAh] == 1:\n vIwR += 'X'\n else:\n vIwR += 'O'\n if LVAh < 2:\n ...
[ "0.8630966", "0.84204525", "0.83997655", "0.83680665", "0.8363206", "0.8327488", "0.83011866", "0.82939565", "0.8248682", "0.81996834", "0.81888914", "0.8177081", "0.81403273", "0.81283826", "0.81161857", "0.8100935", "0.8100277", "0.8082031", "0.806255", "0.8059676", "0.8058...
0.0
-1
The dataset api needs to always have a description string, even if the model value is null.
def Bzot(YKHO): qsJ6 = 'no_description_owner' YKHO.remove_users.append(qsJ6) UEUp = YKHO.get_auth_header_for_username(qsJ6) gS5G = xgmg(qsJ6, 'ds9', 'SELECT(1)') gS5G.description = None gS5G.save() bD7m = gxEw('sqlshare_view_dataset', kwargs={'owner': qsJ6, 'name': 'ds9'}) with EkfF() as...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iv3U():\n x3i3(name='demo', description='')", "def Vp9T(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'model_description')", "def IzZU(YKHO):\n return YKHO._loader.description_text", "def t5do(YKHO, V52X):\n pass", "def cEKB(YKHO, j3aw):\n FBfN = YKHO.client\n Aofo = FBfN.getMetadataSet...
[ "0.7598136", "0.7117432", "0.69872826", "0.6822081", "0.67984873", "0.67085105", "0.6667793", "0.6667793", "0.66497314", "0.66497314", "0.66497314", "0.66497314", "0.66497314", "0.66497314", "0.66497314", "0.66497314", "0.66497314", "0.66497314", "0.66497314", "0.66497314", "...
0.6991381
2
Cosine Similarity between the 2 vectors
def rONK(hQHm, jlSq): xGZO = j8U8(hQHm) HMhA = j8U8(jlSq) return oyIN.clip(oyIN.tensordot(xGZO, HMhA, axes=(-1, -1)), -1.0, 1.0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rHZK(OqEA, Yetk):\n return oyIN.sum(OqEA * Yetk) / oyIN.sqrt(oyIN.sum(OqEA ** 2) * oyIN.sum(Yetk ** 2))", "def gKk5(Emd4, OqEA, Yetk):\n return oyIN.dot(OqEA, Yetk) / (oyIN.linalg.norm(OqEA) * oyIN.linalg.norm(Yetk))", "def gKk5(hQHm, jlSq):\n return 1 - Catu.distance.cosine(hQHm, jlSq)", "def g...
[ "0.8699947", "0.8653026", "0.8611753", "0.8580974", "0.85447437", "0.8521066", "0.84301835", "0.8369475", "0.8362425", "0.8314713", "0.8311672", "0.8309544", "0.8306876", "0.8289881", "0.826306", "0.8211284", "0.81608677", "0.81476355", "0.81397104", "0.81335324", "0.8131967"...
0.7594681
80
Go through all the boxes, and whenever there is a box with a value, eliminate this value from the values of all its peers.
def zJeh(hkxX): vMy3 = [FlUN for FlUN in hkxX.keys() if len(hkxX[FlUN]) == 1] for FlUN in vMy3: Ko6S = hkxX[FlUN] for jYLz in k5Tt[FlUN]: hkxX[jYLz] = hkxX[jYLz].replace(Ko6S, '') return hkxX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zJeh(hkxX):\n for Lves in qAH2(hkxX):\n for jYLz in iBIi.all_peers(Lves):\n hkxX = zUz_(hkxX, jYLz, hkxX[jYLz].replace(hkxX[Lves], ''))\n return hkxX", "def zJeh(hkxX):\n vMy3 = [FlUN for FlUN in hkxX.keys() if len(hkxX[FlUN]) == 1]\n for FlUN in vMy3:\n AnMo = hkxX[FlUN]...
[ "0.80508965", "0.79834133", "0.7950601", "0.7924154", "0.7811488", "0.77566767", "0.77285063", "0.76782465", "0.76744735", "0.76470053", "0.76399153", "0.76279634", "0.7612261", "0.7587893", "0.75402004", "0.75312775", "0.7522415", "0.75013804", "0.7397826", "0.73520416", "0....
0.74958354
18
Go through all the units, and whenever there is a unit with a value that only fits in one box, assign the value to this box.
def rIvV(hkxX): for PXGI in dzni: for Ko6S in '123456789': S5Zo = [FlUN for FlUN in PXGI if Ko6S in hkxX[FlUN]] if len(S5Zo) == 1: hkxX[S5Zo[0]] = Ko6S return hkxX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qIMy(YKHO):\n for WKvO in range(9):\n for LVAh in range(9):\n exwG = YKHO.grid[WKvO][LVAh]\n if exwG != 0:\n YKHO._rows[LVAh].add(exwG)\n YKHO._columns[WKvO].add(exwG)\n YKHO._boxes[WKvO // 3][LVAh // 3].add(exwG)", "def rIvV(hkxX):...
[ "0.67276", "0.605448", "0.60483605", "0.6035102", "0.58772254", "0.58431035", "0.5841784", "0.5827025", "0.58243877", "0.5801623", "0.57511675", "0.56962186", "0.5680896", "0.56725943", "0.5636413", "0.56242603", "0.5600559", "0.5586474", "0.55642706", "0.55619437", "0.551360...
0.5443595
28
Setter method for disable_adjacency_check, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/disable_adjacency_check (empty)
def oO8D(YKHO, Ty9i, tyeH=False): if hasattr(Ty9i, '_utype'): Ty9i = Ty9i._utype(Ty9i) try: a1PO = ltgX(Ty9i, base=aqGX, is_leaf=True, yang_name='disable-adjacency-check', rest_name='disable-adjacency-check', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V4EB(YKHO):\n return YKHO.__disable_adjacency_check", "def Cya_(YKHO):\n aBkf = jvPw.argument_validator.ArgValidator_ListConnections()\n XxSE = [{'name': 'test_ipv6_method', 'type': 'ethernet', 'ip': {'ipv6_disabled': True, 'auto6': True}}]\n YKHO.assertRaisesRegex(sUXu, \"'auto6' and 'ipv6_disab...
[ "0.54003346", "0.49692383", "0.48522285", "0.47280666", "0.4625656", "0.4596497", "0.45317426", "0.44839582", "0.43982285", "0.4356425", "0.43433502", "0.43408057", "0.43139458", "0.4309071", "0.4301076", "0.4249971", "0.42442086", "0.4236463", "0.4231311", "0.4221422", "0.42...
0.76894844
0
Getter method for summary_prefix, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/summary_prefix (list)
def FKZ0(YKHO): return YKHO.__summary_prefix
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GcPq(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=QuAi('summary_prefix_ipv6', NqdJ.summary_prefix, yang_name='summary-prefix', rest_name='summary-prefix', parent=YKHO, is_container='list', user_ordered=False, path_helper=Y...
[ "0.8063235", "0.6267574", "0.51153636", "0.509818", "0.49687564", "0.49357954", "0.4917857", "0.49132094", "0.49132094", "0.4884501", "0.48689246", "0.4846738", "0.48224384", "0.47621363", "0.47611025", "0.47584462", "0.47491696", "0.47480854", "0.4747123", "0.47458264", "0.4...
0.628812
1
Getter method for partial6_spf_interval, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/partial6_spf_interval (container)
def nVah(YKHO): return YKHO.__partial6_spf_interval
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _SXE(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=iLHj.partial6_spf_interval, is_container='container', presence=False, yang_name='partial6-spf-interval', rest_name='partial-spf-interval', parent=YKHO, path_helper=YKHO._pa...
[ "0.83114624", "0.6897471", "0.6758714", "0.6512078", "0.58742577", "0.5861062", "0.58522415", "0.57377356", "0.5653477", "0.558857", "0.5303201", "0.4613243", "0.45268852", "0.45268852", "0.44504982", "0.44140878", "0.44110537", "0.43954003", "0.43712953", "0.4369121", "0.433...
0.7461734
1
Setter method for partial6_spf_interval, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/partial6_spf_interval (container)
def _SXE(YKHO, Ty9i, tyeH=False): if hasattr(Ty9i, '_utype'): Ty9i = Ty9i._utype(Ty9i) try: a1PO = ltgX(Ty9i, base=iLHj.partial6_spf_interval, is_container='container', presence=False, yang_name='partial6-spf-interval', rest_name='partial-spf-interval', parent=YKHO, path_helper=YKHO._path_helper...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L0f2(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=QuAi('spf6_interval_level', oBsU.spf6_interval, yang_name='spf6-interval', rest_name='spf-interval', parent=YKHO, is_container='list', user_ordered=False, path_helper=YKHO....
[ "0.74003327", "0.73447734", "0.6956924", "0.6639093", "0.63131464", "0.6269572", "0.57873243", "0.5724781", "0.5679455", "0.56077194", "0.55793935", "0.47270867", "0.47166735", "0.46237615", "0.43978986", "0.4389916", "0.43591806", "0.43300143", "0.42392918", "0.42392918", "0...
0.8683004
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
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 return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Gets the list of fragments in the current layout.
def qFlP(hxGQ, begE): M5Nc = begE.shell('dumpsys activity ' + hxGQ) fMh3 = ZbWC.findall('Added Fragments:(.*?)FragmentManager', M5Nc, ZbWC.DOTALL) if fMh3: o9Bv = ZbWC.findall(': (.*?){', fMh3[0], ZbWC.DOTALL) for YRbF in range(0, len(o9Bv)): if ' ' in o9Bv[YRbF]: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QxwS(YKHO) -> x1iM[g74T.Rect]:\n return YKHO._fragments", "def NZzQ(YKHO):\n for vBtp in YKHO.__fragments:\n yield vBtp", "def QPk2(YKHO):\n NCls = LAPE(YKHO.dbfile, YKHO.userdbfile)\n DumB = ';'.join(['{}<-{}'.format(YRbF[1], YRbF[0]) for YRbF in NCls])\n SoEA.html.SetItems('LIST_FRA...
[ "0.7029314", "0.692781", "0.6896346", "0.6869342", "0.658871", "0.65058434", "0.62106436", "0.6133953", "0.59895307", "0.59382665", "0.5700653", "0.56078714", "0.54885364", "0.54439217", "0.5420072", "0.5406855", "0.53261024", "0.5319695", "0.5238389", "0.51876813", "0.517018...
0.65494317
5
Sets the notes of this PutProductsProduct.
def rpno(YKHO, rpno): YKHO._notes = rpno
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n_rA(YKHO, rpno):\n YKHO._notes = rpno", "def rpno(YKHO, rpno):\n YKHO._notes = rpno", "def rpno(YKHO, rpno: str):\n YKHO._notes = rpno", "def pKyV(YKHO, rpno):\n YKHO.del_notes()\n for fytP in rpno:\n YKHO.add_note(fytP[1], fytP[0])", "def YhTF(YKHO, rpno):\n for vexM in rpno:...
[ "0.7068626", "0.68399656", "0.6758575", "0.6540389", "0.6354836", "0.6169202", "0.5971546", "0.5964773", "0.5964773", "0.5959955", "0.5881892", "0.55540097", "0.5422885", "0.540934", "0.54014206", "0.5343558", "0.5343558", "0.5343558", "0.53425974", "0.53242815", "0.52446055"...
0.6939358
2
Sets the purchase_tax_rate_id of this PutProductsProduct.
def PEf6(YKHO, PEf6): YKHO._purchase_tax_rate_id = PEf6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YdSp(YKHO, YdSp):\n YKHO._tax_rate = YdSp", "def ev1o(YKHO, ev1o):\n YKHO._sales_tax_rate_id = ev1o", "def HjOA(YKHO, HjOA):\n YKHO._tax_id = HjOA", "def DOhr(YKHO, DOhr):\n YKHO._tax_amount = DOhr", "def DOhr(YKHO, DOhr):\n YKHO._tax_amount = DOhr", "def DOhr(YKHO, DOhr):\n YKHO._t...
[ "0.7163979", "0.7066862", "0.61950946", "0.6077628", "0.6077628", "0.6077628", "0.6077628", "0.6077628", "0.6077628", "0.6077628", "0.5876451", "0.5734258", "0.5608693", "0.5576873", "0.5497623", "0.5489492", "0.54645157", "0.5462277", "0.546152", "0.545553", "0.5417051", "...
0.8229357
0
Sets the purchase_description of this PutProductsProduct.
def FcE8(YKHO, FcE8): YKHO._purchase_description = FcE8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FcE8(YKHO, FcE8):\n if FcE8 is not None and len(FcE8) > 4000:\n raise ValueError('Invalid value for `purchase_description`, length must be less than or equal to `4000`')\n YKHO._purchase_description = FcE8", "def H93l(YKHO, H93l):\n YKHO._sku_description = H93l", "def p0Ec(YKHO, KI1l):\n ...
[ "0.7370556", "0.63350177", "0.63254136", "0.6258082", "0.6145353", "0.6079436", "0.60522854", "0.60522854", "0.5978643", "0.5978643", "0.5978643", "0.5978643", "0.5964621", "0.5964621", "0.5964621", "0.5925165", "0.5853373", "0.582872", "0.582872", "0.582872", "0.582872", "...
0.7999472
0
Sets the active of this PutProductsProduct.
def WZHJ(YKHO, WZHJ): YKHO._active = WZHJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZHJ(YKHO, WZHJ: bool):\n YKHO._active = WZHJ", "def eLjN(YKHO, WZHJ):\n YKHO.active = WZHJ", "def eLjN(YKHO, WZHJ):\n YKHO.active = WZHJ", "def WZHJ(YKHO, WZHJ):\n YKHO._active = WZHJ", "def WZHJ(YKHO, WZHJ):\n if WZHJ is None:\n raise ValueError('Invalid value for `active`, must...
[ "0.6843895", "0.68377626", "0.68377626", "0.68200856", "0.68112874", "0.67786205", "0.67010623", "0.66882944", "0.66802734", "0.6618014", "0.6530687", "0.6494572", "0.6490201", "0.6484713", "0.6459117", "0.6456979", "0.6413206", "0.63283646", "0.6274216", "0.6272938", "0.6272...
0.6904713
0
Sets the sales_prices of this PutProductsProduct.
def bP9n(YKHO, bP9n): YKHO._sales_prices = bP9n
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AVpI(YKHO, AVpI: List[StockPrice]):\n YKHO._prices = AVpI", "def AVpI(YKHO, AVpI):\n YKHO._prices = AVpI", "def FQgL(YKHO, GP7O):\n YKHO.sales = GP7O", "def ZM3C(YKHO, ZM3C):\n YKHO._tier_prices = ZM3C", "def AVpI(YKHO, AVpI: Union[TimeSeriesBlock, Dict[str, Any]]):\n if YKHO._check_pric...
[ "0.6895503", "0.6745209", "0.65800184", "0.58361477", "0.5769775", "0.5676238", "0.5617278", "0.552294", "0.5474824", "0.5474824", "0.54716676", "0.5443884", "0.5421031", "0.540907", "0.5329369", "0.52965605", "0.5283395", "0.52623165", "0.5219465", "0.52017754", "0.52017754"...
0.82671994
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, H7ji): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
r""" String representation of self
def aRbh(YKHO): return YKHO.bot_cycle_string() + '-' + YKHO.top_cycle_string()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return YKHO.tostring()", "def zAg0(YKHO):\n return repr(YKHO)", "def yLCI(YKHO) -> str:\n return YKHO.__str__()", "def zAg0(YKHO) -> str:\n return repr(YKHO)", "def zAg0(YKHO):\n return repr(YKHO)", "def zAg0(YKHO):\n return repr(YKHO)", "def yLCI(YKHO) -> str:\n ...
[ "0.86630696", "0.8604246", "0.8571434", "0.8541741", "0.8530439", "0.8530439", "0.8523575", "0.84824544", "0.8469104", "0.8469104", "0.8469104", "0.8463923", "0.8456848", "0.8456848", "0.8442753", "0.843774", "0.8433291", "0.8433291", "0.8430114", "0.8430114", "0.8400906", ...
0.0
-1
r""" Return a triple of boolean ``(horiz_sym, vert_sym, inverse_sym)`` which correspond to the symmetry of ``self``.
def O2Wt(YKHO): exwG = len(YKHO._top) JyK9, tlxW = YKHO._get_normal_perms() thWj = [None] * exwG DH61 = [None] * exwG for YRbF in range(exwG): thWj[JyK9[YRbF]] = YRbF DH61[tlxW[YRbF]] = YRbF voJX, _OZo = aMJ9(DH61, thWj) jhrZ = JyK9 == voJX and tlxW == _OZo voJX, _OZo = a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O2Wt(YKHO):\n exwG = len(YKHO._top)\n JyK9, tlxW = aMJ9(YKHO._top, YKHO._bot)\n thWj = [None] * exwG\n DH61 = [None] * exwG\n for YRbF in range(exwG):\n thWj[JyK9[YRbF]] = YRbF\n DH61[tlxW[YRbF]] = YRbF\n voJX, _OZo = aMJ9(DH61, thWj)\n i0a9 = JyK9 == voJX and tlxW == _OZo\n ...
[ "0.75828236", "0.6978501", "0.6738379", "0.6736271", "0.6686973", "0.66629374", "0.66086006", "0.65352386", "0.65122896", "0.63595814", "0.6356829", "0.63412994", "0.6338042", "0.6324892", "0.63133717", "0.6296374", "0.62898386", "0.62274575", "0.61047715", "0.60525584", "0.6...
0.7563235
1