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 |
|---|---|---|---|---|---|---|
Returns a function that maps each index in 0, 1, ..., n1 to a distinct RGB color; the keyword argument name must be a standard mpl colormap name. | def tRp2(exwG, mWFP='hsv'):
return QrM1.cm.get_cmap(mWFP, exwG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tRp2(exwG, mWFP='jet'):\n return QrM1.cm.get_cmap(mWFP, exwG)",
"def tRp2(exwG, mWFP='hsv'):\n return QrM1.cm.get_cmap(mWFP, exwG)",
"def tRp2(exwG, mWFP='hsv'):\n return QrM1.cm.get_cmap(mWFP, exwG)",
"def tRp2(exwG, mWFP='Paired'):\n return QrM1.cm.get_cmap(mWFP, exwG)",
"def XTKI(mWFP):\... | [
"0.7026068",
"0.6976218",
"0.6976218",
"0.69448614",
"0.6720858",
"0.6579991",
"0.65112346",
"0.64271647",
"0.6360296",
"0.632813",
"0.6287646",
"0.61822826",
"0.61393833",
"0.6113537",
"0.60940754",
"0.60432553",
"0.6020549",
"0.5991163",
"0.5960054",
"0.5959102",
"0.5889199... | 0.69281334 | 6 |
Creates and saves superuser | def Zp54(YKHO, D3lj, jTXt, **wdCM):
CBIr = YKHO.model(email=D3lj, **wdCM)
CBIr.set_password(jTXt)
CBIr.is_admin = True
CBIr.is_superuser = True
CBIr.is_staff = True
CBIr.save(using=YKHO._db)
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zp54(YKHO, NtEF, D3lj, jTXt):\n print('creating super user....')\n CBIr = YKHO.create_user(username=NtEF, password=jTXt, email=D3lj, commit=False)\n CBIr.is_staff = True\n CBIr.is_superuser = True\n CBIr.save(using=YKHO._db)\n return CBIr",
"def sX7Z(NtEF, D3lj, jTXt):\n if NtEF and D3lj... | [
"0.78882474",
"0.7767618",
"0.7689051",
"0.76443464",
"0.7641532",
"0.7634694",
"0.7537939",
"0.75347817",
"0.7533191",
"0.75145555",
"0.7504749",
"0.7504258",
"0.7481266",
"0.74806815",
"0.7478948",
"0.747405",
"0.74583846",
"0.74548",
"0.74541986",
"0.7451179",
"0.7429572",... | 0.7288797 | 41 |
Initializes a ddimensional zero vector. | def FIMM(YKHO, Csk6):
YKHO.d = Csk6
YKHO.st = nCT3() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KWNY(YKHO):\n YKHO.vector = oyIN.zeros(YKHO.dimension, dtype=float)",
"def sbx9():\n return DKJk(0, 0)",
"def ifEa(Emd4):\n \"\"\" EXECUTE THIS FUNCTION IN THE FARM CLASS! \"\"\"\n Emd4.wzero = oyIN.zeros((AGDB.N,), dtype=float)",
"def OC6w(YKHO, EcVT):\n return oyIN.zeros(EcVT.size())",
... | [
"0.8238639",
"0.7784582",
"0.7194983",
"0.69601524",
"0.6940882",
"0.69110084",
"0.6896798",
"0.6761954",
"0.66474175",
"0.66068804",
"0.6593529",
"0.6593055",
"0.65798867",
"0.65771484",
"0.65541494",
"0.6538262",
"0.65289855",
"0.6444452",
"0.643646",
"0.6419278",
"0.635499... | 0.0 | -1 |
Returns the dimension of this vector. | def e_2d(YKHO):
return YKHO.d | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gHNF(YKHO):\n if YKHO.vector.shape is ():\n return 0\n if len(YKHO.vector.shape) is 1:\n return 1\n bGrB, tpio = YKHO.vector.shape\n return tpio",
"def e_2d(YKHO):\n return YKHO.__N",
"def lBIw(YKHO):\n return YKHO._dim",
"def tpio(YKHO):\n return len(YKHO.shape)",
"d... | [
"0.8349469",
"0.81491935",
"0.8099088",
"0.8046764",
"0.8046764",
"0.7996407",
"0.7980214",
"0.7917069",
"0.7903344",
"0.7840847",
"0.7736552",
"0.7735965",
"0.7729883",
"0.7722194",
"0.7707985",
"0.7706657",
"0.76962733",
"0.76683944",
"0.7644512",
"0.76262724",
"0.76173997"... | 0.7638886 | 19 |
Returns the inner product of this vector with the specified vector. | def BJ1H(YKHO, fh3O):
if YKHO.d != fh3O.d:
raise ValueError('Vector lengths disagree')
sum = 0.0
if YKHO.st.size() <= fh3O.st.size():
for YRbF in YKHO.st.keys():
if fh3O.st.contains(YRbF):
sum += YKHO.get(YRbF) * fh3O.get(YRbF)
else:
for YRbF in fh3O.s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E_tF(YKHO, jlSq):\n if isinstance(jlSq, xHn1):\n return oyIN.dot(YKHO._vec, jlSq._vec)\n else:\n return xHn1(jlSq * YKHO._vec)",
"def E_tF(YKHO, Elif):\n if isinstance(Elif, iu5r):\n return YKHO.x * Elif[0] + YKHO.y * Elif[1]\n else:\n return lNLu(YKHO.x * Elif, YKHO.y... | [
"0.7083659",
"0.69121635",
"0.6874729",
"0.6819827",
"0.6791859",
"0.6692083",
"0.66700554",
"0.66244394",
"0.66066253",
"0.65904295",
"0.6588592",
"0.65639216",
"0.64912796",
"0.64885056",
"0.64755005",
"0.64684004",
"0.6450993",
"0.6445346",
"0.6438864",
"0.6417873",
"0.639... | 0.5940959 | 74 |
Unit tests the SparseVector data type. | def b8V_():
jzdc = sw67(10)
Fg_i = sw67(10)
jzdc.put(3, 0.5)
jzdc.put(9, 0.75)
jzdc.put(6, 0.11)
jzdc.put(6, 0.0)
Fg_i.put(3, 0.6)
Fg_i.put(4, 0.9)
print('a = {}'.format(jzdc))
print('b = {}'.format(Fg_i))
print('a dot b = {}'.format(jzdc.dot(Fg_i)))
print('a ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qTV6(YKHO):\n WKvO, wmYl, KCHu = YKHO.create_testdata()\n D5gV = Z1Dr()\n GfdN = D5gV.check_sparse(WKvO)\n YKHO.assertEqual(oyIN.all(GfdN == WKvO), True)\n GfdN = D5gV.check_sparse(KCHu)\n YKHO.assertIsInstance(GfdN, oyIN.ndarray)\n YKHO.assertEqual(oyIN.all(GfdN == KCHu.todense()), True)"... | [
"0.71696573",
"0.70195407",
"0.67112136",
"0.65243787",
"0.6498203",
"0.6447236",
"0.6415151",
"0.6386647",
"0.6335841",
"0.63266677",
"0.62929523",
"0.6270987",
"0.6235718",
"0.6192848",
"0.61555046",
"0.61543816",
"0.6071468",
"0.6047504",
"0.60388774",
"0.6036317",
"0.6016... | 0.0 | -1 |
Day as a string | def CXza(YKHO):
return str(YKHO.day) if YKHO.day else '-' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tbOh(CjKC):\n return str(CjKC) if CjKC >= 10 else '0' + str(CjKC)",
"def tbOh(CjKC):\n return str(CjKC) if CjKC >= 10 else '0' + str(CjKC)",
"def tbOh(CjKC):\n return str(CjKC) if CjKC >= 10 else '0' + str(CjKC)",
"def CjKC(JRYC: datetime.datetime) -> str:\n CjKC: str = JRYC.strftime('%A')\n ... | [
"0.821943",
"0.821943",
"0.821943",
"0.78934723",
"0.7794438",
"0.76618195",
"0.76283866",
"0.7328626",
"0.7133244",
"0.71326077",
"0.71134984",
"0.7050756",
"0.6959545",
"0.68635845",
"0.6822653",
"0.6822653",
"0.6818522",
"0.67665225",
"0.6759033",
"0.672896",
"0.6699914",
... | 0.6276366 | 45 |
Automatically schedule all active questions on dates newer than the newest in database or today. Affects only questions in category qotd. | def aIcv(C3nE, Hi7f='qotd'):
NUHd = HwIj.objects.aggregate(FYrf.Max('day'))
if not NUHd:
return
CjKC = NUHd.get('day__max', _c1T.today())
if CjKC is None:
CjKC = _c1T.today() - fCoM(days=1)
CjKC += fCoM(days=1)
for vexM in Y4Gy.objects.filter(active=True).filter(category__name=Hi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t3S9(YKHO, aQ2M):\n vejy = [bAls(created=qcWV.now() - fCoM(hours=24, minutes=10), save=True), bAls(created=qcWV.now() - fCoM(hours=24, minutes=50), save=True)]\n Rpsg = Lx3t(slug='firefox-os', save=True)\n vexM = bAls(created=qcWV.now() - fCoM(hours=24, minutes=10), product=Rpsg, save=True)\n vejy.... | [
"0.59756124",
"0.5786884",
"0.5757276",
"0.5609986",
"0.55873525",
"0.55781156",
"0.55781156",
"0.5570928",
"0.5554793",
"0.5554793",
"0.5554793",
"0.5554793",
"0.5554793",
"0.5554793",
"0.5554793",
"0.5554793",
"0.5554793",
"0.5554793",
"0.5554793",
"0.5554793",
"0.5554793",... | 0.71258444 | 0 |
Generate a random secret key string. | def E5G3(Emd4, zNig=None):
if not zNig:
zNig = Emd4.default_secret_key_size
return Hy7s.urandom(zNig) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E5G3():\n gLiZ = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)'\n return GLL2(50, gLiZ)",
"def Vhex():\n return ''.join((jxbx().choice(vIwR.ascii_letters + vIwR.digits) for bGrB in range(20)))",
"def c46T():\n H5ew = Hy7s.urandom(32)\n return WR89.b64encode(H5ew).rstrip('=')",
"def e... | [
"0.86671764",
"0.84700054",
"0.812901",
"0.8128564",
"0.79986185",
"0.79768044",
"0.79696554",
"0.789906",
"0.7870437",
"0.78370684",
"0.7778444",
"0.77211857",
"0.7673698",
"0.7627404",
"0.75754064",
"0.7559021",
"0.75332165",
"0.74592197",
"0.74592197",
"0.74298656",
"0.742... | 0.7680241 | 12 |
Get the 'gridrealm' section as an AttrDict. | def GUlO(YKHO):
if YKHO._gridrealm_cache:
return YKHO._gridrealm_cache
lb7A = GYI8.gridrealm.value
ySAX = dict([(YEnM.name, YEnM.value) for YEnM in lb7A])
FVLN = YKHO._section_as_dict(GYI8.gridrealm.name)
ySAX.update(FVLN)
YKHO._gridrealm_cache = gRy7(**ySAX)
return YKHO._gridrealm_c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _d4w(Q6kx):\n szdh = Di5T(Q6kx)\n uBeC = tNyS()\n if szdh:\n for hkS8 in szdh:\n GPtr = wOQu(Q6kx, hkS8)\n uBeC['channels'].append(GPtr['fullName'])\n uBeC['channels_data'][GPtr['fullName']] = GPtr\n return uBeC",
"def yNPn(YKHO):\n TldD = YKHO._ptr.cont... | [
"0.53001577",
"0.5295527",
"0.5088781",
"0.5066672",
"0.5066381",
"0.50215715",
"0.5021443",
"0.5019809",
"0.5009393",
"0.4989297",
"0.49788192",
"0.49455556",
"0.49337557",
"0.49257472",
"0.49229",
"0.4912207",
"0.4912207",
"0.48941183",
"0.48860916",
"0.48781717",
"0.487349... | 0.7410927 | 0 |
Initialize the Article instance, using the initialized Document instance. >>> from pagebot.document import Document >>> from pagebot.constants import A4 >>> from pagebot import getContext >>> context = getContext() >>> doc = Document(size=A4, context=context) >>> ad = 'First page has a large headline and one column tex... | def FIMM(YKHO, A97Q, Zqor, pmON=None, gJ_y=None, tdrK=1, mWFP=None, **B2fa):
YKHO.doc = A97Q
YKHO.artDirection = Zqor
YKHO.path = pmON
YKHO.mdText = gJ_y
YKHO.name = mWFP or 'Untitled'
YKHO.startPage = tdrK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tW6i(YKHO):\n if YKHO.mdText:\n a1PO = vQ3C(YKHO.doc.context)\n y1Ih = '/tmp/PageBot-Article.xml'\n pmON = a1PO.markDown2XmlFile(y1Ih, YKHO.mdText)\n YYi5 = a1PO.typesetFile(pmON)\n Hy7s.remove(y1Ih)",
"def FIMM(YKHO, FUjE='', _oIy='utf-8'):\n super(n3F4, YKHO).__init... | [
"0.6037154",
"0.57262754",
"0.57130617",
"0.56775105",
"0.5594592",
"0.54564404",
"0.54472625",
"0.5388765",
"0.5262887",
"0.52373725",
"0.5202586",
"0.5200567",
"0.5186474",
"0.51540214",
"0.5127671",
"0.5088896",
"0.5087881",
"0.50845695",
"0.5077472",
"0.50692505",
"0.5042... | 0.612823 | 0 |
Envoie un lien de video youtube | async def video(YKHO, OaeV, *, d7pR: str):
await OaeV.send(qpDA + YKHO.extraire(TgwQ + YKHO.traduire(d7pR.split(' ')), m7Vr)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rqg9(NvAR):\n jiIo = NvAR['link']\n Z9JV = kqu4(jiIo)\n print(f' getting videos for playlist: {NvAR['title']}')\n SFIC = []\n DumB = Z9JV('a', class_='yt-uix-tile-link')\n if len(DumB) > 0:\n for YRbF in DumB:\n Csk6 = dict()\n AcoU = yWMy(YRbF['href'])\n ... | [
"0.69183725",
"0.6748147",
"0.6649559",
"0.66352725",
"0.6585036",
"0.6513351",
"0.64492846",
"0.6367422",
"0.63094103",
"0.6307443",
"0.63001394",
"0.6276659",
"0.6260478",
"0.62230605",
"0.6193979",
"0.61927646",
"0.6170016",
"0.6157376",
"0.6129525",
"0.61073595",
"0.60763... | 0.64446914 | 7 |
Returns the Euclidian Distance between two vectors | def FYdX(ecEc, znzI):
pImw = 0.0
for YRbF in range(len(ecEc) - 1):
pImw += (ecEc[YRbF] - znzI[YRbF]) ** 2
return PZyS(pImw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sffJ(FXhF, RMVR):\n return oyIN.sqrt(oyIN.sum(oyIN.fabs(FXhF - RMVR), axis=1)).flatten()",
"def Q1Zj(YKHO, lSjb, v8Fa):\n return PZyS(sum([(float(hQHm) - float(jlSq)) ** 2 for hQHm, jlSq in zip(lSjb, v8Fa)]))",
"def usGr(BZrQ: Vector, OhjO: Vector) -> EsPN:\n return oyIN.sqrt(oyIN.sum((oyIN.asarra... | [
"0.82027584",
"0.8050358",
"0.79546607",
"0.7845527",
"0.7830942",
"0.77672946",
"0.77365184",
"0.77311885",
"0.7660685",
"0.7639188",
"0.763131",
"0.7624693",
"0.7551486",
"0.7531403",
"0.7518708",
"0.7506968",
"0.74697196",
"0.7435592",
"0.7429169",
"0.7396281",
"0.7393302"... | 0.0 | -1 |
Returns whether or not the service_id is one of the referrers of this volume | def CvKZ(YKHO, liCf):
return next((True for Mkmy in YKHO.referrers if Mkmy['service_id'] == liCf), False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def __tV(YKHO, liCf):\n hlTz = [Mkmy for Mkmy in YKHO.referrers if Mkmy['service_id'] != liCf]\n if len(hlTz) == len(YKHO.referrers):\n bo34.warning('%s did not have a reservation for %s', liCf, YKHO)\n return False\n else:\n YKHO.referrers = hlTz\n bo34.warning('%s removed fro... | [
"0.68973345",
"0.6556823",
"0.6201173",
"0.60871255",
"0.60442793",
"0.59163725",
"0.58793366",
"0.5798456",
"0.57923764",
"0.57693154",
"0.5738627",
"0.572707",
"0.57227623",
"0.5721128",
"0.5715063",
"0.56498003",
"0.5643508",
"0.56162953",
"0.55504674",
"0.5527296",
"0.551... | 0.75078917 | 0 |
Gets current ThreatInsight configuration | async def get_current_configuration(YKHO, evHq=False):
GjSa = 'get'.upper()
Ms2Z = HKD1(f'\n {YKHO._base_url}\n /api/v1/threats/configuration\n ')
TBsA = {}
MOPg = {}
L03z = {}
QePW, P1dF = await YKHO._request_executor.create_request(GjSa, Ms2Z, TBsA, MOPg, L03z,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XP2F(YKHO) -> 'outputs.InsightsConfigResponse':\n return qe4Y.get(YKHO, 'insights_config')",
"def wOGa(YKHO):\n if YKHO.integration is None:\n return None\n return YKHO.integration.configuration",
"def eEPS(YKHO):\n return YKHO._configuration",
"def GPtr(YKHO):\n XgyP = Vqy3(YKHO.co... | [
"0.7482193",
"0.6966864",
"0.69412214",
"0.6897329",
"0.688329",
"0.68567055",
"0.6773435",
"0.6718722",
"0.6711819",
"0.66385186",
"0.6575838",
"0.6573065",
"0.656757",
"0.655083",
"0.65388983",
"0.6534331",
"0.64844656",
"0.64792246",
"0.64792246",
"0.64792246",
"0.64792246... | 0.68075 | 6 |
Minimum pairwise distance between c1, c2. | def fJvG(dg7v, iYf1, nPrm, i_PE, sERS):
BVgf = dg7v.get_idxs()
_w4Y = iYf1.get_idxs()
yWWA = None
for YRbF in BVgf:
for r845 in _w4Y:
if YRbF == r845:
continue
pImw = i_PE.get((YRbF, r845), None)
if pImw == None:
pImw = i_PE.get... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xMj7(XOOk, pHXX, kYGz, ftz7):\n EgUb = pHXX - XOOk\n pZi6 = ftz7 - kYGz\n tsY9 = XOOk + 0.5 * EgUb\n KCHu = kYGz - tsY9\n k0lF = oyIN.dot(pZi6, pZi6)\n e2Jm = oyIN.dot(pZi6, KCHu)\n hTVv = -e2Jm / k0lF\n V8py = hTVv * pZi6 + kYGz\n KCHu = XOOk - V8py\n k0lF = oyIN.dot(EgUb, EgUb)\... | [
"0.7045182",
"0.7036399",
"0.6957681",
"0.6772592",
"0.6728717",
"0.6567478",
"0.65408695",
"0.645088",
"0.64440423",
"0.6423415",
"0.64218247",
"0.6415788",
"0.6393093",
"0.6384853",
"0.6380619",
"0.6366859",
"0.6354364",
"0.6349917",
"0.63474315",
"0.6325903",
"0.6319494",
... | 0.61893415 | 33 |
Maximum pairwise distance between c1, c2. | def gPyN(dg7v, iYf1, nPrm, i_PE, sERS):
BVgf = dg7v.get_idxs()
_w4Y = iYf1.get_idxs()
Ew3d = None
for YRbF in BVgf:
for r845 in _w4Y:
if YRbF == r845:
continue
pImw = i_PE.get((YRbF, r845), None)
if pImw == None:
pImw = i_PE.get... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ayfi(YKHO, dg7v, iYf1):\n if dg7v > iYf1:\n dg7v, iYf1 = (iYf1, dg7v)\n KUyp = YKHO.clusterDistanceCache.get((dg7v, iYf1), None)\n if KUyp is None:\n R8er = hJ0Z(0.0)\n for kYGz in YKHO.c2b[dg7v]:\n for ftz7 in YKHO.c2b[iYf1]:\n BoVL = YKHO._baseDistance(... | [
"0.7036551",
"0.6633535",
"0.6588129",
"0.6531544",
"0.64374155",
"0.63673973",
"0.6333472",
"0.62865716",
"0.62805694",
"0.6267186",
"0.6236113",
"0.61886847",
"0.61561215",
"0.6143775",
"0.6133854",
"0.6107185",
"0.61001253",
"0.60967916",
"0.60898113",
"0.60802513",
"0.607... | 0.65735966 | 3 |
Gets a dictionary mapping component name to lists of vertex instances of that component in the topology graph with the specified reference. | def h2IN(FOjY: GremlinClient, cNhU: str, Y4gG: str) -> cuzp[str, x1iM[Yegm]]:
puvQ: WWUq = FOjY.topology_subgraph(cNhU, Y4gG)
rirr: x1iM[str] = puvQ.V().values('component').dedup().toList()
hlel: cuzp[str, x1iM[Yegm]] = {}
for maxk in rirr:
hlel[maxk] = puvQ.V().has('component', maxk).toList()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TA6f(YKHO):\n return list(YKHO.graph_dict.keys())",
"def iXlf(YKHO):\n return list(YKHO.__graph_dict.keys())",
"def iXlf(YKHO):\n return list(YKHO.graph_dict.keys())",
"def iXlf(YKHO):\n return list(YKHO.__graph_dict.keys())",
"def iXlf(YKHO):\n return list(YKHO.__graph_dict.keys())",
... | [
"0.6008714",
"0.5979344",
"0.5959931",
"0.59250546",
"0.59250546",
"0.59250546",
"0.5842037",
"0.5757458",
"0.5749627",
"0.57164484",
"0.5702582",
"0.56712097",
"0.564665",
"0.55766124",
"0.5575081",
"0.5548141",
"0.5543155",
"0.5519122",
"0.55157876",
"0.5514925",
"0.5509950... | 0.83275044 | 0 |
The purpose of this function is to determine if the file contains any irregularities in its grouping of traces such that it cannot be treated as episodic. Even "continuous" recordings can be treated as singleepisode recordings and could be identified as safe by this function. Recordings in which the user has changed gr... | def Uly4(YKHO):
if YKHO.info['format_ver'] < 3:
YKHO.logger.debug('Cannot treat as episodic because old format contains insufficient metadata')
return False
if 'n_episodes' not in YKHO.info:
YKHO.logger.debug('Cannot treat as episodic because episode metadata is missing or could not be p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yil8(YKHO):\n RKD7.info('START INTEG TEST INVALID')\n YKHO.clear_sample_data()\n YKHO.clear_async_data()\n Ux0P = 'A1000003.DEC'\n YKHO.create_sample_data('invalid_A0000003.DEC', Ux0P)\n YKHO.driver.start_sampling()\n YKHO.assert_event('ResourceAgentErrorEvent')\n YKHO.assert_file_inges... | [
"0.5769933",
"0.55606663",
"0.54373896",
"0.54362535",
"0.53248245",
"0.5324784",
"0.5255731",
"0.5255715",
"0.52249795",
"0.51726514",
"0.50999194",
"0.50902814",
"0.50717276",
"0.50683993",
"0.50560623",
"0.5054256",
"0.50523937",
"0.50458014",
"0.5033371",
"0.50257045",
"0... | 0.6939343 | 0 |
Should not be able to draw more cards than the deck has. | def Xu3m(YKHO):
W00d = 3
Csk6 = QHsX(W00d)
for bGrB in range(W00d):
Csk6.draw()
YKHO.assertRaises(ValueError, Csk6.draw)
Csk6.shuffle_in([1])
Csk6.draw()
YKHO.assertRaises(ValueError, Csk6.draw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c8j0(YKHO):\n khoC = YKHO.deck._deal(100)\n YKHO.assertEqual(len(khoC), 52)\n YKHO.assertEqual(YKHO.deck.count(), 0)",
"def BhjR(YKHO):\n YKHO.initDeck([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])\n dxhl = YKHO.testDeck.draw()\n assert len(YKHO.testDeck.deck) == 9, 'Test Deck did not reduce'\n asser... | [
"0.7825125",
"0.7766139",
"0.75546825",
"0.7535202",
"0.74913603",
"0.74258476",
"0.7174996",
"0.70795816",
"0.7064645",
"0.6902885",
"0.689841",
"0.68690825",
"0.68515193",
"0.68402046",
"0.680997",
"0.68012035",
"0.66886955",
"0.6684159",
"0.66567373",
"0.664671",
"0.658313... | 0.756325 | 2 |
Should be able to draw cards after they have been discarded. | def eMWi(YKHO):
W00d = 3
Csk6 = QHsX(W00d)
for bGrB in range(W00d):
Csk6.draw()
Csk6.discard([1, 3])
YRTH = Csk6.draw(2)
YKHO.assertEqual(len(YRTH), 2)
YKHO.assertIn(1, YRTH)
YKHO.assertIn(3, YRTH) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JmFt(YKHO):\n Z9rn = YKHO.cards[0]\n YKHO.cards = YKHO.cards[1:]\n YKHO.discards.append(Z9rn)\n return Z9rn",
"def BhjR(YKHO):\n YKHO.initDeck([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])\n dxhl = YKHO.testDeck.draw()\n assert len(YKHO.testDeck.deck) == 9, 'Test Deck did not reduce'\n assert len(... | [
"0.7486688",
"0.74782044",
"0.7115886",
"0.7073679",
"0.7014115",
"0.6967685",
"0.687977",
"0.68510664",
"0.6804536",
"0.6786305",
"0.677374",
"0.67620033",
"0.6761554",
"0.6742071",
"0.67373544",
"0.6732128",
"0.6706749",
"0.66286",
"0.66264594",
"0.6582424",
"0.6581821",
... | 0.7765175 | 0 |
Iterator that yields each group in provided parent and all its kids. | def t3vy(_AKB=None):
if _AKB is None:
_AKB = SeK0.instance().layerTreeRoot()
def msRk(C4gk, ABDL=0):
for aUGN in C4gk.children():
if isinstance(aUGN, Lbo0):
yield aUGN
msRk(aUGN, level=ABDL + 1)
msRk(_AKB) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eNvf(YKHO):\n yield YKHO\n for G1Hx in YKHO._kids:\n for ERMG in G1Hx.traverse():\n yield ERMG",
"def f3O6(YKHO):\n return iter(YKHO._groups)",
"def T2ju(YKHO) -> bDy6['Entity']:\n for ShoO in YKHO.vmf.entities:\n if YKHO.id in ShoO.visgroup_ids:\n yield ShoO... | [
"0.67042893",
"0.6437444",
"0.62844825",
"0.6282001",
"0.6275961",
"0.62499756",
"0.6210878",
"0.61913216",
"0.6111999",
"0.6083645",
"0.60517937",
"0.60327196",
"0.6013189",
"0.60099596",
"0.6009243",
"0.5991609",
"0.5924109",
"0.5902874",
"0.5890214",
"0.5823052",
"0.581849... | 0.63130563 | 2 |
Initialize a new Rectangle | def FIMM(YKHO, TVTK, H2v2, WKvO=0, LVAh=0, id=None):
super().__init__(id)
YKHO.width = TVTK
YKHO.height = H2v2
YKHO.x = WKvO
YKHO.y = LVAh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, H2v2, TVTK):\n YKHO._width = None\n YKHO._height = None\n YKHO.width = TVTK\n YKHO.height = H2v2",
"def BL3B(YKHO):\n CYjz = x7Ls(10, 2, 1, 3, 12)\n YKHO.assertEqual(CYjz.width, 10)\n YKHO.assertEqual(CYjz.height, 2)\n YKHO.assertEqual(CYjz.x, 1)\n YKHO.assertEqual(CYjz.... | [
"0.7834529",
"0.78256065",
"0.75949436",
"0.7264191",
"0.72496116",
"0.7239379",
"0.71683043",
"0.71683043",
"0.6930802",
"0.6921666",
"0.6878381",
"0.68678594",
"0.6778704",
"0.6776751",
"0.6755098",
"0.6743207",
"0.6714232",
"0.66832006",
"0.6670062",
"0.6668818",
"0.666411... | 0.62856084 | 48 |
This class get's both the first and last names of the user and forms a full name | def xpqj(Emd4, uJjO):
P6bq = Emd4.query.get_or_404(uJjO)
hZ9G = P6bq.first_name
XUdX = P6bq.last_name
QMNZ = f'{hZ9G} {XUdX}'
return QMNZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xpqj(YKHO):\n return YKHO.first_name + ' ' + YKHO.last_name",
"def xpqj(YKHO):\n eHMM = f'{YKHO.first_name} {YKHO.last_name}' if YKHO.first_name and YKHO.last_name else YKHO.username\n return eHMM.strip()",
"def eHMM(YKHO):\n return '{} {}'.format(YKHO.user.first_name, YKHO.user.last_name)",
... | [
"0.79608184",
"0.7814575",
"0.7783438",
"0.7752318",
"0.7694378",
"0.7690714",
"0.7685227",
"0.7678176",
"0.76225036",
"0.76109666",
"0.76073956",
"0.760404",
"0.7595049",
"0.7582622",
"0.75698763",
"0.75322276",
"0.75229156",
"0.75219655",
"0.7495364",
"0.7468576",
"0.745161... | 0.7506271 | 18 |
Check if the filename starts with '.'. | def SBDS(WE7e, pmON):
SQ3m = pmON.split('/')
return SQ3m[-1].startswith('.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GJVi(mWFP: str) -> bool:\n return not mWFP.startswith('.')",
"def T7Ew(eHNT):\n return eHNT.startswith('.')",
"def aD5O(YKHO, Ux0P):\n return not (Ux0P == 'CVS' or Ux0P.startswith('.'))",
"def YgKf(Ux0P):\n return '.' in Ux0P and Ux0P.rsplit('.', 1)[1] in UWr8",
"def XT0o(Ux0P):\n return... | [
"0.77190995",
"0.7555146",
"0.74901253",
"0.73902214",
"0.7305673",
"0.7305673",
"0.7297658",
"0.7257641",
"0.7257641",
"0.7255347",
"0.7255347",
"0.7255347",
"0.7255347",
"0.7255347",
"0.7255347",
"0.7255347",
"0.7255347",
"0.7255347",
"0.7255347",
"0.72414994",
"0.71881187"... | 0.0 | -1 |
Returns a True if the notebook exists. Else, returns False. | def Nq3Z(YKHO, mWFP, pmON=''):
JakV = YKHO._get_os_path(mWFP, path=pmON)
return zxrN(YKHO.bucket, JakV) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M9uf(YKHO):\n return YKHO.notebook_id >= 0",
"def Qu0Q(Ux0P):\n tk5Y, YBcr = Hy7s.path.splitext(Ux0P)\n if YBcr == '.ipynb':\n return Hy7s.path.exists(Ux0P)",
"def mDyP():\n from IPython import get_ipython\n return get_ipython() is not None",
"def _k2L():\n HhoA = [\"<class 'goog... | [
"0.783094",
"0.7588069",
"0.7325659",
"0.70914716",
"0.7054147",
"0.6801889",
"0.6639253",
"0.6511504",
"0.6470998",
"0.63912725",
"0.6366978",
"0.63283736",
"0.61827576",
"0.6174819",
"0.6151063",
"0.61224484",
"0.60806626",
"0.6064784",
"0.6046433",
"0.6041688",
"0.6035612"... | 0.7897925 | 0 |
Get the child places for a place. | def pRJL(ZB9z):
MOSY = gGFf(ZB9z)
crTG = gGFf(MOSY[-1]['dcid'])
return qQXR.dumps(MOSY + crTG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dKXo(YKHO):\n return YKHO.wrapper.getPlaces()",
"def WqIZ(YKHO, nvWN):\n Ll8J = []\n for Yqjc in nvWN.split():\n C6id = YKHO.database.get_place_from_gramps_id(Yqjc)\n if C6id is not None:\n Ll8J.append(C6id.get_handle())\n return Ll8J",
"def p0NI(YKHO):\n YKHO.cursor... | [
"0.6944043",
"0.65577054",
"0.6258854",
"0.61915475",
"0.60052454",
"0.596445",
"0.59637725",
"0.5939532",
"0.59244084",
"0.58332634",
"0.5780296",
"0.57200986",
"0.57186574",
"0.5686937",
"0.56850696",
"0.56850696",
"0.56850696",
"0.5673729",
"0.56638",
"0.5612541",
"0.55808... | 0.52672714 | 60 |
Add nonterminals into the set. | def H2v5(YKHO, *vkVo):
for qpvu in vkVo:
if qpvu in YKHO:
continue
hHA0._control_nonterminal(qpvu)
super().add(qpvu)
YKHO._assign_map[qpvu] = set() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vkVo(Oa1e):\n return Oa1e._categories.copy()",
"def XHgU(YKHO, vkVo):\n if YKHO.methods is not None:\n for Xa1A in vkVo.values():\n assert Xa1A.type is not None\n return H2st(vkVo, goal_nts=YKHO.goals(), variable_terminals=YKHO.variable_terminals, synthetic_terminals=YKHO.synthetic... | [
"0.61607057",
"0.6099774",
"0.60659105",
"0.5839105",
"0.5811535",
"0.5798631",
"0.5659714",
"0.5615129",
"0.5605916",
"0.5590496",
"0.55520964",
"0.54399717",
"0.52611053",
"0.5178924",
"0.51368254",
"0.5062654",
"0.49983808",
"0.4963189",
"0.4963189",
"0.4959687",
"0.494095... | 0.83059305 | 0 |
Add a receipt to internal state. The receipt will be recallable by token, and, if present, by label. Internal use only; use handle_message instead. | def d01W(YKHO, tO9_, _E99):
YKHO._receipt_identities[tO9_.get_token()] = _E99
YKHO._receipts[tO9_.get_token()] = tO9_
if tO9_.get_label():
YKHO._receipt_labels[tO9_.get_label()] = tO9_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sWSE(YKHO, GBG3, p4Qc):\n bD7m = NKRf + GBG3 + '/receipt'\n CS4K = [{'receipt': {'filename': aPr_(p4Qc), 'content': open(p4Qc).read()}}]\n nPrm = {'JSONString': ''}\n _hkX = VJUt.post(bD7m, YKHO.details, YKHO.headers, nPrm, None, CS4K)\n return wvEv.get_message(_hkX)",
"def lICC(YKHO, PObu, tO... | [
"0.5916752",
"0.5675391",
"0.55731374",
"0.5442303",
"0.52593875",
"0.52424407",
"0.521719",
"0.51736295",
"0.5109758",
"0.49168697",
"0.49027428",
"0.48780695",
"0.48640293",
"0.48612908",
"0.4858887",
"0.48483735",
"0.48226878",
"0.48066953",
"0.47987196",
"0.47987112",
"0.... | 0.75338984 | 0 |
Given a capability token or label, a temporal scope, a dictionary of parameters, and an optional new label, derive a specification and send it to the appropriate destination. | def s0iv(YKHO, GX4u, ZpyY, NArs, koBJ=None):
Fd1k, Cqok = YKHO._spec_for(GX4u, ZpyY, NArs, koBJ)
Cqok.validate()
nQey = Fd1k.get_link()
YKHO.send_message(Cqok, nQey)
return Cqok | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C275(YKHO, GX4u, ZpyY, NArs, koBJ=None):\n Fd1k = YKHO.capability_for(GX4u)\n Cqok = zPsH.model.Specification(capability=Fd1k)\n Cqok.set_when(ZpyY)\n for Ra7F in Cqok.parameter_names():\n if Cqok.get_parameter_value(Ra7F) is None:\n if Ra7F in NArs:\n Cqok.set_para... | [
"0.56868184",
"0.5171123",
"0.4711958",
"0.4625935",
"0.45607388",
"0.45518523",
"0.45495617",
"0.445999",
"0.44456288",
"0.4442746",
"0.44139263",
"0.43639717",
"0.43372053",
"0.4330416",
"0.43201634",
"0.43161088",
"0.43155912",
"0.43072394",
"0.42999342",
"0.42915013",
"0.... | 0.57999367 | 0 |
Computes the accuracy over the k top predictions for the specified values of k | def vjyh(hlel, pan_, hz5a=(1,)):
with ht2j.no_grad():
Gq8e = max(hz5a)
Ep8u = pan_.size(0)
bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)
nvEb = nvEb.t()
gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))
Ylbp = []
for G1Hx in hz5a:
R2Dg = gXXc[:G1Hx].r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z7qO(LVAh, aMgO, G1Hx=2):\n nvEb = []\n for YRbF in range(len(LVAh)):\n if LVAh[YRbF] in aMgO[YRbF][:G1Hx]:\n nvEb.append(1)\n else:\n nvEb.append(0)\n return sum(nvEb) / len(nvEb)",
"def vjyh(aMgO, ibJh, hz5a=(1,)):\n Gq8e = max(hz5a)\n Ep8u = ibJh.size(0)\... | [
"0.8330614",
"0.8285004",
"0.82375455",
"0.8229273",
"0.82195294",
"0.8185992",
"0.8184316",
"0.8174685",
"0.817106",
"0.8169587",
"0.8166069",
"0.8164076",
"0.816332",
"0.816176",
"0.816176",
"0.816176",
"0.816176",
"0.816176",
"0.816176",
"0.816176",
"0.816176",
"0.816176... | 0.78616923 | 70 |
Precision metric. Only computes a batchwise average of precision. Computes the precision, a metric for multilabel classification of how many selected items are relevant. | def rhd_(Y8eF, aMgO):
COti = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1)))
ftZB = nMvt.sum(nMvt.round(nMvt.clip(aMgO, 0, 1)))
rhd_ = COti / (ftZB + nMvt.epsilon())
return rhd_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(YKHO):\n YKHO.overall_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=YKHO.average_type).round(YKHO.digits_count_fp)\n YKHO.classes_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=None).round(YKHO.digits_count_fp)",
"def lGpo(nPrm, svPB=4):\n gCUM = []\n for KAOR in nPrm:\n RDeU... | [
"0.7489789",
"0.7288577",
"0.7160126",
"0.71535283",
"0.7066027",
"0.69853693",
"0.6965701",
"0.69550425",
"0.69127744",
"0.6834017",
"0.68179363",
"0.6809387",
"0.68049496",
"0.68049496",
"0.68049496",
"0.68049496",
"0.68049496",
"0.68049496",
"0.6785694",
"0.67549634",
"0.6... | 0.67576426 | 23 |
Recall metric. Only computes a batchwise average of recall. Computes the recall, a metric for multilabel classification of how many relevant items are selected. | def AOzf(Y8eF, aMgO):
COti = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1)))
z5jX = nMvt.sum(nMvt.round(nMvt.clip(Y8eF, 0, 1)))
AOzf = COti / (z5jX + nMvt.epsilon())
return AOzf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AOzf(Y8eF, aMgO, S8vG, Crrw):\n Y8eF, aMgO = eN6f(Y8eF, aMgO, S8vG, Crrw)\n Aofo = None\n r8hN = len(Y8eF)\n exwG = len(Crrw)\n YsYU = A3YK(Y8eF, aMgO, Crrw).T\n if S8vG == 'micro':\n M6pt = oyIN.trace(YsYU)\n UUZ1 = oyIN.sum(YsYU)\n Aofo = M6pt / UUZ1\n elif S8vG == '... | [
"0.7605524",
"0.74488467",
"0.7404089",
"0.7280915",
"0.72097343",
"0.7165874",
"0.7157609",
"0.7145226",
"0.7145226",
"0.7145226",
"0.7145226",
"0.7145226",
"0.7145226",
"0.71317255",
"0.71007556",
"0.70970625",
"0.70970625",
"0.70970625",
"0.70970625",
"0.70970625",
"0.7097... | 0.70627505 | 39 |
Single weights node initialization | def ubJP(YKHO):
s1k6 = dsvf.Weights(ZylS.initializers.constant(3), num_weights=2)
xMw6 = dsvf.Weights(ZylS.initializers.constant(0.3), num_weights=4)
RZeI = dsvf.Weights(ZylS.initializers.constant([0.4, 0.4, 1.2]), num_weights=3)
ffxv = dsvf.Weights(ZylS.initializers.constant(3), num_weights=2, num_sums... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def INZt(YKHO):\n exwG = o7DN(value=2.0)\n YKHO.assertEqual(exwG.weights, None)",
"def C0Lv(YKHO):\n pass",
"def FIMM(YKHO, _mSQ):\n YKHO._weights = _mSQ",
"def vJuA(YKHO):\n raise NotImplementedError",
"def vB93(YKHO, SUd8=None):\n if SUd8:\n pass\n else:\n WKvO = YKHO.w... | [
"0.78088313",
"0.7614604",
"0.7602124",
"0.7485865",
"0.73667747",
"0.7364828",
"0.7220855",
"0.72090125",
"0.72056407",
"0.7126741",
"0.7101997",
"0.70542777",
"0.70406544",
"0.7008271",
"0.70050055",
"0.70019543",
"0.6988151",
"0.6959204",
"0.6931775",
"0.6924704",
"0.68929... | 0.0 | -1 |
Group initialization of weights nodes | def uaQO(YKHO):
hQHm = dsvf.IVs(num_vars=1, num_vals=2)
jlSq = dsvf.IVs(num_vars=1, num_vals=4)
bUZ8 = dsvf.IVs(num_vars=1, num_vals=2)
V3aR = dsvf.IVs(num_vars=1, num_vals=2)
j93S = dsvf.Sum(hQHm)
j93S.generate_weights(ZylS.initializers.constant([0.2, 0.3]))
Nqp_ = dsvf.Sum(jlSq)
Nqp_.g... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sTi3(tk5Y, mWFP='InitializeWeights'):\n a8xn = []\n\n def uIcm(Q6kx):\n if isinstance(Q6kx, Q5DW):\n a8xn.append(Q6kx.initialize())\n if isinstance(Q6kx, QcAK):\n a8xn.extend(Q6kx.initialize())\n with ZylS.name_scope(mWFP):\n J0TA(tk5Y, fun=uIcm, skip_params=... | [
"0.69794035",
"0.678198",
"0.67355925",
"0.6731823",
"0.67002326",
"0.66903067",
"0.66789675",
"0.66703427",
"0.663487",
"0.6616375",
"0.65712744",
"0.6481883",
"0.6477805",
"0.647141",
"0.64388835",
"0.64247435",
"0.6420177",
"0.6381365",
"0.6364974",
"0.6348846",
"0.6343704... | 0.68317205 | 1 |
Returns euclidian distance (Frobenius norm) between two feature vectors. | def k8EB(QLgk, aQJ1):
return oyIN.linalg.norm(QLgk - aQJ1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def usGr(lSjb, v8Fa):\n return XTiz.linalg.norm(lSjb - v8Fa)",
"def usGr(jzdc, Fg_i):\n return oyIN.linalg.norm(jzdc - Fg_i)",
"def Q1Zj(YKHO, lSjb, v8Fa):\n return PZyS(sum([(float(hQHm) - float(jlSq)) ** 2 for hQHm, jlSq in zip(lSjb, v8Fa)]))",
"def sffJ(FXhF, RMVR):\n return oyIN.sqrt(oyIN.sum... | [
"0.7579426",
"0.7574507",
"0.7536353",
"0.7535983",
"0.7535354",
"0.7488607",
"0.7417474",
"0.7396157",
"0.73755294",
"0.7360084",
"0.7289144",
"0.72854906",
"0.7278817",
"0.7235038",
"0.7227906",
"0.72066176",
"0.71888614",
"0.7179744",
"0.715848",
"0.7098075",
"0.70752966",... | 0.7895188 | 0 |
returns a list of clientIDs server serves in job. | def Onn9(YKHO, N5z6):
HwSA = S3vU.get_job_servers(YKHO.job)
for Wswm, mWFP in HwSA.iteritems():
if mWFP == N5z6:
zmPu = (YKHO.numclients + len(HwSA) - 1) / len(HwSA)
Onn9 = range(YKHO.numclients)[Wswm * zmPu:(Wswm + 1) * zmPu]
return [str(exwG) for exwG in Onn9]
r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t1nr(YKHO):\n YKHO.server_job_ids = list()\n for N5z6 in YKHO.servers:\n if N5z6 != 'local':\n with qFF3(N5z6) as z2E1:\n YKHO.server_job_ids.extend(z2E1.check_running_jobs_ids())\n else:\n YKHO.server_job_ids.extend(nrIh())",
"def ik_9(YKHO):\n\n d... | [
"0.7471263",
"0.7046936",
"0.6457601",
"0.6426025",
"0.6426025",
"0.63822436",
"0.63252646",
"0.6306062",
"0.6298902",
"0.62646514",
"0.6258621",
"0.62564933",
"0.62270117",
"0.6224972",
"0.62159467",
"0.6213349",
"0.6194145",
"0.6183434",
"0.61817163",
"0.6146069",
"0.613771... | 0.792856 | 0 |
The database against which the aggregation command is run. | def t8hf(YKHO):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p9bx(YKHO):\n return YKHO._database",
"def p9bx(YKHO):\n return YKHO._database",
"def p9bx(YKHO):\n return YKHO._database",
"def p9bx(YKHO):\n return YKHO._database",
"def u_OD(YKHO):\n return YKHO.database",
"def p9bx(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'database')",
... | [
"0.7232126",
"0.7232126",
"0.7232126",
"0.7232126",
"0.72295964",
"0.70903516",
"0.70870066",
"0.70870066",
"0.70608133",
"0.70608133",
"0.69322",
"0.69302887",
"0.6859931",
"0.6821391",
"0.67796963",
"0.67692703",
"0.67665756",
"0.6765075",
"0.6670747",
"0.6669837",
"0.66518... | 0.5897471 | 70 |
Return the name of the sensor. | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO._sensor.name",
"def _lKy(YKHO):\n return YKHO.data[1]",
"def mWFP(YKHO):\n return YKHO.device.device_data[YKHO.device_id]['name'] + f' {YKHO._sensor_type}'",
"def mWFP(YKHO):\n return f'{YKHO._name} {lc9R[YKHO.sensor][0]}'",
"def mWFP(YKHO):\n return f'{YKHO._na... | [
"0.91896784",
"0.9168378",
"0.890185",
"0.8770976",
"0.8511273",
"0.8479953",
"0.844435",
"0.8299758",
"0.8186503",
"0.8105667",
"0.8079737",
"0.8066149",
"0.8049647",
"0.7700968",
"0.7612295",
"0.7611456",
"0.7600605",
"0.7600605",
"0.7600605",
"0.75392073",
"0.75166553",
... | 0.0 | -1 |
Return the state class of this entity. | def VPCt(YKHO):
if YKHO._state_characteristic in (Opow, aMy_, K98M):
return None
return NCR7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VPCt(YKHO) -> F6px | str | None:\n if hasattr(YKHO, '_attr_state_class'):\n return YKHO._attr_state_class\n if hasattr(YKHO, 'entity_description'):\n return YKHO.entity_description.state_class\n return None",
"def nSzY():\n D7vC = KH6q\n qtQv = '.'.join(['src', dtkQ('model_name')... | [
"0.8629248",
"0.7599054",
"0.697592",
"0.6961116",
"0.6930336",
"0.6925137",
"0.6867529",
"0.6736368",
"0.6721267",
"0.67026275",
"0.66721535",
"0.66450566",
"0.66450566",
"0.65895265",
"0.65895265",
"0.65895265",
"0.65895265",
"0.65895265",
"0.65676445",
"0.65491563",
"0.654... | 0.7025339 | 2 |
Return the state attributes of the sensor. | def TzCU(YKHO):
if YKHO.is_binary:
return None
return YKHO.attr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R1i3(YKHO):\n return YKHO.attributes",
"def R1i3(YKHO):\n return YKHO._attributes",
"def R1i3(YKHO):\n return YKHO.attr",
"def R1i3(YKHO):\n return YKHO.attr",
"def R1i3(YKHO) -> cuzp[str, any]:\n return YKHO._device.state_attributes",
"def R1i3(YKHO):\n return YKHO._state_attrs",
... | [
"0.84178215",
"0.8248618",
"0.8242616",
"0.8242616",
"0.8199547",
"0.81679296",
"0.81679296",
"0.8158863",
"0.8158863",
"0.81448156",
"0.81448156",
"0.81448156",
"0.81448156",
"0.81448156",
"0.81448156",
"0.81448156",
"0.81448156",
"0.81448156",
"0.81448156",
"0.81448156",
"0... | 0.0 | -1 |
Remove states which are older than self._samples_max_age. | def q5vw(YKHO):
wzkt = GhSD.utcnow()
vzeF.debug('%s: purging records older then %s(%s)', YKHO.entity_id, GhSD.as_local(wzkt - YKHO._samples_max_age), YKHO._samples_max_age)
while YKHO.ages and wzkt - YKHO.ages[0] > YKHO._samples_max_age:
vzeF.debug('%s: purging record with datetime %s(%s)', YKHO.ent... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WPIr(YKHO, hU_H=8):\n XWHp = []\n for xfCv in YKHO.detections:\n if xfCv.frames_undetected < YKHO.delete_after and (not (xfCv.is_hidden and xfCv.age < hU_H)):\n XWHp.append(xfCv)\n YKHO.detections = XWHp",
"def x0SS(YKHO, ZZ9W, uqEL):\n YKHO.interface.start_transaction()\n Z_... | [
"0.59337246",
"0.5827249",
"0.5745498",
"0.56858295",
"0.5640609",
"0.56251603",
"0.56220967",
"0.56054664",
"0.5602948",
"0.55971086",
"0.54795706",
"0.5435903",
"0.5435709",
"0.53906727",
"0.5388803",
"0.5379447",
"0.5323996",
"0.5295664",
"0.52084166",
"0.51887524",
"0.516... | 0.7262178 | 0 |
Set rightLimit for player | def h8Fr():
oyg0.rect.x = Wl2e - 75 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ypKe():\n oyg0.rect.x = 25",
"def osY6():\n oyg0.rect.y = 100",
"def YzO5():\n oyg0.rect.y = 25",
"def KFRb(YKHO) -> None:\n YKHO._routes[YKHO._current_route_key]['RIGHT'] += 1\n R8mN = YKHO._player.x + YKHO.MOVE_INC\n if R8mN + YKHO.PLAYER_DIM <= YKHO._height and R8mN - YKHO.PLAYER_DIM... | [
"0.74786675",
"0.72668225",
"0.7260041",
"0.6175794",
"0.59865075",
"0.5870041",
"0.5826005",
"0.58249944",
"0.5654244",
"0.5632131",
"0.56218606",
"0.5610547",
"0.5608248",
"0.55937934",
"0.55500174",
"0.5539018",
"0.55057216",
"0.54971546",
"0.54699177",
"0.5462369",
"0.545... | 0.83479255 | 0 |
Updating self every turn and randomizing self's position in beginning of game once | def QdZT(YKHO):
if YKHO.__randomize:
YKHO.rect.x = tuKI.randrange(75, Wl2e - 125)
YKHO.rect.y = tuKI.randrange(25, dVi8 - 100)
YKHO.__randomize = False
YKHO.image.blit(KnxT, (YKHO.rect.x, YKHO.rect.y)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO):\n if YKHO.x < 0:\n YKHO.x = 0\n if YKHO.y < 0:\n YKHO.y = 0\n if bool(ajWY(0, 1)) == True:\n if YKHO.walker == True:\n YKHO.x += ajWY(-2, 2)\n YKHO.y += ajWY(-2, 2)",
"def BZN_(YKHO):\n if tuKI.random() < 0.5:\n YKHO.y = (YKHO.y + 1) %... | [
"0.7598363",
"0.7199339",
"0.7077895",
"0.6851121",
"0.6839801",
"0.67165154",
"0.6706185",
"0.6702597",
"0.66857135",
"0.66033804",
"0.65996116",
"0.6574611",
"0.65735203",
"0.65107536",
"0.6475178",
"0.6459747",
"0.6451661",
"0.642474",
"0.64114106",
"0.6407091",
"0.6403537... | 0.60438895 | 66 |
svn_diff_diff(void diff_baton, svn_diff_fns_t diff_fns, apr_pool_t pool) > svn_error_t | def FvYT(*qIxc):
return okyX.svn_diff_diff(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PvxT(JiKg, R7cN, tbeo, RDvD, jgXF, PDll, _MgP, aXeI, egVR, qH3T, vSkh, Ms4i):\n pass",
"def csQp(*qIxc):\n return okyX.svn_diff_file_diff(*qIxc)",
"def gni9(*qIxc):\n return okyX.svn_diff_diff_2(*qIxc)",
"def hZg1(*qIxc):\n return okyX.svn_diff_diff3(*qIxc)",
"def Qnkb(*qIxc):\n return o... | [
"0.76889503",
"0.759377",
"0.7541254",
"0.73342055",
"0.72938746",
"0.7247497",
"0.7182617",
"0.7107036",
"0.70319104",
"0.6998972",
"0.6932435",
"0.6927589",
"0.6919205",
"0.6899022",
"0.68638873",
"0.6787968",
"0.6703951",
"0.67031974",
"0.6657434",
"0.659968",
"0.6554684",... | 0.8039328 | 0 |
svn_diff_diff3_2(void diff_baton, svn_diff_fns2_t diff_fns, apr_pool_t pool) > svn_error_t | def yY3h(*qIxc):
return okyX.svn_diff_diff3_2(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hZg1(*qIxc):\n return okyX.svn_diff_diff3(*qIxc)",
"def uGRa(JiKg, R7cN, tbeo, RDvD, jgXF, PDll, _MgP, aXeI, M6mB, F2XY, egVR, qH3T, vSkh, Ms4i):\n pass",
"def z5tp(*qIxc):\n return okyX.svn_diff_file_diff3(*qIxc)",
"def KnDK(*qIxc):\n return okyX.svn_diff_file_diff3_2(*qIxc)",
"def n8zX(Ji... | [
"0.8128958",
"0.77862436",
"0.77663904",
"0.77593523",
"0.7159",
"0.7076977",
"0.7031755",
"0.7010591",
"0.6954132",
"0.6952666",
"0.6916522",
"0.69029796",
"0.6864301",
"0.6616684",
"0.6608643",
"0.6582322",
"0.6562615",
"0.6560773",
"0.65311325",
"0.65228826",
"0.64100254",... | 0.8109475 | 1 |
svn_diff_diff3(void diff_baton, svn_diff_fns_t diff_fns, apr_pool_t pool) > svn_error_t | def hZg1(*qIxc):
return okyX.svn_diff_diff3(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z5tp(*qIxc):\n return okyX.svn_diff_file_diff3(*qIxc)",
"def uGRa(JiKg, R7cN, tbeo, RDvD, jgXF, PDll, _MgP, aXeI, M6mB, F2XY, egVR, qH3T, vSkh, Ms4i):\n pass",
"def yY3h(*qIxc):\n return okyX.svn_diff_diff3_2(*qIxc)",
"def KnDK(*qIxc):\n return okyX.svn_diff_file_diff3_2(*qIxc)",
"def n8zX(... | [
"0.786344",
"0.7859776",
"0.7858998",
"0.75371605",
"0.7157951",
"0.71286494",
"0.7087196",
"0.7055487",
"0.7025724",
"0.697152",
"0.6791941",
"0.67373097",
"0.6674438",
"0.6652791",
"0.66304404",
"0.6623619",
"0.6579607",
"0.64963216",
"0.6457961",
"0.6386723",
"0.6380353",
... | 0.82420737 | 0 |
svn_diff_output2(svn_diff_t diff, void output_baton, svn_diff_output_fns_t output_fns, svn_cancel_func_t cancel_func) > svn_error_t | def dEsg(yk4i, PLJo, cMXP, eToL):
return okyX.svn_diff_output2(yk4i, PLJo, cMXP, eToL) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tZDN(yk4i, PLJo, cMXP):\n return okyX.svn_diff_output(yk4i, PLJo, cMXP)",
"def HaKY(*qIxc):\n return okyX.svn_diff_file_output_merge2(*qIxc)",
"def emNB(*qIxc):\n return okyX.svn_diff_file_output_unified2(*qIxc)",
"def iGWk(UTAq, PLJo, oipR, _sai, JldS, uF6d, rp6q, V3t1):\n return okyX.svn_di... | [
"0.8327311",
"0.74597603",
"0.726367",
"0.71994615",
"0.71931356",
"0.7160324",
"0.71589833",
"0.7073768",
"0.701439",
"0.69915897",
"0.68361396",
"0.68031865",
"0.67311144",
"0.6713882",
"0.65529233",
"0.64137167",
"0.63629717",
"0.6358067",
"0.63497907",
"0.62244606",
"0.62... | 0.9232155 | 0 |
svn_diff_file_options_create(apr_pool_t pool) > svn_diff_file_options_t | def CzJV(*qIxc):
return okyX.svn_diff_file_options_create(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G0i7(*qIxc):\n return okyX.svn_diff_file_options_parse(*qIxc)",
"def FIMM(YKHO):\n VQ6Z = okyX.new_svn_diff_file_options_t()\n try:\n YKHO.this.append(VQ6Z)\n except ONrU.Exception:\n YKHO.this = VQ6Z",
"def PvxT(JiKg, R7cN, tbeo, RDvD, jgXF, PDll, _MgP, aXeI, egVR, qH3T, vSkh, Ms... | [
"0.71705943",
"0.6928227",
"0.68095946",
"0.6783222",
"0.6740334",
"0.6540124",
"0.6520473",
"0.6357256",
"0.6353917",
"0.63143504",
"0.63106793",
"0.62188953",
"0.62014216",
"0.6139928",
"0.6087769",
"0.6072304",
"0.60126734",
"0.59975225",
"0.59916836",
"0.5985896",
"0.5966... | 0.8128022 | 0 |
svn_diff_file_diff_2(char const original, char const modified, svn_diff_file_options_t options, apr_pool_t pool) > svn_error_t | def ujlU(*qIxc):
return okyX.svn_diff_file_diff_2(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def csQp(*qIxc):\n return okyX.svn_diff_file_diff(*qIxc)",
"def P6kK(JiKg, R7cN, tbeo, RDvD, jgXF, PDll, _MgP, aXeI, M6mB, egVR, qH3T, vSkh, Ms4i):\n pass",
"def gni9(*qIxc):\n return okyX.svn_diff_diff_2(*qIxc)",
"def PvxT(JiKg, R7cN, tbeo, RDvD, jgXF, PDll, _MgP, aXeI, egVR, qH3T, vSkh, Ms4i):\n ... | [
"0.7937261",
"0.78287894",
"0.7811356",
"0.77393734",
"0.76436055",
"0.7441029",
"0.7408587",
"0.74080104",
"0.73955595",
"0.73083323",
"0.72564185",
"0.72010434",
"0.71530855",
"0.7145206",
"0.71068466",
"0.7046226",
"0.69050634",
"0.6785158",
"0.6729162",
"0.67161703",
"0.6... | 0.80658334 | 0 |
svn_diff_file_output_merge3(svn_stream_t output_stream, svn_diff_t diff, char const original_path, char const modified_path, char const latest_path, char const conflict_original, char const conflict_modified, char const conflict_latest, char const conflict_separator, svn_diff_conflict_display_style_t conflict_style, sv... | def rHJT(*qIxc):
return okyX.svn_diff_file_output_merge3(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FdKG(*qIxc):\n return okyX.svn_diff_file_output_unified3(*qIxc)",
"def z5tp(*qIxc):\n return okyX.svn_diff_file_diff3(*qIxc)",
"def KnDK(*qIxc):\n return okyX.svn_diff_file_diff3_2(*qIxc)",
"def Nw6K(*qIxc):\n return okyX.svn_diff_file_output_merge(*qIxc)",
"def i4bT(v7AA, tbeo, DHMG, jgXF,... | [
"0.7045657",
"0.691441",
"0.6885362",
"0.68369275",
"0.68339694",
"0.6772713",
"0.6610849",
"0.6591813",
"0.6580356",
"0.65418196",
"0.6456866",
"0.61972195",
"0.6161685",
"0.6131182",
"0.61219406",
"0.60142654",
"0.5989425",
"0.5879229",
"0.57875335",
"0.5693674",
"0.5687219... | 0.80872387 | 0 |
svn_diff_mem_string_diff3(svn_string_t const original, svn_string_t const modified, svn_string_t const latest, svn_diff_file_options_t options, apr_pool_t pool) > svn_error_t | def fRI0(*qIxc):
return okyX.svn_diff_mem_string_diff3(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mhtu(*qIxc):\n return okyX.svn_diff_mem_string_diff(*qIxc)",
"def M4fz(*qIxc):\n return okyX.svn_diff_mem_string_diff4(*qIxc)",
"def joKX(*qIxc):\n return okyX.svn_diff_mem_string_output_unified3(*qIxc)",
"def CIsa(*qIxc):\n return okyX.svn_diff_mem_string_output_merge3(*qIxc)",
"def hZg1(*... | [
"0.8111812",
"0.79990304",
"0.758437",
"0.74697125",
"0.73730516",
"0.7177419",
"0.707012",
"0.70039517",
"0.6933621",
"0.6837697",
"0.68373895",
"0.66513973",
"0.6506935",
"0.64944434",
"0.64764404",
"0.6419348",
"0.63535494",
"0.6340954",
"0.6275352",
"0.62615377",
"0.62178... | 0.8774169 | 0 |
svn_diff_mem_string_output_merge3(svn_stream_t output_stream, svn_diff_t diff, svn_string_t const original, svn_string_t const modified, svn_string_t const latest, char const conflict_original, char const conflict_modified, char const conflict_latest, char const conflict_separator, svn_diff_conflict_display_style_t sty... | def CIsa(*qIxc):
return okyX.svn_diff_mem_string_output_merge3(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rHJT(*qIxc):\n return okyX.svn_diff_file_output_merge3(*qIxc)",
"def joKX(*qIxc):\n return okyX.svn_diff_mem_string_output_unified3(*qIxc)",
"def rkDi(*qIxc):\n return okyX.svn_diff_mem_string_output_merge(*qIxc)",
"def Omix(*qIxc):\n return okyX.svn_diff_mem_string_output_merge2(*qIxc)",
"... | [
"0.73719686",
"0.7070374",
"0.7007905",
"0.6918336",
"0.6859007",
"0.67635494",
"0.65288013",
"0.6467441",
"0.6430865",
"0.64159477",
"0.64059186",
"0.6357754",
"0.6317542",
"0.6214312",
"0.61747193",
"0.61257714",
"0.61016846",
"0.60952544",
"0.6087071",
"0.60317034",
"0.602... | 0.8022921 | 0 |
svn_diff_parse_next_patch(svn_patch_file_t patch_file, svn_boolean_t reverse, svn_boolean_t ignore_whitespace, apr_pool_t result_pool, apr_pool_t scratch_pool) > svn_error_t | def g5hj(*qIxc):
return okyX.svn_diff_parse_next_patch(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yIqQ(MHN0):\n Po4F = kT0J(MHN0.splitlines())\n for Ux0P, yk4i in Po4F.files.iteritems():\n ztnR = Hy7s.path.splitext(Ux0P)[1]\n FQMA = set()\n\n def w3Gz(Ux0P, li6g, Ghho, la9G, Ol8d):\n \"\"\"Wrapper function of cpp_style.error for patches.\n\n This function ou... | [
"0.64611214",
"0.6038647",
"0.5921678",
"0.59172624",
"0.5860167",
"0.5802429",
"0.57040906",
"0.56646025",
"0.5606436",
"0.5604954",
"0.55760014",
"0.556378",
"0.556378",
"0.55517733",
"0.55387294",
"0.55033314",
"0.5483189",
"0.5475828",
"0.5358181",
"0.53410465",
"0.530781... | 0.82186615 | 0 |
svn_diff_fns2_invoke_datasources_open(svn_diff_fns2_t _obj, void diff_baton, apr_off_t prefix_lines, apr_off_t suffix_lines, svn_diff_datasource_e const datasources, apr_size_t datasources_len) > svn_error_t | def cRZ4(UTAq, eMY8, kiDA, EEik, GviV, thOR):
return okyX.svn_diff_fns2_invoke_datasources_open(UTAq, eMY8, kiDA, EEik, GviV, thOR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F6JP(UTAq, eMY8, pd8u):\n return okyX.svn_diff_fns_invoke_datasource_open(UTAq, eMY8, pd8u)",
"def t3d5(UTAq, eMY8, pd8u):\n return okyX.svn_diff_fns2_invoke_datasource_close(UTAq, eMY8, pd8u)",
"def IwLW(UTAq, eMY8, pd8u):\n return okyX.svn_diff_fns_invoke_datasource_close(UTAq, eMY8, pd8u)",
"... | [
"0.8224848",
"0.66814715",
"0.6642759",
"0.59207124",
"0.57092494",
"0.5561241",
"0.5516187",
"0.54673254",
"0.5462957",
"0.5432094",
"0.5366137",
"0.53450596",
"0.5329648",
"0.5237665",
"0.5233191",
"0.52068263",
"0.5180924",
"0.51693696",
"0.51653093",
"0.51599056",
"0.5124... | 0.9563534 | 0 |
Absolute URL of a quote detail. Used for generic create/update views & model forms | def hlzF(YKHO):
return gxEw('quotes:detail', kwargs={'pk': YKHO.pk}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hlzF(YKHO):\n return gxEw('quotation', kwargs={'pk': YKHO.pk})",
"def hlzF(YKHO):\n return gxEw('jewelry_detail', args=[str(YKHO.id)])",
"def hlzF(YKHO):\n return gxEw('market:product-detail', args=[str(YKHO.id)])",
"def hlzF(YKHO):\n return gxEw('product-detail', args=[str(YKHO.id)])",
"de... | [
"0.75064033",
"0.69442934",
"0.69337445",
"0.68749124",
"0.6859436",
"0.6837219",
"0.6825075",
"0.6825075",
"0.67738765",
"0.6764152",
"0.67622966",
"0.6749151",
"0.6744055",
"0.6721201",
"0.6710878",
"0.66912764",
"0.6679064",
"0.66712195",
"0.6664706",
"0.66564023",
"0.6650... | 0.8081473 | 0 |
Patch a resource of specific kind. Either the namespace+name should be specified, or the body, which is used only to get namespace+name identifiers. Unlike the object listing, the namespaced call is always used for the namespaced resources, even if the operator serves the whole cluster (i.e. is not namespacerestricted)... | async def patch_obj(*, Eorv, Po4F, _63S=None, mWFP=None, TBsA=None):
if TBsA is not None and (mWFP is not None or _63S is not None):
raise TypeError('Either body, or name+namespace can be specified. Got both.')
_63S = TBsA.get('metadata', {}).get('namespace') if TBsA is not None else _63S
mWFP = TBs... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P1Ro(YKHO, _63S: 'str'=None):\n ZWCE = ['patch_namespaced_csistorage_capacity', 'patch_csistorage_capacity']\n AJfP.execute(action='patch', resource=YKHO, names=ZWCE, namespace=_63S, api_client=None, api_args={'body': YKHO.to_dict(), 'name': YKHO.metadata.name})",
"def Po4F(YKHO, Eorv, nPrm, pan_=None,... | [
"0.62466234",
"0.60731876",
"0.59504855",
"0.5835475",
"0.57989323",
"0.5772389",
"0.5759131",
"0.5701994",
"0.5697849",
"0.5692272",
"0.5684222",
"0.5661823",
"0.5653843",
"0.5648338",
"0.5635371",
"0.56125104",
"0.56113046",
"0.5610724",
"0.5607602",
"0.55997473",
"0.557862... | 0.7657775 | 0 |
Uses boto3 to load the current account id | def Yq8I() -> str:
x0hE: Dn8U = Ex0o('sts')
return x0hE.get_caller_identity()['Account'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lGQ2():\n if 'AWS_ACCOUNT_ID' in Hy7s.environ:\n return Hy7s.environ['AWS_ACCOUNT_ID']\n w2B8 = WJfo()\n aese = [lambda: w2B8.get_user().get('get_user_response').get('get_user_result').get('user').get('arn'), lambda: w2B8.list_roles(max_items=1).get('list_roles_response').get('list_roles_result... | [
"0.72974396",
"0.7200079",
"0.69505954",
"0.69505954",
"0.69505954",
"0.69505954",
"0.69505954",
"0.69505954",
"0.69505954",
"0.69505954",
"0.6931177",
"0.66451806",
"0.66317916",
"0.65786314",
"0.64685696",
"0.6461276",
"0.6461276",
"0.6461276",
"0.6425657",
"0.6421983",
"0.... | 0.82096547 | 0 |
Method to calculate topk error | def zvFH(aMgO, Y8eF, G1Hx=1):
P1dF = ZylS.nn.in_top_k(predictions=aMgO, targets=Y8eF, k=G1Hx)
return ZylS.reduce_mean(ZylS.cast(P1dF, dtype=ZylS.float32)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OHjO(aTLP, Crrw, ZT17):\n AuZf = bq_r(aTLP, Crrw, ZT17)\n return [(1.0 - WKvO / aTLP.size(0)) * 100.0 for WKvO in AuZf]",
"def ok_0(p_Pg, G1Hx, AcYW):\n NwL4 = p_Pg.shape[0]\n if G1Hx >= NwL4 or G1Hx == -1:\n return\n guKL = None\n if G1Hx == 1:\n guKL = 0\n else:\n ... | [
"0.75135124",
"0.6585889",
"0.6478001",
"0.6354352",
"0.63294613",
"0.6321031",
"0.61997634",
"0.6145212",
"0.61054796",
"0.6050026",
"0.5983311",
"0.5927316",
"0.5854193",
"0.5853278",
"0.5787029",
"0.57743174",
"0.576324",
"0.5744714",
"0.5744714",
"0.5733121",
"0.5724901",... | 0.7276402 | 1 |
Method to approximate Dice score loss function Dice (formal) = 2 x (y_pred UNION y_true) | y_pred | + | y_true | Dice (approx) = 2 x (y_pred y_true) + d | y_pred | + | y_true | + d where d is small delta == 1e7 added both to numerator/denominator to prevent division by zero. | def nDDX(aMgO, Y8eF):
xMux = aMgO.shape.as_list()[-1]
N8L0 = {}
for Npgh in range(xMux):
mLGw = 2 * ZylS.reduce_sum(aMgO[..., Npgh] * Y8eF[..., Npgh])
OCOs = ZylS.reduce_sum(aMgO[..., Npgh]) + ZylS.reduce_sum(Y8eF[..., Npgh])
N8L0[Npgh] = (mLGw + 1e-07) / (OCOs + 1e-07)
upAO = la... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MU3M(Y8eF, aMgO, gyoy=1e-06):\n Y8eF = ZylS.cast(Y8eF, ZylS.float32)\n aMgO = ZylS.cast(aMgO, ZylS.float32)\n AAxD = nMvt.flatten(Y8eF)\n lLdr = nMvt.flatten(aMgO)\n iQin = nMvt.sum(AAxD * lLdr)\n fF1T = (2.0 * iQin + gyoy) / (nMvt.sum(AAxD) + nMvt.sum(lLdr) + gyoy)\n return 1 - fF1T",
"... | [
"0.78528905",
"0.7837016",
"0.7710869",
"0.76676464",
"0.7552756",
"0.74738693",
"0.7433946",
"0.71641695",
"0.71638596",
"0.71616846",
"0.71107954",
"0.7068915",
"0.6996462",
"0.69832444",
"0.69491345",
"0.6940761",
"0.6872801",
"0.6856605",
"0.68507284",
"0.68400353",
"0.68... | 0.74844646 | 5 |
Oversee the creation of product and its required productversion. Probably not strictly RESTful. | def PzHq(YKHO, wHSX, QePW=None, **B2fa):
QePW = QePW or wHSX.request
GhND = str("The 'productversions' key must exist, " + 'must be a list, and the list must contain ' + 'at least one entry.')
try:
Nszk = wHSX.data.pop('productversions')
if not isinstance(Nszk, list):
raise yxqa(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SnVS():\n qm8v = BFCm(PSrQ.MONGO_URI)\n im5W = qm8v.db.product\n nPrm = QePW.get_json(force=True) or {}\n if 'title' not in nPrm or 'description' not in nPrm or 'params' not in nPrm:\n return _ef9(a1PO['empty_field'])\n CPe3 = msfn()\n if msfn.params_is_valid(nPrm):\n CPe3.save_... | [
"0.7364007",
"0.72687584",
"0.6958533",
"0.6930921",
"0.6840897",
"0.68135524",
"0.67779756",
"0.672301",
"0.6710722",
"0.66721904",
"0.6624727",
"0.66173303",
"0.65955323",
"0.6576922",
"0.6535188",
"0.65284353",
"0.6497526",
"0.6482536",
"0.6447935",
"0.64148897",
"0.639993... | 0.7096737 | 2 |
Instantiates the InceptionResNet v2 architecture. Optionally loads weights pretrained on ImageNet. Note that when using TensorFlow, for best performance you should | def OgnE(ao6X=True, _mSQ='imagenet', FRUf=None, GhuM=None, wDQ7=None, KndY=1000):
if not (_mSQ in {'imagenet', None} or Hy7s.path.exists(_mSQ)):
raise ValueError('The `weights` argument should be either `None` (random initialization), `imagenet` (pre-training on ImageNet), or the path to the weights file to... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qUH4(mL4f=False, **B2fa):\n C3ST = S1Vm(em1m, [2, 2, 2, 2], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet18']))\n return C3ST",
"def qUH4(mL4f=False, **B2fa):\n C3ST = S1Vm(em1m, [2, 2, 2, 2], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['re... | [
"0.6662604",
"0.6662604",
"0.6662604",
"0.6662604",
"0.6662604",
"0.6642718",
"0.6613701",
"0.6591158",
"0.6554573",
"0.65274006",
"0.6503056",
"0.6451534",
"0.64370483",
"0.64316267",
"0.6429523",
"0.6390223",
"0.6390223",
"0.6390223",
"0.63858616",
"0.63532346",
"0.63379335... | 0.7307566 | 0 |
Number of clusters in the current clustering. | def o_ia(YKHO):
return YKHO.model.n_clusters | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H8Ca(YKHO) -> int:\n return len(YKHO.get_all_cluster_ids())",
"def o_ia(YKHO):\n return len(YKHO.clusters)",
"def R1f6(YKHO) -> int:\n R1f6 = max(1, round(16 ** 3 * (YKHO.vein.purity / 100.0) / YKHO.cluster_size))\n return YKHO.distribution.scale_cluster_count(R1f6)",
"def plx_(YKHO, l2Zr):\n... | [
"0.8934617",
"0.88803107",
"0.8576278",
"0.8378564",
"0.7647902",
"0.7465167",
"0.7461923",
"0.73421085",
"0.73242253",
"0.73063827",
"0.72755283",
"0.7265687",
"0.7245335",
"0.7217564",
"0.714121",
"0.71149176",
"0.71126807",
"0.7055073",
"0.70300144",
"0.7026207",
"0.702236... | 0.8602019 | 2 |
Create a Document from a json file | def pktP(gIsw):
if not gIsw.endswith('.json'):
rPXJ = 'Need json file, got {}'
Ol8d = rPXJ.format(gIsw)
raise V4P5(Ol8d)
nPrm = jpK1.read_json_utf8(gIsw)
return yQaM(file_name=gIsw, raw_file_name=nPrm['raw_file_name'], metadata=nPrm['metadata'], pre_file_name=nPrm['pre_file_name']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lNJK(eHNT):\n return qQXR.load(eHNT)",
"def refC(Emd4, wM3v):\n with open(wM3v, 'r', encoding='utf-8') as N5Pj:\n l5Ny = N5Pj.read()\n return Emd4.from_dict(qQXR.loads(l5Ny))",
"def refC(Emd4, wM3v):\n with open(wM3v, 'r', encoding='utf-8') as N5Pj:\n l5Ny = N5Pj.read()\n retur... | [
"0.7159523",
"0.68280095",
"0.6817549",
"0.6808757",
"0.6808757",
"0.6808757",
"0.6796111",
"0.67926675",
"0.67188674",
"0.671701",
"0.6674545",
"0.6624859",
"0.6610792",
"0.65804857",
"0.6531627",
"0.64746547",
"0.64555746",
"0.6397898",
"0.63938826",
"0.63926595",
"0.634399... | 0.78922427 | 0 |
Get the body of the file | def TtQI(YKHO):
return jpK1.read_utf8(YKHO.raw_file_name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TBsA(YKHO):\n YKHO._body.seek(0)\n return YKHO._body",
"def mxGz(YKHO):\n k_uT = int(YKHO.headers.getheader('content-length', 0))\n return YKHO.rfile.read(k_uT)",
"def Sffg(YKHO):\n return YKHO.file.read()",
"def ZRe1(nUeQ: str) -> bytes:\n eHNT = open(nUeQ[1:], mode='rb')\n TBsA = e... | [
"0.7574371",
"0.7568536",
"0.7398367",
"0.7386038",
"0.7297609",
"0.7170546",
"0.71484894",
"0.68977135",
"0.68683213",
"0.6801134",
"0.6791077",
"0.67858434",
"0.6781124",
"0.67771345",
"0.6739879",
"0.67169297",
"0.6681095",
"0.6678546",
"0.66202563",
"0.6574715",
"0.656632... | 0.8100076 | 0 |
Email address of the authenticated creator. | def Wyuj(YKHO) -> str:
return qe4Y.get(YKHO, 'creator') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D3lj(YKHO, KAOR):\n return KAOR.user.email",
"def GnpN(YKHO):\n return YKHO._technical_owner_email",
"def D3lj(YKHO) -> str:\n return qe4Y.get(YKHO, 'email')",
"def D3lj(YKHO) -> str:\n return qe4Y.get(YKHO, 'email')",
"def D3lj(YKHO) -> str:\n return qe4Y.get(YKHO, 'email')",
"def D3l... | [
"0.7815762",
"0.75931144",
"0.7549924",
"0.7549924",
"0.7549924",
"0.7528969",
"0.7507501",
"0.74667436",
"0.7465198",
"0.74259377",
"0.7424905",
"0.74161667",
"0.7388009",
"0.7388009",
"0.7388009",
"0.7388009",
"0.73559034",
"0.7284987",
"0.72582865",
"0.72493917",
"0.723437... | 0.7121414 | 36 |
Number of executions created for this job. | def OTSr(YKHO) -> int:
return qe4Y.get(YKHO, 'execution_count') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UHFx(YKHO):\n return YKHO.app.db.jobs.count()",
"def UHFx(YKHO):\n return len(YKHO._runs)",
"def TIUV(YKHO):\n with YKHO.__threads_lock:\n return YKHO.__number_executors",
"def OTSr(YKHO):\n if not YKHO._execution_count:\n YKHO.fill_heatmap()\n return YKHO._execution_count",
... | [
"0.7733015",
"0.7669226",
"0.76680493",
"0.75497705",
"0.7476357",
"0.72266144",
"0.72013986",
"0.71815115",
"0.71419793",
"0.70962477",
"0.707108",
"0.70417094",
"0.7025729",
"0.70065355",
"0.697565",
"0.68904924",
"0.68904924",
"0.68904924",
"0.68653095",
"0.68612796",
"0.6... | 0.7974728 | 0 |
Name of the last created execution. | def A_1i(YKHO) -> 'outputs.GoogleCloudRunV2ExecutionReferenceResponse':
return qe4Y.get(YKHO, 'latest_created_execution') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QwgO():\n wzkt = qcWV.utcnow()\n return 'Automated Run {}'.format(wzkt.strftime(GZnv))",
"def WbtO(YKHO):\n return str(YKHO.executable.name)",
"def wZzb(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'last_operation_name')",
"def VsgD(YKHO):\n pass",
"def mWFP(YKHO) -> str:\n if hasattr(... | [
"0.69279855",
"0.6922148",
"0.68860584",
"0.68009895",
"0.67015207",
"0.67015207",
"0.67015207",
"0.67015207",
"0.6603419",
"0.6579569",
"0.65738213",
"0.65601915",
"0.6554155",
"0.6549773",
"0.6540761",
"0.6532203",
"0.6510878",
"0.6508139",
"0.6508139",
"0.6508139",
"0.6508... | 0.0 | -1 |
The Condition of this Job, containing its readiness status, and detailed error information in case it did not reach the desired state. | def Annz(YKHO) -> 'outputs.GoogleCloudRunV2ConditionResponse':
return qe4Y.get(YKHO, 'terminal_condition') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jkUi(YKHO) -> str:\n YKHO._assert_job_created()\n Mkmy = G4JS.post(f'https://{EqBn.ROUTE_PREFIX}.stratodem.com/jobs/status', headers=dict(Authorization=f'Bearer {jqZR()}'), json=dict(job_id=YKHO._job_id))\n if not Mkmy.status_code == 200:\n raise ZfJz('Failed to determine job status')\n Mkmy... | [
"0.646661",
"0.6248669",
"0.6137206",
"0.6039368",
"0.59286374",
"0.59042215",
"0.5861603",
"0.57893836",
"0.5769013",
"0.5759555",
"0.5759555",
"0.5759555",
"0.5759555",
"0.5759555",
"0.5759555",
"0.5728253",
"0.5674985",
"0.56692475",
"0.5631522",
"0.5604345",
"0.5604345",
... | 0.586114 | 7 |
magic from rllab for computing discounted cumulative sums of vectors. | def qcfT(WKvO, FMQW):
return Zxt2.signal.lfilter([1], [1, float(-FMQW)], WKvO[::-1], axis=0)[::-1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hse8(YKHO, vwlo, mVUw=None):\n mVUw = YKHO.gamma if mVUw is None else mVUw\n vwlo = oyIN.array(vwlo)\n WLJS = list(pD6w(vwlo[::-1], lambda U5bT, jFFD: mVUw * U5bT + jFFD))\n WLJS = oyIN.array(WLJS)[::-1]\n return WLJS",
"def FMQW(YKHO, Mkmy, _ins, KCHu):\n g2lU, ZysX = (oyIN.zeros_like(Mkmy... | [
"0.6544189",
"0.6466892",
"0.64333206",
"0.64266914",
"0.63281584",
"0.6318136",
"0.63127834",
"0.62610054",
"0.62226504",
"0.6218116",
"0.621468",
"0.62063485",
"0.61723727",
"0.61337787",
"0.61141855",
"0.60977477",
"0.6010351",
"0.59978455",
"0.59516114",
"0.5951461",
"0.5... | 0.6339804 | 9 |
Returns a dictlike object that contains all the scopes in the ProtectedCapability model. | def snVv(YKHO):
return dict(LJG3.objects.values_list('slug', 'title')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nWxr(YKHO, SCWY=None, QePW=None, *qIxc, **B2fa):\n return list(LJG3.objects.filter(default=True).values_list('slug', flat=True))",
"def WYXJ(YKHO, SCWY=None, QePW=None, *qIxc, **B2fa):\n yk3G = list(LJG3.objects.filter(T8ck(default=True) | T8ck(application=SCWY)).values_list('slug', flat=True))\n re... | [
"0.6558831",
"0.65453875",
"0.63340497",
"0.6249794",
"0.60817003",
"0.6070908",
"0.6070908",
"0.6028665",
"0.59566724",
"0.58552665",
"0.58166957",
"0.57739407",
"0.57652587",
"0.57494295",
"0.5734125",
"0.5681918",
"0.5607605",
"0.5600457",
"0.5600457",
"0.5600457",
"0.5600... | 0.8117854 | 0 |
Supply a reliable return value for the Configuration.get() method. | def Mcdd(nzu_):
rGlQ = FM6F()
GPtr = vPjB()
GPtr['skills']['priority_skills'] = ['foobar']
GPtr['data_dir'] = str(nzu_)
GPtr['server']['metrics'] = False
GPtr['enclosure'] = {}
rGlQ.return_value = GPtr
return rGlQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BzgC(YKHO, BWXx):\n try:\n wEf2 = getattr(YKHO.configuration, BWXx)\n except AttributeError:\n wEf2 = None\n return wEf2",
"def x0PB(mWFP):\n\n def NMoC():\n try:\n return GPtr.get('yourls', mWFP)\n except (qMRL, EtCm):\n return None\n return N... | [
"0.75257397",
"0.73074025",
"0.71559346",
"0.7101901",
"0.70706314",
"0.70496935",
"0.6976172",
"0.6976172",
"0.6976172",
"0.6976172",
"0.6976172",
"0.6976172",
"0.6976172",
"0.6976172",
"0.6976172",
"0.6976172",
"0.6976172",
"0.6976172",
"0.6976172",
"0.6976172",
"0.6976172"... | 0.0 | -1 |
Replace URLs found in a text string with nothing (i.e. it will remove the URL from the string). | def Yk6F(FUjE):
return ' '.join(ZbWC.sub('([^0-9A-Za-z \t])|(\\w+:\\/\\/\\S+)', '', FUjE).split()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EGZf(l5Ny):\n pass",
"def EGZf(l5Ny):\n l5Ny = ZbWC.sub('(?P<url>https?://[^\\\\s]+)', '', l5Ny)\n return l5Ny",
"def EGZf(YKHO, l5Ny):\n return ZbWC.sub('http.?://[^\\\\s]+[\\\\s]?', '', l5Ny)",
"def o5jW(YKHO, l5Ny: str) -> str:\n mXDZ = 'http\\\\S+'\n return ZbWC.sub(mXDZ, ' ', str(l... | [
"0.8422449",
"0.8374669",
"0.8312422",
"0.81358033",
"0.8085995",
"0.8057459",
"0.79618174",
"0.7951415",
"0.7834034",
"0.77034914",
"0.76446146",
"0.7549235",
"0.73450565",
"0.7276105",
"0.71740913",
"0.71552026",
"0.7122175",
"0.7064335",
"0.7057012",
"0.6891155",
"0.685302... | 0.7401897 | 12 |
Sets the learning rate to the initial LR decayed by schedule | def e_63(K0do, qtWj, tspZ, b6Gq, KMvS):
if qtWj in b6Gq:
tspZ *= KMvS
for Lwm5 in K0do.param_groups:
Lwm5['lr'] = tspZ
return tspZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sIgb(YKHO):\n if YKHO.FLAGS.learning_rate_decay is 'exponential':\n YKHO.learning_rate = ZylS.train.exponential_decay(YKHO.FLAGS.learning_rate, YKHO.global_step, YKHO.FLAGS.decay_steps, YKHO.FLAGS.decay_rate)\n else:\n YKHO.learning_rate = YKHO.FLAGS.learning_rate",
"def fggk(YKHO):\n ... | [
"0.7852887",
"0.7700881",
"0.76748174",
"0.756743",
"0.7560571",
"0.75442725",
"0.7534079",
"0.7519826",
"0.7519784",
"0.74939126",
"0.7484822",
"0.7483746",
"0.7482854",
"0.7480121",
"0.74770564",
"0.74770564",
"0.74551284",
"0.7446404",
"0.7424797",
"0.74222237",
"0.7417072... | 0.7537521 | 7 |
Main site page page. | def d6pt(QePW):
S0MI.debug('socialprofile_demo.views.index')
Bv0m = {}
return SGJU('index.html', Bv0m, context_instance=K1Ja(QePW)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ozko():\n return TvZl('index.html')",
"def Ozko():\n return TvZl('main_page.html')",
"def b8V_():\n return TvZl('index.html', title='Home', heading='Dublin Bus')",
"def kZiy():\n return TvZl('Main_Page.html')",
"def b8V_():\n B2Dn = xhTS()\n DumB = UlWi(B2Dn)\n SV4W = CDCC()\n Q... | [
"0.7605377",
"0.75931984",
"0.7416024",
"0.74143827",
"0.72895986",
"0.72281426",
"0.7225789",
"0.72122484",
"0.7199378",
"0.7175249",
"0.713477",
"0.70800596",
"0.7079004",
"0.70520896",
"0.7041542",
"0.7036038",
"0.70346624",
"0.7021409",
"0.69845974",
"0.69750005",
"0.6972... | 0.0 | -1 |
Extract last hidden state from output of lstm | def FVHv(RQrb):
tsWk, wjbX = RQrb.size()
assert wjbX % 2 == 0
DuWS = wjbX // 2
_OF8 = ht2j.cat([RQrb[-1, :DuWS], RQrb[0, DuWS:]], dim=0)
return _OF8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xhfp(YKHO, hlel):\n v6fy = hlel[:, :, 0:YKHO._hidden_size]\n XhSs = hlel[:, :, YKHO._hidden_size:]\n h3vC = ht2j.cat((v6fy, XhSs), -1)\n return h3vC",
"def Xhfp(YKHO, hlel):\n dn5x = hlel[:, :-1, 0:YKHO._hidden_size]\n DW23 = hlel[:, 1:, YKHO._hidden_size:]\n v6fy = hlel[:, -1, 0:YKHO._h... | [
"0.731287",
"0.72596717",
"0.7113969",
"0.6686127",
"0.64504004",
"0.6409524",
"0.63662976",
"0.63348883",
"0.6331786",
"0.62904716",
"0.62328166",
"0.6162072",
"0.61315686",
"0.6120656",
"0.6120656",
"0.6086838",
"0.6086746",
"0.607317",
"0.60633767",
"0.60581803",
"0.602836... | 0.7847306 | 0 |
Use torch.gather for efficient retrieving last hidden states | def O8V2(RQrb, Fbjb, Q1b5):
lHmx, tsWk, wjbX = RQrb.size()
assert lHmx == len(Fbjb)
assert wjbX % 2 == 0
DuWS = wjbX // 2
gIip = ht2j.stack(Fbjb, dim=0)
if Q1b5:
KjOB = (gIip - 1).unsqueeze(-1).unsqueeze(-1).expand(lHmx, 1, DuWS)
rvPk = ht2j.zeros([lHmx, 1, DuWS], dtype=ht2j.long... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xhfp(YKHO, hlel):\n dn5x = hlel[:, :-1, 0:YKHO._hidden_size]\n DW23 = hlel[:, 1:, YKHO._hidden_size:]\n v6fy = hlel[:, -1, 0:YKHO._hidden_size]\n XhSs = hlel[:, 0, YKHO._hidden_size:]\n XU9L = ht2j.cat((v6fy, XhSs), -1)\n return (XU9L, dn5x, DW23)",
"def Xhfp(YKHO, hlel):\n v6fy = hlel[:... | [
"0.67791975",
"0.6540315",
"0.6460809",
"0.64193594",
"0.64193594",
"0.63510245",
"0.6349617",
"0.6322756",
"0.6322756",
"0.6322756",
"0.61592877",
"0.6126712",
"0.61177367",
"0.6112487",
"0.6112487",
"0.6099688",
"0.6099688",
"0.6081144",
"0.6081098",
"0.60705185",
"0.607051... | 0.5632198 | 57 |
Convenience function to load a json file; replacing some escaped characters. | def lc9H(bpNo):
with open(bpNo) as eHNT:
return qQXR.load(eHNT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wic_(IznC):\n with open(IznC, encoding='ISO-8859-1') as eHNT:\n return qQXR.load(eHNT)",
"def EBvf(Ux0P):\n with open(Ux0P, 'r') as eHNT:\n zEKB = qQXR.load(eHNT)\n return zEKB",
"def EBvf(Ux0P):\n with open(Ux0P, encoding='utf-8') as round:\n return qQXR.load(round)",
... | [
"0.69898105",
"0.6446229",
"0.6410821",
"0.6395228",
"0.6358606",
"0.63439757",
"0.6339141",
"0.63355476",
"0.6297283",
"0.62436426",
"0.624272",
"0.62292147",
"0.62168247",
"0.6182956",
"0.6163181",
"0.6150294",
"0.614397",
"0.61395746",
"0.6137789",
"0.61315197",
"0.6099809... | 0.60256827 | 25 |
Load yaml file into a dictionary. | def f9B0(wV3k):
with open(wV3k) as zZcM:
_Fei = eJb6.load(zZcM, Loader=eJb6.Loader)
return _Fei | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f9B0(qaEx: str) -> dict:\n assert qaEx.endswith('.yaml')\n with open(qaEx) as nUeQ:\n return eJb6.load(nUeQ, Loader=eJb6.FullLoader)",
"def f9B0(pmON: str) -> cuzp[str, ImMB]:\n with open(pmON, 'r', encoding='utf8') as ytgA:\n nPrm = eJb6.safe_load(ytgA)\n return nPrm",
"def f... | [
"0.82136375",
"0.8058277",
"0.80454195",
"0.79535586",
"0.794867",
"0.7932453",
"0.7909011",
"0.7891217",
"0.7841622",
"0.7834395",
"0.7747135",
"0.7701002",
"0.7691033",
"0.7516474",
"0.7432293",
"0.7432007",
"0.7403125",
"0.7397374",
"0.73946506",
"0.73741156",
"0.7356898",... | 0.75453746 | 13 |
r""" Check if automorphism mod `p^k` lifts to automorphism over `\ZZ`. Checks whether an element that is an automorphism of ``rational_function`` modulo `p^k` for various `p` s and `k` s can be lifted to an automorphism over `\ZZ`. It uses the fact that every automorphism has height at most ``ht_bound`` | def GNQP(F1VY, kku3, tpzv, E3D9, Vb89=False):
epBp = kku3.parent().gen(0)
BnoU = []
for k0lF in F1VY:
ZPqe = [WKvO.lift() for WKvO in k0lF.list()]
for hAEw in range(1, E3D9):
if ML2l(hAEw, E3D9) == 1:
y1mn = [hAEw * WKvO - (hAEw * WKvO / E3D9).round() * E3D9 for W... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dDZ1(kku3, VydT=4, Vb89=True, lJLe=False):\n if kku3.parent().is_field():\n nMvt = kku3.parent()\n A3Vt = nMvt.ring()\n else:\n A3Vt = kku3.parent()\n nMvt = A3Vt.fraction_field()\n vuvg = A3Vt.base_ring()\n if vuvg != zgvu and vuvg != rIJu:\n raise TypeError('coe... | [
"0.56338507",
"0.55300605",
"0.54255825",
"0.53710145",
"0.5158235",
"0.5156502",
"0.5102196",
"0.50654346",
"0.5053438",
"0.50163954",
"0.49781635",
"0.4975559",
"0.49608102",
"0.49501315",
"0.49278697",
"0.49118054",
"0.4897155",
"0.48926264",
"0.48914677",
"0.48809507",
"0... | 0.55055964 | 2 |
Saves the maximum intensity projection of the stack. | def U5Uy(YKHO, jY1r, jDK_=1):
WkhH.make_folders([Hy7s.path.dirname(jY1r)])
dXiL = oyIN.max(YKHO.image, axis=jDK_)
xDSY.imsave(jY1r, dXiL.astype(oyIN.uint8)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U5Uy(YKHO, VqRE: str | Path) -> None:\n Fst3 = GkAb(VqRE).suffix\n if Fst3.lower() in q85s:\n hPuM = YKHO.get_projection()\n hPuM = 255 * hPuM / hPuM.max()\n XC5k.imwrite(VqRE, hPuM.astype(int))\n else:\n raise NotImplementedError('Saving with file extension {} not supporte... | [
"0.6401459",
"0.59101903",
"0.5883825",
"0.58102137",
"0.5704479",
"0.55999213",
"0.55868596",
"0.5535292",
"0.55091345",
"0.55073005",
"0.5429834",
"0.54032594",
"0.5395095",
"0.53535837",
"0.5342881",
"0.5339227",
"0.52953464",
"0.5249621",
"0.5243728",
"0.52317804",
"0.522... | 0.7179804 | 0 |
Search for a minimizer of 'fun'. | def kYqs(MCGS, DbyF=10, eYpX=HUFt, OKTc=-5.0, V3wT=5.0, PwMH=False, gYVk=False, lXLx=3, AUPf=3, KMvS=0.99, Q6gp=3, NXpY=1.0, llPL=10, QtkF=1000000, PfdP=1e-08, YkE_=1e-10):
BEuN = REFe(memberLength=DbyF, memberDataType=eYpX, lowerDomain=OKTc, upperDomain=V3wT, maxMutations=lXLx, maxIndexes=AUPf, gamma=KMvS, minImpr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wg84(MCGS: Callable[..., float], nJ9F: np.ndarray, qIxc: Tuple=(), NKcE: Optional[str]=None, **B2fa) -> Zxt2.optimize.OptimizeResult:\n if NKcE.lower() in ohYI:\n K0do = ohYI[NKcE.lower()]\n return K0do(MCGS, nJ9F, args=qIxc, **B2fa)\n return Zxt2.optimize.minimize(MCGS, nJ9F, args=qIxc, me... | [
"0.6238611",
"0.61422455",
"0.5931987",
"0.5888649",
"0.58717644",
"0.56827825",
"0.564708",
"0.5544118",
"0.5520576",
"0.5519069",
"0.551651",
"0.54757136",
"0.5466511",
"0.54410505",
"0.5427136",
"0.5427136",
"0.54071116",
"0.5406038",
"0.53223604",
"0.52974635",
"0.5269756... | 0.4974941 | 50 |
Blur an image patch | def hsOe(YKHO, UXnq):
[H2v2, TVTK, xMux] = UXnq.shape
uB9b = TVTK
if TVTK > YKHO.kernelSZ and H2v2 > YKHO.kernelSZ:
uB9b = YKHO.kernelSZ
elif uB9b > H2v2:
uB9b = H2v2
hklD = XC5k.blur(UXnq, (uB9b, uB9b))
return hklD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jUwU(VXjJ):\n pan_ = jth9(VXjJ)\n for LVAh in range(1, xglF(VXjJ) - 1):\n for WKvO in range(1, V8C_(VXjJ) - 1):\n toB8 = q9E5 = Kv5I = 0\n for si3g in range(-1, 2):\n for o4D3 in range(-1, 2):\n Mkmy, Oa1e, Fg_i = PICn(VXjJ, WKvO + o4D3, LVAh... | [
"0.75199",
"0.7412393",
"0.73693836",
"0.7347014",
"0.7347014",
"0.7212999",
"0.7152126",
"0.7055315",
"0.7051717",
"0.7027446",
"0.7012652",
"0.69874287",
"0.6834427",
"0.6824453",
"0.6787434",
"0.67055076",
"0.66974074",
"0.66789067",
"0.6666601",
"0.66559553",
"0.66362816"... | 0.8045729 | 0 |
if width or height is 0, blurred the whole image. if width or height is bigger than 0, first change the ROI based on enlargeRatio. Then blur region that are notwithin roi | def XqZ2(YKHO, UXnq, WKvO, LVAh, TVTK, H2v2, _Eit, s3EL, SsqT, lpS4):
if TVTK == 0 or H2v2 == 0:
eLCV = YKHO.blurImgPatch(UXnq)
return [eLCV, 0, 0, 0, 0]
if TVTK > 0 or H2v2 > 0:
[oR1n, P24L, q1Jo] = UXnq.shape
[eYrV, ldQK, NR_G, sFJu] = OJJs.adjustROI(WKvO, LVAh, TVTK, H2v2, _Ei... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hsOe(YKHO, UXnq):\n [H2v2, TVTK, xMux] = UXnq.shape\n uB9b = TVTK\n if TVTK > YKHO.kernelSZ and H2v2 > YKHO.kernelSZ:\n uB9b = YKHO.kernelSZ\n elif uB9b > H2v2:\n uB9b = H2v2\n hklD = XC5k.blur(UXnq, (uB9b, uB9b))\n return hklD",
"def jUwU(LNo8, Ot1W=(7, 7)):\n LNo8 = XC5k.... | [
"0.70842516",
"0.6674974",
"0.6674974",
"0.6602175",
"0.6446212",
"0.6436527",
"0.63996315",
"0.63675183",
"0.63180053",
"0.6268712",
"0.62288404",
"0.62036306",
"0.62015957",
"0.6155323",
"0.6103302",
"0.6096085",
"0.6047469",
"0.6009214",
"0.6004916",
"0.59972864",
"0.59861... | 0.72510856 | 0 |
Creates a Lambda Service InvalidRequestContent Response | def HOFW(Ol8d):
apSg = Jc3d.InvalidRequestContentException
return cJJN.service_response(Jc3d._construct_error_response_body(Jc3d.USER_ERROR, Ol8d), Jc3d._construct_headers(apSg[0]), apSg[1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WEtw():\n return oGir('{\"error\": \"Invalid request\"}', status=400, mimetype='application/json')",
"def IijK() -> bytes:\n jZ5y = EL1e.get_content_data('/bad_request.html')\n _c1T = qcWV.datetime.now(qcWV.timezone.utc).strftime('%a, %d %b %Y %H:%M:%S GMT')\n WBPg = 'HTTP/1.1 400 Bad Request' + ... | [
"0.7102297",
"0.62798995",
"0.6269985",
"0.62464947",
"0.6213035",
"0.62122625",
"0.62122625",
"0.62061197",
"0.61978716",
"0.61828256",
"0.6159508",
"0.6112786",
"0.6110622",
"0.60876316",
"0.6057778",
"0.60353935",
"0.601649",
"0.6012238",
"0.59565294",
"0.5940328",
"0.5939... | 0.7196143 | 0 |
Creates a Lambda Service Generic MethodNotAllowed Response | def fqYc(*qIxc):
apSg = Jc3d.MethodNotAllowedException
return cJJN.service_response(Jc3d._construct_error_response_body(Jc3d.LOCAL_SERVICE_ERROR, 'MethodNotAllowedException'), Jc3d._construct_headers(apSg[0]), apSg[1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _tIS(P1dF):\n geh0 = pz3A({'success': False, 'error_code': 405, 'message': 'Method Not Allowed'})\n return (geh0, 405)",
"def GJv1():\n return b'HTTP/1.1 405 Method Not Allowed\\r\\n'",
"def l0LZ(YKHO):\n KeWr = 'Method Not Allowed: {0}'.format(YKHO.request.method)\n return YKHO.create_respo... | [
"0.708164",
"0.6957019",
"0.6849334",
"0.6825316",
"0.67849696",
"0.6732903",
"0.65486395",
"0.6508789",
"0.63655883",
"0.6280046",
"0.62509525",
"0.62502444",
"0.6249433",
"0.62151664",
"0.62121105",
"0.6206517",
"0.60536444",
"0.6022093",
"0.59897363",
"0.5938604",
"0.59379... | 0.759363 | 0 |
Ensure cbc is correct size and values | def gc6L(YKHO, nZuS):
BWXx = nZuS['value']
if YKHO.block_count and len(BWXx.array) != oyIN.prod(YKHO.block_count):
raise C9U5.ValidationError('cbc must have length equal to the product of block_count', prop='cbc', instance=YKHO, reason='invalid')
if oyIN.max(BWXx.array) > 1 or oyIN.min(BWXx.array) <... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wzQw(YKHO):\n yDqo = oyIN.dtype('f4,f8')\n jzdc = oyIN.ones(30000, dtype=yDqo)\n _P6x = ddO4.carray(jzdc, dtype=yDqo)\n YKHO.assertTrue(_P6x.dtype == yDqo)\n YKHO.assertTrue(jzdc.dtype == _P6x.dtype)\n Qhng(jzdc, _P6x[:], 'Arrays are not equal')",
"def gc6L(YKHO, nZuS):\n BWXx = nZuS['va... | [
"0.6685446",
"0.65553933",
"0.6547658",
"0.6496419",
"0.64295065",
"0.64147234",
"0.6404772",
"0.64018273",
"0.63549703",
"0.63176316",
"0.6285494",
"0.6271671",
"0.6254252",
"0.624962",
"0.624916",
"0.62422884",
"0.6231113",
"0.62255526",
"0.62001216",
"0.61935747",
"0.61608... | 0.6512563 | 3 |
Ensure cbc is correct size and values | def gc6L(YKHO, nZuS):
BWXx = nZuS['value']
if not YKHO.parent_block_count:
pass
elif len(BWXx.array) != oyIN.prod(YKHO.parent_block_count):
raise C9U5.ValidationError('cbc must have length equal to the product of parent_block_count', prop='cbc', instance=YKHO, reason='invalid')
if not YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wzQw(YKHO):\n yDqo = oyIN.dtype('f4,f8')\n jzdc = oyIN.ones(30000, dtype=yDqo)\n _P6x = ddO4.carray(jzdc, dtype=yDqo)\n YKHO.assertTrue(_P6x.dtype == yDqo)\n YKHO.assertTrue(jzdc.dtype == _P6x.dtype)\n Qhng(jzdc, _P6x[:], 'Arrays are not equal')",
"def gc6L(YKHO, nZuS):\n BWXx = nZuS['va... | [
"0.6685446",
"0.65553933",
"0.6547658",
"0.6512563",
"0.6496419",
"0.64295065",
"0.64147234",
"0.6404772",
"0.64018273",
"0.63549703",
"0.63176316",
"0.6285494",
"0.6271671",
"0.6254252",
"0.624962",
"0.624916",
"0.62422884",
"0.6231113",
"0.62255526",
"0.61935747",
"0.616085... | 0.62001216 | 19 |
Ensure cbc is correct size and values | def gc6L(YKHO, nZuS):
BWXx = nZuS['value']
if not YKHO.parent_block_count:
pass
elif len(BWXx.array) != oyIN.prod(YKHO.parent_block_count):
raise C9U5.ValidationError('cbc must have length equal to the product of parent_block_count', prop='cbc', instance=YKHO, reason='invalid')
if oyIN.m... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wzQw(YKHO):\n yDqo = oyIN.dtype('f4,f8')\n jzdc = oyIN.ones(30000, dtype=yDqo)\n _P6x = ddO4.carray(jzdc, dtype=yDqo)\n YKHO.assertTrue(_P6x.dtype == yDqo)\n YKHO.assertTrue(jzdc.dtype == _P6x.dtype)\n Qhng(jzdc, _P6x[:], 'Arrays are not equal')",
"def TEBI(YKHO):\n jzdc = oyIN.arange(10... | [
"0.6685446",
"0.6547658",
"0.6512563",
"0.6496419",
"0.64295065",
"0.64147234",
"0.6404772",
"0.64018273",
"0.63549703",
"0.63176316",
"0.6285494",
"0.6271671",
"0.6254252",
"0.624962",
"0.624916",
"0.62422884",
"0.6231113",
"0.62255526",
"0.62001216",
"0.61935747",
"0.616085... | 0.65553933 | 1 |
Ensure cbc is correct size and values | def gc6L(YKHO, nZuS):
BWXx = nZuS['value']
if not YKHO.parent_block_count:
pass
elif len(BWXx.array) != oyIN.prod(YKHO.parent_block_count):
raise C9U5.ValidationError('cbc must have length equal to the product of parent_block_count', prop='cbc', instance=YKHO, reason='invalid')
if oyIN.m... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wzQw(YKHO):\n yDqo = oyIN.dtype('f4,f8')\n jzdc = oyIN.ones(30000, dtype=yDqo)\n _P6x = ddO4.carray(jzdc, dtype=yDqo)\n YKHO.assertTrue(_P6x.dtype == yDqo)\n YKHO.assertTrue(jzdc.dtype == _P6x.dtype)\n Qhng(jzdc, _P6x[:], 'Arrays are not equal')",
"def gc6L(YKHO, nZuS):\n BWXx = nZuS['va... | [
"0.6685446",
"0.65553933",
"0.6547658",
"0.6512563",
"0.6496419",
"0.64295065",
"0.64147234",
"0.6404772",
"0.64018273",
"0.63549703",
"0.63176316",
"0.6285494",
"0.6271671",
"0.6254252",
"0.624916",
"0.62422884",
"0.6231113",
"0.62255526",
"0.62001216",
"0.61935747",
"0.6160... | 0.624962 | 14 |
Convet date string into datatime | def mh4x(UcxK):
if isinstance(UcxK, str):
for FMLJ in ('%Y-%m-%d', '%m/%d/%Y'):
try:
return qcWV.strptime(UcxK, FMLJ).date()
except ValueError:
pass
else:
return UcxK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R2Sr(KCHu):\n return qcWV.strptime(KCHu.decode(), '%Y-%m-%d %H:%M:%S')",
"def OLXh(JvEs):\n return JRYC.strptime(JvEs, '%Y-%m-%d')",
"def J6Ib(_c1T):\n import datetime\n _c1T = str(_c1T)\n lO87 = int(_c1T[0:4])\n x0eS = int(_c1T[4:6])\n CjKC = int(_c1T[6:8])\n return datetime.dateti... | [
"0.77682054",
"0.7404678",
"0.73018855",
"0.72948354",
"0.72912806",
"0.7272908",
"0.7261246",
"0.7252554",
"0.72475135",
"0.7233508",
"0.7219192",
"0.71932834",
"0.71557796",
"0.7137902",
"0.7061531",
"0.7032363",
"0.7027367",
"0.7014714",
"0.70046353",
"0.700098",
"0.699589... | 0.697747 | 22 |
return boxplot of desidered column | def L7RL(jQ3Z, Qg73=None, leAC='Out of the ordinary billion dollar funded proposal\n', C0t4=9):
bGrB = QrM1.rcParams['figure.figsize'] = [14, 6]
bGrB = QrM1.style.use(['fivethirtyeight'])
aNZO = uuEx.boxplot(x=oyIN.log10(jQ3Z[Qg73]), linewidth=1, color='#3182bd')
bGrB = QrM1.title(leAC, fontsize=30)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mbKp(jQ3Z, z0q4):\n jQ3Z.boxplot(column=z0q4)\n QrM1.show()",
"def sREx(jQ3Z, fvDH, ACia):\n if len(ACia) == 0:\n wLS1 = jQ3Z.boxplot(column=[fvDH], rot=90)\n else:\n for Z9rn in ACia:\n wLS1 = jQ3Z.boxplot(column=[fvDH], by=[Z9rn], rot=90)",
"def I_RD(bOBl, leAC):\n ... | [
"0.71451867",
"0.6665482",
"0.6602079",
"0.6444729",
"0.6206091",
"0.6195572",
"0.61714244",
"0.6150998",
"0.61054677",
"0.60654145",
"0.5997369",
"0.5949316",
"0.5885669",
"0.5885103",
"0.5850617",
"0.5818628",
"0.5809483",
"0.58035576",
"0.5798477",
"0.5774535",
"0.57618845... | 0.6282541 | 4 |
conv2d returns a 2d convolution layer with full stride. | def b_zE(WKvO, XcU5):
return ZylS.nn.conv2d(WKvO, XcU5, strides=[1, 1, 1, 1], padding='SAME') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DYf_():\n VXjJ = oyIN.array([[0.3, 0.5, 0.7, 0.9], [0.1, 0.3, 0.5, 0.7], [0.9, 0.7, 0.5, 0.3]])\n rPXJ = oyIN.array([[1, 0], [1, 0]])\n rPXJ = oyIN.flipud(oyIN.fliplr(rPXJ))\n return cxpp(VXjJ, rPXJ, mode='valid')",
"def gZ8A(WKvO, XcU5):\n return ZylS.nn.conv2d(input=WKvO, filter=XcU5, stride... | [
"0.7629538",
"0.7627165",
"0.7579147",
"0.7463493",
"0.74578935",
"0.74578935",
"0.7386576",
"0.7337714",
"0.7330282",
"0.73295087",
"0.7313963",
"0.73015827",
"0.7296284",
"0.72696656",
"0.72463566",
"0.72321266",
"0.72088444",
"0.7196564",
"0.71902525",
"0.7187835",
"0.7152... | 0.7426121 | 6 |
weight_variable generates a weight variable of a given shape. | def E9N2(ROpF):
RqgG = ZylS.truncated_normal(ROpF, stddev=0.1)
return ZylS.Variable(RqgG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E9N2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF, stddev=0.1)\n return ZylS.get_variable('weight', initializer=RqgG, regularizer=ZylS.nn.l2_loss)",
"def E9N2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF)\n return ZylS.Variable(RqgG)",
"def JJi2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF, stddev... | [
"0.82682097",
"0.8235508",
"0.8158841",
"0.8156995",
"0.81399417",
"0.81399417",
"0.81399417",
"0.8137802",
"0.812119",
"0.80655366",
"0.7983301",
"0.79793143",
"0.79584336",
"0.79206425",
"0.777795",
"0.7553387",
"0.7533732",
"0.75042933",
"0.73055935",
"0.7289978",
"0.72055... | 0.81348443 | 13 |
Returns the response data for both the login and refresh views. Override to return a custom response such as including the serialized representation of the User. | def H_As(eOtH, CBIr=None, QePW=None):
return {'token': eOtH} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, QePW):\n CBIr = QePW.user\n ZMzz = YKHO.serializer_class(CBIr)\n return geh0.Response({'user': ZMzz.data})",
"def NMoC(YKHO, QePW):\n ZMzz = hq_r(QePW.user)\n return oGir(ZMzz.data, status=jGRS.HTTP_200_OK)",
"def NMoC():\n return NNa8(AmPw())",
"def dmaw(YKHO):\n return (... | [
"0.71477854",
"0.7042849",
"0.70153284",
"0.69196826",
"0.6801839",
"0.67474884",
"0.6719735",
"0.6637985",
"0.66109943",
"0.6546731",
"0.6451097",
"0.6448765",
"0.6432371",
"0.6409321",
"0.6401796",
"0.638653",
"0.6378032",
"0.6340211",
"0.63187706",
"0.63144183",
"0.6294784... | 0.0 | -1 |
All projects in this module are UNLOCKED Emulates that it found logged_user as the SOLE user of this project and returns the ProjectState indicating his as owner | def Ile0(AZgw, N8Bo) -> None:
bOhf = N8Bo['name'].split('.') + ['']
QTBn = x0Oi(locked=TBlE(value=False, owner=hRhD(user_id=N8Bo['id'], first_name=bOhf[0], last_name=bOhf[1]), status=tuBc.CLOSED), state=kcCf(value=VtH0.NOT_STARTED))
AZgw.patch('simcore_service_webserver.projects.projects_api._get_project_lo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eIi7(YKHO):\n YKHO.client.force_authenticate(YKHO.global_user_1)\n nPrm = YKHO.client.get(YKHO.api_project_detail_url, {'user': 'current'}).data\n YKHO.assertTrue(nPrm.get('enrolled'))\n jy5s = egNl().objects.annotate(projects_count=kbH2('projects')).filter(projects_count=0)[0]\n YKHO.client.for... | [
"0.63406867",
"0.593039",
"0.5854211",
"0.56678814",
"0.5425527",
"0.54105276",
"0.539254",
"0.53627026",
"0.5341819",
"0.53308934",
"0.5299552",
"0.52942896",
"0.52891177",
"0.5286757",
"0.5283151",
"0.5268569",
"0.5216464",
"0.5214507",
"0.51549286",
"0.5139442",
"0.510455"... | 0.6656319 | 0 |
Computes the precision of SIATECH by using other_output as the ground truth. | def V3uk(yFSl, NvYL):
UHFx = 0
for Hvnt in NvYL:
if Hvnt in yFSl:
UHFx += 1
return UHFx / len(NvYL) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(XWIy, Yptr):\n QUkc = YsYU(XWIy, Yptr)\n return QUkc[0][0] / (QUkc[0][0] + QUkc[1][0])",
"def rhd_(yLaY, o3Uj):\n yLaY = dDv2(yLaY)\n o3Uj = dDv2(o3Uj)\n Rrc1 = gN_D(o3Uj, yLaY) / float(len(o3Uj))\n assert 0 <= Rrc1 <= 1\n return Rrc1",
"def Ggta(YKHO, Elif):\n return float(1) ... | [
"0.6081986",
"0.5938014",
"0.58727837",
"0.5698068",
"0.5515423",
"0.55059355",
"0.54723775",
"0.546638",
"0.54405594",
"0.5405584",
"0.5404393",
"0.5398009",
"0.53976107",
"0.53976107",
"0.53976107",
"0.53976107",
"0.53976107",
"0.53976107",
"0.53976107",
"0.53976107",
"0.53... | 0.6582182 | 0 |
Searches a column in an openpyxl sheet for a specific value. This is to stop the script from breaking if users add/remove rows when entering variables etc. | def dahM(OGYo, yKcO, BWXx, qoqK=200):
MXWl = ZbWC.compile('[^a-zA-Z]')
fvDH = MXWl.sub('', yKcO)
Sj0G = ZbWC.compile('[^0-9]')
rdlD = int(Sj0G.sub('', yKcO))
for bGrB in range(qoqK):
if OGYo[fvDH + str(rdlD)].value == BWXx:
return (fvDH, rdlD)
rdlD += 1
raise KeyError... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bwbz(OGYo, mWFP, YRbF, x5AE):\n for usx6 in OGYo.iter_rows(min_row=YRbF, max_row=YRbF + 1, min_col=1, max_col=x5AE):\n for VmPb in usx6:\n if mWFP == VmPb.value:\n return VmPb",
"def M4GH(OGYo, rdlD, BWXx):\n for VmPb in OGYo[rdlD]:\n if VmPb.value == BWXx:\n ... | [
"0.69581926",
"0.69426215",
"0.616242",
"0.60265464",
"0.59252965",
"0.590594",
"0.590191",
"0.5893661",
"0.5824546",
"0.57441264",
"0.5664028",
"0.5630745",
"0.56166",
"0.55592704",
"0.55473524",
"0.5525248",
"0.5514061",
"0.54953766",
"0.5431573",
"0.5431549",
"0.541189",
... | 0.72758317 | 0 |
input x of shape (batch_size, seq_len). Output Tensor same shape with positions 1 to seq_len where padding tokens set to zero. | def sqf6(WKvO):
jzdc = ht2j.arange(1, WKvO.shape[1] + 1).unsqueeze(0).to(WKvO.device)
XP5J = jzdc.expand(WKvO.shape[0], -1)
ZHfW = (WKvO != 0).long()
return XP5J * ZHfW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YczY(Q6uT):\n Q6uT = ZylS.cast(ZylS.math.equal(Q6uT, 0), ZylS.float32)\n return Q6uT[:, ZylS.newaxis, ZylS.newaxis, :]",
"def SZFh(YKHO, WKvO):\n if YKHO.do_clean:\n WKvO = YKHO.clean(WKvO)\n if YKHO.tokenizer is None:\n raise ValueError('Tokenizer has not been initialized.')\n W... | [
"0.69919807",
"0.6808035",
"0.66209394",
"0.6454651",
"0.6430529",
"0.63178974",
"0.6281539",
"0.6180782",
"0.6120763",
"0.6101304",
"0.60437137",
"0.60340756",
"0.599827",
"0.5995828",
"0.59464383",
"0.59333456",
"0.5821633",
"0.58181113",
"0.58008766",
"0.5775751",
"0.57553... | 0.0 | -1 |
Draw a line of a specified color to the buffer. | def lXKT(YKHO, suSV, X3qZ, qfpW):
gqlh = False
if abs(suSV[0] - X3qZ[0]) < abs(suSV[1] - X3qZ[1]):
suSV[0], suSV[1] = (suSV[1], suSV[0])
X3qZ[0], X3qZ[1] = (X3qZ[1], X3qZ[0])
gqlh = True
if suSV[0] > X3qZ[0]:
suSV[0], X3qZ[0] = (X3qZ[0], suSV[0])
suSV[1], X3qZ[1] = (X... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lXKT(qfpW, fE52, mB6j, TVTK=1):\n a9eO.draw.line(Vjhr, qfpW, fE52, mB6j, TVTK)",
"def lXKT(YKHO, lCHq, ANJu, p3zD, TbMz):\n TbMz = YgBL(TbMz)\n edW0.line(YKHO.canvas, (lCHq, ANJu), p3zD, TbMz)",
"def zFiD(YKHO, yKcO, Os4s, qfpW=(255, 255, 255), TVTK=1):\n yKcO = YKHO._transform(yKcO)\n Os4s ... | [
"0.7856051",
"0.7085538",
"0.7035353",
"0.6967236",
"0.6955049",
"0.69308156",
"0.6860886",
"0.6836578",
"0.68173677",
"0.68133026",
"0.6802772",
"0.6789399",
"0.6752608",
"0.6746949",
"0.6724124",
"0.6590171",
"0.6550718",
"0.6529918",
"0.6527603",
"0.6503456",
"0.64781106",... | 0.65699226 | 16 |