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
Sets the user_id of this ImageIngressRequest.
def uJjO(YKHO, uJjO): if uJjO is None: raise ValueError('Invalid value for `user_id`, must not be `None`') YKHO._user_id = uJjO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uJjO(YKHO, uJjO):\n YKHO._user_id = uJjO", "def uJjO(YKHO, uJjO):\n YKHO._user_id = uJjO", "def uJjO(YKHO, uJjO):\n YKHO._user_id = uJjO", "def uJjO(YKHO, uJjO):\n YKHO._user_id = uJjO", "def uJjO(YKHO, uJjO):\n YKHO._user_id = uJjO", "def uJjO(YKHO, uJjO):\n YKHO._user_id = uJjO", ...
[ "0.72680086", "0.72680086", "0.72680086", "0.72680086", "0.72680086", "0.72680086", "0.72680086", "0.72680086", "0.72680086", "0.72680086", "0.72680086", "0.72680086", "0.72680086", "0.72680086", "0.7210811", "0.6845807", "0.6584662", "0.6505387", "0.6454998", "0.6395808", "0...
0.66360784
17
Gets the image_id of this ImageIngressRequest.
def r8m5(YKHO): return YKHO._image_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r8m5(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'image_id')", "def r8m5(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'image_id')", "def r8m5(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'image_id')", "def r8m5(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'ima...
[ "0.79333955", "0.79333955", "0.7666061", "0.7666061", "0.7623866", "0.7623866", "0.74060255", "0.6876385", "0.6750982", "0.6749028", "0.6717628", "0.6690994", "0.6667111", "0.6542276", "0.6501582", "0.6413396", "0.6171363", "0.6136316", "0.6091008", "0.6064405", "0.6020776", ...
0.8027814
0
Sets the fetch_url of this ImageIngressRequest.
def K2qG(YKHO, K2qG): if K2qG is None: raise ValueError('Invalid value for `fetch_url`, must not be `None`') YKHO._fetch_url = K2qG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bD7m(YKHO, qwnb):\n YKHO._url = qwnb", "def ps_8(YKHO, ps_8: Fetch):\n YKHO._fetch = ps_8", "def qwnb(YKHO, qwnb: str):\n YKHO._image_url = qwnb", "def qwnb(YKHO, qwnb):\n YKHO._image_url = qwnb", "def m5Zz(YKHO, m5Zz):\n YKHO._profile_image_url = m5Zz", "def U2Rp(YKHO, bD7m):\n if ...
[ "0.6385813", "0.6317776", "0.62758493", "0.6259357", "0.6014248", "0.59864223", "0.58782375", "0.5822749", "0.5734965", "0.5700897", "0.56913674", "0.5670132", "0.5601388", "0.55978256", "0.5584024", "0.5584024", "0.5584024", "0.5584024", "0.5584024", "0.5584024", "0.5584024"...
0.7596943
0
calculate probabilities using sigmoid
def KR85(YKHO, EcVT): Abux = EcVT.dot(YKHO.W) + YKHO.b JxU2 = 1 / (1 + oyIN.exp(-Abux)) return JxU2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m1Hg(WKvO):\n hcL3 = 1.0 / (1.0 + oyIN.exp(-WKvO))\n return hcL3\n pass", "def m1Hg(WKvO):\n return 1 / (1 + r8hN.exp(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + oyIN.exp(-WKvO))", ...
[ "0.7717837", "0.7655938", "0.7612347", "0.7612347", "0.7592803", "0.7548761", "0.7544438", "0.7544438", "0.7544438", "0.7544438", "0.7544438", "0.7544438", "0.7541703", "0.7538108", "0.7505563", "0.7498209", "0.74947983", "0.74902207", "0.74823165", "0.74813074", "0.7479476",...
0.0
-1
Get target data generators for training, testing, prediction.
def XKo1(YKHO, BhCF, g_UH, f3hs): OGi4 = None UhHo = None if BhCF == Yv4C.PRE_TRAIN: YKHO.Xt_gen = g_UH[0].setdefault(x3i3.TR_OUT, None) YKHO.Xt_val_gen = g_UH[0].setdefault(x3i3.VAL_OUT, None) elif BhCF == Yv4C.TRAIN: OGi4 = g_UH[0].setdefault(x3i3.TR_OUT, None) UhHo = g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XKo1(YKHO, BhCF, g_UH, f3hs):\n OGi4 = None\n UhHo = None\n if BhCF == Yv4C.PREDICT or BhCF == Yv4C.TEST:\n OGi4 = g_UH[0].setdefault(x3i3.TE_OUT, None)\n return (OGi4, UhHo)", "def Rdeg(qi2U):\n bGrB, JbyC = qi2U\n SFtb = QXOc(qi2U, JbyC.train_dir)\n M8eM = QXOc(qi2U, JbyC.val_di...
[ "0.7023369", "0.6909531", "0.6873213", "0.66385406", "0.66075665", "0.6436247", "0.63216937", "0.6316493", "0.62796324", "0.62161946", "0.61224335", "0.60699147", "0.60620767", "0.60111725", "0.59768015", "0.59554696", "0.5953158", "0.5949151", "0.59486556", "0.594607", "0.59...
0.70219344
1
Copy the source location hint (`lineno` and `col_offset`) from the old to the new node if possible and return the new one.
def hvER(Esd_, cBXN): OmwO = getattr(Esd_, '_attributes', ()) or () VgCN = getattr(cBXN, '_attributes', ()) or () for hkS8 in ('lineno', 'col_offset'): if hkS8 in VgCN and hkS8 in OmwO and hasattr(cBXN, hkS8): setattr(Esd_, hkS8, getattr(cBXN, hkS8)) return Esd_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ix8x(Q6kx):\n\n def C0AD(Q6kx, QP4x, Bovf):\n o8Kj = getattr(Q6kx, '_attributes', ()) or ()\n if 'lineno' in o8Kj:\n if not hasattr(Q6kx, 'lineno'):\n Q6kx.lineno = QP4x\n else:\n QP4x = Q6kx.lineno\n if 'col_offset' in o8Kj:\n ...
[ "0.6069932", "0.55373293", "0.53147703", "0.5175728", "0.514726", "0.5007688", "0.48660088", "0.4853318", "0.48059896", "0.48031142", "0.48007894", "0.4750536", "0.47375607", "0.46948773", "0.46795332", "0.46773106", "0.46692815", "0.46600556", "0.46571478", "0.46545252", "0....
0.70898926
0
Increment the line numbers of all nodes by `n` if they have line number attributes. This is useful to "move code" to a different location in a file.
def zmIq(Q6kx, exwG=1): if 'lineno' in getattr(Q6kx, '_attributes', ()) or (): Q6kx.lineno = getattr(Q6kx, 'lineno', 0) + exwG for aUGN in ZAda(Q6kx): aUGN._attributes = getattr(aUGN, '_attributes', ()) or () if 'lineno' in getattr(aUGN, '_attributes', ()) or (): aUGN.lineno ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O_2y(YKHO):\n YKHO.node_index += 1", "def qVuZ(Q6kx, afYC):\n for YRbF, aUGN in enumerate(afYC):\n aUGN = aUGN[0]\n if not hasattr(aUGN, 'lineno'):\n setattr(aUGN, 'lineno', Q6kx.lineno)\n if YRbF == len(afYC) - 1:\n setattr(aUGN, 'lineno_end', Q6kx.lineno_end...
[ "0.64601266", "0.6406021", "0.6296789", "0.6268839", "0.6213082", "0.6208723", "0.6100943", "0.5953907", "0.58705515", "0.5744056", "0.5719048", "0.5698512", "0.5642049", "0.56205755", "0.56098205", "0.5587294", "0.5587128", "0.5556833", "0.551955", "0.55012184", "0.548361", ...
0.82735175
0
Like `iter_child_nodes` but returns a list.
def rj6q(Q6kx): return list(wNRb(Q6kx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rj6q(YKHO):\n SQ3m = []\n for aUGN in sorted(YKHO.children, key=lambda Z9rn: Z9rn.start):\n stfM = (aUGN.start, aUGN.end, aUGN)\n SQ3m.append(stfM)\n return SQ3m", "def RbaF(YKHO):\n return Ykgu(YKHO._my_map['childNodes'])", "def RbaF(YKHO):\n return [Q6kx for Q6kx in YKHO._chi...
[ "0.7759051", "0.76859593", "0.75044936", "0.7251256", "0.7251256", "0.7236841", "0.72335047", "0.72286314", "0.7218785", "0.71713066", "0.71700215", "0.7160709", "0.71347654", "0.71161556", "0.7083401", "0.7079386", "0.7079386", "0.7004263", "0.6996853", "0.69955", "0.6987778...
0.86886746
0
Creates a temporary directory, removing it and everything in it when the context exits. For files you can use
def U9hK(*qIxc, **B2fa): Csk6 = qf3c(*qIxc, **B2fa) try: yield Csk6 finally: fG_9(Csk6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z_es():\n TBXe = gbPf.mkdtemp()\n yield TBXe\n RDuA.rmtree(TBXe)", "def pRsa(QpfX):\n try:\n Hy7s.chdir(QpfX.cwd)\n except:\n print('Current working file record does not exist')\n try:\n QpfX.tempdir.cleanup()\n except:\n print('Temporary directory cannot be c...
[ "0.8327845", "0.8242248", "0.820278", "0.8189135", "0.8157923", "0.8153317", "0.8145342", "0.8144999", "0.8104914", "0.8057752", "0.8029384", "0.7936613", "0.79235435", "0.790472", "0.7889978", "0.7871442", "0.7836462", "0.78137827", "0.7770494", "0.767734", "0.7674889", "0...
0.7782289
18
Test for equality with ``==``.
def xa14(YKHO, YEnM): return QBs8(YKHO.obj == YEnM, '%r != %r' % (YKHO.obj, YEnM))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IzcV(YKHO, jzdc, Fg_i):\n return jzdc == Fg_i", "def whu6(YKHO):\n pass", "def IzcV(YKHO, jzdc, Fg_i):\n return jzdc is Fg_i", "def aPi6(WKvO, LVAh):\n return WKvO == LVAh", "def uq87(YKHO):\n Vo9x = yp3N()\n YKHO.assertTrue(Vo9x == Vo9x)", "def JutH(YKHO, jzdc, Fg_i):\n return j...
[ "0.7926635", "0.78102934", "0.7647982", "0.7621915", "0.7514688", "0.7442282", "0.74086034", "0.7385574", "0.7273519", "0.7273519", "0.7273519", "0.7273519", "0.7273519", "0.7273519", "0.7273519", "0.7273519", "0.7273519", "0.7273519", "0.7273519", "0.7273519", "0.7273519", ...
0.6707902
96
Test for inequality with ``!=``.
def Vdqg(YKHO, YEnM): return QBs8(YKHO.obj != YEnM, '%r == %r' % (YKHO.obj, YEnM))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, RKYb):\n return not YKHO.__eq__(RKYb)", "def Vdqg(LFlW, _tIi):\n return not LFlW == _tIi", "def Vdqg(YKHO, hkxX):\n YKHO = YKHO.__eq__(hkxX)\n return YKHO.__invert__()", "def siVC(Emd4, yLHq, RKYb):\n return yLHq != RKYb", "def kUu4(yLHq, RKYb):\n return sfxH.not_equal(yLHq...
[ "0.78504074", "0.7636881", "0.74306875", "0.7427986", "0.7406329", "0.7328774", "0.7327627", "0.72552085", "0.725391", "0.7253823", "0.7253823", "0.72504973", "0.72313046", "0.72305256", "0.72305256", "0.72305256", "0.72305256", "0.72285306", "0.72285306", "0.7217608", "0.720...
0.0
-1
Creates a basic unittest test loader using this reporter. This
def Blhr(Emd4): return FcLk(Emd4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDGo():\n import tests.functional.tests as MWA5\n return DuvM.TestLoader().loadTestsFromModule(MWA5)", "def Baw8(Emd4):\n Emd4.run_mgr = WL52(['start', 'execute'], ['stop'])\n Emd4.load_mgr = DWkG(verbose=False, recursive=True)\n Emd4.load_mgr.set_addon_dirs(['./data'])\n Emd4.load_mgr.load...
[ "0.6788594", "0.65385556", "0.64565843", "0.644332", "0.64290255", "0.64290255", "0.6279315", "0.6230456", "0.6225771", "0.6222871", "0.6202562", "0.6198674", "0.61960477", "0.6195475", "0.6167846", "0.6145564", "0.6115673", "0.61139894", "0.61038935", "0.60941917", "0.608361...
0.7221888
0
Get the color for rank 1, 2, or 3. Gold, Silver, or Bronze. If higher than rank 3, get a random color.
def PICn(fdMZ): if fdMZ == 1: qfpW = int(16766720) elif fdMZ == 2: qfpW = int(12632256) elif fdMZ == 3: qfpW = int(13467442) else: qfpW = tuKI.randint(1, 16777215) return ZOrr.Color(qfpW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rYs4(YKHO):\n z2lz = tuKI.random()\n if z2lz <= 1 / 3.0:\n return HRmL.RED\n else:\n return HRmL.BLACK", "def OLAd(YKHO):\n bctv = range(0, 256)\n return tuple((tuKI.choice(bctv) for bGrB in range(3)))", "def wmuL(xlLU: random.Random) -> bSef:\n Mkmy = xlLU.randint(0, 255)\n...
[ "0.74847656", "0.7349744", "0.70214736", "0.6981014", "0.6901432", "0.6813053", "0.6770108", "0.6759539", "0.67513776", "0.66745436", "0.66514397", "0.65750384", "0.6574133", "0.65668786", "0.6446063", "0.64443475", "0.6414915", "0.63887674", "0.6373619", "0.6372905", "0.6280...
0.8297967
0
Returns True if line segments a1b1 and a2b2 intersect.
def XMlP(XOOk, kYGz, pHXX, ftz7): return rSJO(XOOk, kYGz, pHXX) != rSJO(XOOk, kYGz, ftz7) and rSJO(pHXX, ftz7, XOOk) != rSJO(pHXX, ftz7, kYGz)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aKaY(YKHO, jzdc: Tuple[float, float], Fg_i: Tuple[float, float]) -> bool:\n assert len(jzdc) == 2\n assert len(Fg_i) == 2\n return bool(_e0h.cpBBIntersectsSegment(YKHO, jzdc, Fg_i))", "def XIXp(xgfQ, tLib):\n U677 = C3ap(xgfQ.endpoint_a, xgfQ.endpoint_b, tLib.endpoint_a)\n oM1f = C3ap(xgfQ.end...
[ "0.79986954", "0.7785552", "0.7738122", "0.75132155", "0.7485431", "0.7475019", "0.72003686", "0.71722126", "0.71539545", "0.70528436", "0.6921835", "0.68022656", "0.680213", "0.6783449", "0.6769245", "0.67416507", "0.6681959", "0.6674011", "0.66401654", "0.66297746", "0.6629...
0.69172287
11
Computes the recall @ k.
def GvK6(YKHO, nvEb: torch.Tensor, pan_: torch.Tensor) -> ht2j.Tensor: if len(pan_.size()) == 2: pan_ = pan_.argmax(dim=1) xKik = ht2j.argsort(nvEb, dim=1)[:, -YKHO.top_k:] u3R2 = ht2j.sum((pan_.unsqueeze(1) == xKik).float(), dim=1) return u3R2.mean()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Scpn(YKHO, FBNX, G1Hx, eAYh):\n return 1.0 * sum((YRbF <= G1Hx for YRbF in FBNX)) / eAYh", "def qumA(ZT17: torch.Tensor, cCrA: torch.Tensor, Crrw: torch.Tensor) -> ht2j.Tensor:\n ZT17, cCrA, Crrw = OImT(ZT17, cCrA, Crrw)\n bGrB, bGrB, r0f5 = taQ9(ZT17, cCrA, Crrw)\n dYrk = gA2O(cCrA, ZT17)\n f...
[ "0.76240575", "0.7199539", "0.71977645", "0.71006775", "0.69767195", "0.6848916", "0.6728094", "0.6631682", "0.6628342", "0.64582336", "0.64439845", "0.63412124", "0.6306473", "0.6300426", "0.6275905", "0.6230507", "0.6208696", "0.62065095", "0.6175473", "0.615985", "0.615985...
0.0
-1
Convert file name into a safe string.
def LWVQ(IznC): return ''.join((rF04(ITIE) for ITIE in IznC))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WOHH(mWFP):\n if not isinstance(mWFP, str):\n raise ValueError('File name is not a string')\n if not mWFP:\n raise ValueError('File name cannot be empty')\n mWFP = CBiY.sub('_', mWFP)\n if '/' in mWFP:\n mWFP = mWFP[mWFP.rindex('/') + 1:]\n if WOHH.windows and '\\\\' in mWFP...
[ "0.7655492", "0.7532049", "0.7385799", "0.7300976", "0.72844356", "0.7206055", "0.7159577", "0.7042953", "0.7029593", "0.7006378", "0.70005983", "0.6993339", "0.69737864", "0.69587135", "0.6948461", "0.693894", "0.693894", "0.693894", "0.69384545", "0.69374907", "0.693378", ...
0.6960034
13
Convert a character into '_' if invalid.
def rF04(ITIE): jUwZ = '-_.%s%s' % (vIwR.ascii_letters, vIwR.digits) if ITIE in jUwZ: return ITIE else: return '_'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VEjC(Emd4, BWXx):\n return TCKz.sub('_', BWXx)", "def MD47(Emd4, H5ew):\n try:\n return H5ew.replace('-', '_')\n except AttributeError:\n return H5ew", "def oz37(Z9rn):\n return Z9rn", "def x0SS(BWXx):\n return ZbWC.sub('_+', '_', TCKz.sub('_', BWXx))", "def rF04(ITIE):\n ...
[ "0.70235366", "0.6770715", "0.67471325", "0.6703061", "0.66813403", "0.66652775", "0.65320665", "0.6442786", "0.6432533", "0.64069337", "0.63889426", "0.632381", "0.6281248", "0.62803006", "0.62568724", "0.6252624", "0.6206783", "0.61948264", "0.61459035", "0.61348164", "0.61...
0.7681193
0
Remove stopwords of a given sentence
def aUcs(l5Ny): MAdq = l5Ny.split() MAdq = [GIN8 for GIN8 in MAdq if GIN8 not in di0c.words('spanish')] return MAdq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wkDh(YKHO):\n s2mk = str(YKHO.doc).split()\n zLya = [eOtH for eOtH in s2mk if eOtH.lower() not in YKHO.stopword_list]\n YKHO.doc = ' '.join(zLya)", "def VAp3(yAmx: str, hwHU: Collection[str]) -> str:\n return ' '.join([yzQ0 for yzQ0 in dFss(yAmx) if yzQ0 not in hwHU])", "def BlGc(l5Ny, hwHU=hwH...
[ "0.838035", "0.8365179", "0.8348373", "0.82454425", "0.8207006", "0.81841", "0.8173266", "0.815947", "0.8141942", "0.812814", "0.8066427", "0.7976647", "0.79604775", "0.79133135", "0.78851795", "0.7873118", "0.78568643", "0.78416693", "0.7785133", "0.7783995", "0.7763513", ...
0.80043656
11
Conv layer followed by batchnorm and possibly Swish activation
def VZhH(j1EP, he5B, LzBn, _0fC=1, ynfi=False, qwWy=False, u_ln=True): tF9S = U78l.BatchNorm2d(he5B) U78l.init.constant_(tF9S.weight, 0.0 if qwWy else 1.0) yIp6 = U78l.Conv2d(j1EP, he5B, LzBn, stride=_0fC, padding=LzBn // 2, bias=False, groups=j1EP if ynfi else 1) gEmA = [yIp6, tF9S] if u_ln: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, xMux: int, Ot1W: int=15, YDYE: nn.Layer=U78l.ReLU(), CkYf: str='batch_norm', F6Lg: bool=False, oug5: bool=True, XnRF: bool=False, vB93: bool=False):\n assert qwjZ()\n super().__init__()\n YKHO.bias = oug5\n YKHO.channels = xMux\n YKHO.kernel_size = Ot1W\n YKHO.adaptive_scale = XnRF...
[ "0.7071443", "0.7052393", "0.69058734", "0.68121254", "0.6764757", "0.6760634", "0.67577064", "0.6733552", "0.67044973", "0.6679216", "0.6655468", "0.6652834", "0.66267353", "0.6600876", "0.65719825", "0.6558256", "0.6558124", "0.6544699", "0.6533463", "0.65325254", "0.652606...
0.6422909
25
Tests whether ``put_partial_emoji_inline_data_into`` works as intended for a unicode emoji.
def wLDL(): nPrm = {} JUOb = DNEC['heart'] gDaH(JUOb, nPrm) Qg87.assert_in('emoji_name', nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qoMg():\n nPrm = {}\n JUOb = Xz2w.precreate(202209090000, name='Eliminator')\n gDaH(JUOb, nPrm)\n Qg87.assert_in('emoji_name', nPrm)\n Qg87.assert_in('emoji_id', nPrm)", "def YAOo():\n nPrm = {}\n gDaH(None, nPrm)\n Qg87.assert_eq(nPrm, {'emoji_name': None})", "def SW6c(YKHO):\n ...
[ "0.80866784", "0.78588593", "0.6798352", "0.6628056", "0.62552017", "0.6205751", "0.6145855", "0.5583427", "0.55749196", "0.55677676", "0.5542862", "0.5537958", "0.5310084", "0.52721083", "0.52474815", "0.520294", "0.51878256", "0.51708084", "0.51614255", "0.5127898", "0.5062...
0.78640825
1
Tests whether ``put_partial_emoji_inline_data_into`` works as intended for a unicode emoji.
def qoMg(): nPrm = {} JUOb = Xz2w.precreate(202209090000, name='Eliminator') gDaH(JUOb, nPrm) Qg87.assert_in('emoji_name', nPrm) Qg87.assert_in('emoji_id', nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wLDL():\n nPrm = {}\n JUOb = DNEC['heart']\n gDaH(JUOb, nPrm)\n Qg87.assert_in('emoji_name', nPrm)", "def YAOo():\n nPrm = {}\n gDaH(None, nPrm)\n Qg87.assert_eq(nPrm, {'emoji_name': None})", "def SW6c(YKHO):\n ...", "def IxGF():\n IgNB = 202301010078\n mWFP = 'darling'\n ...
[ "0.786478", "0.78588694", "0.67995495", "0.6628189", "0.62551105", "0.6208521", "0.61467546", "0.55858576", "0.5577098", "0.55662906", "0.55449116", "0.5539255", "0.5310914", "0.5274821", "0.5247798", "0.5204306", "0.5187999", "0.51732767", "0.51634437", "0.51296836", "0.5065...
0.8086661
0
The flow detail name this storage unit is associated with.
def smSl(YKHO): return YKHO._flowdetail.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO.device.device_data[YKHO.device_id]['name']", "def mWFP(YKHO):\n return f'{ueYb(YKHO._data, 0, YKHO._name)}'", "def mWFP(YKHO):\n if YKHO.metadata and 'name' in YKHO.metadata:\n return YKHO.metadata['name']\n else:\n return str(YKHO.id)", "def mWFP(YKHO)...
[ "0.66332996", "0.66266453", "0.66241026", "0.6561359", "0.655795", "0.6552185", "0.6524531", "0.6524531", "0.65157664", "0.65157664", "0.65084565", "0.65080136", "0.6505031", "0.64976925", "0.64917374", "0.6483603", "0.64810526", "0.64749646", "0.64729816", "0.64708287", "0.6...
0.7923541
0
Sets the intention of an atom given an atoms name.
def TNgA(YKHO, idIs, vl1Q): JZXy, i3ak = YKHO._atomdetail_by_name(idIs, clone=True) if JZXy.intention != vl1Q: i3ak.intention = vl1Q YKHO._with_connection(YKHO._save_atom_detail, JZXy, i3ak)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oSgC(YKHO, mWFP):\n YKHO.name = str(mWFP)", "def oSgC(YKHO, mWFP):\n YKHO._name = mWFP", "def oSgC(YKHO, *qIxc):\n return _VfD.Reaction_setName(YKHO, *qIxc)", "def oSgC(YKHO, mWFP):\n YKHO._name = mWFP", "def oSgC(YKHO, mWFP):\n YKHO._name = mWFP", "def oSgC(YKHO, mWFP):\n YKHO.name...
[ "0.61079407", "0.5993148", "0.59366035", "0.59321064", "0.59321064", "0.59172493", "0.59172493", "0.59172493", "0.59172493", "0.588289", "0.58752716", "0.58752716", "0.5801094", "0.5795953", "0.57899904", "0.57539606", "0.5684719", "0.56466454", "0.5640301", "0.56213015", "0....
0.80562615
0
Get dataset instances from the recipe.
def _Pkd(YSCM): return {__n6: iSDi(**Mzf9) for __n6, Mzf9 in YSCM.items()}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vp8A(YKHO):\n __n6 = []\n for YRbF in range(YKHO._num_instances):\n __n6.append(YKHO._generate_instance())\n JBZA = {'num_instances': YKHO._num_instances, 'num_curves': YKHO._num_curves, 'num_eval_points': YKHO._num_eval_points, 'num_control_points': YKHO._num_control_points, 'min_distance': YK...
[ "0.6571686", "0.65596515", "0.64495486", "0.6333112", "0.63033646", "0.6302469", "0.6296662", "0.62876457", "0.6273768", "0.6235459", "0.62130463", "0.61623687", "0.61354667", "0.60952777", "0.60874087", "0.60664535", "0.605857", "0.60456413", "0.6021397", "0.6018103", "0.601...
0.83624476
0
Approximate conversion of wavelength to RGB value
def KPeG(yzQ0: float, KMvS: float=1.0) -> gyIm: if yzQ0 <= xRTD: Z9rn = ((xRTD - yzQ0) / 90, 0.0, 1.0) elif yzQ0 <= ddmi: Z9rn = (0.0, (yzQ0 - xRTD) / ik4P, 1.0) elif yzQ0 <= PtAy: Z9rn = (0.0, 1.0, (PtAy - yzQ0) / y5ZM) elif yzQ0 <= _fFW: Z9rn = ((yzQ0 - PtAy) / aA4Y, 1....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KPeG(__d3, KMvS=0.8, LLeL=False):\n __d3 *= 10.0 ** 9.0\n if 380.0 <= __d3 < 440.0:\n bejQ = 0.3 + 0.7 * (__d3 - 380.0) / (440.0 - 380.0)\n Mkmy = (-(__d3 - 440.0) / (440.0 - 380.0) * bejQ) ** KMvS\n Oa1e = 0.0\n Fg_i = (1.0 * bejQ) ** KMvS\n elif 440.0 <= __d3 < 490.0:\n ...
[ "0.74345064", "0.7338989", "0.7334512", "0.7255724", "0.678338", "0.6542148", "0.65303266", "0.6474545", "0.6416113", "0.6371208", "0.6307654", "0.6303548", "0.6283774", "0.62701786", "0.62700117", "0.6214549", "0.61889523", "0.6178339", "0.6173803", "0.6127458", "0.60953075"...
0.78364927
0
Transform linear RGB values to nonlinear RGB values. Rec. 709 is ITUR Recommendation BT. 709 (1990) ``Basic Parameter Values for the HDTV Standard for the Studio and for International Programme Exchange'',
def qzbN(YKHO, d7Eb) -> gyIm: if YKHO.value.gamma == h8Uw: wuLw = d7Eb < MWTN d7Eb[wuLw] *= K8wG d7Eb[~wuLw] = 1.099 * oyIN.power(d7Eb[~wuLw], 0.45) - 0.099 else: oyIN.power(d7Eb, 1.0 / YKHO.value.gamma, out=d7Eb) return d7Eb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BqiF(d7Eb):\n return oyIN.where(d7Eb <= 0.03928, d7Eb / 12.92, oyIN.power((d7Eb + 0.055) / 1.055, 2.4))", "def ZWKa(Z9rn):\n if Z9rn <= 0.04045:\n return Z9rn / 12.92\n return epAf.pow((0.055 + Z9rn) / 1.055, 2.4)", "def CT7l(zfCl):\n \"\"\"sRGB standard for gamma inverse correction.\"\"...
[ "0.78113", "0.7259781", "0.7250231", "0.7224572", "0.6975645", "0.6861211", "0.6766095", "0.67328876", "0.6724876", "0.6666742", "0.6643549", "0.660579", "0.65431714", "0.65370923", "0.6351555", "0.6328644", "0.6316394", "0.6259769", "0.62544197", "0.62523633", "0.62266505", ...
0.0
-1
Transform linear RGB values to nonlinear RGB values. Rec. 709 is ITUR Recommendation BT. 709 (1990) ``Basic Parameter Values for the HDTV Standard for the Studio and for International Programme Exchange'',
def jKTO(d7Eb: ndarray) -> gyIm: DKxu = max(d7Eb) if DKxu > 0: d7Eb /= DKxu return d7Eb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BqiF(d7Eb):\n return oyIN.where(d7Eb <= 0.03928, d7Eb / 12.92, oyIN.power((d7Eb + 0.055) / 1.055, 2.4))", "def ZWKa(Z9rn):\n if Z9rn <= 0.04045:\n return Z9rn / 12.92\n return epAf.pow((0.055 + Z9rn) / 1.055, 2.4)", "def CT7l(zfCl):\n \"\"\"sRGB standard for gamma inverse correction.\"\"...
[ "0.78113", "0.7259781", "0.7250231", "0.7224572", "0.6975645", "0.6861211", "0.6766095", "0.67328876", "0.6724876", "0.6666742", "0.6643549", "0.660579", "0.65431714", "0.65370923", "0.6351555", "0.6328644", "0.6316394", "0.6259769", "0.62544197", "0.62523633", "0.62266505", ...
0.0
-1
Derivative of the sigmoid function
def hj5n(WKvO): return m1Hg(WKvO) * (1 - m1Hg(WKvO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NZml(WKvO):\n return WKvO * (1 - WKvO)", "def NZml(WKvO):\n return WKvO * (1.0 - WKvO)", "def BV7B(WKvO):\n return WKvO * (1 - WKvO)", "def BV7B(WKvO):\n return WKvO * (1 - WKvO)", "def NZml(WKvO):\n return m1Hg(WKvO) * (1 - m1Hg(WKvO))", "def NZml(WKvO):\n KCHu = m1Hg(WKvO)\n ox...
[ "0.8781602", "0.87376416", "0.8657338", "0.8657338", "0.8633599", "0.84655267", "0.82481176", "0.8147116", "0.7888459", "0.78799254", "0.7833955", "0.78258616", "0.77695525", "0.7659375", "0.76251775", "0.76158744", "0.76124257", "0.7545348", "0.7468798", "0.74397403", "0.740...
0.0
-1
Test the correct number of columns is read.
def OP0I(ZI14: str) -> None: pmON = BnYY / jD9f jQ3Z = qXKm(pmON.with_suffix(ZI14), 1) assert isinstance(jQ3Z, rLdf.DataFrame) assert len(jQ3Z) == 10 assert len(jQ3Z.columns) == 5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H3jJ(Emd4, zFiD):\n WfCS = zFiD.count(Emd4.DELIMITER) + 1\n aEqx = 7\n return WfCS == aEqx", "def RD8A(YKHO):\n pass", "def h3LG():\n l5Ny = q1HU('\\n A B C\\n 1 2 3\\n 4 5 6\\n 7 8 9 10\\n 11 12 13\\n ')\n with trZe.raises(LdsA) as tTpl:\n RKHY().read(l5Ny)\n ...
[ "0.7548459", "0.7510521", "0.7230019", "0.6842968", "0.6755895", "0.6747935", "0.67173964", "0.6654135", "0.651943", "0.65001696", "0.6424232", "0.63808113", "0.6362551", "0.6346241", "0.61240244", "0.6113952", "0.61134326", "0.60778135", "0.6052639", "0.60307294", "0.6027679...
0.6021572
22
Verify referencing a nonexistent sheet raises an error.
def h4qd(ZI14: str) -> None: pmON = BnYY / Hfbj khdS = 'No_Sheet' with trZe.raises(KeyError) as sRT5: qXKm(pmON.with_suffix(ZI14), khdS) assert sRT5.match(f'There is no sheet named {khdS}')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GxQ0(pmON, OGYo):\n pMBr = rLdf.ExcelFile(pmON)\n if OGYo not in pMBr.sheet_names:\n raise ValueError(\"Invalid sheet name '\" + OGYo + \"'\")", "def XZOz(YKHO):\n YKHO.assertRaises(FiDs, J9y3, YKHO.spreadsheet_key, worksheet_name='foo')", "def vMqh(YKHO):\n if not YKHO.pres_sheetname:\n...
[ "0.7511785", "0.6662586", "0.6643164", "0.63484144", "0.62883484", "0.61039853", "0.5673613", "0.56441784", "0.5633385", "0.55662477", "0.5559478", "0.55555546", "0.5548872", "0.5499348", "0.54844403", "0.54834586", "0.54558265", "0.54556406", "0.54284805", "0.54255193", "0.5...
0.7008097
1
Verify skipping rows works correctly.
def Kszm(ZI14: str) -> None: pmON = BnYY / JRl3 jQ3Z = qXKm(pmON.with_suffix(ZI14), skiprows=2) assert isinstance(jQ3Z, rLdf.DataFrame) assert len(jQ3Z) == 8 assert len(jQ3Z.columns) == 5 assert jQ3Z.columns.tolist() == ['a', 'b', 'c', 'd', 'e']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wxkc(YKHO, rdlD):\n return False", "def ffoi(YKHO, kok_, tyNF):\n pass", "def BTh9(YKHO):\n jNIm = [rdlD for rdlD in ixsc if rdlD['Status'] == R4gN and rdlD['AVI Object'] == '']\n YKHO.assertTrue(len(jNIm) == 0)", "def JR5C(N5Pj, exwG):\n for YRbF in range(exwG):\n next(N5Pj)", "d...
[ "0.78820574", "0.77395386", "0.72424877", "0.67497396", "0.64111507", "0.6337518", "0.62545246", "0.61462045", "0.61319643", "0.6096391", "0.6084752", "0.6058193", "0.60555863", "0.6041144", "0.6038415", "0.6032903", "0.6030748", "0.60189646", "0.60109675", "0.59978294", "0.5...
0.0
-1
get rewards of a given (observations, actions) pair
def xyVK(YKHO, pR3T, xASv): YKHO.reward_dict = {} if len(pR3T.shape) == 1: pR3T = oyIN.expand_dims(pR3T, axis=0) xASv = oyIN.expand_dims(xASv, axis=0) QEsZ = False else: QEsZ = True NTTb = pR3T[:, 24:24 + 3] g6Ml = pR3T[:, 24 + 3:24 + 3 + 3] Qixp = pR3T[:, -3:] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xyVK(YKHO, pR3T, xASv):\n YKHO.reward_dict = {}\n if len(pR3T.shape) == 1:\n pR3T = oyIN.expand_dims(pR3T, axis=0)\n xASv = oyIN.expand_dims(xASv, axis=0)\n QEsZ = False\n else:\n QEsZ = True\n oMLs = pR3T[:, 9].copy()\n BNli = pR3T[:, 2].copy()\n r_iP = pR3T[:, 6]...
[ "0.71153605", "0.69725466", "0.68954384", "0.6867219", "0.6484484", "0.64706373", "0.6452535", "0.64430445", "0.64283854", "0.62590873", "0.62259674", "0.6159445", "0.61560625", "0.6150899", "0.6133165", "0.60717803", "0.6011946", "0.6005865", "0.6001529", "0.5990368", "0.597...
0.715451
0
Test that an empty directory has no contents.
def kuHo(U9hK: pathlib.Path): assert not OLIu.GetFilesInDirectory(U9hK, [])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wSwd(YKHO):\n YKHO.assertFalse(Hy7s.path.exists('/'))", "def IF3j(dir: str) -> bool:\n if tQBm(dir) and len(UoQj(dir)) > 0:\n return False\n return True", "def YEQ7(BWXx):\n return not Hy7s.listdir(BWXx)", "def npuN(AGPF: Path) -> bool:\n vh5_ = next(AGPF.iterdir(), None)\n retur...
[ "0.8070695", "0.7889722", "0.78633535", "0.77820647", "0.77367455", "0.76245844", "0.7536993", "0.7437309", "0.73705584", "0.73276424", "0.723362", "0.7222807", "0.72155523", "0.7202357", "0.70689946", "0.7038981", "0.70136565", "0.69649816", "0.6948838", "0.6948838", "0.6927...
0.7773604
4
Parse ROI information from JSON file into a DataFrame.
def yUDI(ZmAl): sbfr = ZmAl ycBG = sbfr.split('/') ycBG[1] = 'Volumes' sbfr = '/'.join(ycBG) uh0u = Hy7s.listdir(sbfr) CiLu = [YRbF for YRbF in uh0u if 'ophys_experiment' in YRbF] if len(CiLu) > 1: raise Exception('Multiple experiment folders in ' + sbfr) else: uO6t = CiL...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZAQi(NArs):\n i0XC = NArs['path']\n pPIW = Hy7s.path.join(i0XC, NArs['interactions'])\n fZx2().debug(f'Read {NArs['name']} data from {pPIW}')\n nPrm = []\n with open(pPIW) as eHNT:\n for zFiD in eHNT:\n AIu6 = qQXR.loads(zFiD)\n nPrm.append((AIu6['user_id'], AIu6['bu...
[ "0.6530276", "0.6404767", "0.6310999", "0.6280475", "0.622082", "0.6167192", "0.616662", "0.61611384", "0.61324733", "0.60718936", "0.60162157", "0.58918583", "0.5849082", "0.58365905", "0.58346003", "0.58039165", "0.56493443", "0.5648803", "0.56127465", "0.55999476", "0.5594...
0.51819503
57
Draw a filled ellipse.
def B_hp(YKHO, nJ9F, nxyw, jzdc, Fg_i, qfpW): pHXX = jzdc * jzdc ftz7 = Fg_i * Fg_i uWEh = pHXX + pHXX JWeW = ftz7 + ftz7 WKvO = 0 LVAh = Fg_i Xlvp = 0 nfKA = uWEh * LVAh YKHO.line(nJ9F, nxyw - LVAh, nJ9F, nxyw + LVAh, qfpW) XP5J = round(ftz7 - pHXX * Fg_i + 0.25 * pHXX) whil...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PXEh(YKHO, d7pR, LGJQ='', yhy4=''):\n pass", "def ZFuV(ROpF, JPqE, fXzF, qfpW, YylR=0):\n if len(qfpW) == 4:\n ShTw.glColor4ub(ROpF.color[0], ROpF.color[1], ROpF.color[2], ROpF.color[3])\n ShTw.glEnable(ShTw.GL_BLEND)\n ShTw.glBlendFunc(ShTw.GL_SRC_ALPHA, ShTw.GL_ONE_MINUS_SRC_ALPH...
[ "0.790591", "0.76988083", "0.7651773", "0.75840515", "0.74857664", "0.74806356", "0.74699205", "0.73700464", "0.7353409", "0.7340359", "0.7206906", "0.7194186", "0.7190864", "0.71835893", "0.71316063", "0.71035326", "0.7037746", "0.69425845", "0.6936651", "0.69103634", "0.690...
0.6966443
17
Test the UpdateCommand with document updates.
def IsIF(YKHO): P6bq = mvm0.UpdateCommand(exRa, commit_within=60000) YKHO.assertEqual(P6bq.host, 'http://localhost:8983') YKHO.assertEqual(P6bq._handler, '/solr/update/json?wt=json&commitWithin=60000') jzdc = ekfL(co1K[0][0], co1K[0][1], co1K[0][2]) P6bq.add_documents(jzdc) Fg_i = dict() for...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IsIF(YKHO):\n pass", "def IsIF(YKHO):\n pass", "def IsIF(YKHO):\n pass", "def Uj4G(YKHO):\n P6bq = mvm0.UpdateCommand(exRa)\n Q5mJ = [{'a': 1}, {'b': 2}]\n P6bq.add_documents(Q5mJ)\n YKHO.assertEqual(2, len(P6bq._commands))\n YKHO.assertEqual(P6bq.body, '{\"add\": {\"doc\": {\"a\"...
[ "0.7484829", "0.7484829", "0.7484829", "0.73511684", "0.7146475", "0.7081617", "0.6998961", "0.6998518", "0.69678175", "0.6921215", "0.6908419", "0.6876692", "0.68547446", "0.682291", "0.6794872", "0.67808986", "0.6764714", "0.67617047", "0.6682451", "0.66526103", "0.66376", ...
0.7977845
0
Test the UpdateCommand with a document boost.
def V9eX(YKHO): P6bq = mvm0.UpdateCommand(exRa) P6bq.add_documents({'a': 1}, boost=2.0) YKHO.assertEqual(P6bq.body, '{"add": {"doc": {"a": 1}, "boost": 2.0}}')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IsIF(YKHO):\n P6bq = mvm0.UpdateCommand(exRa, commit_within=60000)\n YKHO.assertEqual(P6bq.host, 'http://localhost:8983')\n YKHO.assertEqual(P6bq._handler, '/solr/update/json?wt=json&commitWithin=60000')\n jzdc = ekfL(co1K[0][0], co1K[0][1], co1K[0][2])\n P6bq.add_documents(jzdc)\n Fg_i = dic...
[ "0.7547341", "0.7468933", "0.71595484", "0.71595484", "0.71595484", "0.6930854", "0.69129115", "0.6868889", "0.68014556", "0.67611605", "0.6699331", "0.66745955", "0.6582789", "0.6579156", "0.65679616", "0.6551599", "0.6549169", "0.653828", "0.6489231", "0.6479501", "0.646386...
0.7962098
0
Test the UpdateCommand with a document containing a field boost.
def gEv1(YKHO): P6bq = mvm0.UpdateCommand(exRa) P6bq.add_documents({'a': {'value': 'f', 'boost': 2.0}}) YKHO.assertEqual(P6bq.body, '{"add": {"doc": {"a": {"boost": 2.0, "value": "f"}}}}')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V9eX(YKHO):\n P6bq = mvm0.UpdateCommand(exRa)\n P6bq.add_documents({'a': 1}, boost=2.0)\n YKHO.assertEqual(P6bq.body, '{\"add\": {\"doc\": {\"a\": 1}, \"boost\": 2.0}}')", "def IsIF(YKHO):\n G6QD = SZ_z.DocumentFields({'foo@': 'bar'})\n YKHO.assertEquals('bar', G6QD['foo'])\n G6QD.update({'...
[ "0.7730811", "0.7377141", "0.6674046", "0.64579296", "0.63746595", "0.6338417", "0.6287914", "0.62726045", "0.626155", "0.6224084", "0.6224084", "0.6224084", "0.60669535", "0.59751767", "0.594101", "0.59196365", "0.59026986", "0.58855736", "0.58724934", "0.58679897", "0.58388...
0.82783
0
Test the UpdateCommand with deletes.
def _4cr(YKHO): P6bq = mvm0.UpdateCommand(exRa) P6bq.add_delete_by_id(0) P6bq.add_delete_by_id([1, 2]) YKHO.assertTrue(len(P6bq._commands), 3) for YRbF, PTpj in enumerate(P6bq._commands): YKHO.assertEquals(PTpj, ('delete', {'id': str(YRbF)})) YKHO.assertEqual(P6bq.body, '{"delete": {"id"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uLcu(YKHO):\n pass", "def _4cr(YKHO):\n pass", "def a8ej(YKHO):\n Qrt_ = kxTZ()\n hKn5 = 1\n rcIZ.objects.create(partition=Qrt_, cluster=hKn5)\n YEnM = rcIZ.objects(partition=Qrt_, cluster=hKn5).first()\n YKHO.assertFalse({G1Hx: Ty9i for G1Hx, Ty9i in YEnM._values.items() if Ty9i.delet...
[ "0.72760856", "0.71389437", "0.7051313", "0.7049892", "0.6945619", "0.686101", "0.66928357", "0.6651046", "0.6611115", "0.65386665", "0.6507041", "0.64788806", "0.64573306", "0.6439544", "0.6439544", "0.6439544", "0.641003", "0.6391396", "0.6388633", "0.63683367", "0.6359489"...
0.79426324
0
Sets the data of this PacketProtocolCustom.
def nPrm(YKHO, nPrm): YKHO._data = nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gewE(YKHO, nPrm):\n YKHO.data = BlNT.pack('!I', nPrm)", "def gewE(YKHO, nPrm):\n YKHO.data = BlNT.pack('!I', nPrm)", "def gewE(YKHO, nPrm):\n YKHO.data = BlNT.pack('!Q', nPrm)", "def gewE(YKHO, nPrm):\n YKHO.data = BlNT.pack('!Q', nPrm)", "def gewE(YKHO, nPrm):\n YKHO.data = BlNT.pack('!...
[ "0.7701528", "0.7631352", "0.75758517", "0.75758517", "0.7501037", "0.74370784", "0.74298215", "0.73219013", "0.7301521", "0.7301521", "0.7301521", "0.7297043", "0.72495896", "0.7222252", "0.72127455", "0.72127455", "0.7176347", "0.71428376", "0.71428376", "0.71428376", "0.71...
0.72417575
14
Sets the layer of this PacketProtocolCustom.
def gEmA(YKHO, gEmA): YKHO._layer = gEmA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mwYf(YKHO, *qIxc):\n return EdJ_.XCAFDoc_LayerTool_SetLayer(YKHO, *qIxc)", "def _tFb(YKHO, gEmA):\n if gEmA == YKHO._layer:\n return False\n YKHO._layer = gEmA\n YKHO.syncLayerData()\n return True", "def FNYZ(YKHO, gEmA):\n YKHO.dock_layer = gEmA\n return YKHO", "def Wc70(YKHO...
[ "0.7249842", "0.62691164", "0.61705804", "0.60661596", "0.60137343", "0.5948118", "0.5897421", "0.58466697", "0.58110607", "0.579545", "0.5744106", "0.5734302", "0.57172185", "0.56752324", "0.56675243", "0.5549862", "0.55450284", "0.54290193", "0.5406521", "0.5395042", "0.539...
0.71172506
1
Sets the protocol_id of this PacketProtocolCustom.
def q0dR(YKHO, q0dR): YKHO._protocol_id = q0dR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q0dR(YKHO, q0dR):\n YKHO._protocol_id = q0dR", "def iquo(YKHO, iquo):\n YKHO._protocol = iquo", "def iquo(YKHO, iquo):\n YKHO._protocol = iquo", "def iquo(YKHO, iquo):\n YKHO._protocol = iquo", "def iquo(YKHO, iquo):\n YKHO._protocol = iquo", "def wxai(YKHO, wxai):\n YKHO._protocol_...
[ "0.8205056", "0.64274067", "0.64274067", "0.64274067", "0.64274067", "0.5843362", "0.5821283", "0.57265466", "0.5715602", "0.5714486", "0.5685512", "0.54577667", "0.5388335", "0.53577137", "0.52775705", "0.52542603", "0.5133635", "0.51073205", "0.5089922", "0.5065602", "0.506...
0.8175949
1
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, WrlY): 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.80885184", "0.80885184", "0.805514", "0.7983044", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", ...
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
Prepare app client for testing
def x0hE(): jvbe.APP.config['TESTING'] = True udfG = jvbe.APP.test_client() yield udfG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n YKHO.app = P4t4\n YKHO.client = YKHO.app.test_client", "def FCbF(YKHO):\n YKHO.app = LUif()\n YKHO.client = YKHO.app.test_client", "def gTqx():\n P4t4 = LUif('test')\n x0hE = P4t4.test_client()\n OaeV = P4t4.app_context()\n OaeV.push()\n yield x0hE\n OaeV.pop()",...
[ "0.7755218", "0.7698346", "0.7594606", "0.75915396", "0.7507117", "0.7507117", "0.74293315", "0.74293315", "0.74293315", "0.74293315", "0.74293315", "0.74293315", "0.74293315", "0.74293315", "0.74293315", "0.74250424", "0.74239826", "0.7410211", "0.74010044", "0.736623", "0.7...
0.0
-1
Given a list of `` tags, return a mapping of option value to label. Empty options or options with value of "0" are excluded.
def U3NF(xAU6: List[bs4.element.Tag]) -> U8Lr: J8oL = U8Lr() for MTKo in xAU6: BWXx, UXqs = (MTKo['value'], MTKo.string) if not BWXx or BWXx == '0' or (not UXqs): continue J8oL[BWXx] = UXqs return J8oL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JTK9(JtgR):\n gzOe = []\n for H5ew in JtgR.keys():\n if H5ew[1] not in gzOe:\n gzOe.append(H5ew[1])\n return gzOe", "def lz2s(YKHO, bZ5C):\n return () if bZ5C is None else list(U8Lr.fromkeys([UXqs for OXAZ in bZ5C for UXqs, naF9 in OXAZ if naF9 != 0]))", "def Oyla(dJ1p):\n ...
[ "0.67864126", "0.5671242", "0.55979216", "0.55271745", "0.5457819", "0.5426272", "0.53949904", "0.53090864", "0.5267378", "0.5231554", "0.5147757", "0.5147757", "0.5147757", "0.5147757", "0.5147757", "0.5147757", "0.5147757", "0.5147757", "0.5147757", "0.5147757", "0.5147757"...
0.75031984
0
Closes a handler previously opened by _setup_file_logger() and removes the file handler from self.logger. This should be called when the file logger is done with to avoid leaking file handles typically this should be called from stopping().
def OtSP(YKHO): if YKHO._file_log_handler is not None: YKHO._file_log_handler.flush() YKHO._file_log_handler.close() YKHO.logger.removeHandler(YKHO._file_log_handler) YKHO._file_log_handler = None YKHO.logger.propagate = True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O9ho(YKHO):\n if YKHO.log is not None:\n YKHO.log('Terminating logger...')\n if YKHO.echo:\n YKHO.logger.removeHandler(YKHO.con_hdl)\n if YKHO.save:\n YKHO.logger.removeHandler(YKHO.file_hdl)", "def DDI8(YKHO):\n if not YKHO.__closed:\n YKHO.counters = {'error': 0, 'wa...
[ "0.7947553", "0.7593944", "0.7487987", "0.74408555", "0.72905463", "0.72905463", "0.72028244", "0.7122077", "0.69937766", "0.698249", "0.69302964", "0.6845436", "0.6771457", "0.6722495", "0.6677456", "0.66305304", "0.65722775", "0.653553", "0.6532525", "0.6522841", "0.6508202...
0.8713955
0
Returns a model properties as a dict. This works even when 'value of dict' is 'list of models'.
def MNRr(C3ST): Aofo = {} for hkS8, bGrB in jKi7.iteritems(C3ST.swagger_types): BWXx = getattr(C3ST, hkS8) Aofo[hkS8] = IjFu(BWXx) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MNRr(YKHO):\n Aofo = {}\n for hkS8, bGrB in jKi7.iteritems(YKHO.swagger_types):\n BWXx = getattr(YKHO, hkS8)\n if isinstance(BWXx, list):\n Aofo[hkS8] = list(map(lambda WKvO: WKvO.to_dict() if hasattr(WKvO, 'to_dict') else WKvO, BWXx))\n elif hasattr(BWXx, 'to_dict'):\n ...
[ "0.65872693", "0.655609", "0.65345556", "0.6409219", "0.6356288", "0.63508886", "0.6344984", "0.62736106", "0.6225622", "0.62240905", "0.62239456", "0.6171471", "0.61280864", "0.6112911", "0.6094268", "0.60897684", "0.60897684", "0.60854423", "0.6072491", "0.6053045", "0.6050...
0.6335338
7
Create superuser from using create_user function
def Zp54(YKHO, NtEF, D3lj, jTXt=None): if jTXt is None: raise ValueError('Password should not be none') CBIr = YKHO.create_user(NtEF, D3lj, jTXt) CBIr.is_superuser = True CBIr.is_staff = True CBIr.save() return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zp54(YKHO, NtEF, D3lj, jTXt):\n print('creating super user....')\n CBIr = YKHO.create_user(username=NtEF, password=jTXt, email=D3lj, commit=False)\n CBIr.is_staff = True\n CBIr.is_superuser = True\n CBIr.save(using=YKHO._db)\n return CBIr", "def lYUQ(YKHO):\n return mv1M.objects.create_u...
[ "0.802735", "0.78833205", "0.7882388", "0.78682846", "0.78518456", "0.78380865", "0.78359604", "0.7834033", "0.7829922", "0.78272134", "0.7801801", "0.7777548", "0.7776447", "0.77545094", "0.7752551", "0.77426577", "0.77347606", "0.770648", "0.7688568", "0.76863813", "0.76822...
0.7456637
70
R"""Return the current vector's location.
def XtSp(YKHO): return YKHO._pos
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TwAD(YKHO) -> fexq:\n pass", "def HOyC(YKHO):\n return YKHO.__current_pos", "def iArr(YKHO):\n return YKHO.__vector", "def Ty9i(YKHO):\n return DpX9(YKHO.position)", "def XXPW(YKHO):\n return YKHO.dest - YKHO.orig", "def nrOS(YKHO):\n return YKHO._vector", "def R4Lq(YKHO):\n re...
[ "0.7284569", "0.7140243", "0.70194733", "0.69774306", "0.6846687", "0.68167144", "0.68099767", "0.6779207", "0.67299855", "0.67299855", "0.67162836", "0.67160624", "0.6697706", "0.6690905", "0.6664221", "0.66459155", "0.6620341", "0.660673", "0.65663815", "0.65663815", "0.654...
0.66898906
14
Initialize the app and its test client and our test database
def FCbF(YKHO): YKHO.app = LUif(config_name='testing') YKHO.client = YKHO.app.test_client YKHO.bucketlist = {'name': 'Go to Grand canyon for camping'} with YKHO.app.app_context(): NCls.session.close() NCls.drop_all() NCls.create_all()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n YKHO.app = P4t4.test_client()\n NCls.init_db()", "def FCbF(YKHO):\n YKHO.db_fd, P4t4.app.config['DATABASE'] = gbPf.mkstemp()\n P4t4.app.config['TESTING'] = True\n YKHO.app = P4t4.app.test_client()\n P4t4.init_db()", "def FCbF(YKHO):\n YKHO.app = nNXP.app\n YKHO.client ...
[ "0.85438246", "0.8506064", "0.83208156", "0.83074", "0.8216861", "0.8214716", "0.82047653", "0.81558657", "0.81520504", "0.8151072", "0.81019485", "0.8092824", "0.8078673", "0.8074432", "0.8058185", "0.805813", "0.8049317", "0.8035526", "0.8026509", "0.80195194", "0.80178994"...
0.80824775
12
Check if hash of given password equal to hash of password in database
def EvfH(YKHO, jTXt: str) -> bool: VkRW = HBct.new('md5', bytes(jTXt, encoding='utf8')) return VkRW.hexdigest() == YKHO.hashed_password
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TGbE(YKHO, jTXt):\n return B8ni.check_password_hash(YKHO.password, jTXt)", "def sNjs(YKHO, jTXt):\n return z8jj(YKHO.password_hash, jTXt)", "def EvfH(YKHO, NtEF, jTXt):\n w2B8 = YKHO.get_db()\n with w2B8:\n Z9rn = w2B8.cursor()\n Pe9W = 'select password from gameuser where usernam...
[ "0.79005927", "0.7732805", "0.77067125", "0.7677182", "0.76729864", "0.7659678", "0.76483893", "0.763098", "0.76299393", "0.76072484", "0.75598925", "0.7517769", "0.75168246", "0.74923635", "0.74923635", "0.7491314", "0.74741554", "0.7461201", "0.74411345", "0.7440085", "0.74...
0.7322207
35
Returns the signature of this string. Signature is a string that contains all of the letters in order.
def aadv(KCHu): a1PO = list(KCHu) eHNT = [] YRbF, r845 = 0 for YRbF in range(len(KCHu)): for r845 in range(len(KCHu) - 1): if YRbF != r845: a1PO[YRbF], a1PO[r845] = (a1PO[r845], a1PO[YRbF]) epBp = ''.join(a1PO) eHNT.append(epBp) ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vvia(YKHO):\n l5Ny = YKHO._get_menu_item_text('Edit->Key Signature')\n return ZbWC.search('\\\\[([A-G].?)\\\\]$', l5Ny).group(1)", "def whL4(YKHO):\n return ' '.join(YKHO.segments[-1].unixtext.replace(u'\\n', ' ').strip().split())", "def Chjj(YKHO, QClT):\n QClT = WR89.b64encode(QClT)\n aadv...
[ "0.73466843", "0.7298716", "0.7100843", "0.6921928", "0.6882215", "0.68380034", "0.68380034", "0.68380034", "0.67676044", "0.6638596", "0.64747393", "0.64411926", "0.6437717", "0.6435406", "0.6415247", "0.64067405", "0.64067405", "0.63900995", "0.63824594", "0.6318848", "0.62...
0.6213675
22
Post a message in the queue that a running job be stopped.
def sXDy(YKHO, rjee): YKHO.send(uRrN.CANCEL_JOB, JAXR(rjee))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JCyR(KAOR):\n if KAOR.state == wHqZ:\n return\n g5js.objects.add(function='terminate', instance=KAOR)", "def tF25(YKHO):\n if len(YKHO.__jobQueue) > 0:\n _FtE.stopJobThreadInstance(YKHO.caller, YKHO.__jobQueue[0].stopRun)", "def JCyR(YKHO, lo9Y: str=''):\n YKHO.queue.put(HACR(lo9Y...
[ "0.7123397", "0.66809046", "0.63596714", "0.6344955", "0.6309239", "0.62416476", "0.62355953", "0.61057854", "0.61022836", "0.6088004", "0.60868293", "0.6073603", "0.6000272", "0.5996334", "0.59604996", "0.5932531", "0.59168714", "0.58964777", "0.5895674", "0.58899647", "0.58...
0.0
-1
Returns True if Stack is empty, False otherwise
def A4KR(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return len(YKHO.the_stack) == 0", "def FBfn(YKHO):\n return len(YKHO.stack) == 0", "def lsmZ(YKHO) -> bool:\n if len(YKHO.stack) == 0:\n return True\n else:\n return False", "def lsmZ(YKHO):\n return len(YKHO.stack) == 0", "def lsmZ(YKHO):\n return YKHO.sta...
[ "0.9228193", "0.91457397", "0.914495", "0.90911335", "0.90871376", "0.90709865", "0.90709865", "0.9068022", "0.90559614", "0.89804876", "0.8931659", "0.8923932", "0.8890956", "0.8882842", "0.88611394", "0.88598084", "0.8855795", "0.8855795", "0.88425356", "0.88246936", "0.876...
0.0
-1
Adds an item to the top of stack
def _jXH(YKHO, ZfUD): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _jXH(YKHO, ZfUD):\n YKHO.stack.insert(0, ZfUD)", "def _jXH(YKHO, ZfUD):\n YKHO.stack.append(ZfUD)", "def _jXH(YKHO, ZfUD):\n YKHO.stack.append(ZfUD)", "def _jXH(YKHO, ZfUD):\n YKHO.top = [ZfUD] + YKHO.top", "def _jXH(YKHO, ZfUD):\n super().add_item_to_front(ZfUD)", "def _jXH(E5BI, ZfUD...
[ "0.8586365", "0.8252233", "0.8252233", "0.82111686", "0.8030312", "0.802139", "0.79880327", "0.7937661", "0.787379", "0.7782695", "0.77416927", "0.770514", "0.76447195", "0.76184803", "0.7615128", "0.758482", "0.7555666", "0.74846154", "0.7455913", "0.7413334", "0.73988414", ...
0.7196093
28
Removes the item from the top of stack. Returns the removed item
def BEuN(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BEuN(YKHO):\n try:\n if YKHO.size() > 0:\n tlxW = YKHO.top()\n YKHO.items.pop()\n return tlxW\n else:\n raise IndexError('Cannot pop item, stack is empty.')\n except IndexError as err:\n print(XObx)\n raise", "def BEuN(YKHO):\n ...
[ "0.8351878", "0.8230783", "0.8172708", "0.80849135", "0.7934138", "0.78741467", "0.7828423", "0.77674854", "0.77556026", "0.773075", "0.77214825", "0.7717838", "0.76995176", "0.7689211", "0.76874024", "0.76698285", "0.7630657", "0.75891936", "0.7581609", "0.7581141", "0.75511...
0.0
-1
Returns the top item in the stack, but doesn't remove it
def T7C_(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BEuN(E5BI):\n ZfUD = tlxW(E5BI)\n E5BI.top = E5BI.top.next\n E5BI.size = E5BI.size - 1\n return ZfUD", "def BEuN(YKHO):\n try:\n if YKHO.size() > 0:\n tlxW = YKHO.top()\n YKHO.items.pop()\n return tlxW\n else:\n raise IndexError('Cannot...
[ "0.8242329", "0.8210143", "0.8179077", "0.80861723", "0.80703646", "0.7991938", "0.791445", "0.77863723", "0.77537775", "0.7731241", "0.76857805", "0.76725554", "0.76701343", "0.76437575", "0.76392555", "0.76314986", "0.76280785", "0.7625138", "0.7615717", "0.7612027", "0.760...
0.0
-1
Reaction rate used in the ODE solver. _Parameters
def mVUw(YKHO, a1PO, LVAh): G1Hx = YKHO._calc_k(LVAh[1]) eUWA = YKHO.parameters.y0 - LVAh[0] return [G1Hx * eUWA if eUWA > 1e-06 else 0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zPCH(YKHO):\n raise NotImplementedError('Subclass must implement this method')", "def gBJE(YKHO):\n hkxX = YKHO._interpolate_table('x', derivative_order=1)\n return hkxX", "def CYbp(YKHO, **qIxc):\n for Mzf9 in qIxc:\n YKHO.rateCoeffMeta[Mzf9] = qIxc[Mzf9]\n e5kH = YKHO.rateCoeffMeta\...
[ "0.63901", "0.6104154", "0.60939217", "0.59073734", "0.58363235", "0.5816048", "0.58015335", "0.57757795", "0.57664496", "0.576328", "0.57556295", "0.57331765", "0.5725727", "0.5704105", "0.5691218", "0.5672164", "0.5665127", "0.5629107", "0.56183726", "0.56106555", "0.560060...
0.0
-1
Reaction rate used in ODE solver.
def mVUw(YKHO, a1PO, LVAh): LEev, Xyq7 = YKHO._k(LVAh[-1]) if LVAh[1] > 1e-06: Ms28 = [(YKHO.parameters.y1 * LEev + YKHO.parameters.y2 * Xyq7) * LVAh[1], -(LEev + Xyq7) * LVAh[1]] else: Ms28 = [0, 0] return Ms28
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zPCH(YKHO):\n raise NotImplementedError('Subclass must implement this method')", "def NhvH(Zxma):\n TRVV = 0\n for tj0V in Zxma.reactions:\n a1PO = tj0V.rate(Zxma.species)\n TRVV += a1PO\n return TRVV", "def mX8I(YKHO) -> int:\n if YKHO._total_stake.get() + YKHO._daily_reward.g...
[ "0.72591424", "0.6518196", "0.6314829", "0.62603986", "0.6247805", "0.62314045", "0.6211295", "0.6148923", "0.60537946", "0.6022725", "0.60090417", "0.5988731", "0.5929019", "0.5919248", "0.5853174", "0.58269024", "0.57911855", "0.5787843", "0.57872707", "0.5778521", "0.57536...
0.0
-1
Calculate activation energies for the quadrature points.
def TrwH(YKHO): return YKHO.parameters.E0 + YKHO.x * reeg * YKHO.parameters.sigma * YKHO.mt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xx6e(YKHO):\n WKvO = 0\n mC4V = YKHO.in_edges\n for D70y in mC4V:\n WKvO += D70y.source.activation * D70y.weight\n YKHO.activation = 1 / (1 + kLQb(-WKvO))", "def rhHM(YKHO):\n for hG4W in range(YKHO.nc):\n YKHO.u[hG4W].getValues(YKHO.q['v', hG4W], YKHO.q['u', hG4W])\n if Y...
[ "0.63615316", "0.59211767", "0.58977365", "0.57974905", "0.5753166", "0.5704527", "0.56983346", "0.5637251", "0.56114376", "0.5597304", "0.559378", "0.5584039", "0.5583005", "0.548597", "0.54798394", "0.54694116", "0.54605067", "0.54565823", "0.54556644", "0.54495233", "0.544...
0.0
-1
Convert a MsgSpec object model to canonical string form, parse that to make a clone, and verify that the two are equal.
def rWXz(YKHO, kUBT): tn_z = str(kUBT.__repr__()) print('\n### roundTrip: SPEC IN CANONICAL FORM:\n' + tn_z) print('### END SPEC IN CANONICAL FORM #######') KclK = Mu1k(kJm3(tn_z)) Zcki = KclK.parse() YKHO.assertIsNone(Zcki.parent) YKHO.assertIsNotNone(Zcki.reg) v_rm = Zcki.__repr__() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def co8a(YKHO, asBq):\n oAiD = asBq.to_messagepack()\n mKUX = UnlI.from_messagepack(oAiD)\n assert asBq == mKUX\n assert mKUX.n_conformers == asBq.n_conformers\n assert oyIN.allclose(mKUX.conformers[0], asBq.conformers[0])", "def ACqu(YKHO):\n nPrm = kJm3(Lw42)\n KclK = Mu1k(nPrm)\n A7mC ...
[ "0.6049694", "0.58952343", "0.57759994", "0.5662845", "0.5632205", "0.56114113", "0.5601377", "0.5583637", "0.55373234", "0.55373234", "0.54913116", "0.54425114", "0.54251564", "0.5418353", "0.54155433", "0.54023933", "0.5300142", "0.52732176", "0.5242905", "0.52406794", "0.5...
0.71208006
0
Returns Type of Event.
def Ah2N(tvqc): kUBT = bkLk.search(tvqc) if kUBT: return kUBT.group(0).split(' ')[1].rstrip('\r') else: return None return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FRul(YKHO):\n return YKHO.event_type", "def aihU(tvqc):\n return tvqc.type()", "def aihU(tvqc):\n return tvqc.type()", "def hEKL(YKHO) -> int:\n return YKHO.data['args']['eventType']", "def type(YKHO) -> str:\n return YKHO._event.get('type')", "def hEKL(YKHO) -> str:\n try:\n ...
[ "0.9127099", "0.8854654", "0.8854654", "0.85936844", "0.83761233", "0.81655216", "0.80587494", "0.7974002", "0.7809638", "0.7705801", "0.7584661", "0.74313736", "0.7268725", "0.69929963", "0.6920035", "0.6919956", "0.6908614", "0.68834376", "0.68823326", "0.6785379", "0.67504...
0.7201132
13
Return a string timestamp.
def E3oo(): return qcWV.now().strftime('%Y-%m-%d_%H-%M-%S')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X2x9():\n return str(int(ITS7.time()))", "def E3oo():\n return qcWV.now().strftime('%Y%m%dT%H%M%S')", "def ItX3():\n return ITS7.strftime('%Y-%m-%d %H:%M:%S')", "def saqZ():\n HVay = ITS7.time()\n _PYT = repr(HVay).split('.')[1]\n return ITS7.strftime('%Y-%m-%d-%H-%M-%S-{}'.format(_PYT)...
[ "0.86054283", "0.85580486", "0.852054", "0.8364073", "0.83260745", "0.8289571", "0.8282118", "0.8281473", "0.8239429", "0.8191319", "0.81818944", "0.8102944", "0.8100112", "0.8100112", "0.8080835", "0.80527234", "0.8046272", "0.80205953", "0.79885036", "0.79444164", "0.793979...
0.80653024
15
Load parameters from yaml file and return as dictionary.
def JSLV(Ux0P): with open(Ux0P, 'r') as eHNT: NArs = eJb6.safe_load(eHNT) return NArs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PXxr(YKHO):\n with open(uZfp / YKHO.name_default_params, 'r') as eHNT:\n return eJb6.load(eHNT, Loader=eJb6.FullLoader)", "def LBhv(lqQH):\n with open(lqQH) as SGPW:\n GPtr = eJb6.safe_load(SGPW)\n return GPtr", "def KJ8w(YKHO) -> HRJ_.Dict[str, dict]:\n with open(YKHO._file, 'r')...
[ "0.7596178", "0.7330409", "0.73257834", "0.7303586", "0.71755385", "0.71752834", "0.7158803", "0.6984106", "0.6980693", "0.6978515", "0.6975", "0.6964064", "0.69475436", "0.6925834", "0.6919343", "0.69125134", "0.69010776", "0.6888063", "0.685124", "0.6842379", "0.68278265", ...
0.79300314
0
The set of arguments for constructing a VpcIpamPool resource.
def FIMM(Ro_8, *, G0Vx: pulumi.Input[str], c2OH: pulumi.Input[str], o9ap: Optional[pulumi.Input[int]]=None, TQnE: Optional[pulumi.Input[int]]=None, EPPn: Optional[pulumi.Input[int]]=None, vh8X: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]=None, LJeY: Optional[pulumi.Input[bool]]=None, A0ZM: Optional[pulumi.I...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(Ro_8, kFeU: str, qIxc: VpcIpamPoolArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...", "def FIMM(Ro_8, kFeU: str, VKhi: Optional[pulumi.ResourceOptions]=None, vrBe: Optional[pulumi.Input[str]]=None, D8Ke: Optional[pulumi.Input[str]]=None, r6DL=None):\n ...", "def FIMM(Ro_8, kFeU: str, qIx...
[ "0.80700225", "0.64764947", "0.6298883", "0.6237702", "0.6171007", "0.6054522", "0.60104066", "0.59792495", "0.5948947", "0.5940898", "0.5932286", "0.59278244", "0.59104854", "0.5905403", "0.58604604", "0.58576417", "0.58528435", "0.5822844", "0.5816407", "0.5778437", "0.5777...
0.62087315
4
Tags that are required for resources that use CIDRs from this IPAM pool. Resources that do not have these tags will not be allowed to allocate space from the pool. If the resources have their tags changed after they have allocated space or if the allocation tagging requirements are changed on the pool, the resource may...
def vh8X(YKHO) -> h8nf[qe4Y.Input[GySg[str, qe4Y.Input[str]]]]: return qe4Y.get(YKHO, 'allocation_resource_tags')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vh8X(YKHO) -> qe4Y.Output[h8nf[GySg[str, str]]]:\n return qe4Y.get(YKHO, 'allocation_resource_tags')", "def vYfc(Q064=None, A_Eo=None):\n pass", "def vYfc(Q064=None, A_Eo=None):\n pass", "def vYfc(Q064=None, A_Eo=None):\n pass", "def vYfc(I36E=None, dJ1p=None):\n pass", "def JnCc(YKHO)...
[ "0.66053426", "0.57529235", "0.57529235", "0.57529235", "0.567334", "0.56282586", "0.5413539", "0.5404851", "0.5402001", "0.5298596", "0.52662206", "0.5255876", "0.5244761", "0.52363896", "0.5194843", "0.5182637", "0.51411676", "0.5125815", "0.50702894", "0.5055361", "0.50513...
0.68771523
1
A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the providerlevel.
def dJ1p(YKHO) -> h8nf[qe4Y.Input[GySg[str, qe4Y.Input[str]]]]: return qe4Y.get(YKHO, 'tags')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) ->...
[ "0.64152515", "0.64152515", "0.64115673", "0.64115673", "0.64115673", "0.64115673", "0.62744796", "0.6199352", "0.61412764", "0.60976297", "0.60839856", "0.60669816", "0.5974499", "0.5956728", "0.58630633", "0.5843171", "0.5843171", "0.5843171", "0.5843171", "0.5843171", "0.5...
0.56854844
60
Input properties used for looking up and filtering VpcIpamPool resources.
def FIMM(Ro_8, *, G0Vx: Optional[pulumi.Input[str]]=None, o9ap: Optional[pulumi.Input[int]]=None, TQnE: Optional[pulumi.Input[int]]=None, EPPn: Optional[pulumi.Input[int]]=None, vh8X: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]=None, hMqs: Optional[pulumi.Input[str]]=None, LJeY: Optional[pulumi.Input[bool]]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(Ro_8, kFeU: str, qIxc: VpcIpamPoolArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...", "def uJlt(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['VirtualNetworksPropertiesVipPoolArgs']]]]:\n return qe4Y.get(YKHO, 'vip_pool')", "def y485(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['VirtualNetworksPr...
[ "0.6695027", "0.6543157", "0.6374796", "0.63023096", "0.5693747", "0.5622314", "0.5589084", "0.5557529", "0.5505401", "0.54906684", "0.5475523", "0.54518855", "0.54329747", "0.531895", "0.530619", "0.52431965", "0.5194702", "0.51772577", "0.51683724", "0.5160584", "0.515227",...
0.55612576
7
Tags that are required for resources that use CIDRs from this IPAM pool. Resources that do not have these tags will not be allowed to allocate space from the pool. If the resources have their tags changed after they have allocated space or if the allocation tagging requirements are changed on the pool, the resource may...
def vh8X(YKHO) -> h8nf[qe4Y.Input[GySg[str, qe4Y.Input[str]]]]: return qe4Y.get(YKHO, 'allocation_resource_tags')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vh8X(YKHO) -> qe4Y.Output[h8nf[GySg[str, str]]]:\n return qe4Y.get(YKHO, 'allocation_resource_tags')", "def vYfc(Q064=None, A_Eo=None):\n pass", "def vYfc(Q064=None, A_Eo=None):\n pass", "def vYfc(Q064=None, A_Eo=None):\n pass", "def vYfc(I36E=None, dJ1p=None):\n pass", "def JnCc(YKHO)...
[ "0.66053426", "0.57529235", "0.57529235", "0.57529235", "0.567334", "0.56282586", "0.5413539", "0.5404851", "0.5402001", "0.5298596", "0.52662206", "0.5255876", "0.5244761", "0.52363896", "0.5194843", "0.5182637", "0.51411676", "0.5125815", "0.50702894", "0.5055361", "0.50513...
0.68771523
0
Amazon Resource Name (ARN) of IPAM
def hMqs(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EszR(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(Y...
[ "0.6671946", "0.66577", "0.66577", "0.66577", "0.66577", "0.66577", "0.66473585", "0.66473585", "0.66473585", "0.66473585", "0.66473585", "0.66473585", "0.66473585", "0.66473585", "0.66473585", "0.66473585", "0.66473585", "0.66473585", "0.66473585", "0.66473585", "0.66473585"...
0.6278986
50
A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the providerlevel.
def dJ1p(YKHO) -> h8nf[qe4Y.Input[GySg[str, qe4Y.Input[str]]]]: return qe4Y.get(YKHO, 'tags')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) ->...
[ "0.64176613", "0.64176613", "0.6413839", "0.6413839", "0.6413839", "0.6413839", "0.627648", "0.62006116", "0.6143012", "0.60981286", "0.6086032", "0.60680825", "0.5972209", "0.5959422", "0.5864515", "0.58448154", "0.58448154", "0.58448154", "0.58448154", "0.58448154", "0.5844...
0.5687071
59
A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
def TQje(YKHO) -> h8nf[qe4Y.Input[GySg[str, qe4Y.Input[str]]]]: return qe4Y.get(YKHO, 'tags_all')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) ->...
[ "0.7443474", "0.7443474", "0.7437703", "0.7437703", "0.7437703", "0.7437703", "0.71596783", "0.7096959", "0.7082072", "0.70575476", "0.693102", "0.69174385", "0.68244475", "0.6797153", "0.6753355", "0.67019445", "0.66311526", "0.66311526", "0.66311526", "0.66311526", "0.66311...
0.0
-1
Tags that are required for resources that use CIDRs from this IPAM pool. Resources that do not have these tags will not be allowed to allocate space from the pool. If the resources have their tags changed after they have allocated space or if the allocation tagging requirements are changed on the pool, the resource may...
def vh8X(YKHO) -> qe4Y.Output[h8nf[GySg[str, str]]]: return qe4Y.get(YKHO, 'allocation_resource_tags')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vh8X(YKHO) -> h8nf[qe4Y.Input[GySg[str, qe4Y.Input[str]]]]:\n return qe4Y.get(YKHO, 'allocation_resource_tags')", "def vh8X(YKHO) -> h8nf[qe4Y.Input[GySg[str, qe4Y.Input[str]]]]:\n return qe4Y.get(YKHO, 'allocation_resource_tags')", "def vYfc(Q064=None, A_Eo=None):\n pass", "def vYfc(Q064=None, ...
[ "0.68767494", "0.68767494", "0.5753419", "0.5753419", "0.5753419", "0.56738746", "0.56279933", "0.54142255", "0.5405834", "0.54023194", "0.5298011", "0.52674806", "0.5255175", "0.5244331", "0.5236745", "0.51947594", "0.51832217", "0.51416737", "0.51262635", "0.507009", "0.505...
0.660529
2
Amazon Resource Name (ARN) of IPAM
def hMqs(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EszR(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(Y...
[ "0.6671946", "0.66577", "0.66577", "0.66577", "0.66577", "0.66577", "0.66356164", "0.6609515", "0.65203404", "0.65203404", "0.65203404", "0.65203404", "0.65203404", "0.65203404", "0.65203404", "0.64863175", "0.63056356", "0.6285993", "0.6278986", "0.6278986", "0.6278986", "...
0.66473585
20
A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the providerlevel.
def dJ1p(YKHO) -> qe4Y.Output[h8nf[GySg[str, str]]]: return qe4Y.get(YKHO, 'tags')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) ->...
[ "0.6416905", "0.6416905", "0.64132154", "0.64132154", "0.64132154", "0.64132154", "0.6275456", "0.620147", "0.61419946", "0.6099122", "0.6084784", "0.60679996", "0.597075", "0.59575856", "0.58628005", "0.58435833", "0.58435833", "0.58435833", "0.58435833", "0.58435833", "0.58...
0.56623465
96
A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
def TQje(YKHO) -> qe4Y.Output[GySg[str, str]]: return qe4Y.get(YKHO, 'tags_all')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) ->...
[ "0.74426216", "0.74426216", "0.7436816", "0.7436816", "0.7436816", "0.7436816", "0.71594876", "0.70966953", "0.70821387", "0.7057521", "0.6929662", "0.69160616", "0.6824671", "0.6796777", "0.675311", "0.67011976", "0.66300416", "0.66300416", "0.66300416", "0.66300416", "0.663...
0.64110595
58
Returns the filtered queryset based on the value provided in the query string and retrievable via `self.value()`.
def SR0I(YKHO, QePW, SR0I): if YKHO.value() == '106': return SR0I.filter(content_type__app_label='surveys18') if YKHO.value() == '107': return SR0I.filter(content_type__app_label='surveys19') else: return SR0I
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SR0I(YKHO, QePW, SR0I):\n if YKHO.value() is None:\n return SR0I.all()\n return SR0I.filter(firm__pk=YKHO.value())", "def SR0I(YKHO, QePW, SR0I):\n if YKHO.value():\n return SR0I.filter(state_pol=YKHO.value())", "def SR0I(YKHO, QePW, SR0I):\n if YKHO.value() is None:\n retu...
[ "0.7538617", "0.74187994", "0.72438395", "0.7202868", "0.7089319", "0.70471644", "0.69740576", "0.6780697", "0.67602205", "0.67348963", "0.6680121", "0.6654517", "0.6586603", "0.6469687", "0.64143723", "0.6400605", "0.63842523", "0.6370161", "0.6348957", "0.63480085", "0.6275...
0.6159046
32
Called when the user specifies an intent for this skill
def E97p(McO3, cuiw): print('on_intent requestId=' + McO3['requestId'] + ', sessionId=' + cuiw['sessionId']) E2VF = McO3['intent'] q8Qy = McO3['intent']['name'] try: UA9Z = E2VF['slots']['friend_name']['value'] except: print("**** Can't find name") try: bwrM = E2VF['slots...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E97p(McO3, cuiw):\n E2VF = McO3['intent']\n q8Qy = McO3['intent']['name']\n if q8Qy not in eduI:\n q8Qy = 'NullSkill'\n if q8Qy in eduI:\n try:\n return eduI[q8Qy].execute(E2VF, cuiw)\n except Exception as e:\n wVCK.print_exc()\n return srwk().r...
[ "0.7143966", "0.6956116", "0.6949057", "0.6905333", "0.68928874", "0.67641324", "0.6754843", "0.6722764", "0.6720773", "0.67161995", "0.6699252", "0.6691263", "0.6670276", "0.6645522", "0.6642719", "0.6638686", "0.6607724", "0.6594981", "0.6575682", "0.6570076", "0.65620786",...
0.65405214
25
Takes the resulting pixel list and the expected pixel list and finds the cross entropy value associated with the predicted pixel values
def KIho(n5sN, aEqx): try: pSfY = oyIN.ones(n5sN.shape) mF6c = oyIN.multiply(aEqx, oyIN.log(n5sN)) + oyIN.multiply(pSfY - aEqx, oyIN.log(pSfY - n5sN)) CqbS = oyIN.sum(mF6c) except: return HwRy.maxsize return -1.0 * CqbS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CqbS(x6A0, N6Z1, _hZ2=1e-12):\n N6Z1 = oyIN.clip(N6Z1, _hZ2, 1.0 - _hZ2)\n ywwl = N6Z1.shape[0]\n NszA = -oyIN.sum(oyIN.sum(x6A0 * oyIN.log(N6Z1 + 1e-09))) / ywwl\n return NszA", "def CqbS(aMgO, LVAh):\n _hZ2 = 0.001\n return sum(-LVAh * oyIN.log(aMgO + _hZ2))", "def CqbS(N6Z1, x6A0):\n ...
[ "0.6927927", "0.6924277", "0.67886657", "0.67806786", "0.6765155", "0.66533464", "0.66466117", "0.65710235", "0.65694916", "0.6542023", "0.6501739", "0.64664984", "0.64607155", "0.6438654", "0.6428099", "0.63960516", "0.63953024", "0.6336773", "0.62872654", "0.6282965", "0.62...
0.6720684
5
Adding a sparse and a dense tensor to produce a sparse tensor.
def XcUI(): _73Q = [T1WL.Example(inputs=[ZylS.SparseTensor(indices=[[0, 0], [0, 1]], values=[12, 34], dense_shape=[2, 2]), [[-3, 0], [-5, 0]]], output=ZylS.SparseTensor(indices=[[0, 0], [0, 1], [1, 0]], values=[9, 34, -5], dense_shape=[2, 2]))] uwaB = [] JBZA = 'Add sparse tensor with dense tensor' XcTS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jxLV(_0VL, hkxX, thZl, yvT9, zYcP):\n return (PIEQ(_0VL), vuvg.sparse_tensor_get_values(zYcP), ())", "def t9Ww(WKvO):\n _HTG = []\n rfpI = []\n for a2Ls, Wc9F in enumerate(WKvO):\n for ITS7, wEf2 in enumerate(Wc9F):\n _HTG.append([a2Ls, ITS7])\n rfpI.append(wEf2)\n ...
[ "0.6609458", "0.6417273", "0.6399707", "0.6384875", "0.63827693", "0.63712513", "0.6335478", "0.6301753", "0.6279677", "0.6105951", "0.6105803", "0.61012745", "0.6037879", "0.5977531", "0.59770197", "0.59647906", "0.5960904", "0.5946578", "0.59345967", "0.59215313", "0.59152"...
0.7832186
0
Creates the new child of spec1 and spec2 by taking equal amounts of their genes with a 0.1% chance of mutation
def Acfs(g1NX, YLfO): jzdc = [1, 0] * (f3bG // 2) tuKI.shuffle(jzdc) 'Mutation chance' for YRbF in range(len(jzdc)): if tuKI.random() <= sBdE: if jzdc[YRbF] == 0: jzdc[YRbF] = 1 else: jzdc[YRbF] = 0 kv9J = [] for YRbF in range(len(g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eZ3l(YKHO, pSdJ, UvTl):\n if oyIN.random.random() < YKHO.crossover_prob:\n WKvO, LVAh = oyIN.sort(oyIN.random.randint(len(pSdJ), size=2))\n return oyIN.vstack((pSdJ[:WKvO], UvTl[WKvO:LVAh], pSdJ[LVAh:]))\n else:\n return YKHO.generate_conformations()[0]", "def Acfs(ENWa, ma9e, ZoT5...
[ "0.70659405", "0.7004005", "0.6691898", "0.6479292", "0.62824047", "0.6273859", "0.6265185", "0.62334424", "0.62189996", "0.6143937", "0.6052051", "0.6012036", "0.59055376", "0.5852286", "0.5846563", "0.58412874", "0.5834489", "0.5833654", "0.58213466", "0.58114856", "0.57996...
0.6811404
2
Compute softmax values for each sets of scores in x.
def N93T(WKvO): uw5A = oyIN.exp(WKvO - oyIN.max(WKvO)) return uw5A / uw5A.sum()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(YKHO, cCrA):\n MvhI = oyIN.sum(oyIN.exp(cCrA), axis=1, keepdims=True)\n N93T = oyIN.exp(cCrA) / MvhI\n return N93T", "def N93T(WKvO):\n j1LR = oyIN.exp(oyIN.asarray(WKvO))\n return j1LR / j1LR.sum(0)", "def N93T(cCrA):\n XeFQ = oyIN.exp(cCrA)\n return XeFQ / oyIN.sum(XeFQ)", "de...
[ "0.7796294", "0.7760558", "0.7759004", "0.77567077", "0.76577055", "0.76577055", "0.76577055", "0.76577055", "0.7585655", "0.743143", "0.7407772", "0.73941606", "0.7358175", "0.73174125", "0.72689486", "0.72623265", "0.72614294", "0.7256868", "0.723019", "0.7214918", "0.72017...
0.70900273
54
Reset ball function, selects randomized velocity, location (near middle line)
def HY61(YKHO, SqfP, MfVo): YKHO.x = 100 YKHO.y = oyIN.random.randint(1, YKHO.screen_Height - 1) YKHO.vx = oyIN.random.randint(25, 30) YKHO.vy = oyIN.random.choice([-1, 1]) * oyIN.random.randint(25, 30) owmi, JRax = YKHO.state_observation(SqfP, MfVo) return (owmi, JRax)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B2gP(YKHO):\n YKHO.ball.x = (YKHO.window.width - oat2) / 2\n YKHO.ball.y = (YKHO.window.height - oat2) / 2\n YKHO.__dx = tuKI.randint(1, w476)\n if tuKI.random() > 0.5:\n YKHO.__dx = -YKHO.__dx", "def CS64(YKHO):\n YKHO.__dx = tuKI.randint(1, w476) if tuKI.random() < 0.5 else -tuKI.rand...
[ "0.78953934", "0.75020355", "0.69904244", "0.6919897", "0.6677168", "0.6615125", "0.66012466", "0.65814906", "0.6563528", "0.6452176", "0.6405985", "0.6398524", "0.6389545", "0.6386", "0.6357651", "0.63570076", "0.63241464", "0.629224", "0.6282046", "0.6259028", "0.6258053", ...
0.7498759
2
Rebalance the portfolio based on context.stocks
def cZTi(QpfX, nPrm): X6Rz(QpfX, nPrm) OL28(QpfX, nPrm) na1r.info('rebalancing') na1r.info(QpfX.stocks) DiSR = xEkk(QpfX, nPrm) na1r.info('totals calculated: %s' % DiSR) for LpID, U34r in DiSR.items(): T4Wy(LpID, U34r['total'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cZTi(QpfX, nPrm):\n bo34.debug('rebalancing on: %s', vRyL.get_datetime())\n QpfX.trend_filter = False\n L_LT = vRyL.pipeline_output('pipeline').dropna(subset=['overall_rank']).sort_values('momentum', ascending=False)\n for tEoV, rdlD in L_LT.iterrows():\n bo34.debug('new portfolio (before fi...
[ "0.7364978", "0.7146371", "0.6832523", "0.6610252", "0.65502185", "0.6502971", "0.65022534", "0.6463449", "0.6411393", "0.63420564", "0.62449145", "0.61422247", "0.61070156", "0.61015534", "0.60666263", "0.605883", "0.6050995", "0.60085475", "0.5991271", "0.59236807", "0.5890...
0.7934528
0
Place the simple GUI objects in the frame.
def mS3o(YKHO): v9Lt = YKHO.container YKHO.title = R08O.Label(v9Lt, text='Importă o bază de date') YKHO.title.config(font=E6Ah.title_font()) YKHO.title.grid(row=0, column=0, sticky='w') YKHO.path_label = R08O.Label(v9Lt, textvariable=YKHO.path) YKHO.path_label.config(font=E6Ah.small_regular_font...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PhKb(YKHO):\n YKHO.grid(row=0, column=0, sticky='nsew')\n YKHO.entryFrame = LQRw(YKHO, relief=YZF3, borderwidth=1)\n YKHO.entryFrame.pack(fill=_Z54, expand=False)\n if YKHO.message:\n bLSL = seYU(YKHO.entryFrame, text=YKHO.message, font=('Bradley', 10))\n bLSL.pack(anchor=XcU5, padx=0...
[ "0.73877174", "0.7273837", "0.724822", "0.712382", "0.70954245", "0.7012067", "0.6964564", "0.69641393", "0.6955205", "0.6951402", "0.69476676", "0.6931697", "0.6914845", "0.6914669", "0.68057585", "0.67949224", "0.6766486", "0.6765765", "0.6749409", "0.67474115", "0.673746",...
0.0
-1
Place the buttonrelated GUI in the frame.
def XqH7(YKHO): v9Lt = YKHO.container _Cnz = R08O.Style() _Cnz.configure('IDS.TButton', font=E6Ah.button_regular_font_tuple()) YKHO.choose_button = R08O.Button(v9Lt, text='Alege fișierul') YKHO.choose_button.config(style='IDS.TButton', command=YKHO.choose_click) YKHO.choose_button.grid(row=1, co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def arN7(YKHO):\n YKHO._exit_button.grid(row=0, column=2, sticky=on8l.W)\n YKHO._clear_button.grid(row=0, column=0, sticky=on8l.E)\n return None", "def XqH7(YKHO):\n v9Lt = YKHO.container\n VpYH = R08O.Frame(v9Lt)\n VpYH.grid(row=10, column=0, sticky='ew')\n TB58.prepare_centering(VpYH)\n ...
[ "0.7602936", "0.75186807", "0.7198896", "0.7163624", "0.7132068", "0.7062062", "0.6995572", "0.696357", "0.69413227", "0.6934878", "0.6920921", "0.6884443", "0.68796974", "0.68721724", "0.6866608", "0.68623316", "0.68578357", "0.6836645", "0.68279535", "0.68257105", "0.680893...
0.7705946
0
Given an input array consisting on only 0, 1, and 2, sort the array in a single traversal.
def P20W(IqQl): ge69 = 0 WXeJ = 0 MDwJ = 0 for mLGw in IqQl: if mLGw == 0: ge69 += 1 elif mLGw == 1: WXeJ += 1 else: MDwJ += 1 TK2h = [0] * ge69 + [1] * WXeJ + [2] * MDwJ return TK2h
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BA9O(qw7D):\n for YRbF in range(0, len(qw7D)):\n for r845 in range(len(qw7D) - 1, YRbF, -1):\n if qw7D[r845] < qw7D[r845 - 1]:\n p1y5 = qw7D[r845]\n qw7D[r845] = qw7D[r845 - 1]\n qw7D[r845 - 1] = p1y5\n return qw7D", "def BA9O(YKHO, xYvp: L...
[ "0.6789548", "0.67583895", "0.6682644", "0.66715705", "0.6659737", "0.6641573", "0.6599344", "0.65873164", "0.6554439", "0.6552122", "0.64992183", "0.6485857", "0.6463896", "0.6443028", "0.6429256", "0.64282393", "0.64207727", "0.64205426", "0.6416836", "0.6406601", "0.638842...
0.0
-1
Zero the gradient buffers.
def YP7j(YKHO): YKHO.unet.zero_grad()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def frhb(YKHO):\n YKHO.grad.zero_()", "def frhb(YKHO):\n YKHO.grad = llWB(data=oyIN.zeros_like(YKHO.data, dtype=oyIN.float))", "def frhb(YKHO):\n for XP5J, TifC in YKHO.params:\n TifC.zero_()", "def goRr(YKHO):\n for gEmA in YKHO.layers:\n gEmA.grad_zero()", "def frhb(YKHO):\n ...
[ "0.73872775", "0.7316328", "0.72141", "0.7195178", "0.7190617", "0.7181733", "0.71748376", "0.7154122", "0.7154122", "0.7126482", "0.709635", "0.6961804", "0.6947707", "0.6915103", "0.6908444", "0.6891664", "0.6866808", "0.6849193", "0.6722878", "0.67000455", "0.66971904", ...
0.6845781
18
Get the front element.
def T7C_(YKHO) -> int: return YKHO.items[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uW34(YKHO):\n VnzS = YKHO.queue[YKHO.front]\n return VnzS\n pass", "def uW34(YKHO):\n if not YKHO.isEmpty():\n return YKHO._data[0]\n else:\n return -1", "def VnzS(YKHO):\n return YKHO.queue[0] if not YKHO.empty() else None", "def vYJ5(YKHO):\n if YKHO.items:\n r...
[ "0.82009244", "0.79261875", "0.7852642", "0.7791182", "0.77886623", "0.75723046", "0.752337", "0.7510604", "0.7478953", "0.7379256", "0.7379256", "0.734284", "0.7323573", "0.7320296", "0.7291721", "0.72772557", "0.7269801", "0.72657627", "0.7253295", "0.72355044", "0.72213495...
0.0
-1
Returns whether the queue is empty.
def lsmZ(YKHO) -> bool: return len(YKHO.items) == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return len(YKHO.the_queue) == 0", "def FBfn(YKHO):\n return len(YKHO.__queue) > 0", "def FBfn(YKHO):\n return len(YKHO.queue) == 0", "def FBfn(YKHO):\n return len(YKHO.queue) == 0", "def FBfn(YKHO):\n return YKHO.queue == []", "def FBfn(YKHO):\n return not YKHO._queue"...
[ "0.9270249", "0.92506766", "0.923635", "0.923635", "0.9155843", "0.9098441", "0.9095006", "0.90922606", "0.90731245", "0.9053733", "0.89205354", "0.89137155", "0.8877591", "0.88436323", "0.88436323", "0.8835949", "0.88038146", "0.8758203", "0.87577534", "0.87310195", "0.86462...
0.0
-1
Test if two tensors are nearly identical
def Qh4y(jzdc, Fg_i): return ht2j.allclose(jzdc, Fg_i, rtol=0.001, atol=1e-05)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x4Sv(bPE6, HM3P):\n return ZylS.reduce_max(ZylS.abs(bPE6 - HM3P)).numpy() < 1e-06", "def Jw17(J9oU: Tensor, QCf9: Tensor) -> bool:\n if J9oU.dtype != QCf9.dtype:\n QCf9 = QCf9\n return ht2j.allclose(J9oU, QCf9)", "def eTmp(EcVT, fuBA, SGf8=1e-08):\n return (EcVT - fuBA).abs().min() < SGf...
[ "0.79671884", "0.77040684", "0.7418959", "0.71327984", "0.6995445", "0.69370645", "0.6923374", "0.68237865", "0.67867124", "0.6737922", "0.6726358", "0.67057705", "0.6691644", "0.66223776", "0.66144526", "0.66142946", "0.66142774", "0.6586026", "0.65736735", "0.65018594", "0....
0.70005924
4
Returns the activation layer corresponding to the input activation name.
def siRH(mWFP): if mWFP == 'relu': return U78l.ReLU(inplace=True) if mWFP == 'leaky_relu': return U78l.LeakyReLU(0.2, inplace=True) if mWFP == 'elu': return U78l.ELU(inplace=True) if mWFP == 'sigmoid': return U78l.Sigmoid() if mWFP == 'tanh': return U78l.Tanh(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def etcC(hYvg, kVIx=None):\n import bigdl.dllib.nn.layer as ANri\n YDYE = None\n hYvg = hYvg.lower()\n if hYvg == 'tanh':\n YDYE = ANri.Tanh()\n elif hYvg == 'sigmoid':\n YDYE = ANri.Sigmoid()\n elif hYvg == 'hard_sigmoid':\n YDYE = ANri.HardSigmoid()\n elif hYvg == 'relu'...
[ "0.7601923", "0.75102884", "0.7389526", "0.7359516", "0.6840024", "0.6797463", "0.6736014", "0.66799164", "0.6635552", "0.6635159", "0.6632002", "0.6576473", "0.6556553", "0.6556013", "0.6552924", "0.6542772", "0.65092725", "0.64772713", "0.64272285", "0.6365736", "0.6363103"...
0.6434719
18
Renders the home page.
def kZiy(): return TvZl('index.html', title='Home Page', year=qcWV.now().year)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bVaH():\n return TvZl('index.html')", "def kZiy():\n return TvZl('home_page.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZ...
[ "0.85574406", "0.853399", "0.8351404", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.827363", "...
0.81803685
24
Renders the about page.
def vsuQ(): return TvZl('about.html', title='About', year=qcWV.now().year, message='Your application description page.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vsuQ():\n return TvZl('about.html', title='About')", "def vsuQ():\n return TvZl('about_page.html', title='About')", "def vsuQ():\n return TvZl('about.html')", "def wZMb(YKHO):\n LgJI()", "def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"...
[ "0.85650355", "0.85034525", "0.84489655", "0.84044397", "0.8394454", "0.82935613", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.8243358", ...
0.82680845
19
Get max force acting on atoms from a calculation document.
def D3aE(TPxc: Calculation) -> h8nf[float]: LtyS = TPxc.output.ionic_steps[-1].get('forces') g8x2 = TPxc.output.structure if LtyS: LtyS = oyIN.array(LtyS) IYCf = g8x2.site_properties.get('selective_dynamics') if IYCf: LtyS[oyIN.logical_not(IYCf)] = 0 return max(oy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MYQu(Kt_s, oR96, uv9H, jWwZ, WjdW, Gm_a, XQ5U, OEAN=False, qBv7='H'):\n jVNP = 1.9e-07\n vWA3 = 0.2\n Ux5V = 8.617e-05\n lWPh = jVNP * oyIN.exp(-vWA3 / Ux5V / Kt_s)\n if qBv7 == 'D':\n lWPh *= 1 / 2 ** 0.5\n elif qBv7 == 'T':\n lWPh *= 1 / 3 ** 0.5\n mxL2 = [float(qec1(VYvU, ...
[ "0.60202175", "0.57835275", "0.56919444", "0.56892014", "0.5686194", "0.56520456", "0.56134903", "0.5605147", "0.5552555", "0.5480237", "0.53515524", "0.5328387", "0.5324713", "0.5320625", "0.53187954", "0.5280536", "0.52729774", "0.5263932", "0.5239988", "0.5228085", "0.5222...
0.7630507
0
Sets up the test fixture before exercising it.
def FCbF(YKHO): YKHO.result = None YKHO.wait_for_result = None YKHO.event_out = sQC5.Publisher('~event_out', kKAJ.msg.String, latch=True, queue_size=1) YKHO.pub_current_joints = sQC5.Publisher('~current_joint_values', gXBl.msg.JointState, queue_size=1) YKHO.component_output = sQC5.Subscriber('~compo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qTTL(YKHO):\n pass", "def tbq9(YKHO):\n pass", "def FCbF(YKHO):\n YKHO.app = RkHo(YKHO.application_under_test)\n try:\n GTYX()\n except Exception as e:\n print('-> err ({})'.format(tTpl.__str__()))\n bxQM(section_name=YKHO.application_under_test)\n aiy_()\n uh_h = xxHK...
[ "0.84950584", "0.8327538", "0.785511", "0.7598032", "0.7563656", "0.7563656", "0.7544914", "0.7525454", "0.7508481", "0.74509245", "0.7367585", "0.7355439", "0.73454165", "0.7332968", "0.7320497", "0.73200977", "0.73181677", "0.7312806", "0.7289844", "0.7287715", "0.7287715",...
0.0
-1
Computes the free energy \mathcal{F}({\bf v}) = \log \sum_{\bf h} e^{E({\bf v},{\bf h})}.
def rZnx(YKHO, Ty9i): return -Kt_s.dot(Ty9i, YKHO._b) - Kt_s.log(1.0 + Kt_s.exp(Kt_s.dot(Ty9i, YKHO._W) + YKHO._c)).sum(1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x1g7(YKHO, WKvO):\n oifh = Kt_s.dot(WKvO, YKHO.W) + YKHO.bhid\n return -Kt_s.sum(Kt_s.log(1 + Kt_s.exp(oifh)), axis=1) - Kt_s.dot(WKvO, YKHO.b)", "def KaIg(ut5U, UB01, Kt_s):\n return 1.0 / (1.0 + oyIN.exp((ut5U - UB01) / (Ux5V * Kt_s)))", "def hjcg(YKHO, Iy_q):\n ohxs, mKKX, SZqb, ulhz, Cwt5 =...
[ "0.7025948", "0.6679579", "0.66672623", "0.6640644", "0.6486068", "0.6409317", "0.63664955", "0.631139", "0.63051414", "0.62414086", "0.6212336", "0.6170881", "0.6169674", "0.6156047", "0.61559224", "0.6142679", "0.61094135", "0.6067248", "0.6050417", "0.60194695", "0.5991574...
0.740989
0
Test the == and != operators.
def FmTZ(): for MSdy, Cw9r in Hs6x.product(['g1', 'g2', 'y7', 'z123'], repeat=2): WKvO = PBov.GraphId(MSdy) LVAh = PBov.GraphId(Cw9r) if MSdy == Cw9r: assert WKvO == LVAh assert not WKvO != LVAh else: assert not WKvO == LVAh assert WKvO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def whu6(YKHO):\n pass", "def LsaM(Emd4, yLHq, RKYb):\n return yLHq == RKYb", "def zgeL(YKHO):\n YKHO.assertTrue(True, 'True should be equal to True.')\n YKHO.assertFalse(False, 'False should not be equal to True.')\n YKHO.assertNotEqual(True, False, 'True should not be equal to False.')", "de...
[ "0.70257527", "0.6813076", "0.6716191", "0.66282046", "0.6585776", "0.6585776", "0.6585776", "0.6585776", "0.6585776", "0.6585776", "0.6585776", "0.6585776", "0.6585776", "0.6585776", "0.6585776", "0.6585776", "0.6585776", "0.6585776", "0.6585776", "0.6585776", "0.6585776", ...
0.60887265
97
Returns True if we have initial data.
def fj40(YKHO): fj40 = H6V6.ModelForm.has_changed(YKHO) return bool(YKHO.initial or fj40)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LUSK(YKHO):\n return len(YKHO.data) > 0", "def LUSK(YKHO) -> bool:\n return bool(YKHO.data)", "def LUSK(YKHO):\n return YKHO._data is not None", "def LUSK(YKHO):\n return YKHO._data is not None", "def LUSK(YKHO):\n return YKHO._data is not None", "def G96d(YKHO) -> bool:\n return le...
[ "0.7813909", "0.76047194", "0.75483805", "0.75055367", "0.75055367", "0.74933934", "0.74187225", "0.74176073", "0.7343985", "0.7343985", "0.7343985", "0.7343985", "0.7343985", "0.7343985", "0.7343985", "0.73431593", "0.73294735", "0.7313465", "0.7310018", "0.72718793", "0.726...
0.0
-1