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
Converts a given matplotlib figure to an image / uri that can be displayed as html.
def NS40(JI1i): LNo8 = xDSY.BytesIO() JI1i.savefig(LNo8, format='png') LNo8.seek(0) vIwR = WR89.b64encode(LNo8.read()) j8eK = uRlK.parse.quote(vIwR) return j8eK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OBZq(JI1i, FMLJ='jpg'):\n if not callable(getattr(JI1i, 'savefig', None)):\n return None\n hlel = kJm3()\n JI1i.savefig(hlel, format=FMLJ)\n kGys = hlel.getvalue()\n hlel.close()\n return (kGys, 'image/%s' % FMLJ)", "def BgwC(YKHO):\n gqE3 = xDSY.StringIO()\n gqE3.name = '/test...
[ "0.7435153", "0.6891032", "0.6856928", "0.6856928", "0.67785925", "0.6753025", "0.67023116", "0.6651859", "0.6541583", "0.6539001", "0.65350056", "0.65350056", "0.6513177", "0.6492599", "0.6408445", "0.639338", "0.6339896", "0.63398343", "0.6336781", "0.6336781", "0.6336781",...
0.7336543
1
Get string data from yaml file.
def z5yG(SvhR, gIsw): return eJb6.dump(BfDw.load_yaml_dict(Hy7s.path.join(SvhR, gIsw)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f9B0(nUeQ):\n with open(nUeQ, 'r') as nUeQ:\n nPrm = eJb6.safe_load(nUeQ)\n return nPrm", "def cO1h(YKHO, l5Ny):\n return eJb6.safe_load(l5Ny)", "def Pmsc(pmON):\n SFUd = '%s%s.yml' % (krTE, pmON[:-5])\n if Hy7s.path.isfile(SFUd):\n eHNT = open(SFUd, 'r')\n _NyU = eJb6.l...
[ "0.68649375", "0.68588954", "0.6726348", "0.671994", "0.66377175", "0.65322", "0.6509068", "0.64714706", "0.6443366", "0.64120436", "0.63799274", "0.63719374", "0.6351046", "0.6342371", "0.6338306", "0.6317867", "0.63118523", "0.6305448", "0.62378806", "0.62234616", "0.617979...
0.5927551
48
Return the string representation of this Multiaddr.
def zAg0(YKHO): return H9e7(YKHO._bytes)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return YKHO._addr[0] + ':' + str(YKHO._addr[1])", "def zAg0(YKHO):\n return cSGF(**YKHO._get_elements())", "def yLCI(YKHO):\n return 'Address: {city} {state} {country}'.format(city=YKHO.city, state=YKHO.state, country=YKHO.country)", "def UTX6(YKHO):\n return str(YKHO._address)"...
[ "0.7921497", "0.750054", "0.73202235", "0.72178984", "0.7084201", "0.7028867", "0.7009324", "0.6919844", "0.68940187", "0.687264", "0.6810318", "0.6747569", "0.6711324", "0.6710023", "0.6710023", "0.6710023", "0.6710023", "0.6710023", "0.6710023", "0.6710023", "0.6710023", ...
0.0
-1
Run the backward process to update the gradient of each unit in the gate
def ZD5u(YKHO): YKHO.units = YKHO._units_history.pop() YKHO._backward() YKHO._utop_history.pop() if YKHO._utop_history: YKHO.utop = YKHO._utop_history[-1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZD5u(YKHO, ICX2):\n pass", "def ZD5u(YKHO, ICX2):\n pass", "def ZD5u(YKHO, YRbF):\n m_1A = oyIN.zeros((2, 3))\n T68t = oyIN.zeros((3, 3))\n AXia = oyIN.zeros((3, 1))\n QmPi = oyIN.zeros((1, 1))\n kwKk = oyIN.zeros((1, 3))\n for YRbF, yzQ0 in enumerate(AXia):\n Tdyv = YKHO.a2[...
[ "0.7649687", "0.7649687", "0.7647074", "0.76331234", "0.760687", "0.760687", "0.7531579", "0.7417706", "0.74047595", "0.7398327", "0.7237265", "0.72323453", "0.7227327", "0.7189413", "0.7138388", "0.71084356", "0.71068233", "0.70795107", "0.70451134", "0.7043444", "0.7015585"...
0.0
-1
Here, we define the derivative at x=0 to 0
def P0TR(YKHO): if YKHO.units[0].value > 0: YKHO.units[0].gradient += 1 * YKHO.utop.gradient else: YKHO.units[0].gradient += 0 * YKHO.utop.gradient
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VVyp(YKHO, WKvO, Jw7X=None):\n if Jw7X is None:\n WKvO = oyIN.array(WKvO, copy=False)\n if len(WKvO.shape) > 0:\n Jw7X = oyIN.convolve(WKvO, [1, -1], mode='valid')\n Jw7X = oyIN.insert(Jw7X, 0, oyIN.mean(Jw7X)) / 2\n else:\n Jw7X = 1\n return (YKHO(WK...
[ "0.7789218", "0.7742882", "0.76327366", "0.7551887", "0.7546453", "0.7480661", "0.7480661", "0.7430074", "0.72675794", "0.72120214", "0.7164857", "0.71531934", "0.7138351", "0.71006554", "0.7061819", "0.70548165", "0.70067865", "0.6958436", "0.6950731", "0.6939282", "0.689047...
0.0
-1
Return the output of the network in a list Must set the `_outputs` property if the network has multiple output
def o4Jx(YKHO): return YKHO._outputs if YKHO._outputs else [YKHO.utop]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eEcc(YKHO):\n o4Jx = YKHO._outputs().get()\n return o4Jx", "def Jvkf(YKHO):\n return YKHO.outputs", "def o4Jx(YKHO):\n return YKHO._outputs", "def Jvkf(YKHO):\n return YKHO.attributes['outputs']", "def NMoC(YKHO, *qIxc):\n return _VfD.ListOfOutputs_get(YKHO, *qIxc)", "def o4Jx(YKHO)...
[ "0.7627549", "0.73325163", "0.72073185", "0.71948427", "0.71188223", "0.70936215", "0.7075045", "0.7041719", "0.7041719", "0.6989479", "0.687403", "0.686725", "0.67957425", "0.6725267", "0.66783535", "0.66630435", "0.66423535", "0.66271496", "0.6593826", "0.6530676", "0.64836...
0.69615173
10
Gets an unsorted sequence of values.
def hkxX(YKHO): return YKHO.d.keys()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hkxX(YKHO, hkxX=None):\n return [YKHO[H5ew] for H5ew in YKHO._sequence]", "def ECkQ(YKHO):\n return list(YKHO.iteritems())", "def TSF4(YKHO, YW4n=400):\n return [YKHO.get_value() for YRbF in range(YW4n)]", "def hkxX(YKHO):\n return [YRbF.value for YRbF in YKHO.value]", "def DumB(YKHO):\n ...
[ "0.6785029", "0.6705594", "0.6674962", "0.6532796", "0.6198259", "0.61587596", "0.6153168", "0.608443", "0.6071032", "0.60555875", "0.60538757", "0.60134226", "0.59874403", "0.5961428", "0.59596306", "0.5936548", "0.59224194", "0.5911974", "0.59030515", "0.589837", "0.5898338...
0.0
-1
Start playing the first video in the queue unless something is already playing." Returns True if it started playing the first video of the queue, returns False otherwise (nothing happened).
def eIGz(YKHO, abiq): if YKHO.waiting and (not YKHO.playing()): YKHO.playing_task = V7ok.ensure_future(YKHO._play(abiq)) return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eIGz(YKHO):\n if YKHO.isLoaded() == False:\n return\n YKHO.isPlaying = True\n if YKHO.ret == False:\n YKHO.video.set(1, 0)", "async def play(YKHO, OaeV: commands.Context) -> h8nf[bool]:\n if not OaeV.voice_client.is_playing():\n await YKHO._check_queue(OaeV)\n return T...
[ "0.7003244", "0.65322226", "0.6486291", "0.6359785", "0.6242944", "0.6233513", "0.620361", "0.6106298", "0.6062429", "0.6017791", "0.60084164", "0.5962782", "0.5950048", "0.594383", "0.59415036", "0.5931849", "0.5903034", "0.5899874", "0.58955616", "0.585434", "0.583411", "...
0.60726154
8
Find indices of unique rows in tensor. Prioritizes the first instance.
def iTyp(WKvO: to.Tensor) -> Br5Q.Tensor: _NJ_, Iszg = Br5Q.unique(WKvO, sorted=False, return_inverse=True, dim=0) v9Tb = Iszg.unique() Vy92 = Br5Q.eq(v9Tb.unsqueeze(1), Iszg.repeat(len(v9Tb), 1)) v34l = Vy92.to(Br5Q.float).argmax(1) return v34l
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _NJ_(vb7U, jcN9=False):\n Fg_i = oyIN.ascontiguousarray(vb7U).view(oyIN.dtype((oyIN.void, vb7U.dtype.itemsize * vb7U.shape[1])))\n if not jcN9:\n bGrB, or8S = oyIN.unique(Fg_i, return_index=True)\n else:\n bGrB, or8S = oyIN.unique(Fg_i, return_inverse=True)\n return or8S", "def OMWt...
[ "0.659938", "0.62869847", "0.61881524", "0.59433514", "0.59144515", "0.5900803", "0.582126", "0.5789741", "0.57394606", "0.57062465", "0.5693678", "0.5658446", "0.56312484", "0.55789924", "0.5572636", "0.5561542", "0.551482", "0.54761684", "0.5434007", "0.53807", "0.5336013",...
0.7581342
0
Return the height above WGS84 earth ellipsoid of geocentric location X,Y,Z
def AkHM(EcVT, fuBA, Nk6w): jzdc = 6378137.0 eHNT = 1.0 / 298.2572236 fHZS = 2 * eHNT - eHNT * eHNT _hZ2 = fHZS / (1.0 - fHZS) Fg_i = jzdc * (1.0 - eHNT) XP5J = PZyS(EcVT * EcVT + fuBA * fuBA) vexM = Gqkf(Nk6w * jzdc / (XP5J * Fg_i)) rVnq = Gqkf((Nk6w + _hZ2 * Fg_i * YUNn(vexM) ** 3) / (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yPat(YKHO, V52X):\n \"\"\"\n h is the height above the ellipsoid. This is the height value that is \n delivered by GPS satellite observations but is not the gravity-related height \n value which is normally used for national mapping and levelling operations. The\n gravity-related...
[ "0.69148016", "0.6912799", "0.687575", "0.6372516", "0.6349687", "0.6261464", "0.6226034", "0.6156621", "0.61558044", "0.611448", "0.6056222", "0.5949006", "0.5922837", "0.5906384", "0.58847564", "0.58700114", "0.5860478", "0.58596724", "0.58507705", "0.58422536", "0.57640404...
0.804347
0
Generate the string of formatted affine registration options
def ozUi(YKHO): return YKHO.format_param_pairs(YKHO.get_affine_reg_params())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO) -> str:\n gad3 = ' '.join(YKHO.sources)\n c7pe = f'[SOURCES]\\n{gad3}'\n bkgH = '\\n'.join(map(str, YKHO.source_parameters))\n _NJM = f'[SOURCE-PARAMETERS]\\n{bkgH}'\n _jXU = '\\n'.join(map(str, YKHO.hints))\n XHYP = f'[GENERAL]\\n{_jXU}'\n return '\\n'.join(['# Augustus extrins...
[ "0.6128604", "0.61047244", "0.60431737", "0.5989979", "0.59814495", "0.5880894", "0.5756988", "0.5736655", "0.5693833", "0.569322", "0.56924766", "0.56700814", "0.5659404", "0.5658237", "0.56457156", "0.5635233", "0.56328726", "0.5626076", "0.562337", "0.5604731", "0.55941916...
0.6448838
0
Generate the string of formatted segmentation options
def b20f(YKHO): return YKHO.format_param_pairs(YKHO.get_segmentation_params())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n PXIy = []\n if YKHO.comment:\n PXIy.append('\"%s\"' % YKHO.comment)\n if YKHO.sg:\n if YKHO.dbow_words:\n PXIy.append('dbow+w')\n else:\n PXIy.append('dbow')\n elif YKHO.dm_concat:\n PXIy.append('dm/c')\n elif YKHO.cbow_mean:\n ...
[ "0.7144592", "0.6766662", "0.6476094", "0.63708335", "0.63574475", "0.6300372", "0.6232984", "0.6209325", "0.62061036", "0.6168211", "0.6165109", "0.61485225", "0.61244804", "0.61218077", "0.6069434", "0.6051844", "0.6050242", "0.6030782", "0.60190237", "0.5999584", "0.598837...
0.58780855
29
This function computes the unobserved component of the MTE in MTE = mte_x + mte_u, where mte_u depends on the unobserved esistance to treatment u_D.
def _S3l(EcVT, fuBA, _qjy, w5Qq, m53v, lUK_, hGvF, mSw_, DC3l): SdgW = qiH8(EcVT, m53v) _jir = oyIN.array(EcVT) E0rB = oyIN.array(SdgW) es8a = oyIN.array(fuBA).ravel() m53v = oyIN.array(m53v) C_aJ = es8a - oyIN.dot(_jir, _qjy) - oyIN.dot(E0rB, w5Qq) zvvK = yFro.locpoly(x=m53v, y=C_aJ, deriva...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RlZ2(YKHO):\n g0IE = rHlu(YKHO.inl[0].to_flow(), T0=YKHO.inl[0].T.val_SI)\n yroM = rHlu(YKHO.outl[1].to_flow(), T0=YKHO.outl[1].T.val_SI)\n return YKHO.ttd_u.val - g0IE + yroM", "def RlZ2(YKHO):\n TPao = YKHO.inl[0].to_flow()\n KQB2 = YKHO.outl[1].to_flow()\n yroM = rHlu(KQB2, T0=YKHO.outl[...
[ "0.6497477", "0.6319751", "0.6162096", "0.5897398", "0.5892473", "0.5869995", "0.5789975", "0.5761974", "0.5745801", "0.5719212", "0.5709441", "0.56804293", "0.5671031", "0.56615144", "0.5655082", "0.56525564", "0.56382453", "0.56382453", "0.56224895", "0.5522628", "0.5481878...
0.56209916
19
Get the state of the master watcher.
def QcdM(YRsi=None): if YRsi is None: YRsi = GPtr.LOCK_FILE stkY = RQ1O(YRsi) try: ayrW, Ii1o, gbPf = stkY.details except vofj: return (ZqaC.none, stkY) if ayrW != GGmw.getfqdn(): return (ZqaC.host_mismatch, stkY) try: Hy7s.kill(Ii1o, 0) return (Zq...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aQ3N(YKHO):\n\n def phWX(xeSJ):\n if xeSJ.type and xeSJ.path:\n tO9_ = 'child changed, try to get master again.type %s, state %s, path %s.' % (xeSJ.type, xeSJ.state, xeSJ.path)\n bo34.info('[ %s(%s) ] %s' % (YKHO.path, 'master' if YKHO.is_master else 'slave', tO9_))\n ...
[ "0.6882314", "0.6466916", "0.6427733", "0.6425098", "0.6421211", "0.63100934", "0.6249418", "0.6234995", "0.6234995", "0.62273437", "0.6168876", "0.6153005", "0.6153005", "0.6153005", "0.6153005", "0.6153005", "0.61340183", "0.61321723", "0.61280906", "0.61274517", "0.6127402...
0.6779075
1
Return the Intersection over Union (IoU) for a given label.
def KyIb(Y8eF, aMgO, UXqs): Y8eF = DDLl.cast(Y8eF, ZylS.uint8) aMgO = DDLl.reshape(aMgO, shape=(-1, aMgO.shape[-1])) Y8eF = ZylS.reshape(Y8eF, shape=(-1,)) Y8eF = DDLl.cast(DDLl.equal(Y8eF, UXqs), DDLl.floatx()) aMgO = DDLl.cast(DDLl.equal(DDLl.argmax(aMgO), UXqs), DDLl.floatx()) iQin = DDLl.sum...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FVUk(AUuH, wbZ3):\n SGf8 = 1e-06\n gEYM = ht2j.where(AUuH > 0, ht2j.ones_like(AUuH), ht2j.zeros_like(AUuH))\n iQin = gEYM * wbZ3\n b65I = gEYM + wbZ3 - iQin\n if len(AUuH.shape) == 4:\n aOkw = iQin.sum(dim=[1, 2, 3]) / (b65I.sum(dim=[1, 2, 3]) + SGf8)\n else:\n aOkw = iQin.sum()...
[ "0.64850307", "0.592822", "0.58965766", "0.58761334", "0.581359", "0.580522", "0.5781693", "0.5754722", "0.57465595", "0.57369214", "0.57355297", "0.5661091", "0.5638574", "0.56309074", "0.56269425", "0.5609908", "0.5517878", "0.55079716", "0.54638666", "0.54615796", "0.54570...
0.49582854
98
Return the Intersection over Union (IoU) score.
def qrQI(Y8eF, aMgO): svPB = DDLl.int_shape(aMgO)[-1] NBhu = DDLl.variable(0) k4wo = {} for UXqs in range(0, svPB): B8Vn = KyIb(Y8eF, aMgO, UXqs) if UXqs in k4wo.keys(): k4wo[UXqs] = k4wo[UXqs] + B8Vn else: k4wo[UXqs] = B8Vn NBhu = NBhu + B8Vn ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m8gd(pNCA, p3tS):\n if AF88(pNCA, p3tS):\n GyYH = VfIu(pNCA, p3tS)\n iQin = o2b9(GyYH)\n ODkO = o2b9(pNCA)\n MzES = o2b9(p3tS)\n b65I = ODkO + MzES - iQin\n return iQin / b65I\n else:\n return 0", "def Tj3g(YKHO, knvf, IkxF):\n FvNp, se9S, HJ6y, TReR ...
[ "0.71824914", "0.69739294", "0.6969529", "0.68095833", "0.6769171", "0.67648524", "0.6684313", "0.66604173", "0.65717834", "0.65717834", "0.6508256", "0.6492452", "0.6471471", "0.64113253", "0.6371623", "0.63599265", "0.63498473", "0.6339803", "0.6338301", "0.6299029", "0.622...
0.55667764
76
Compute the lambda message Y > X.
def Kepa(YKHO, fuBA, EcVT): vJG0 = {} for WKvO in YKHO.domain[EcVT]: wEf2 = gNuL(ksex.EPS) for LVAh in YKHO.domain[fuBA]: Mlb1 = gNuL(ksex.EPS) for H4gP in YKHO.pds[fuBA][LVAh]: I2Si = H4gP.split(',') p6S0 = YKHO.parent_order[fuBA][EcVT] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vC2o(EcVT: np.ndarray) -> float:\n ccu0._check_input_data(X=EcVT)\n ccu0._check_support(X=EcVT)\n w4rS = EcVT.mean()\n return w4rS", "def nrOS(YKHO, **B2fa):\n WKvO = B2fa['x_new']\n return sum(WKvO) < YKHO.maxT", "def BWXx(jzdc, LVAh, _mSQ, w4rS):\n return 0.5 * oyIN.linalg.norm(jzdc ...
[ "0.6357689", "0.6189473", "0.59497327", "0.5902779", "0.58779544", "0.57850206", "0.5638556", "0.5623084", "0.5610431", "0.5601228", "0.5572179", "0.5557001", "0.5472947", "0.54700434", "0.5455052", "0.54454106", "0.54390925", "0.5434521", "0.5416797", "0.5401739", "0.5385898...
0.5541969
12
Test loading a KSR requesting signatures that has expired already, but allowing it
def pK5k(YKHO): FYKK = Hy7s.path.join(YKHO.data_dir, 'ksr-root-2018-q1-0-d_to_e.xml') Qabx = t2qE(signature_horizon_days=-1, rsa_approved_exponents=[3, 65537]) icOi(FYKK, Qabx, raise_original=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zVL2(YKHO):\n FYKK = Hy7s.path.join(YKHO.data_dir, 'ksr-root-2018-q1-0-d_to_e.xml')\n Qabx = t2qE(signature_horizon_days=-1, rsa_approved_exponents=[3, 65537])\n xFTY = icOi(FYKK, Qabx, raise_original=True)\n Jb0j = xFTY.bundles[0].expiration\n _kzK = qcWV.datetime.utcnow().replace(tzinfo=qcWV.t...
[ "0.72572184", "0.72132236", "0.62630516", "0.6112471", "0.60333705", "0.60078055", "0.5984549", "0.597484", "0.59665215", "0.5892956", "0.5874885", "0.5839486", "0.5823783", "0.5798151", "0.57964", "0.5746418", "0.57458866", "0.5738346", "0.57283705", "0.57066506", "0.5704061...
0.6975686
2
If we're saving an Organization for the first time, give it a slug based on name.
def xkzz(YKHO, **B2fa): if not YKHO.id and (not YKHO.slug): YKHO.set_unique_slug() super().save(**B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xkzz(YKHO, *qIxc, **B2fa):\n if not YKHO.slug:\n YKHO.slug = eIIt(YKHO.name)", "def xkzz(YKHO, *qIxc, **B2fa):\n if not YKHO.slug:\n s5ru = eIIt(YKHO.name)\n if not c5Ri.objects.filter(slug=s5ru).exists():\n YKHO.slug = s5ru\n else:\n UHFx = 1\n ...
[ "0.7270296", "0.7229955", "0.71761143", "0.71761143", "0.71414065", "0.6944971", "0.6933153", "0.679367", "0.6790736", "0.6770966", "0.6760141", "0.6730352", "0.6725238", "0.6693434", "0.66663086", "0.65704775", "0.6558187", "0.65566206", "0.650255", "0.64662975", "0.6436476"...
0.6572698
15
Return the 'name' of the resource_class.
def rlUT(YKHO): return YKHO.resource_class.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oFgO(Emd4) -> str:\n return HEOD.sget(Emd4, 'CFN_RESOURCE_TYPE_NAME')", "def oFgO(Emd4) -> str:\n return HEOD.sget(Emd4, 'CFN_RESOURCE_TYPE_NAME')", "def oFgO(Emd4) -> str:\n return HEOD.sget(Emd4, 'CFN_RESOURCE_TYPE_NAME')", "def oFgO(Emd4) -> str:\n return HEOD.sget(Emd4, 'CFN_RESOURCE_TYPE...
[ "0.7922816", "0.7922816", "0.7922816", "0.7922816", "0.7922816", "0.7922816", "0.7922816", "0.7917809", "0.77795994", "0.77793133", "0.7742374", "0.7742374", "0.7742374", "0.7742374", "0.7742374", "0.77317977", "0.77296525", "0.77008456", "0.77008456", "0.76887167", "0.767923...
0.76164705
25
Return the 'name' of the resource_class.
def rlUT(YKHO): return YKHO.resource_class.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oFgO(Emd4) -> str:\n return HEOD.sget(Emd4, 'CFN_RESOURCE_TYPE_NAME')", "def oFgO(Emd4) -> str:\n return HEOD.sget(Emd4, 'CFN_RESOURCE_TYPE_NAME')", "def oFgO(Emd4) -> str:\n return HEOD.sget(Emd4, 'CFN_RESOURCE_TYPE_NAME')", "def oFgO(Emd4) -> str:\n return HEOD.sget(Emd4, 'CFN_RESOURCE_TYPE...
[ "0.7922112", "0.7922112", "0.7922112", "0.7922112", "0.7922112", "0.7922112", "0.7922112", "0.791809", "0.777922", "0.7778229", "0.7741287", "0.7741287", "0.7741287", "0.7741287", "0.7741287", "0.77316636", "0.77289516", "0.76998496", "0.76998496", "0.768812", "0.76786005", ...
0.7616001
24
Return start (if possible) else S.Infinity. adapted from Set._infimum_key
def erIO(VN2L): try: yKcO = VN2L.start except (NotImplementedError, AttributeError, ValueError): yKcO = o4sw.Infinity return yKcO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ohV5(YKHO):\n if YKHO.root is None:\n return float('+inf')\n jvSB = YKHO.root\n while jvSB.left is not None:\n jvSB = jvSB.left\n return jvSB.key", "def rmJ_(VN2L):\n try:\n luUX = VN2L.inf\n assert luUX.is_comparable\n luUX = luUX.evalf()\n except (NotImp...
[ "0.67480123", "0.65913004", "0.63788307", "0.63427985", "0.6277715", "0.6276748", "0.62709355", "0.6267121", "0.6262728", "0.61920077", "0.6185956", "0.61260504", "0.61131066", "0.6086716", "0.6065141", "0.60578275", "0.60369956", "0.60164326", "0.60164326", "0.6008707", "0.5...
0.7157655
0
Cumulative of all the bound variables
def kc1W(YKHO): return tuple(PWgb([jzdc.variables for jzdc in YKHO.args]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DZNx(YKHO):\n YKHO.cumulativePhaseHeightInRing1 = oyIN.cumsum(YKHO.phaseHeightInRing1)\n YKHO.cumulativePhaseHeightInRing2 = oyIN.cumsum(YKHO.phaseHeightInRing2)\n YKHO.cumulativeLeftCriticalPointsRing1 = oyIN.cumsum(YKHO.leftCriticalPointsRing1)\n YKHO.cumulativeRightCriticalPointsRing1 = oyIN.cum...
[ "0.63340014", "0.6260842", "0.6197877", "0.61112285", "0.6009518", "0.5950442", "0.5842735", "0.58412653", "0.583534", "0.58278793", "0.58197075", "0.57999605", "0.5788151", "0.5784808", "0.5751236", "0.57431906", "0.5737228", "0.57187325", "0.57128996", "0.56540686", "0.5652...
0.0
-1
adds up the coefficients of all the sequences at point pt
def PRtg(YKHO, Xf84): return sum((jzdc.coeff(Xf84) for jzdc in YKHO.args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vzgw(EcVT, XP5J):\n vCOZ = oyIN.zeros((EcVT.shape[0], XP5J))\n for YRbF in range(XP5J):\n vCOZ[:, YRbF] = EcVT[:, 0] ** (YRbF + 1)\n return vCOZ", "def FN88(YKHO):\n raise NotImplementedError", "def S6S3(sfaX, *FN88):\n Ylbp = 0.0\n for YRbF, XP5J in enumerate(FN88):\n Ylbp ...
[ "0.56348103", "0.5618802", "0.56123304", "0.55653864", "0.55123633", "0.54804504", "0.5472838", "0.5448897", "0.54257023", "0.5410524", "0.5410524", "0.53889495", "0.5365064", "0.5357065", "0.53551", "0.535123", "0.53395605", "0.5321332", "0.53155625", "0.5305625", "0.5304194...
0.6057553
0
Generate the random coordinates of given number "n_rectangles" of rectangles on the 28x28 image.
def SBdf(YKHO): while len(YKHO.rectangles) < YKHO.n_rectangles: K3QL = [oyIN.random.randint(0, 28) for YRbF in range(2)] Ol_L = [oyIN.random.randint(0, 28) for YRbF in range(2)] if K3QL[0] < Ol_L[0] and K3QL[1] < Ol_L[1]: NhnV = x7Ls(K3QL, Ol_L) oTD3 = NhnV.area() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _79Q(r8hN, exwG):\n return r8hN * (r8hN + 1) * exwG * (exwG + 1) // 4", "def mawX(xlLU, Nqlg, ZLJ_):\n yzQ0 = xlLU.randint(1, max(1, Nqlg // 2))\n MKlR = xlLU.randint(1, max(1, ZLJ_ // 2))\n YRbF = xlLU.randint(0, Nqlg - MKlR)\n r845 = xlLU.randint(0, ZLJ_ - yzQ0)\n return (YRbF, r845, yzQ0...
[ "0.7079673", "0.6746927", "0.65639985", "0.6549473", "0.6535832", "0.6504055", "0.64248335", "0.6359662", "0.63448954", "0.6308192", "0.6237708", "0.60406804", "0.6004424", "0.59759605", "0.5936015", "0.5925772", "0.58898", "0.5833518", "0.58138436", "0.5808997", "0.577005", ...
0.73385006
0
Convert index to label name
def eoIp(d6pt): return QyXt.labels[d6pt]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xvgy(YKHO, d6pt):\n raise NotImplementedError", "def xvgy(YKHO, d6pt):\n assert YKHO.labels is not None, 'Labels not processed'\n return YKHO.labels[d6pt]", "def DeTJ(YKHO, d6pt, H5ew='Name'):\n return eval(YKHO.names[H5ew][d6pt])", "def xvgy(YKHO, d6pt):\n assert YKHO.labels is not None, ...
[ "0.83522266", "0.7762987", "0.7558062", "0.7498074", "0.71639824", "0.70324", "0.6907393", "0.6899446", "0.68933344", "0.68690693", "0.6843206", "0.6824809", "0.6808006", "0.68033534", "0.67067057", "0.6681843", "0.6673693", "0.66443664", "0.66440415", "0.6639841", "0.6639841...
0.67928237
14
Calculate the distance between the two endpoints of two vectors. A vector is defined as a list, tuple, or numpy 1D array. >>> euclidean_distance((0, 0), (2, 2)) 2.8284271247461903 >>> euclidean_distance(np.array([0, 0, 0]), np.array([2, 2, 2])) 3.4641016151377544 >>> euclidean_distance(np.array([1, 2, 3, 4]), np.array(...
def usGr(BZrQ: Vector, OhjO: Vector) -> EsPN: return oyIN.sqrt(oyIN.sum((oyIN.asarray(BZrQ) - oyIN.asarray(OhjO)) ** 2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def usGr(ENWa, ZoT5):\n mGxc = [(hQHm - jlSq) ** 2 for hQHm, jlSq in zip(ENWa, ZoT5)]\n mGxc = epAf.sqrt(sum(mGxc))\n return mGxc", "def usGr(WKvO: np.ndarray, LVAh: np.ndarray) -> float:\n aZ1n: oyIN.ndarray = WKvO - LVAh\n Ayfi = PMJ7(aZ1n)\n return Ayfi", "def Cv7t(lSjb, v8Fa):\n assert...
[ "0.78316605", "0.7783354", "0.7779151", "0.7772161", "0.76587975", "0.75956106", "0.7533977", "0.7512383", "0.74900794", "0.74482596", "0.74364394", "0.7432446", "0.7401572", "0.73887694", "0.73651385", "0.73605186", "0.73554146", "0.73460555", "0.72749656", "0.72641957", "0....
0.7786148
1
Calculate the distance between the two endpoints of two vectors without numpy. A vector is defined as a list, tuple, or numpy 1D array. >>> euclidean_distance_no_np((0, 0), (2, 2)) 2.8284271247461903 >>> euclidean_distance_no_np([1, 2, 3, 4], [5, 6, 7, 8]) 8.0
def NIXn(BZrQ: Vector, OhjO: Vector) -> EsPN: return sum(((hQHm - jlSq) ** 2 for hQHm, jlSq in zip(BZrQ, OhjO))) ** (1 / 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def usGr(WKvO: np.ndarray, LVAh: np.ndarray) -> float:\n aZ1n: oyIN.ndarray = WKvO - LVAh\n Ayfi = PMJ7(aZ1n)\n return Ayfi", "def usGr(WKvO: np.ndarray, LVAh: np.ndarray) -> float:\n Ayfi = oyIN.linalg.norm(WKvO - LVAh)\n return Ayfi", "def usGr(lSjb, v8Fa):\n return XTiz.linalg.norm(lSjb - ...
[ "0.72806704", "0.7138312", "0.709125", "0.7053504", "0.7001449", "0.6965503", "0.6915398", "0.68263143", "0.6824499", "0.6800085", "0.6782156", "0.6782139", "0.6780746", "0.67683345", "0.67521465", "0.6617625", "0.6610903", "0.658301", "0.65605736", "0.65150213", "0.65011734"...
0.8091274
0
Creates an instance of this model from a dictionary
def rQfz(Emd4, cmPJ): if cmPJ is None: return None lLIo = cmPJ.get('fqdn') Artt = cmPJ.get('guid') id = cmPJ.get('id') mWFP = cmPJ.get('name') gPmJ = cmPJ.get('ownerId') jGRS = cmPJ.get('status') xOS5 = cmPJ.get('totalSizeBytes') return Emd4(lLIo, Artt, id, mWFP, gPmJ, jGRS, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQfz(Emd4, cmPJ):\n if cmPJ is None:\n return None\n id = cmPJ.get('id')\n mWFP = cmPJ.get('name')\n tDvy = cmPJ.get('type')\n fFb7 = cmPJ.get('usageBytes')\n return Emd4(id, mWFP, tDvy, fFb7)", "def eLpg(Emd4, cmPJ):\n return Emd4(**cmPJ)", "def eLpg(Emd4, cmPJ):\n return Em...
[ "0.83181584", "0.8168118", "0.8168118", "0.8118749", "0.8089047", "0.79787344", "0.7949278", "0.79231393", "0.7898951", "0.78923255", "0.788838", "0.7882321", "0.7882212", "0.7876749", "0.78585315", "0.7836853", "0.7801407", "0.7801407", "0.7801407", "0.7801407", "0.7801407",...
0.7742912
64
Test to see if an error is raised if secret_key is missing
def as4H(YKHO): with YKHO.assertRaises(ValueError): zPxe(api_key=YKHO.api_key)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ItLb(H5ew):\n try:\n DXni.Secret(H5ew)\n except DXni.Secret.InvalidSecret as e:\n raise JxhR(tTpl.message)", "def wsl_():\n try:\n LXo7.get_secret('somethingnonexistent')\n except ValueError:\n pass", "def CvlL():\n EMZs.abort(400, P6bq._('Secret metadata expected...
[ "0.73247534", "0.70913684", "0.6839799", "0.6811461", "0.6801148", "0.6706267", "0.6692907", "0.668212", "0.6641133", "0.6584238", "0.6545772", "0.65040916", "0.65031034", "0.6400448", "0.6396976", "0.63911223", "0.6383503", "0.63654065", "0.63233465", "0.6305709", "0.6296243...
0.0
-1
Return a custom 404 error.
def m7kB(tTpl): return ('Sorry, Nothing at this URL.', 404)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o3cf():\n return c1Bu(404)", "def RQdI(P1dF):\n return '404 Error'", "def RQdI(P1dF):\n return 'Bummer, there is nothing at this URL.'", "def kfnF(P1dF):\n return ('No page here, dood. 404!', 404)", "def o3cf(YKHO, P1dF):\n return (pz3A({'error': 'NOT FOUND'}), 404)", "def m7kB(XObx):\...
[ "0.81159586", "0.80410045", "0.7738874", "0.77369535", "0.77182025", "0.7689595", "0.7670471", "0.76112473", "0.7602477", "0.7570698", "0.75528365", "0.7545827", "0.751882", "0.74745256", "0.7458403", "0.7455682", "0.74548143", "0.74505144", "0.7442062", "0.7428278", "0.74065...
0.7254463
41
Test that bad search returns no results
def g0uW(YKHO): rXcN = YKHO.request_mgr.search_by_ingredients(['asdfadsfa']) YKHO.assertEqual(rXcN, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MX5V(YKHO):\n cjfR = []\n dixj = YKHO.searcher.search('asdasdasdas')\n YKHO.assertListEqual(dixj, cjfR)", "def nYHC(YKHO):\n KCHu = oIP6(YKHO.logger)\n I4p_, HI6H = ('ISBN', YKHO.isbn_not_found)\n DURG = KCHu.search(YKHO.patron_barcode, I4p_, HI6H, YKHO.api_url_root, YKHO.api_key, YKHO.part...
[ "0.80588096", "0.75740945", "0.7532176", "0.7414892", "0.7412188", "0.738438", "0.7342488", "0.72875774", "0.724622", "0.7204059", "0.7195484", "0.7045242", "0.7037355", "0.6990668", "0.6990402", "0.6970769", "0.6968213", "0.6963713", "0.69579816", "0.69220495", "0.68718404",...
0.6836373
22
Test that bad search returns no results
def HT82(YKHO): rXcN = YKHO.request_mgr.search_by_ingredients([]) YKHO.assertEqual(rXcN, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MX5V(YKHO):\n cjfR = []\n dixj = YKHO.searcher.search('asdasdasdas')\n YKHO.assertListEqual(dixj, cjfR)", "def nYHC(YKHO):\n KCHu = oIP6(YKHO.logger)\n I4p_, HI6H = ('ISBN', YKHO.isbn_not_found)\n DURG = KCHu.search(YKHO.patron_barcode, I4p_, HI6H, YKHO.api_url_root, YKHO.api_key, YKHO.part...
[ "0.80588096", "0.75740945", "0.7532176", "0.7414892", "0.7412188", "0.738438", "0.7342488", "0.72875774", "0.724622", "0.7204059", "0.7195484", "0.7045242", "0.7037355", "0.6990668", "0.6990402", "0.6970769", "0.6968213", "0.6963713", "0.69579816", "0.69220495", "0.68718404",...
0.6370275
71
Gets the histogram features for an image on all 3 channels. (from CarND 05 / lesson 12. Histograms of Color)
def hgK9(LNo8, aVkX=32, Y8hZ=(0.0, 1.0)): Mkmy = oyIN.histogram(LNo8[:, :, 0], bins=aVkX, range=Y8hZ) Oa1e = oyIN.histogram(LNo8[:, :, 1], bins=aVkX, range=Y8hZ) Fg_i = oyIN.histogram(LNo8[:, :, 2], bins=aVkX, range=Y8hZ) DSUy = Mkmy[1] SjYH = (DSUy[1:] + DSUy[0:len(DSUy) - 1]) / 2 zqI_ = oyIN.c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kh63(VXjJ, aVkX=32):\n yuve = oyIN.histogram(VXjJ[:, :, 0], bins=aVkX)\n DMDQ = oyIN.histogram(VXjJ[:, :, 1], bins=aVkX)\n rpAQ = oyIN.histogram(VXjJ[:, :, 2], bins=aVkX)\n zqI_ = oyIN.concatenate((yuve[0], DMDQ[0], rpAQ[0]))\n return zqI_", "def zO7U(VXjJ, XP5J):\n yuve = oyIN.histogram(VX...
[ "0.8403473", "0.8198114", "0.7964726", "0.7843926", "0.7335022", "0.7295205", "0.72474384", "0.7009572", "0.6942532", "0.68649095", "0.6837832", "0.68072224", "0.6754781", "0.6740287", "0.6670645", "0.6635937", "0.66221267", "0.65892076", "0.6584663", "0.65577173", "0.6546266...
0.7559548
4
Gets a payload config.
def gGCe(YKHO, sg0_): return qQXR.loads(x2QJ.ReadFile(YKHO.GetResourcePath(sg0_)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tgzD(YKHO):\n return YKHO.config", "def tgzD():\n return X8Rg", "def tgzD():\n return viqz", "def wLv7(YKHO):\n return YKHO._get_from_settings(gCuF.INTEGRATIONS_PAGER_DUTY_WEBHOOKS, 'service_key')", "def NMoC(YKHO) -> dict:\n return PSrQ.get()", "def tgzD(YKHO) -> cuzp[str, ImMB]:\n ...
[ "0.68645227", "0.6793532", "0.67261505", "0.6726099", "0.6691151", "0.6680222", "0.6680222", "0.66630965", "0.6649623", "0.6649623", "0.6649623", "0.6649623", "0.6649623", "0.6649623", "0.6649623", "0.6649623", "0.6649623", "0.6649623", "0.6649623", "0.6649623", "0.6649623", ...
0.0
-1
Gets a resource's full path.
def icPb(YKHO, kFeU, GfdN=True): pmON = Hy7s.path.join(YKHO.resources_dir, kFeU) if GfdN: x2QJ.CheckPath(pmON, 'resource') return pmON
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JFat(YKHO, Eorv):\n return str(YKHO.path.joinpath(Eorv))", "def JFat(YKHO, Eorv):\n return str(YKHO.path.joinpath(Eorv))", "def loWt(Ux0P, pmON=GkAb.TEST):\n return Hy7s.path.normpath(Hy7s.path.join(pmON.value, Ux0P))", "def eJo6(YKHO):\n return ''", "def JFat(YKHO, Eorv):\n raise FileNo...
[ "0.83867383", "0.83867383", "0.7562001", "0.7543106", "0.74803495", "0.74548024", "0.7449718", "0.74453807", "0.7383769", "0.7315119", "0.7258901", "0.7258901", "0.7245459", "0.723656", "0.72175646", "0.717997", "0.71694165", "0.7155479", "0.71176285", "0.7114805", "0.7088526...
0.68517977
60
Configure selenium browser Run headless firefox and configure download path
def D8_f(pmON): z39Z = w_II() z39Z.set_preference('browser.download.panel.shown', False) z39Z.set_preference('browser.download.manager.showWhenStarting', False) z39Z.set_preference('browser.helperApps.neverAsk.saveToDisk', 'application/octet-stream') z39Z.set_preference('browser.download.folderList'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gGib(YKHO):\n ytgA = cSpz.firefox.firefox_profile.FirefoxProfile('/Users/robertvesco/Library/Application Support/Firefox/Profiles/j2rjfnw0.default')\n ytgA.set_preference('pdfjs.disabled', True)\n E_qD = cSpz.Firefox(firefox_profile=ytgA)\n return E_qD", "def RQ1L(zlwC):\n xAU6 = Whnn()\n x...
[ "0.754272", "0.73627007", "0.71745586", "0.7151331", "0.6967134", "0.6873512", "0.68524253", "0.6681138", "0.66488194", "0.6646325", "0.6552416", "0.65446144", "0.64742726", "0.64666617", "0.6399129", "0.6337346", "0.63368917", "0.6327931", "0.6327931", "0.63262486", "0.63175...
0.8094743
0
Return tokens randomly masked using standard BERT probabilities.
def BIXT(s2mk, ZHfW, b0j5): x6A0 = ht2j.ones_like(s2mk) * -1 XP5J = ht2j.rand_like(s2mk.float()) * ZHfW.float() nkZp = ht2j.randint_like(s2mk, len(b0j5.vocab)) knl1 = 0.85 x6A0[XP5J >= knl1] = s2mk[XP5J >= knl1] s2mk[XP5J >= knl1] = b0j5.vocab['[MASK]'] knl1 = 0.85 + 0.15 * 0.8 s2mk[XP5J...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def koCB(g4y1, gZgb, TCyI=0.15):\n Crrw = g4y1.clone()\n begE = g4y1.device\n aiv9 = ht2j.full(Crrw.shape, TCyI, device=begE)\n jxA6 = g4y1 == gZgb.padding_idx\n aiv9.masked_fill_(jxA6, value=0.0)\n oJC_ = ht2j.bernoulli(aiv9).bool()\n Crrw[~oJC_] = -100\n TEtl = ht2j.bernoulli(ht2j.full(Cr...
[ "0.7307822", "0.6828806", "0.67503387", "0.67240417", "0.6688074", "0.65036905", "0.6409755", "0.6392549", "0.6333399", "0.62787116", "0.62429005", "0.6168626", "0.61480874", "0.6102631", "0.5840826", "0.580556", "0.57512087", "0.57287586", "0.5720218", "0.5684592", "0.564094...
0.69530916
1
Return a list of viewpoints that are in the graphs and feature reader.
def JeLl(nPrm, HcOV, hCFA): ammx = set((ZfUD['scan'] for ZfUD in nPrm)) fv6b = {} for amup in ammx: fkxH = set(HcOV[amup].nodes()) N8tx = hCFA.viewpoints[amup] fv6b[amup] = N8tx.intersection(fkxH) return fv6b
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nexA(YKHO):\n return []", "def AHMg(YKHO):\n return list(YKHO.__views)", "def lBQ0(YKHO):\n return [YKHO]", "def iXlf(YKHO):\n return YKHO.pointlist", "def lBQ0(YKHO):\n raise NotImplementedError()", "def AHMg(YKHO):\n return list(YKHO.__views.keys())", "def AHMg(YKHO):\n raise...
[ "0.64240915", "0.6283286", "0.623044", "0.61901563", "0.60740286", "0.6072229", "0.6065391", "0.59739506", "0.5956511", "0.59131676", "0.586649", "0.58353883", "0.58227557", "0.57824063", "0.5780283", "0.57470226", "0.57328576", "0.57139295", "0.5713371", "0.5706782", "0.5701...
0.72511464
0
Check, to be used at the end of each player turn, to see if the round is complete. True if the most recent player discarded their final card and now has 0 cards. False otherwise (allowing for the game to continue even if the player has 0 cards).
def l5XO(WRqn, Bwa6): if len(Bwa6[WRqn].hand.cards) == 0 and Bwa6[WRqn].has_discarded == True: _8gE = True else: _8gE = False return _8gE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IXlb(BH3N: List[int]) -> bool:\n return sum(BH3N) == 0", "def dzuA(YKHO):\n for oyg0 in YKHO.players:\n if len(oyg0.cards) == 0:\n return True\n return False", "def ZZQq(YKHO):\n return YKHO.winner is not None", "def Pt1K(YKHO) -> bool:\n return YKHO.turn == YKHO.marbles"...
[ "0.7359608", "0.7323492", "0.7174609", "0.70911855", "0.7054729", "0.69461435", "0.694031", "0.69349885", "0.6905075", "0.6898985", "0.68823355", "0.6854528", "0.6818869", "0.67921484", "0.6787332", "0.67746794", "0.6772798", "0.6743222", "0.6709704", "0.66952306", "0.6683208...
0.6963725
5
convert pixel values from [0, 255] > [0.0, 1.0]
def cP3a(VXjJ): if VXjJ.dtype == oyIN.uint8: VXjJ = VXjJ.astype(oyIN.float32) return oyIN.multiply(VXjJ, 1.0 / 255.0) else: print('image values already seem to be float') return VXjJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def biH0(LNo8):\n return LNo8 / 255 * 2 - 1", "def w5Mv(WKvO):\n return WKvO / 255.0", "def rvmn(VXjJ):\n VXjJ = 255 - VXjJ\n return VXjJ", "def fEyJ(LNo8):\n if oyIN.max(LNo8) <= 1.0:\n return LNo8\n else:\n return LNo8 / 255.0", "def mSZR(wEf2, V46T, yew8):\n return ((w...
[ "0.7011388", "0.68976545", "0.6879721", "0.68654597", "0.6749471", "0.67372614", "0.6720305", "0.6707296", "0.669469", "0.66808003", "0.66643196", "0.6656332", "0.66397583", "0.6638525", "0.66318065", "0.6626406", "0.66206676", "0.6602296", "0.65947574", "0.6594072", "0.65894...
0.62999856
48
String name of the input tag.
def H5ew(YKHO) -> str: return YKHO._key
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hLhr(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'tag_name')", "def dvBq(YKHO):\n return YKHO.__input_name", "def mWFP(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'name')", "def mWFP(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'name')", "def mWFP(YKHO) -> qe4Y.Input[str]:\...
[ "0.81052077", "0.7767699", "0.72058964", "0.72058964", "0.72058964", "0.72058964", "0.72058964", "0.72058964", "0.72058964", "0.72058964", "0.72058964", "0.72058964", "0.72058964", "0.72058964", "0.72058964", "0.72058964", "0.72058964", "0.72058964", "0.72058964", "0.72058964",...
0.0
-1
Assures each array of crosscorrelation values is of the same length (9), padding smaller arrays with zero for plotting purposes.
def IUfz(rpzN): if len(rpzN) == 9: return oyIN.array(rpzN) elif len(rpzN) < 9: if len(rpzN) % 2 == 1: return oyIN.pad(oyIN.array(rpzN), pad_width=(9 - len(rpzN)) // 2, mode='constant', constant_values=0.0) else: kQ_u = int(oyIN.floor((9 - len(rpzN)) / 2)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xQDS():\n FX5V = oyIN.ones((3, 3, 11, 21))\n dEvf = BfDw.remove_auto_correlations(FX5V, axes=(0, 1))\n assert (6, 11, 21) == dEvf.shape", "def OgDX():\n FX5V = oyIN.ones((13, 17, 19, 3, 3, 11, 21))\n dEvf = BfDw.remove_auto_correlations(FX5V, axes=(3, 4))\n assert (13, 17, 19, 6, 11, 21) ==...
[ "0.6384935", "0.6044329", "0.59156483", "0.5629401", "0.5623146", "0.5595254", "0.5430751", "0.5413027", "0.5376466", "0.5371484", "0.5366848", "0.5294089", "0.52847147", "0.5273357", "0.5262963", "0.5236557", "0.52342147", "0.5228484", "0.5216261", "0.5215159", "0.5213868", ...
0.59414965
2
Yield successive nsized chunks from l.
def eHxA(vC9B, exwG): for YRbF in range(0, len(vC9B), exwG): yield vC9B[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ...
[ "0.8038813", "0.79248375", "0.7923423", "0.7885103", "0.78773195", "0.7815877", "0.77655786", "0.77556044", "0.77441615", "0.7731815", "0.77288336", "0.772473", "0.77028215", "0.76889825", "0.76889825", "0.7664208", "0.76570904", "0.7655856", "0.7655856", "0.76458347", "0.764...
0.7448925
64
Return a (argparse) parser for command arguments. The parsing can then be done using parser.parse_args(args)
def ORax(): wvEv = j1Jz.ArgumentParser(prog='modelc', description='Compile the given sources.') if kqz6: for k78t, UXqs in V1Lg: wvEv.add_argument('--' + k78t, dest=k78t, const=1, type=int, nargs='?', help='debug: control %s' % UXqs) wvEv.add_argument('-bw', dest='bw', action='store_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fkZt(pXpQ=None):\n wvEv = yl6v()\n imT5 = wvEv.parse_args(args=pXpQ)\n return imT5", "def EpPs(YKHO):\n wvEv = WDqQ()\n wvEv.add_argument('-c', default='', dest='cmd', help='just like python -c or sh -c (pass in a command)')\n wvEv.add_argument('-e', '--exec', default='', dest='execfile', h...
[ "0.7755324", "0.77028143", "0.7633569", "0.7585324", "0.75728416", "0.7531271", "0.7514368", "0.7500204", "0.74969023", "0.7487999", "0.7458546", "0.7423178", "0.7417605", "0.74173164", "0.74097687", "0.74097687", "0.74041635", "0.7395661", "0.73810023", "0.7360539", "0.73600...
0.0
-1
The name of the application that this session represents.
def kvcN(YKHO): return YKHO._app_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kvcN(YKHO) -> str:\n return YKHO._app_name", "def VpPs(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'application_name')", "def VpPs(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'application_name')", "def kvcN(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'app_name')", ...
[ "0.8640284", "0.84897065", "0.84897065", "0.84262556", "0.84206855", "0.8383061", "0.8375058", "0.81801504", "0.8149001", "0.8149001", "0.8149001", "0.8149001", "0.8086944", "0.80170363", "0.7986112", "0.79020053", "0.79002017", "0.7694021", "0.76935315", "0.76209426", "0.758...
0.8681932
0
Calculate perspective transform for a road image from the test set
def cyPK(eY2_): yzQ0, MKlR = (eY2_.shape[1], eY2_.shape[0]) zZcM = oyIN.float32([(575, 464), (707, 464), (258, 682), (1049, 682)]) zr3f = oyIN.float32([(450, 0), (yzQ0 - 450, 0), (450, MKlR), (yzQ0 - 450, MKlR)]) MSUI = XC5k.getPerspectiveTransform(zZcM, zr3f) gtmH = XC5k.getPerspectiveTransform(zr3...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OmYE():\n zZcM = oyIN.float32([(220, 720), (1110, 720), (570, 470), (722, 470)])\n zr3f = oyIN.float32([[320, 720], [920, 720], [320, 1], [920, 1]])\n E3D9 = XC5k.getPerspectiveTransform(zZcM, zr3f)\n xQLp = XC5k.getPerspectiveTransform(zr3f, zZcM)\n return (E3D9, xQLp)", "def Ompv(SQnc, dqpM)...
[ "0.7430655", "0.72448575", "0.71060574", "0.6953691", "0.6935786", "0.6886514", "0.68040824", "0.68033737", "0.67266864", "0.66600704", "0.6567068", "0.6540925", "0.6534466", "0.652947", "0.6489918", "0.6431671", "0.6418216", "0.634205", "0.63239664", "0.62283945", "0.6179625...
0.0
-1
Calculate perspective transform for a road image from the test set
def muzT(eY2_): yzQ0, MKlR = (eY2_.shape[1], eY2_.shape[0]) zZcM = oyIN.float32([(643, 338), (708, 338), (398, 500), (957, 500)]) zr3f = oyIN.float32([(450, 0), (yzQ0 - 450, 0), (450, MKlR), (yzQ0 - 450, MKlR)]) MSUI = XC5k.getPerspectiveTransform(zZcM, zr3f) gtmH = XC5k.getPerspectiveTransform(zr3f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OmYE():\n zZcM = oyIN.float32([(220, 720), (1110, 720), (570, 470), (722, 470)])\n zr3f = oyIN.float32([[320, 720], [920, 720], [320, 1], [920, 1]])\n E3D9 = XC5k.getPerspectiveTransform(zZcM, zr3f)\n xQLp = XC5k.getPerspectiveTransform(zr3f, zZcM)\n return (E3D9, xQLp)", "def Ompv(SQnc, dqpM)...
[ "0.7431482", "0.72451717", "0.71061474", "0.69531715", "0.693581", "0.68875456", "0.6804755", "0.6804296", "0.67256", "0.6660475", "0.6567685", "0.6540974", "0.6535216", "0.6530707", "0.6490656", "0.6431617", "0.6418693", "0.6342727", "0.632436", "0.6229876", "0.6180597", "...
0.0
-1
Performs the backward pass with respect to ``loss``, as well as a gradient step or gradient accumlation. If a ``scaler`` is passed it is used to perform the gradient step (automatic mixed precision support). If a ``clip_grad`` is passed gradient will be clipped by this value considered as maximum l2 norm. ``accumulate`...
def Vage(K0do: Optimizer, N77f: torch.Tensor, Y5YY: Optional[torch.cuda.amp.GradScaler]=None, ow19: Optional[float]=None, pD6w: bool=False, **NArs) -> ht2j.Tensor: kwFM(K0do, **NArs) if Y5YY is not None: with ht2j.cuda.amp.autocast(False): Y5YY.scale(N77f).backward() if not pD6w:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BUIX(*, K0do: Optimizer, Tjso: List[float]=0, oJ_R: Callable=None):\n for uOe2, TI1B in zip(K0do.param_groups, Tjso):\n if TI1B > 0:\n for xqoZ in uOe2['params']:\n xqoZ.data = xqoZ.data.add(-TI1B * uOe2['lr'], xqoZ.data)\n if oJ_R is not None:\n oJ_R(uOe2[...
[ "0.63238347", "0.61002105", "0.5914328", "0.58098453", "0.58083516", "0.5770216", "0.57649887", "0.5705947", "0.57011634", "0.5699213", "0.5696014", "0.5669987", "0.5653403", "0.56514305", "0.56440586", "0.5643658", "0.56070143", "0.55805975", "0.5563239", "0.55586463", "0.55...
0.74366945
0
Returns a single random char from given letters.
def wAgY(KoG3: str) -> str: return KoG3[tuKI.randint(0, len(KoG3) - 1)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fFlT(KoG3):\n return tuKI.choice(KoG3)", "def R71E(ASFv):\n hcXw = ASFv[icr8.randrange(len(ASFv))]\n return hcXw", "def wAgY():\n return chr(ajWY(97, 122))", "def R71E():\n return chr(tuKI.randrange(32, 126, 1))", "def ORaO():\n return GLL2(char_choice=vIwR.ascii_letters)", "def F1r...
[ "0.8686186", "0.8659065", "0.83927304", "0.81753415", "0.8125783", "0.7997917", "0.79541194", "0.78839564", "0.77984357", "0.76346934", "0.7435365", "0.7368929", "0.7283319", "0.7193602", "0.7127847", "0.70942557", "0.709159", "0.707191", "0.70667416", "0.69708765", "0.696336...
0.90977997
0
Generates a matrix of batch indices for the 'merged' beam tensor; each index denotes the batch from which the sequence occupying the same relative position as the index within the 'merged' tensor belongs.
def lpnX(Ep8u, baHf): ZSgh = ZylS.range(Ep8u * baHf) // baHf b9ly = ZylS.reshape(ZSgh, [Ep8u, baHf]) return b9ly
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lpnX(Ep8u: int, baHf: int) -> ht2j.LongTensor:\n ZhZJ = ht2j.arange(Ep8u)\n ZhZJ = ZhZJ.view(-1, 1).expand(Ep8u, baHf)\n return ZhZJ", "def AQFO(LhBu):\n XeBs = oyIN.zeros_like(LhBu, dtype=oyIN.int64)\n Bugx, xsub, RXWL, DT55 = LhBu.shape\n for S0S4 in range(Bugx):\n for LOJ7 in rang...
[ "0.62728876", "0.6033282", "0.5998787", "0.59736156", "0.5924092", "0.5799555", "0.5715651", "0.5712429", "0.57117695", "0.56984967", "0.56859976", "0.5668897", "0.5622296", "0.5622296", "0.5622296", "0.56121147", "0.5595616", "0.5577882", "0.5537838", "0.55324566", "0.549458...
0.6476074
0
Returns 'True' if all of the sequences in the extended hypotheses exceeded the maximum specified length or if none of the extended hypotheses are more likely than the lowest scoring finished hypothesis.
def Hh4e(V9Bo, oXmf, KUhY, uwlO, mrFL, ov4K, dr_x): uOUr = ZylS.greater(V9Bo, lykW) ym2v = 1.0 if wRpy > 0.0: ym2v = (5.0 + ZylS.to_float(lykW)) ** wRpy / (5.0 + 1.0) ** wRpy Cbb8 = KUhY[:, 0] / ym2v lFlT = ZylS.reduce_min(mrFL * ZylS.cast(ov4K, nbzl), axis=1) LpwF = (1.0 - ZylS.to_float...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LU0k(hdWx, wzH_=6):\n for P8oC in 'ATGC':\n ZbOB = P8oC * (wzH_ + 1)\n if ZbOB in hdWx:\n return True\n return False", "def plK2(YKHO, XP5J: list) -> bool:\n return len(XP5J[0].split(' ')) < YKHO.max_length and len(XP5J[1].split(' ')) < YKHO.max_length", "def FqmO(YKHO):\n...
[ "0.6858876", "0.65908694", "0.6355858", "0.6258919", "0.6185774", "0.6131835", "0.6103622", "0.60948825", "0.6022707", "0.60095936", "0.6002055", "0.5989526", "0.59833395", "0.5957619", "0.5935298", "0.59185594", "0.590893", "0.5870848", "0.5859513", "0.58123004", "0.58074975...
0.0
-1
Returns the function f(x) = ax^2 + bx + c
def Fr7J(jzdc, Fg_i, Z9rn): return lambda WKvO: jzdc * WKvO ** 2 + Fg_i * WKvO + Z9rn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JfyU(eHNT, Z9rn):\n return eHNT ** 2 + Z9rn", "def eHNT(YKHO, WKvO: np.array) -> oyIN.array:\n return YKHO.a * WKvO ** 2 + YKHO.b * WKvO + YKHO.c", "def eHNT(WKvO):\n return (WKvO[0] - 1) ** 2 + (WKvO[1] + 3) ** 2", "def FYKK(WKvO):\n k0lF = 728.0\n tjUW = 0.317\n Nq1b = 0.486\n lWPh...
[ "0.8041608", "0.7799213", "0.76336646", "0.75670856", "0.75141126", "0.73687065", "0.73557436", "0.7307502", "0.73051745", "0.72963065", "0.7294468", "0.72818834", "0.72474295", "0.72461724", "0.7238463", "0.72056884", "0.7200313", "0.7171346", "0.7095455", "0.7095455", "0.70...
0.64444196
63
Returns the distance value of the closest intersection by the length of the wire's paths. The return value is the addition of the two wires' total distances.
def Q3Vz(Cs6h): alDF = HwRy.maxsize for MW_S in Cs6h.crossings: I7mz = Cs6h.get(MW_S[0], MW_S[1]) cir3 = 0 for UsS3 in I7mz: cir3 += UsS3['distance'] if cir3 < alDF: alDF = cir3 print(f'Total length of wire at {MW_S} is {cir3}') return alDF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ayfi(YKHO) -> float:\n return YKHO._dist_two_wire()", "def k5An(YKHO, Elif: Wire) -> AzJI[QdhN, int]:\n uMII = YKHO.intersect(Elif)\n TaUL = []\n for iQin in uMII:\n uH9w = 0\n for UsS3 in (YKHO, Elif):\n for hTWD in UsS3.wire_segments:\n try:\n ...
[ "0.7238766", "0.711846", "0.704656", "0.67733943", "0.6770595", "0.67062926", "0.65934193", "0.6590767", "0.6553382", "0.6520906", "0.6509929", "0.64998615", "0.64803636", "0.64801675", "0.6457368", "0.64489776", "0.64264023", "0.64161205", "0.6379374", "0.63793653", "0.63742...
0.61225826
51
Changes the predicted reward of won games to be 1 and lost games to be 0
def Jk95(OaDz, JVzG): for YRbF, jGRS in enumerate(JVzG): if jGRS != -1: OaDz[YRbF, :] = 0 OaDz[YRbF, int(jGRS)] = 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vOGg(YKHO, oyg0, cPA3):\n if cPA3 == 'Tie':\n return 1\n elif cPA3 == 'Resume':\n return -1\n elif oyg0 == 'agent':\n return 10\n else:\n return -10", "def ZJrA(YKHO):\n if YKHO.true_reward is not None:\n pPtk, aDjX = YKHO.get_past_data()\n YKHO.curr_r...
[ "0.68476295", "0.6542239", "0.65236217", "0.6486676", "0.6426589", "0.6368385", "0.634094", "0.6311143", "0.6270636", "0.62167025", "0.6215321", "0.6163636", "0.6138454", "0.61348826", "0.6134419", "0.6121837", "0.6121837", "0.6121837", "0.6121837", "0.6121837", "0.6121837", ...
0.65448886
1
Produces a QuerySet of most recent activities from actors the user follows
def Nsej(YKHO, CBIr): HX8s = YKHO.filter(user=CBIr) umWR = (eax5.objects.stream_for_actor(NTN7.actor) for NTN7 in HX8s if NTN7.actor is not None) return Pusg(nZvB, umWR, eax5.objects.none()).order_by('-timestamp')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y30V(YKHO):\n YKHO.activity.sort(key=seET.attrgetter('timestamp'), reverse=True)\n return YKHO.activity[:YKHO.max_count]", "def aMi3(cuiw, uJjO: int, oT1y: int, UHFx: int=10):\n xDcj = f\"\\n SELECT pa.id, pa.time_created as 'time', a.activity_name as 'name'\\n FROM `leaderboard`.`perf...
[ "0.63963413", "0.6322838", "0.62061393", "0.6138859", "0.59537244", "0.5939302", "0.5909962", "0.5887659", "0.5818511", "0.57783294", "0.57263815", "0.56896466", "0.56770086", "0.56539786", "0.5652413", "0.56189924", "0.56170076", "0.5616952", "0.5580442", "0.5577736", "0.556...
0.5853533
8
Produces a QuerySet of most recent activities for any actor
def oqDz(YKHO, ehDb): return YKHO.filter(actor_content_type=DDS9.objects.get_for_model(ehDb), actor_object_id=ehDb.pk).order_by('-timestamp')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y30V(YKHO):\n YKHO.activity.sort(key=seET.attrgetter('timestamp'), reverse=True)\n return YKHO.activity[:YKHO.max_count]", "def KeRB(YKHO):\n return XN37.get_sorted_activities(YKHO)", "def nZ2i(Emd4):\n p9NO = Emd4.objects\n return p9NO", "def aMi3(cuiw, uJjO: int, oT1y: int, UHFx: int=10)...
[ "0.65721685", "0.62001574", "0.60457397", "0.6000678", "0.59083235", "0.58976996", "0.5872676", "0.5824743", "0.5795241", "0.57831436", "0.57393754", "0.5735533", "0.5717249", "0.57127273", "0.5695259", "0.5644351", "0.5633267", "0.56322205", "0.55978334", "0.55705935", "0.55...
0.62930703
1
Produces a QuerySet of most recent activities where the object is the object or target of the action
def zGZM(YKHO, YEnM): return YKHO.filter(T8ck(target_object_id=YEnM.id) | T8ck(action_object_object_id=YEnM.id)).order_by('-timestamp')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nZ2i(Emd4):\n p9NO = Emd4.objects\n return p9NO", "def k66M(YKHO):\n filter = {YKHO.kwargs.get('field'): YKHO.kwargs.get('constraint')}\n return YKHO.get_model_obj().history.filter(**filter).order_by('history_id')", "def BRwc(YKHO):\n return nmsT.objects.filter(campaign=YKHO.campaign, status...
[ "0.61625355", "0.6055947", "0.5974058", "0.59149086", "0.5862408", "0.582701", "0.58126163", "0.5746588", "0.5746245", "0.5683365", "0.56646484", "0.56636053", "0.5652458", "0.56212395", "0.5609553", "0.5566945", "0.5534907", "0.5531991", "0.5524681", "0.5524652", "0.5518219"...
0.56773204
10
Produces a QuerySet of most recent activities where the model is the object of the action
def ktbU(YKHO, YEnM): return YKHO.filter(action_object_object_id=YEnM.id).order_by('-timestamp')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nZ2i(Emd4):\n p9NO = Emd4.objects\n return p9NO", "def y30V(YKHO):\n YKHO.activity.sort(key=seET.attrgetter('timestamp'), reverse=True)\n return YKHO.activity[:YKHO.max_count]", "def JGW3(YKHO, C3ST):\n return YKHO.filter(T8ck(target_content_type=DDS9.objects.get_for_model(C3ST)) | T8ck(acti...
[ "0.6481345", "0.6295055", "0.6293265", "0.62208223", "0.6150074", "0.6106105", "0.6097796", "0.60893595", "0.6026985", "0.60219735", "0.59566647", "0.5905824", "0.5876594", "0.58631396", "0.58378476", "0.5804249", "0.57789636", "0.5778754", "0.5777672", "0.57625467", "0.57528...
0.0
-1
Produces a QuerySet of most recent activities where the object is the target of the action
def NbRb(YKHO, YEnM): return YKHO.filter(target_object_id=YEnM.id).order_by('-timestamp')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nZ2i(Emd4):\n p9NO = Emd4.objects\n return p9NO", "def BRwc(YKHO):\n return nmsT.objects.filter(campaign=YKHO.campaign, status='P', contact=YKHO.contact).latest('id')", "def y30V(YKHO):\n YKHO.activity.sort(key=seET.attrgetter('timestamp'), reverse=True)\n return YKHO.activity[:YKHO.max_coun...
[ "0.62092394", "0.61107135", "0.602723", "0.5968355", "0.5959979", "0.59542656", "0.59538186", "0.5928069", "0.5840372", "0.5768274", "0.5764441", "0.5739393", "0.5713641", "0.5707903", "0.56628734", "0.565609", "0.5649256", "0.5612551", "0.56097174", "0.5599695", "0.55916727"...
0.0
-1
Returns the xdr object for this MuxedAccount object.
def WzCg(YKHO) -> VI8B.MuxedAccount: if YKHO.account_muxed_id is None: return PKbp.decode_muxed_account(YKHO.account_id) assert YKHO.account_muxed is not None return PKbp.decode_muxed_account(YKHO.account_muxed)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ntSl(YKHO) -> bytes:\n DpZH = ooW2\n JbyC = 0\n if YKHO._locked:\n JbyC |= x9Cv.LOCKED\n if YKHO._c_rep:\n JbyC |= x9Cv.C_REP\n return tHSi._struct.pack(DpZH, YKHO._type, JbyC, YKHO._icx.to_bytes(zVV4, F7YA))", "def ZrNc(YKHO):\n return tHSi(YKHO)", "def wHJl(YKHO):\n ret...
[ "0.5801153", "0.5620654", "0.5612093", "0.56108373", "0.56108373", "0.55892074", "0.55820763", "0.5455546", "0.5402483", "0.5387725", "0.53633374", "0.53633374", "0.52975523", "0.5284272", "0.5231779", "0.5222513", "0.5222513", "0.5188391", "0.5180638", "0.51757133", "0.51385...
0.78686965
0
Test moving mafs when maf column headers need to be remapped
def ZHUn(YKHO): ux4_ = rLdf.DataFrame({'CHROMOSOME': [1]}) with Po4F.object(rLdf, 'read_csv', return_value=ux4_), Po4F.object(ILMa, 'determine_dtype', return_value=YKHO.column_types) as Ctxt, Po4F.object(ILMa, '_convert_to_str_dtype', return_value=YKHO.column_types) as hc4a, Po4F.object(ux4_, 'rename') as u7Vs,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lKq5(YKHO):\n A6MT = [['# comment 1'], ['# comment 2'], ['Hugo_Symbol', 'foo_value'], ['SUFU', '1'], ['GOT1', '2']]\n with bxBA() as TBXe:\n bqdf = SqEo(tmpdir=TBXe, filename='input.maf', lines=A6MT)\n pkxk = {'input_file': {'class': 'File', 'path': bqdf}, 'output_filename': 'output.maf'}\n...
[ "0.609957", "0.56698906", "0.5660261", "0.55530846", "0.5531649", "0.5451922", "0.54350805", "0.5320638", "0.5318485", "0.530315", "0.52557296", "0.52458453", "0.5187623", "0.51815504", "0.5177608", "0.5167684", "0.51658934", "0.51644605", "0.51602894", "0.5142569", "0.512873...
0.7168869
0
Test creating dataframe when filepath passed in doesn't exist
def rVz_(): Dmme = rLdf.DataFrame({'test': ['testme']}) with Po4F.object(Dmme, 'to_csv') as UT3H: ILMa.append_or_createdf(Dmme, 'DNE') UT3H.assert_called_once_with('DNE', sep='\t', index=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PxWi(YKHO):\n with bxBA() as jbXL:\n ytgA, af07 = kO5Q(jbXL, 'test.xlsx')\n YOlb = HyUK.from_file(ytgA, copy_input=True).input_df\n YKHO.assertEqual(rLdf.testing.assert_frame_equal(af07, YOlb), None)\n with YKHO.assertRaises(AttributeError):\n HyUK.from_file(ytgA).inpu...
[ "0.665201", "0.6611255", "0.66100097", "0.6453065", "0.64219284", "0.63955396", "0.63221", "0.6316112", "0.63016915", "0.6277204", "0.6270761", "0.62687504", "0.6261756", "0.62181956", "0.62144756", "0.61855775", "0.61750066", "0.6172306", "0.61539656", "0.6114359", "0.611359...
0.62996244
9
Return the retention rate of each line.
def vwPD(YKHO): Ylbp = {} for cT3e in YKHO.browse(YKHO.ids): if cT3e.invoice_id: pass else: Ylbp[cT3e.id] = 0.0 return Ylbp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oC4a(YKHO):\n return JKCy.Retention(YKHO)", "def EZyS(OZkM):\n return KCHu.lineFreq(OZkM)", "def fr6B(M_Ra):\n return (M_Ra[1, 1] - M_Ra[0, 1]) / M_Ra[1, 0]", "def zN4I(YKHO):\n qqgr = {}\n for pmON, Nqlg in YKHO.lines_added.items():\n qqgr[pmON] = round(Dz7Y.mean(Nqlg))\n return...
[ "0.5742648", "0.55894", "0.5566232", "0.5376354", "0.5372051", "0.536804", "0.534734", "0.52323747", "0.517202", "0.5169327", "0.5142862", "0.5090267", "0.50892943", "0.5088047", "0.50662833", "0.5050963", "0.5032424", "0.5009057", "0.49902532", "0.49800852", "0.49702197", ...
0.60757655
0
Sets the team_id of this TeamDto.
def b2mu(YKHO, b2mu): YKHO._team_id = b2mu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AX_2(YKHO, dZPi):\n YKHO.team_id = dZPi.instance_id\n YKHO.team_id_friendlyname = dZPi.friendlyname\n YKHO.team_name = dZPi.name", "def YXcj(YKHO, YXcj):\n if YXcj is None:\n raise ValueError('Invalid value for `team_identifier`, must not be `None`')\n YKHO._team_identifier = YXcj", "...
[ "0.74974704", "0.7079266", "0.6972843", "0.6972843", "0.6972843", "0.6972843", "0.6717", "0.6418327", "0.6385621", "0.63508433", "0.6164747", "0.604366", "0.5974416", "0.59244937", "0.5737026", "0.56279945", "0.5544794", "0.5472106", "0.54448736", "0.54274905", "0.5409813", ...
0.8556988
1
Sets the team_name of this TeamDto.
def xKro(YKHO, xKro): YKHO._team_name = xKro
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aKVM(YKHO, Vnf6: TeamType, xKro):\n YKHO._teams[Vnf6].team_name = xKro\n I45O.info('Set the name of team {0} to \"{1}\".'.format(Vnf6, xKro))", "def xKro(YKHO, xKro):\n YKHO.team_id = YKHO.get_team_id(xKro)\n na1r.debug('Mattermost team id: %s', YKHO.team_id)", "def AX_2(YKHO, dZPi):\n YKHO....
[ "0.79264736", "0.7404456", "0.72240055", "0.69328934", "0.6778148", "0.6674635", "0.6674635", "0.6674635", "0.6674635", "0.65510285", "0.65510285", "0.65510285", "0.65510285", "0.6177862", "0.60933846", "0.5950691", "0.591123", "0.5898303", "0.5897521", "0.58969575", "0.58895...
0.84548676
0
Sets the custom_data of this TeamDto.
def bWOC(YKHO, bWOC): YKHO._custom_data = bWOC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Az6d(YKHO, Az6d):\n YKHO._user_custom_data = Az6d", "def FIMM(YKHO, b2mu=None, xKro=None, bWOC=None):\n YKHO._team_id = None\n YKHO._team_name = None\n YKHO._custom_data = None\n YKHO.discriminator = None\n if b2mu is not None:\n YKHO.team_id = b2mu\n if xKro is not None:\n ...
[ "0.65394515", "0.6186537", "0.5999225", "0.5942151", "0.56416523", "0.56263095", "0.55940014", "0.5579955", "0.5571738", "0.5545465", "0.54118705", "0.53905165", "0.53905165", "0.53905165", "0.53905165", "0.53905165", "0.53256357", "0.5322997", "0.5322997", "0.52837986", "0.5...
0.7371998
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, g_T_): return False 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.808826", "0.808826", "0.8054592", "0.79827315", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "0.79666996", "...
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 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
At least `x` of `a` and `b` `Tensors` are equal.
def _eCo(jzdc, Fg_i, WKvO): kUBT = ZylS.equal(jzdc, Fg_i) kUBT = ZylS.cast(kUBT, ZylS.int32) return ZylS.greater_equal(ZylS.reduce_sum(kUBT), WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IzcV(YKHO, jzdc, Fg_i):\n return jzdc.X[0] == Fg_i.X[0]", "def Tosq(cntZ, CsFy, WKvO):\n CqIR = cntZ.predict(WKvO, batch_size=Ep8u)\n _HDN = CsFy.predict(WKvO, batch_size=Ep8u)\n oyIN.testing.assert_array_equal(CqIR, _HDN)", "def Gztw(YKHO, WKvO, LVAh):\n if isinstance(WKvO, qYto):\n ...
[ "0.72024846", "0.70103174", "0.6976275", "0.6856269", "0.671568", "0.6702403", "0.6564142", "0.65186685", "0.6482881", "0.6456954", "0.6375332", "0.6348565", "0.63285816", "0.6302871", "0.62920105", "0.62733054", "0.6267568", "0.6266609", "0.62592125", "0.6257338", "0.6224264...
0.8409212
0
Adjust the weights test data to only span the core dimension that the function is being applied over.
def e6J4(tpio, Vt42, _mSQ): if Vt42: yar_ = [YRbF for YRbF in _mSQ.dims if YRbF not in tpio] yar_ = {G1Hx: 0 for G1Hx in yar_} return _mSQ.isel(yar_) else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MyUA(YKHO):\n pass", "def HTyf(QpfX, nPrm):\n pass", "def V06k(YKHO):\n G1Hx = [2, 3, 4, 5, 6]\n hgl7 = YKHO.create_chain_model(G1Hx)\n Csk6 = 4\n for YRbF in range(len(G1Hx)):\n hgl7.set_unary_weights(YRbF, oyIN.random.randn(G1Hx[YRbF], Csk6))", "def MyUA(YKHO):\n YKHO._weigh...
[ "0.61763644", "0.60896087", "0.5779569", "0.57381105", "0.5706837", "0.5647279", "0.5628892", "0.560451", "0.5588875", "0.5587478", "0.55750656", "0.5567103", "0.5558002", "0.5551067", "0.5503261", "0.5486037", "0.54854965", "0.5481398", "0.5463204", "0.5449826", "0.54374456"...
0.0
-1
Test whether distancebased metric for xarray functions (from deterministic.py) give save numerical results as for numpy functions (from np_deterministic.py).
def dAFx(jzdc, Fg_i, tpio, Vt42, lqdC, Wbxz, nLK1, hEhj): if hEhj: jzdc[0] = oyIN.nan AcYW, iOwL = Wbxz _mSQ = e6J4(tpio, Vt42, lqdC) if AcYW is FlsQ: n5sN = AcYW(jzdc, Fg_i, tpio, skipna=nLK1) else: n5sN = AcYW(jzdc, Fg_i, tpio, weights=_mSQ, skipna=nLK1) assert n5sN.chu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sFTX():\n J1b4 = oyIN.array([0, 0, 0])\n CYjz = oyIN.array([0, 1, 0])\n fQQq = 1\n HAOS = o2l7.calculate_distance(J1b4, CYjz)\n assert fQQq == HAOS", "def EH5m():\n WKvO = 0.5\n oyIN.testing.assert_almost_equal(Z2AL.sum_x_n_calc(WKvO, jNFv, slZA), YbUv.sum_x_n_calc(WKvO, jNFv, slZA))", ...
[ "0.63863873", "0.60913295", "0.60851735", "0.6007944", "0.57925814", "0.57648015", "0.5733269", "0.5717609", "0.5706992", "0.56968087", "0.5666464", "0.5652567", "0.56467026", "0.56221604", "0.56218314", "0.5619822", "0.5615134", "0.56077534", "0.5602821", "0.55916107", "0.55...
0.5952812
4
Test keep_attrs for all metrics.
def xJM_(jzdc, Fg_i, Wbxz, L3SL): AcYW, iOwL = Wbxz Ylbp = AcYW(jzdc, Fg_i, 'time', keep_attrs=L3SL) if L3SL: assert Ylbp.attrs == jzdc.attrs else: assert Ylbp.attrs == {} SG6Y = zuVY.DataArray([0, 1, 2], dims=['time']) assert nRfP(SG6Y, SG6Y, dim='time') == 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AirC(YKHO):\n nijY = g760.defaultdict(set)\n\n def ClP3(cM24, YLAD):\n if cM24 is None:\n return\n nijY[cM24] |= YLAD\n for yIhv in cM24.__bases__:\n nijY[yIhv] |= YLAD\n if isinstance(cM24, type):\n for lnkW in rQde.inspection.get_subclass_tre...
[ "0.5730946", "0.5615559", "0.5467264", "0.5444867", "0.54087806", "0.5399894", "0.53933066", "0.5360069", "0.52982926", "0.5297992", "0.52957344", "0.52746356", "0.5249494", "0.52462137", "0.522295", "0.5222857", "0.5184012", "0.5181019", "0.5151637", "0.5132526", "0.51320255...
0.7175717
0
Test that `dim=None` reduces all dimensions as xr.mean(dim=None) and fails for effective metrics.
def qY54(jzdc, Fg_i, Wbxz): AcYW, iOwL = Wbxz if AcYW in [DgkR, RF0m, MHKT]: with trZe.raises(ValueError) as zK6_: AcYW(jzdc, Fg_i, dim=None) assert 'Effective sample size should only be applied to a singular time dimension.' in str(zK6_.value) else: AcYW, iOwL = Wbxz ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V5sM(vhpA, deVW=None, tpio=None):\n tpio = () if tpio is None else tpio\n if deVW is None:\n return vhpA.mean(dim=tpio)\n deVW = deVW.type(vhpA.dtype)\n return (vhpA * deVW).sum(dim=tpio) / deVW.sum(dim=tpio)", "def JBMS(YKHO, tpio: Dims=None, *, nLK1: bool | None=None, L3SL: bool | None=N...
[ "0.6633983", "0.6385673", "0.6259493", "0.623737", "0.6149921", "0.61486477", "0.61486477", "0.6138712", "0.6122924", "0.60890543", "0.6051227", "0.60331255", "0.60093784", "0.60093784", "0.5938308", "0.5891731", "0.5883901", "0.5874584", "0.5872978", "0.57691866", "0.5739355...
0.6717721
0
Test that `dim=[]` reduces no dimensions as xr.mean(dim=[]) and fails for correlation metrics.
def sP2_(jzdc, Fg_i, Wbxz): if Wbxz in Gug8: AcYW, iOwL = Wbxz with trZe.raises(ValueError) as zK6_: AcYW(jzdc, Fg_i, dim=[]) assert 'requires `dim` not being empty, found dim' in str(zK6_.value) elif Wbxz in m8_7: AcYW, iOwL = Wbxz Ylbp = AcYW(jzdc, Fg_i, dim...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def THem(YKHO):\n MPlV = [None, 0, 1, [], [0], [1], [0, 1]]\n or8S = 0\n for PY12 in JaxB(str, e89i.scalar.all_types):\n WKvO = vhpA.matrix(dtype=PY12)\n for m9I1 in JaxB(str, e89i.scalar.all_types):\n jDK_ = MPlV[or8S % len(MPlV)]\n try:\n wRro = WKvO.me...
[ "0.6270111", "0.6269739", "0.62406635", "0.6124326", "0.6032025", "0.6027202", "0.58814675", "0.5800481", "0.57783276", "0.5777277", "0.57452774", "0.57428604", "0.57402575", "0.57333547", "0.57140803", "0.5709752", "0.5708542", "0.567462", "0.56524056", "0.5613613", "0.56105...
0.66090703
0
Test whether correlation metric broadcasts dimensions other than dim.
def mNAi(jzdc, Fg_i, Wbxz): AcYW, iOwL = Wbxz AcYW(jzdc, Fg_i.isel(lat=0), dim='time') AcYW(jzdc, Fg_i.isel(lat=[0]), dim='time') VLdU = Fg_i.isel(lat=[0]).assign_coords(lat=[123]) if 'eff' not in AcYW.__name__: with trZe.raises(ValueError, match='ndex'): AcYW(jzdc, VLdU, dim='la...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fz8m(YKHO, ta28):\n for YRbF in range(YKHO._raw_ws.getNumDims()):\n if YKHO._raw_ws.getDimension(YRbF).getNBins() != ta28._raw_ws.getDimension(YRbF).getNBins():\n return False\n return True", "def vVog(YKHO, RhGk, FYKK, OOcW, mL9q):\n WKvO = ht2j.rand(*OOcW, dtype=YKHO.dtype, devic...
[ "0.6644599", "0.6548751", "0.650936", "0.6198247", "0.61502266", "0.61379963", "0.6109381", "0.6092938", "0.5986885", "0.59820646", "0.59623456", "0.5936421", "0.5921231", "0.5909196", "0.58585566", "0.58428633", "0.5839256", "0.58179075", "0.5770494", "0.57557553", "0.572723...
0.5404486
50
Save the policy parameter vector to the given PATH.
def xkzz(YKHO, xBra): YKHO._saver.save(YKHO._sess, xBra)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xkzz(YKHO, gXgy):\n t9eR = {'batch_size': YKHO.batch_size, 'lr': YKHO.lr, 'epsilon': YKHO.epsilon, 'gamma': YKHO.gamma, 'epsilon_min': YKHO.epsilon_min, 'epsilon_decay': YKHO.epsilon_decay, 'memory': YKHO.memory, 'observation_space': YKHO.observation_space, 'action_space': YKHO.action_space, '_seed': YKHO._...
[ "0.6873011", "0.6500038", "0.63687795", "0.6351313", "0.61863935", "0.6158092", "0.6057987", "0.59755", "0.5950737", "0.5924115", "0.5909149", "0.5909149", "0.5909149", "0.58992416", "0.58832693", "0.5870723", "0.5866092", "0.58633786", "0.5844345", "0.5837947", "0.5837585", ...
0.594686
9
Restore saved policy parameter vector from the given PATH.
def wBIE(YKHO, xBra): YKHO._saver.restore(YKHO._sess, xBra)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hLQf(YKHO, tfdu):\n super(QDpH, YKHO)._restore(tfdu)\n YKHO._model._restore()", "def wBIE(YKHO, V1C0: str):\n raise NotImplementedError", "def wBIE(YKHO):\n if Hy7s.path.isfile(Hy7s.path.join(YKHO.network_path, 'net_parameters.nnprm.index')):\n YKHO.load_network_parameters(file_name='net...
[ "0.5887802", "0.5747581", "0.57451123", "0.56570965", "0.5623591", "0.56126684", "0.560569", "0.5453918", "0.54310435", "0.54148644", "0.53955996", "0.52864", "0.52862364", "0.5250133", "0.5235163", "0.5193843", "0.51691514", "0.5143465", "0.51329213", "0.5122482", "0.5110104...
0.65302485
0
Return true if the given filename appears to be binary. File is considered to be binary if it contains a NULL byte. This approach returns True for .fits files, but incorrectly reports UTF16 as binary.
def vDzF(Ux0P): with open(Ux0P, 'rb') as eHNT: for XkN1 in eHNT: if '\x00' in XkN1: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vDzF(Ux0P):\n Fwbn = open(Ux0P, 'rb')\n try:\n CrFV = 1024\n while 1:\n yOAJ = Fwbn.read(CrFV)\n if '\\x00' in yOAJ:\n return True\n if len(yOAJ) < CrFV:\n break\n finally:\n Fwbn.close()\n return False", "def ktY...
[ "0.8203498", "0.81073", "0.7734137", "0.7441015", "0.74408156", "0.6913967", "0.6826614", "0.674586", "0.66406864", "0.6625764", "0.654231", "0.6530945", "0.64554536", "0.64130974", "0.63910574", "0.633013", "0.6255447", "0.61884904", "0.6177324", "0.6151319", "0.61394435", ...
0.8308521
0
Private function for rank a arrays. Compute the median ignoring Nan.
def PW3S(mJLf, TVj4=None): WKvO = mJLf.copy() Z9rn = oyIN.isnan(WKvO) KCHu = oyIN.where(Z9rn)[0] if KCHu.size == WKvO.size: qmLP.warn('All-NaN slice encountered', RuntimeWarning) return oyIN.nan elif KCHu.size != 0: bbLn = WKvO[-KCHu.size:][~Z9rn[-KCHu.size:]] WKvO[KC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A4yP(ezWE, **B2fa):\n return fHeP.median(fHeP.masked_where(ezWE != ezWE, ezWE), **B2fa)", "def PW3S(mJLf):\n Q3Ge = 1 - oyIN.isnan(mJLf)\n WKvO = oyIN.sort(oyIN.compress(Q3Ge, mJLf, axis=-1))\n if WKvO.size == 0:\n return oyIN.nan\n return oyIN.median(WKvO)", "def mQFx(fvDH, jzdc, *qI...
[ "0.75331664", "0.7349562", "0.7301079", "0.7256789", "0.71578264", "0.7150396", "0.7145492", "0.7036653", "0.686201", "0.68059045", "0.67676514", "0.67510784", "0.67387575", "0.6724518", "0.6705233", "0.6671147", "0.6657448", "0.6657448", "0.6657448", "0.6650114", "0.66241616...
0.7184332
4
Called by copyweights. See also splitListIntoHomogenousLists. Converts [1,2,3,5,6,7] into [[1,2,3],[5,6,7]], etc. Todd Hunter
def YWIY(qFa0): EVYv = [] if len(qFa0) < 1: return EVYv cB3J = [qFa0[0]] for YRbF in range(1, len(qFa0)): if qFa0[YRbF - 1] != qFa0[YRbF] - 1: EVYv.append(cB3J) cB3J = [qFa0[YRbF]] else: cB3J.append(qFa0[YRbF]) EVYv.append(cB3J) return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r4UP(vC9B, exwG):\n return [vC9B[YRbF:YRbF + exwG] for YRbF in range(0, len(vC9B), exwG)]", "def eXnU(bmd0):\n D3ol = []\n for YRbF in range(len(bmd0)):\n for r845 in range(len(bmd0[YRbF])):\n D3ol.append(bmd0[YRbF][r845])\n return D3ol", "def zA6U(qFa0):\n EVYv = []\n c...
[ "0.6097925", "0.59802985", "0.5952782", "0.5941847", "0.593753", "0.58956546", "0.58763796", "0.58710295", "0.5813005", "0.5805338", "0.57693607", "0.5721972", "0.5721104", "0.57113093", "0.57089496", "0.56733805", "0.562423", "0.56228364", "0.5610414", "0.55956465", "0.55807...
0.0
-1
Converts a frequency string into floating point in GHz, based on the units. If the units are not present, then the value is assumed to be GHz if less than 1000. Todd Hunter
def GIO1(lUK_): BWXx = R4PY(lUK_) if BWXx > 1000: BWXx *= 1e-09 return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y2J0(QTg7):\n QTg7, PXGI = Rxpz(QTg7)\n mf_s = {'khz': 1000, 'mhz': 1000000, 'ghz': 1000000000, 'thz': 1000000000000}\n if PXGI != None:\n PXGI = PXGI.lower()\n if PXGI in mf_s.keys():\n QTg7 *= mf_s[PXGI]\n elif PXGI in [None, 'hz']:\n pass\n else:\n raise ValueEr...
[ "0.6659534", "0.6636956", "0.63847065", "0.63059694", "0.60199875", "0.5982724", "0.5945536", "0.58222383", "0.5807804", "0.5731729", "0.5718253", "0.5690635", "0.5690202", "0.56700647", "0.56440336", "0.56414586", "0.5639018", "0.5603662", "0.558904", "0.5586161", "0.5581221...
0.69968146
0
Returns the number of channels in the largest group of channels in a CASA selection string.
def RPBg(SuM2): if SuM2 == '': return 0 XT48 = SuM2.split(';') CjUr = 0 for Mkmy in XT48: Ngpo = int(Mkmy.split('~')[0]) dg7v = int(Mkmy.split('~')[1]) xMux = dg7v - Ngpo + 1 if xMux > CjUr: CjUr = xMux return CjUr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BQDh(F7Z0):\n gela = N0EM(F7Z0)\n HwlR = 0\n for hGN5 in gela:\n HwlR = max(HwlR, len(hGN5))\n return HwlR", "def OQe6(neaT):\n EqBn, I81w = Tcon.label(neaT)\n m7Yz = -1\n nSrC = 0\n for exwG in range(1, I81w + 1):\n f0tD = oyIN.sum(EqBn == exwG)\n if f0tD > nSrC:...
[ "0.6207327", "0.616134", "0.6159609", "0.6077755", "0.5945781", "0.5863727", "0.58155674", "0.5756704", "0.5669654", "0.5620904", "0.55061585", "0.5483647", "0.54618204", "0.545464", "0.5450856", "0.54202133", "0.54145676", "0.5361238", "0.53577685", "0.5351", "0.53403866", ...
0.8465952
0
Random problem command handler.
def KQ5r(qIxc: argparse.Namespace): X3eO = hCWy(tuKI.randint(1, 757)) kQ8Y(X3eO, getattr(qIxc, 'format', None))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pkUD():\n G9jH.info('work3 doing a job')\n if tuKI.randint(1, 5) == 1:\n G9jH.error('Error in work3: bad input')", "def x8Ow():\n pass", "async def _defacto(YKHO, OaeV: commands.Context):\n h2IT = ['DI FACTO', 'di facto']\n await OaeV.send(tuKI.choice(h2IT))", "def chOV(YKHO, p9K5, ...
[ "0.6212216", "0.6044852", "0.5877543", "0.5802901", "0.57140374", "0.5677553", "0.5634472", "0.5609472", "0.55304205", "0.5522548", "0.5516423", "0.5513836", "0.55096143", "0.5502239", "0.5493456", "0.5489194", "0.5480684", "0.54725814", "0.54601794", "0.54553986", "0.544144"...
0.67767084
0
Location is the full sequence by default.
def RF7b(YKHO, X3eO, LmAn='constraint'): def RDBY(Rci7): WmM4 = _JMH(0, len(X3eO.sequence), 1) return WmM4 if Rci7 is None else Rci7 Rci7 = RDBY(YKHO.location) aC0l = RDBY(YKHO.reference) return YKHO.copy_with_changes(location=Rci7, reference=aC0l)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rci7(YKHO):\n raise tuT3('Location not implemented')", "def Rci7(YKHO, Rci7):\n YKHO._location = Rci7", "def Rci7(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'location')", "def Rci7(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'location')", "def Rci7(YKHO) -> qe4Y.Input[str]:\n ...
[ "0.6413898", "0.60141426", "0.59690434", "0.59690434", "0.59690434", "0.59522307", "0.59030867", "0.58940643", "0.58358186", "0.58358186", "0.58358186", "0.58358186", "0.58358186", "0.58358186", "0.58358186", "0.58317435", "0.5809984", "0.5805795", "0.5805795", "0.5805795", "...
0.0
-1
two layer cnn model
def orfW(vHnr): j2cC = ZylS.layers.conv2d(inputs=vHnr, filters=8, kernel_size=[4, 4], padding='same', activation=ZylS.nn.relu) HXYP = ZylS.layers.max_pooling2d(inputs=j2cC, pool_size=(4, 4), strides=4) I7zk = ZylS.layers.conv2d(inputs=HXYP, filters=16, kernel_size=[4, 4], padding='same', activation=ZylS.nn....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XUyg(kACu, YDYE=ZylS.nn.relu, hr1G=1):\n DKiA = [1, 5, Qi3c, hNpG]\n eJxc = [2, 7, hNpG, ZxjL]\n j2cC = yIp6(kACu, DKiA, YDYE, 'conv_1', hr1G)\n I7zk = yIp6(j2cC, eJxc, YDYE, 'conv_2', hr1G)\n PWgb = ZylS.reshape(I7zk, [Ep8u, TVTK * H2v2 * ZxjL])\n OCat = Zode(PWgb, YDYE, 'hidden_1', VqWm, hr...
[ "0.7222937", "0.7082397", "0.7017631", "0.69939375", "0.6956731", "0.69491816", "0.68690795", "0.6834718", "0.6793657", "0.671937", "0.6705467", "0.6693801", "0.6682268", "0.66788125", "0.663292", "0.6622287", "0.66078556", "0.65986174", "0.6594598", "0.65936935", "0.6593313"...
0.6246135
82
Get whether the speaker is enabled
def ugFV(): return aiXz() & r95D(ucI6) == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def etR_(YKHO) -> bool:\n return qe4Y.get(YKHO, 'enabled')", "def etR_(YKHO) -> bool:\n return qe4Y.get(YKHO, 'enabled')", "def etR_(YKHO) -> bool:\n return qe4Y.get(YKHO, 'enabled')", "def etR_(YKHO) -> bool:\n return qe4Y.get(YKHO, 'enabled')", "def etR_(YKHO) -> bool:\n return qe4Y.get(YK...
[ "0.67752063", "0.67752063", "0.67752063", "0.67752063", "0.67752063", "0.67752063", "0.6770599", "0.67257386", "0.6707082", "0.6707082", "0.6707082", "0.6707082", "0.6707082", "0.6707082", "0.6707082", "0.6707082", "0.6702462", "0.6695559", "0.669294", "0.66723514", "0.666439...
0.88702184
0
Get the timestamp from the given tweet.
def KOTW(Mau6): if 'timestamp_ms' in Mau6: adSP = int(Mau6['timestamp_ms']) adSP = adSP - adSP % 1000 return adSP / 1000.0 elif 'created_at' in Mau6: return hfK9(Mau6['created_at']).timestamp() raise KeyError("Neither the 'timestamp_ms' attribute, nor the 'created_at' attribu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UKQ4(Mau6):\n return Mau6['time']", "def jLSx(Huo2):\n vgXP = 1288834974657\n ka7q = (Huo2 >> 22) + vgXP\n return epAf.floor(ka7q / 1000)", "def JScD(YKHO, r2qd):\n E3oo = kuDJ(iUqm(r2qd))\n return qcWV.fromtimestamp(E3oo)", "def E3oo(YKHO, a1PO):\n if isinstance(a1PO, qcWV):\n ...
[ "0.751573", "0.72477835", "0.6645597", "0.66382194", "0.65814024", "0.64448696", "0.63507265", "0.6346815", "0.6196693", "0.61221623", "0.6109965", "0.60660464", "0.6039353", "0.6007834", "0.59855497", "0.5981461", "0.59692085", "0.5967157", "0.59454775", "0.59452915", "0.594...
0.8435428
0
Generator associating each raw/gt files
def pcWg(YKHO): BuvW = Hy7s.path.join(YKHO.path, 'TCGA-*') for eHNT in SC2F(BuvW): MiIf = fu_G(eHNT) for Jajz in SC2F(Hy7s.path.join(eHNT, '*.tif')): ti5Z = Jajz.replace('.tif', '.xml') yield (Jajz, ti5Z, MiIf)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zDiL(YKHO, RRlC):\n or8S = 0\n for Ux0P in RRlC:\n with open(Ux0P) as nUeQ:\n for zFiD in nUeQ:\n yield (or8S, {'text': zFiD})\n or8S += 1", "def m5hv(RKN_):\n if RKN_ == 'convert_pmids_to_pmcs':\n n_p6 = YLnl(Hy7s.path.join, 'Data', 'SearchResu...
[ "0.6735086", "0.65885204", "0.65628415", "0.6439447", "0.6385568", "0.62957543", "0.6234873", "0.6191832", "0.6184084", "0.6116352", "0.61006", "0.6072658", "0.60466146", "0.60407096", "0.6036145", "0.603186", "0.60293067", "0.60286117", "0.6025175", "0.60115194", "0.60005033...
0.6733576
1
Strip a string and reduce all blank space to a unique space. If you set keepNewLines as True, it will keep a unique '\n' at each blank space which contains a '\n' or a '\r'
def pRSW(l5Ny, MkWC=False): if l5Ny is None: return None l5Ny = l5Ny.strip() if not MkWC: return ZbWC.sub('\\s+', ' ', l5Ny) else: l5Ny = ZbWC.sub('\\r', '\n', l5Ny) l5Ny = ZbWC.sub('\\s*\\n+\\s*', '\n', l5Ny) l5Ny = ZbWC.sub('[ \\t\\f\\v]+', ' ', l5Ny) re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yczo(YKHO, vIwR):\n return ZbWC.sub('\\\\s+', ' ', vIwR).strip()", "def Yczo(KCHu):\n return ZbWC.sub('\\\\s+', ' ', KCHu.strip())", "def HWW9(l5Ny: str) -> str:\n return '\\n'.join([zFiD.lstrip() for zFiD in l5Ny.split('\\n') if zFiD.lstrip() != ''])", "def G2XZ(CBIr, str):\n return ZbWC.sub...
[ "0.71004176", "0.7037954", "0.69996136", "0.6953316", "0.691171", "0.691074", "0.6804225", "0.6773284", "0.67648774", "0.6748245", "0.6660545", "0.6580272", "0.6579722", "0.6576516", "0.65603596", "0.6546316", "0.6492183", "0.6485254", "0.6485254", "0.6471675", "0.6452244", ...
0.74334335
0
get the selected colour scheme
def pLK7(YKHO) -> KZBZ: return KZBZ[YKHO.colour_combo.get().upper()]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wGtj(YKHO):\n return YKHO.colour", "def KGGj(YKHO):\n return YKHO._l[2]", "def oiAm(YKHO):\n Tuqy = _e0h.is_SetColorMode(YKHO.hcam, 32768)\n return YKHO._color_modes_inv.get(Tuqy, Tuqy)", "def mvpM(YKHO):\n return YKHO.__color", "def mvpM(YKHO):\n return YKHO.__color", "def mvpM(YKH...
[ "0.69872385", "0.6737478", "0.6713789", "0.666992", "0.666992", "0.666992", "0.666992", "0.6641921", "0.66243124", "0.6605013", "0.6599017", "0.64831936", "0.6482159", "0.64804363", "0.6478638", "0.6462587", "0.644782", "0.64259386", "0.6416665", "0.64066637", "0.63862365", ...
0.6554009
11
Returns actual player score Board board int score
def vNP6(YKHO, iBIi): return iBIi.getScore()[YKHO.tile]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p1kx(YKHO, oyg0, iBIi):\n kgrb = 0\n SiwD = 0\n for YRbF in YKHO.squares():\n if iBIi[YRbF] == oyg0:\n kgrb += yQki[YRbF]\n else:\n SiwD += yQki[YRbF]\n return kgrb - SiwD", "def OA_s(YKHO, oyg0, iBIi):\n kgrb = 0\n SiwD = 0\n for YRbF in YKHO.squares(...
[ "0.7855503", "0.77247196", "0.76544553", "0.7567138", "0.747234", "0.747234", "0.747234", "0.7460387", "0.7460387", "0.7346631", "0.7326815", "0.73088795", "0.72950774", "0.7275153", "0.72476554", "0.72081816", "0.72079164", "0.7156719", "0.715394", "0.7132284", "0.7130691", ...
0.7957019
0
Check if the player can make a move Board board list(c+r8) list of posible moves in 1 dimension format
def l57B(YKHO, iBIi): IUs2 = [] for Z9rn in Ni9Y(0, 8): for Mkmy in Ni9Y(0, 8): if iBIi.isValidMove(YKHO.tile, Z9rn, Mkmy): IUs2.append(Z9rn + Mkmy * 8) return IUs2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HMeC(YKHO, oyg0, iBIi):\n oLdq = list()\n RUgX = YKHO.opponent(oyg0)\n for YRbF in YKHO.squares():\n if iBIi[YRbF] == aM69.EMPTY:\n for Csk6 in aM69.DIRECTIONS:\n Mhd9 = YKHO.find_bracket(YRbF, oyg0, iBIi, Csk6)\n if Mhd9 != None:\n oL...
[ "0.77980137", "0.7751658", "0.7490353", "0.747995", "0.74711967", "0.7464051", "0.7432093", "0.74045986", "0.74009705", "0.7373518", "0.73627156", "0.7311106", "0.72710496", "0.7222708", "0.7182432", "0.7134961", "0.71312374", "0.71179044", "0.70766354", "0.7066609", "0.70467...
0.79902846
0
Cross product of va by vb.
def wnaF(rQ8K, OaeL): KbR_ = rQ8K[:, :, 0] MDHT = rQ8K[:, :, 1] XE5W = rQ8K[:, :, 2] W8i2 = OaeL[:, :, 0] G5Dq = OaeL[:, :, 1] yHM0 = OaeL[:, :, 2] acMM = MDHT * yHM0 - XE5W * G5Dq reC6 = XE5W * W8i2 - KbR_ * yHM0 JW8S = KbR_ * G5Dq - MDHT * W8i2 return ht2j.stack([acMM, reC6, JW...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vNib(jzdc, Fg_i):\n return [jzdc[1] * Fg_i[2] - jzdc[2] * Fg_i[1], jzdc[2] * Fg_i[0] - jzdc[0] * Fg_i[2], jzdc[0] * Fg_i[1] - jzdc[1] * Fg_i[0]]", "def WHx2(P6bq, Ty9i):\n IrOQ, KoVS, kh1c = P6bq\n hQHm, jlSq, bUZ8 = Ty9i\n return oyIN.array([KoVS * bUZ8 - kh1c * jlSq, kh1c * hQHm - IrOQ * bUZ8, ...
[ "0.7219093", "0.70910263", "0.7081996", "0.70207", "0.6984819", "0.6879287", "0.6851017", "0.68318456", "0.6807848", "0.68008584", "0.6799326", "0.67720944", "0.67500484", "0.6616882", "0.66131854", "0.65886015", "0.6556904", "0.65076023", "0.64794654", "0.6475932", "0.636959...
0.61648786
36
Rotate points by quaternions.
def Hgp6(EcVT, vexM): jlHL = EcVT[[0], :, :][:, :, [0]] * 0 + 1 vexM = ht2j.unsqueeze(vexM, 1) * jlHL HuSO = ht2j.cat([vexM[:, :, [0]], -1 * vexM[:, :, 1:4]], dim=-1) EcVT = ht2j.cat([EcVT[:, :, [0]] * 0, EcVT], dim=-1) S8x9 = ei0k(vexM, ei0k(EcVT, HuSO)) return S8x9[:, :, 1:4]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QJfP(LTIa, jDK_, q7In):\n vexM = R5H8.rotator(jDK_, q7In)\n return vexM.rotate(LTIa)", "def HKaI(LTIa, urL5):\n Ylbp = oyIN.zeros((urL5.shape[0], LTIa.shape[0], 4))\n Ylbp[:, :, 1:] = LTIa\n Fs77 = Ni86(urL5)\n for p6S0 in range(len(LTIa)):\n Ylbp[:, p6S0, :] = At55(urL5, Ylbp[:, p6S...
[ "0.79838574", "0.77192706", "0.7698028", "0.75039345", "0.7125828", "0.6768124", "0.66302985", "0.6611916", "0.652839", "0.64440787", "0.64172006", "0.64088035", "0.6362208", "0.6334814", "0.6297914", "0.6279539", "0.6245257", "0.611538", "0.6115277", "0.60798615", "0.6071520...
0.6787695
5
Calculate the histogram of an image on r, g, b
def thJw(VXjJ): Of4a = 8 iBe4 = oyIN.tile(oyIN.array([0, 255]), (3, 1)) Mkmy = oyIN.ravel(VXjJ[:, :, 0]) Oa1e = oyIN.ravel(VXjJ[:, :, 1]) Fg_i = oyIN.ravel(VXjJ[:, :, 2]) QzFq, wnQ_ = oyIN.histogramdd([Mkmy, Oa1e, Fg_i], bins=Of4a, range=iBe4) return QzFq / oyIN.sum(QzFq)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oicS(YKHO, LNo8):\n QzFq = [0] * 256\n [MKlR, yzQ0] = LNo8.shape\n print(MKlR, yzQ0)\n YRbF = 0\n while YRbF < 256:\n for rdlD in range(MKlR):\n for fvDH in range(yzQ0):\n if LNo8[rdlD, fvDH] == YRbF:\n QzFq[YRbF] += 1\n YRbF += 1\n r...
[ "0.73510206", "0.73195577", "0.72917515", "0.71590394", "0.7074251", "0.6975748", "0.69430894", "0.69259137", "0.69240725", "0.6875815", "0.6864523", "0.6803694", "0.67591286", "0.67297846", "0.67021245", "0.6690459", "0.6687008", "0.6677851", "0.66752255", "0.66494393", "0.6...
0.75960964
0
Reset the internal state to mean value.
def SiRx(YKHO): YKHO.state = jth9.copy(YKHO.mu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LBEo(YKHO, B3XY):\n YKHO.mean = B3XY\n return", "def LBEo(YKHO, B3XY):\n YKHO.mean = B3XY\n return", "def hwhn(YKHO):\n YKHO._total_time = 0\n YKHO._average_time = 0\n YKHO._calls = 0", "def SiRx(YKHO):\n YKHO.ref_value = 0.0\n YKHO._average = 0.0\n YKHO.num_samples = 0", ...
[ "0.8142677", "0.8142677", "0.75402176", "0.7497922", "0.74893606", "0.74782056", "0.7336197", "0.7336197", "0.7336197", "0.7336197", "0.7336197", "0.7336197", "0.7336197", "0.7336197", "0.7336197", "0.7336197", "0.7336197", "0.7135869", "0.7073691", "0.70692", "0.7061524", ...
0.7340097
6
Add a new experience to memory.
def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins): tTpl = YKHO.experience(QTBn, XeOP, vOGg, rxHc, _ins) YKHO.memory.append(tTpl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wOcu(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n tTpl = YKHO.experience(QTBn, XeOP, vOGg, rxHc, _ins, YKHO.max_priority)\n YKHO.memory.append(tTpl)", "def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n GsKL = XlZM(QTBn, XeOP, vOGg, rxHc, _ins)\n YKHO.memory.append(GsKL)", "def H2v5(YKHO, GsKL):\n YK...
[ "0.79570484", "0.79044235", "0.7879639", "0.75771767", "0.7570595", "0.74472857", "0.7361078", "0.7269946", "0.7198787", "0.7198787", "0.7198787", "0.7198787", "0.7198787", "0.7198787", "0.7198787", "0.7198787", "0.7198787", "0.7198787", "0.7198787", "0.71452063", "0.710669",...
0.72183806
8
Return the current size of memory.
def szAg(YKHO): return len(YKHO.memory)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R8e4(YKHO) -> int:\n return len(YKHO.mem)", "def ZGo4(YKHO):\n return YKHO.xlist('get-memsize')[1][0] * 1024", "def llBc(YKHO):\n return YKHO.drt_manager.get_total_memory_size()", "def R8e4(YKHO):\n return YKHO.bf.memory()", "def SkKE(YKHO):\n return YKHO._total_memory", "def msVb(YKHO...
[ "0.8533664", "0.8442759", "0.8356692", "0.8180822", "0.8138444", "0.80357385", "0.80304694", "0.80254656", "0.79680574", "0.79384464", "0.78658336", "0.7861912", "0.78567755", "0.78204757", "0.7810105", "0.770134", "0.76985765", "0.76985765", "0.7689115", "0.7681313", "0.7668...
0.7434966
61
Compute Quantile values over each time period
def vYE3(TKJb, Ys30: int, wXKh, aM62): print('\tComputing Quantile...') vexM = oyIN.zeros(Ys30) for a1PO in range(Ys30): TKJb[a1PO].sort() vexM[a1PO] = TKJb[a1PO][int(oyIN.ceil(wXKh[a1PO] * aM62)) - 1] print('\tDone') return vexM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZCbz(nPrm, begE):\n Mkmy = rLdf.DataFrame([])\n if isinstance(nPrm, rLdf.DataFrame) or isinstance(nPrm, rLdf.Series):\n WzEy = nPrm.min()\n eB_n = nPrm.max()\n hbUd = nPrm.quantile(0.25)\n iv7Q = nPrm.quantile(0.75)\n Ut4q = iv7Q - hbUd\n CN9P = 1.5 * Ut4q + iv7Q...
[ "0.70179975", "0.6637474", "0.6607721", "0.65887874", "0.65606374", "0.6460167", "0.6450106", "0.6416188", "0.6412151", "0.63913745", "0.6365912", "0.635687", "0.6346664", "0.634572", "0.6327879", "0.632202", "0.632202", "0.632202", "0.63001335", "0.6290029", "0.6271301", "...
0.6449152
7