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 |
|---|---|---|---|---|---|---|
Runs a forward pass on the embeddings of a transformer inputs is an instance of TransformerInput | def pOv4(YKHO, g4y1, **B2fa):
[l633, hkxX, jWFR, z1_9, A07C, cZDQ, Nn5v, WvAr, RhjV, SEJK, e4XP, Ta_Q, zoT6, Z_TW, knuy, DXhh] = g4y1
LVAh = YKHO.detection_embedding(Z_TW, **B2fa)
hkxX = YKHO.dense(ZylS.concat([knuy, DXhh, LVAh], 2), **B2fa)
jzdc = LJGQ(ZylS.shape(l633)[1], YKHO.hidden_size)
Fg_i = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, g4y1):\n raise NotImplementedError",
"def KVH6(YKHO, *g4y1):\n raise NotImplementedError",
"def MKQT(YKHO, g4y1):\n raise NotImplementedError()",
"def KVH6(YKHO, WKvO):\n Mi3O = WKvO == YKHO.tokenizer.vocab['[PAD]']\n WKvO = WKvO.transpose(0, 1).contiguous()\n FBNX = ht2j.ara... | [
"0.7118836",
"0.69979274",
"0.6993957",
"0.6929344",
"0.69283456",
"0.684083",
"0.6836636",
"0.6780927",
"0.6780927",
"0.6699587",
"0.669719",
"0.66801965",
"0.6614101",
"0.659447",
"0.65910196",
"0.65812474",
"0.6567654",
"0.6526801",
"0.65019846",
"0.65019506",
"0.6480515",... | 0.0 | -1 |
Helper method to get devicename for a disk message. | def qzMo(UTqa, mWFP, BoAy):
if BoAy and filter(bool, [Csk6.get('name', mWFP) == mWFP for Csk6 in BoAy]):
if not UTqa.get('device-name'):
RKD7.warning(oWUa.format(mWFP))
return mWFP
elif UTqa.get('device-name') != mWFP:
raise zmjq.InvalidArgumentException('--contai... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UoZW(YKHO):\n return gTEQ('PrlSrvCfgHdd_GetDevName', YKHO.handle)",
"def enlV(lD3m, KAOR, cll5=False):\n y0cW = '%s_' % (lD3m[0] if cll5 else lD3m)\n P8oC = '%s_%s' % (KAOR.name[:8], KAOR.uuid[:4]) if cll5 else KAOR.name\n return NDaY.sanitize_file_name_for_api(P8oC, prefix=y0cW, max_len=jEha.Max... | [
"0.6959648",
"0.6675731",
"0.64992803",
"0.6462979",
"0.63459396",
"0.63405514",
"0.63324565",
"0.62980556",
"0.6260104",
"0.6211547",
"0.619601",
"0.6178117",
"0.6158191",
"0.6135641",
"0.6083297",
"0.6060151",
"0.6054577",
"0.6053284",
"0.603512",
"0.6030639",
"0.6018254",
... | 0.6454201 | 4 |
Gets labels for the instance message. | def Rg_G(qIxc, x0hE, KMDs=False):
Hh72 = x0hE.messages.Instance.LabelsValue
if KMDs:
Hh72 = x0hE.messages.InstanceProperties.LabelsValue
if qIxc.labels:
return Hh72(additionalProperties=[Hh72.AdditionalProperty(key=H5ew, value=BWXx) for H5ew, BWXx in sorted(jKi7.iteritems(qIxc.labels))])
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Te1x(YKHO):\n return YKHO.labels",
"def Te1x(YKHO) -> x1iM[str]:\n return YKHO.labels",
"def Crrw(YKHO):\n return YKHO._labels",
"def Crrw(YKHO):\n return YKHO._labels",
"def Crrw(YKHO):\n return YKHO._labels",
"def Crrw(YKHO):\n return YKHO._labels",
"def Crrw(YKHO):\n return ... | [
"0.7439988",
"0.7342571",
"0.7308822",
"0.73067605",
"0.73067605",
"0.73067605",
"0.73067605",
"0.73067605",
"0.73067605",
"0.7190166",
"0.7188713",
"0.716992",
"0.71663",
"0.71577185",
"0.71577185",
"0.71577185",
"0.71577185",
"0.71577185",
"0.71577185",
"0.71577185",
"0.715... | 0.7054063 | 47 |
Returns the message of reservation affinity for the instance. | def PR4K(qIxc, x0hE):
if qIxc.IsSpecified('reservation_affinity'):
vY5T = x0hE.messages.ReservationAffinity.ConsumeReservationTypeValueValuesEnum
gYME = None
iPHQ = []
if qIxc.reservation_affinity == 'none':
K6nD = vY5T.NO_RESERVATION
elif qIxc.reservation_affinit... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def StGp(YKHO):\n return YKHO.request.get('reservation', None)",
"def Dj9i(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'session_affinity')",
"def StGp(YKHO):\n return YKHO._reservation",
"def BUEL(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'reservation_id')",
"def gSS... | [
"0.56318426",
"0.5611059",
"0.5438566",
"0.54317683",
"0.5292865",
"0.52288365",
"0.519662",
"0.519662",
"0.5123067",
"0.5122535",
"0.5082244",
"0.5036739",
"0.49790993",
"0.49545208",
"0.49115857",
"0.48964074",
"0.4877538",
"0.4871858",
"0.4828057",
"0.48028803",
"0.4787754... | 0.7139741 | 0 |
Gets the joint angles saved within arm_cal/ with the physical robot arm data | def xMv4(YKHO):
print('\nGetting the physical arm joint angles...')
with open(AGPF + '/final_test/test_data/Matrices/Angles_9.0.csv') as nUeQ:
mz1U = m6_J.reader(nUeQ)
or8S = 0
for rdlD in mz1U:
for r845 in rdlD:
H5ew = YKHO.joint_names[or8S]
Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GJtA(YKHO, j4jS):\n YKHO.main(1, j4jS.angles)\n return yHOZ(True)",
"def AIis(YKHO):\n P1dF = YKHO.target_pos - YKHO.robot_arm_pos\n return YKHO._pd_control(P1dF) + YKHO.torque",
"def T2mh(YKHO):\n return [YKHO.motion.getAngles('LArm', True), YKHO.motion.getAngles('RArm', True)]",
"def Xo8... | [
"0.7593934",
"0.71952444",
"0.71433574",
"0.710774",
"0.6923523",
"0.66831535",
"0.6662158",
"0.6533645",
"0.64866054",
"0.6367499",
"0.634758",
"0.63269603",
"0.62920785",
"0.62724125",
"0.62293535",
"0.6220274",
"0.62182105",
"0.6217899",
"0.6165552",
"0.6158356",
"0.612125... | 0.7684459 | 0 |
Save joint angle values to csv file | def GoGV(YKHO, QN9E):
with open(AGPF + QN9E, 'w') as _RR0:
WJI9 = m6_J.writer(_RR0)
WJI9.writerow(fQxG.joint_angles.values())
_RR0.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RZtn(WWlG, gIsw):\n tTpl = WWlG\n with open(gIsw, 'w') as eHNT:\n eHNT.write(f'Break Load, {tTpl.break_load()}\\nBreak Strength, {tTpl.break_strength()}\\nBreak Elongation, {tTpl.break_elongation()}\\nYield Load, {tTpl.yield_load()}\\nYield Strength, {tTpl.yield_strength()}\\nYield Elongation, {tT... | [
"0.68784434",
"0.64784217",
"0.62530935",
"0.6227468",
"0.6216056",
"0.61678797",
"0.6122868",
"0.6108017",
"0.61057585",
"0.61050284",
"0.60717154",
"0.60549915",
"0.60008377",
"0.5983506",
"0.5980342",
"0.59396267",
"0.59283924",
"0.5915821",
"0.59127164",
"0.58869755",
"0.... | 0.72760236 | 0 |
Test conversion to a string (bytes in Python 2, unicode in Python 3). | def Dt2g(YKHO):
YKHO.assertEqual(str(YKHO.bs), str(YKHO.wbs))
YKHO.assertEqual(str(YKHO.be), str(YKHO.be))
YKHO.assertEqual(str, type(str(YKHO.wus)))
YKHO.assertEqual(str, type(str(YKHO.wue))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u7GN(YKHO):\n YKHO.assertRaises(UnicodeDecodeError, lambda: D6ho('☃'.encode('utf-8')))\n AgdR = D6ho(b'hello world')\n YKHO.assertIsInstance(AgdR, str)\n YKHO.assertEqual(AgdR, 'hello world')",
"def pkPZ(YKHO):\n Fg_i = bytes(b'abc')\n KCHu = AxBi(Fg_i)\n if VOoL:\n YKHO.assertEqu... | [
"0.7925128",
"0.7851373",
"0.7547887",
"0.72509575",
"0.7220252",
"0.7192202",
"0.7186242",
"0.7091968",
"0.70712775",
"0.70700634",
"0.7057976",
"0.70521367",
"0.70431346",
"0.70365196",
"0.70228124",
"0.69987744",
"0.69805384",
"0.69706166",
"0.69312614",
"0.69147164",
"0.6... | 0.0 | -1 |
Test conversion to a string (bytes in Python 2, unicode in Python 3). | def Dt2g(YKHO):
YKHO.assertEqual(str(YKHO.bioe), str(YKHO.wbioe))
YKHO.assertEqual(str(YKHO.uioe), str(YKHO.wuioe))
YKHO.assertEqual(str(YKHO.bose), str(YKHO.wbose))
YKHO.assertEqual(str(YKHO.uose), str(YKHO.wuose)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u7GN(YKHO):\n YKHO.assertRaises(UnicodeDecodeError, lambda: D6ho('☃'.encode('utf-8')))\n AgdR = D6ho(b'hello world')\n YKHO.assertIsInstance(AgdR, str)\n YKHO.assertEqual(AgdR, 'hello world')",
"def pkPZ(YKHO):\n Fg_i = bytes(b'abc')\n KCHu = AxBi(Fg_i)\n if VOoL:\n YKHO.assertEqu... | [
"0.7925128",
"0.7851373",
"0.7547887",
"0.72509575",
"0.7220252",
"0.7192202",
"0.7186242",
"0.7091968",
"0.70712775",
"0.70700634",
"0.7057976",
"0.70521367",
"0.70431346",
"0.70365196",
"0.70228124",
"0.69987744",
"0.69805384",
"0.69706166",
"0.69312614",
"0.69147164",
"0.6... | 0.0 | -1 |
Sigmoid activation function Arguments | def YDYE(WKvO):
return 1 / (1 + ht2j.exp(-WKvO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d1fz(WKvO):\n return 1.0 / (1 + oyIN.exp(-WKvO))",
"def m1Hg(EcVT, XcU5, Fg_i):\n sdgB = oyIN.dot(EcVT, XcU5) + Fg_i\n return 1.0 / (1.0 + oyIN.exp(-sdgB))",
"def m1Hg(epBp):\n return 1 / (1 + oyIN.exp(-epBp))",
"def m1Hg(WKvO):\n return 1 / (1 + oyIN.exp(-WKvO))",
"def m1Hg(WKvO):\n ... | [
"0.80501693",
"0.79579645",
"0.7773764",
"0.7771425",
"0.7761971",
"0.7761971",
"0.774402",
"0.7743929",
"0.7727615",
"0.7718519",
"0.77127093",
"0.77118677",
"0.77118677",
"0.77118677",
"0.77118677",
"0.77118677",
"0.77118677",
"0.77029383",
"0.76977247",
"0.7691156",
"0.768... | 0.7080194 | 96 |
Get configuration controller configuration | def tgzD() -> PSrQ:
dLQw = Hy7s.environ.get('APP_CONFIG', 'ProductionConfig')
sLOJ = ANWz.import_module('.'.join(f'magma.fluentd_client.config.{dLQw}'.split('.')[:-1]))
suDX = getattr(sLOJ, dLQw.split('.')[-1])
return suDX() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eMhT(YKHO) -> dict:\n return YKHO.config",
"def tgzD(YKHO):\n if YKHO.allow_reco():\n return YKHO.chs_config()\n else:\n return YKHO.get_config_j(YKHO.id)",
"def tgzD(YKHO):\n return YKHO.config",
"def GPtr(YKHO) -> 'outputs.DeviceConfigResponse':\n return qe4Y.get(YKHO, 'con... | [
"0.7795471",
"0.7655926",
"0.76405966",
"0.762667",
"0.75670826",
"0.7565704",
"0.75247353",
"0.746529",
"0.7411735",
"0.740519",
"0.7381939",
"0.73753506",
"0.73660505",
"0.7344867",
"0.7344867",
"0.7326805",
"0.7326805",
"0.7326805",
"0.7326805",
"0.7326805",
"0.7326805",
... | 0.0 | -1 |
Turn off the LED. (Interrupts flashing.) | def Z_rv(YKHO):
YKHO._interrupt_flash()
if YKHO.on:
xi8C.output(YKHO.pin, xi8C.LOW)
YKHO.on = False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z_rv(YKHO):\n xi8C.output(YKHO.gpio, False)",
"def Z_rv(YKHO):\n print('Turning the lights off')\n YKHO.led.all_off()\n YKHO.client.publish(uf2Z, nGxz)",
"def y_Rs(YKHO):\n if T6FA.current_thread() != YKHO._blinking_thread:\n YKHO._blinking_thread.unregister(YKHO)\n xi8C.output(YKH... | [
"0.85458714",
"0.8278278",
"0.8204422",
"0.8153099",
"0.80230445",
"0.7939081",
"0.7923542",
"0.78094435",
"0.7805423",
"0.7771822",
"0.7770804",
"0.77553195",
"0.77535605",
"0.7707029",
"0.76903665",
"0.76870775",
"0.7635206",
"0.76170915",
"0.7612361",
"0.76120013",
"0.7602... | 0.86891115 | 0 |
Given a reward from the game normalises it zero mean and unit variance. | def JlTi(vOGg, i09L, oJcF):
if i09L != oJcF:
vOGg = -305
return (vOGg - Ma8z) / Ei8K | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vOGg(YKHO, vOGg):\n return float(oyIN.sign(vOGg))",
"def ZMX3(YKHO) -> float:\n if YKHO.__total_pulls == 0:\n raise Exception('Number of pulls is 0. No empirical variance.')\n return (YKHO.__sum_of_square_reward - YKHO.__total_rewards ** 2 / YKHO.__total_pulls) / YKHO.__total_pulls",
"def v... | [
"0.646132",
"0.64279145",
"0.63724375",
"0.63270456",
"0.631331",
"0.631331",
"0.631331",
"0.631331",
"0.631331",
"0.6134376",
"0.5980681",
"0.5948727",
"0.5926468",
"0.59160405",
"0.5904424",
"0.58087987",
"0.57905304",
"0.5784683",
"0.57786095",
"0.57495064",
"0.5742598",
... | 0.6705976 | 0 |
Get the learning rate for gradient descent. | def NkTt():
return 1e-05 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b0Ix(qtWj):\n YKHO.lr = YKHO.lr / 1.00000001\n return YKHO.lr",
"def cBsx(YKHO, yKTC, qtWj):\n \"\"\"\n Dan's Methos\n \"\"\"\n yj8H = yKTC * 0.001\n Z9rn = oyIN.power(yj8H / yKTC, 1.0 / YKHO.__maxEpoch)\n return yKTC * oyIN.power(Z9rn, qtWj)",
"def jsQ2():\n _xMn = vPBo.... | [
"0.8053638",
"0.7815953",
"0.7782783",
"0.768594",
"0.7641077",
"0.7641077",
"0.75998056",
"0.73816365",
"0.73109484",
"0.72795993",
"0.72795993",
"0.7202771",
"0.7191542",
"0.7168862",
"0.70190346",
"0.69745064",
"0.6939231",
"0.6884782",
"0.68601567",
"0.68240887",
"0.68173... | 0.790059 | 1 |
Returns a string representation of this BoolectorSolver object. String representation of this BoolectorSolver object. | def zAg0(YKHO):
return YKHO.name + '-' + WcVV.getName(YKHO.satSolver) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vbOa(YKHO):\n cnqg = str()\n VKhi = YKHO.options('solver')\n for y7GR in VKhi:\n wEf2 = YKHO.get('solver', y7GR)\n cnqg += y7GR + ': ' + wEf2 + '\\n'\n return cnqg",
"def zAg0(YKHO):\n return oyIN.array2string(YKHO.graph.toarray())",
"def zAg0(YKHO):\n hlel = 'Solution for '... | [
"0.69683135",
"0.69249827",
"0.68995035",
"0.68752825",
"0.6847918",
"0.6827423",
"0.681375",
"0.6771597",
"0.6691438",
"0.666567",
"0.6647884",
"0.6644545",
"0.6644545",
"0.6644545",
"0.6644545",
"0.6644545",
"0.66380715",
"0.6635287",
"0.66032124",
"0.65613765",
"0.65581477... | 0.6784957 | 7 |
Generates a list of files with extension in the dir structure. | def UgJM(YKHO):
for pGQh, IaaG, iumf in Hy7s.walk(YKHO.start_location):
for jQJk in iumf:
if jQJk.endswith('.py'):
yield '{0}{1}'.format(pGQh, jQJk) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rlX1(qIxc):\n CBZq = ('jpg', 'gif', 'png', 'bmp', 'xpm', 'ico')\n for d7pR in qIxc:\n if not Hy7s.access(d7pR, Hy7s.R_OK):\n (print >> HwRy.stderr, 'File not found: %s' % d7pR)\n continue\n if Hy7s.path.isdir(d7pR):\n for tk5Y, AQSv, RRlC in Hy7s.walk(d7pR):... | [
"0.7657409",
"0.7509316",
"0.72136766",
"0.7166178",
"0.71289724",
"0.707262",
"0.7060423",
"0.7042677",
"0.70380265",
"0.70327353",
"0.7001796",
"0.69956994",
"0.69779444",
"0.6937522",
"0.69339687",
"0.6932267",
"0.6923476",
"0.6920417",
"0.69160354",
"0.6878986",
"0.687806... | 0.7077196 | 5 |
If we have calculated leading whitespace, insert the leading whitespace into the first position of the list | def jeHe(YKHO, x3hu):
if YKHO._leading_whitespace:
x3hu[0] = '{0}{1}'.format(YKHO._leading_whitespace, x3hu[0])
return x3hu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rq1_(YKHO):\n YKHO._leading_whitespace = ''",
"def jBD1(YKHO, list):\n zdB2 = [' '] * len(list)\n for YRbF in range(len(list) - 1):\n zdB2[YRbF + 1] = list[YRbF]\n return zdB2",
"def v_nm(IZVi):\n for d6pt in range(len(IZVi)):\n if not IZVi[d6pt]:\n IZVi[d6pt] = '0'\... | [
"0.63360506",
"0.6194572",
"0.5984075",
"0.59210896",
"0.58566105",
"0.5837267",
"0.5801685",
"0.57421136",
"0.56616235",
"0.5637351",
"0.563632",
"0.55919856",
"0.5578196",
"0.55567527",
"0.55411965",
"0.55321133",
"0.55241895",
"0.55104196",
"0.5485656",
"0.54606974",
"0.54... | 0.8051152 | 0 |
Reset leading whitespace to an empty string | def rq1_(YKHO):
YKHO._leading_whitespace = '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BDtW(YKHO, yAmx):\n pass",
"def mQFJ(YKHO) -> None:\n YKHO.text = ZbWC.sub('\\\\s[^\\n\\\\s]\\\\s', ' ', YKHO.text)",
"def EQOQ():\n pass",
"def HWW9(l5Ny: str) -> str:\n return '\\n'.join([zFiD.lstrip() for zFiD in l5Ny.split('\\n') if zFiD.lstrip() != ''])",
"def UG9U(l5Ny: str) -> str:\... | [
"0.7319709",
"0.717422",
"0.68059915",
"0.67550683",
"0.65662074",
"0.64951366",
"0.64855266",
"0.64842486",
"0.6482822",
"0.63899666",
"0.6290314",
"0.62032336",
"0.61713326",
"0.61497635",
"0.61404127",
"0.6126315",
"0.61145175",
"0.61136705",
"0.6111268",
"0.6105448",
"0.6... | 0.8406918 | 0 |
Returns a list of the current nodes set in the config files. | def AyQV():
MzfW = hp1l.CONF_NODES_FILE
e8Nb = YI1g(MzfW)
return e8Nb | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AyQV(YKHO):\n with open('node_list.txt', 'r') as nUeQ:\n YKHO.nodes = [zFiD.rstrip('\\n') for zFiD in nUeQ]",
"def CDNe(YKHO):\n return YKHO.__allNodes",
"def vTxU(YKHO):\n return YKHO.node_list",
"def Ziit(YKHO):\n return list(YKHO.keys())",
"def Ziit(YKHO):\n return list(YKHO.ke... | [
"0.68926984",
"0.6829399",
"0.6811819",
"0.68054205",
"0.68054205",
"0.6751895",
"0.67171973",
"0.6658382",
"0.6656555",
"0.6653519",
"0.6566711",
"0.6551818",
"0.6543484",
"0.6534933",
"0.64930457",
"0.6491283",
"0.648216",
"0.6475416",
"0.6464183",
"0.64529616",
"0.64494",
... | 0.7896045 | 0 |
Create a cameraimage plot | def FIMM(YKHO, rMH_, FXpT, zNig, iMGt=None, **B2fa):
super().__init__(**B2fa)
RBVb = {'xtick.direction': 'out', 'ytick.direction': 'out'}
x5MY.rcParams.update(RBVb)
YKHO._image = None
YKHO._mapping = None
YKHO.colorbar = None
YKHO.autoscale = True
YKHO.xpix = rMH_
YKHO.ypix = FXpT
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zY4Q(YKHO):\n LZpg, FgGO = QrM1.subplots()\n LZpg.show()\n FgGO.cla()\n FgGO.axis([-0.003, 0.003, -0.003, 0.003])\n FgGO.grid()\n FgGO.plot([0], [0], 'r+')\n for i7_E in range(0, int(YKHO._t_sim / YKHO._dt) + 1, 250):\n FgGO.plot(YKHO._feat_vec[i7_E, 0, 0], YKHO._feat_vec[i7_E, 1, 0... | [
"0.7726675",
"0.7168349",
"0.696092",
"0.67199004",
"0.6526006",
"0.6405402",
"0.6365421",
"0.63624465",
"0.62569183",
"0.6251492",
"0.622746",
"0.62114173",
"0.61945605",
"0.618963",
"0.6181302",
"0.61749333",
"0.6172868",
"0.6158118",
"0.61564475",
"0.61529166",
"0.61521983... | 0.0 | -1 |
Create a cameraimage plot using imshow (essentially a 2D histogram, therefore missing module gaps) | def FIMM(YKHO, rdlD, fvDH, Gmep, OfOG, **B2fa):
super().__init__(**B2fa)
YKHO._image = None
YKHO._mapping = None
YKHO.colorbar = None
YKHO.autoscale = True
YKHO.row = rdlD
YKHO.col = fvDH
YKHO.n_rows = Gmep
YKHO.n_cols = OfOG
YKHO.n_pixels = YKHO.row.size
assert YKHO.row.size... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KwM3():\n QrM1.subplot(121)\n QrM1.imshow(nPrm.data.numpy()[0,].squeeze())\n QrM1.subplot(122)\n QrM1.imshow(pwpu.view(-1, 28, 28).data.numpy()[0,].squeeze())\n QrM1.show()\n QrM1.pause(1e-06)\n QrM1.gcf().clear()\n mvm2 = C3ST.sample_z(nPrm)\n QrM1.imshow(mvm2)",
"def snF2(VXjJ):\... | [
"0.7090252",
"0.7065481",
"0.6908243",
"0.6876816",
"0.6818144",
"0.67968804",
"0.6793367",
"0.6791469",
"0.6783793",
"0.6783793",
"0.6783793",
"0.67668825",
"0.6756246",
"0.6746723",
"0.6726864",
"0.67247105",
"0.6642704",
"0.66406584",
"0.6633492",
"0.6593998",
"0.65844923"... | 0.0 | -1 |
Deletes an existing load balancer service group. | def GSyo(sEAN, Ilxn):
tFH4 = ps_M.LoadBalancerManager(sEAN.client)
bGrB, hE03 = kmSW.parse_id(Ilxn)
if sEAN.skip_confirmations or Hmkb.confirm('This action will cancel a service group. Continue?'):
tFH4.delete_service_group(hE03)
return 'Service group %s is being deleted!' % Ilxn
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a8UW(YKHO, hE03):\n TJdH = YKHO.client['Network_Application_Delivery_Controller_LoadBalancer_VirtualServer']\n return TJdH.deleteObject(id=hE03)",
"def JZDC(YKHO):\n HCmI = YKHO.cmd_prefix + ['redshift', 'delete-cluster-subnet-group', '--cluster-subnet-group-name', YKHO.name]\n eLzR.IssueCommand(... | [
"0.8037338",
"0.68840265",
"0.68807906",
"0.67657",
"0.67075866",
"0.6662849",
"0.6610307",
"0.6574038",
"0.65581304",
"0.65554225",
"0.6553395",
"0.650906",
"0.6500996",
"0.64721644",
"0.64631516",
"0.6425516",
"0.6391302",
"0.63842916",
"0.6356209",
"0.63453674",
"0.6299887... | 0.7692148 | 1 |
Return agent position as Vector2 instance. | def JiCa(YWSi):
oeNL = DpX9()
oeNL.x = YWSi.pose.pose.position.x
oeNL.y = YWSi.pose.pose.position.y
return oeNL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I2pi(YWSi):\n y917 = DpX9()\n y917.x = YWSi.twist.twist.linear.x\n y917.y = YWSi.twist.twist.linear.y\n return y917",
"def Ty9i(YKHO):\n return DpX9(YKHO.position)",
"def TwAD(YKHO) -> fexq:\n pass",
"def iArr(YKHO) -> lNLu:\n return YKHO._normal * YKHO._distance_from_origin",
"def... | [
"0.7603827",
"0.7458375",
"0.65642893",
"0.6557557",
"0.6540899",
"0.649476",
"0.6391604",
"0.62776494",
"0.61861956",
"0.61706674",
"0.61136395",
"0.61019254",
"0.60933805",
"0.60043144",
"0.5993553",
"0.5949967",
"0.59394747",
"0.59374994",
"0.59348315",
"0.59348315",
"0.59... | 0.8089541 | 0 |
Return obstacle position as Vector2 instance. | def j4qg(D819):
oeNL = DpX9()
oeNL.x = D819.position.x
oeNL.y = D819.position.y
return oeNL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ty9i(YKHO):\n return DpX9(YKHO.position)",
"def dQgj(YKHO) -> m7iN:\n return m7iN((YKHO.proto.pos.x, YKHO.proto.pos.y))",
"def c1Wi(YKHO):\n return lNLu.createFromTwoPoints(YKHO.p1, YKHO.p2)",
"def JiCa(YWSi):\n oeNL = DpX9()\n oeNL.x = YWSi.pose.pose.position.x\n oeNL.y = YWSi.pose.pos... | [
"0.7097197",
"0.6688148",
"0.63801146",
"0.6271898",
"0.62086916",
"0.60949224",
"0.608759",
"0.6030668",
"0.6011069",
"0.5982183",
"0.5938863",
"0.5893644",
"0.5852353",
"0.5838189",
"0.58177865",
"0.5815798",
"0.5810499",
"0.5789317",
"0.5756227",
"0.5733608",
"0.5721481",
... | 0.6785595 | 1 |
Compute total velocity based on all components. | def PrCA(YKHO, Bbra, sTvr, FoEj):
DHvX = DpX9()
YKHO.velocity = I2pi(Bbra)
KYa1 = YKHO.compute_alignment(sTvr)
EVyh = YKHO.compute_cohesion(sTvr)
s2Ni = YKHO.compute_separation(sTvr)
_jrj = YKHO.compute_avoids(FoEj)
if Ke5A:
print('alignment: ', KYa1)
print('cohesion: ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k292(YKHO, dfHy):\n YKHO.setIteration(dfHy)\n if YKHO.parallelization_mode == 'serial':\n for hQfo in dfHy:\n for JhL6 in hQfo:\n YKHO.calcSegmentVelocities(JhL6)\n else:\n HwRy.stderr.write('ERROR: Velocity calculation is only available in serial mode')\n ... | [
"0.68019897",
"0.6791509",
"0.6721381",
"0.6524867",
"0.6395786",
"0.6368563",
"0.631056",
"0.62978995",
"0.6296061",
"0.6260199",
"0.62434727",
"0.62378734",
"0.6212687",
"0.621244",
"0.61956394",
"0.61899245",
"0.6185477",
"0.61673826",
"0.61664444",
"0.61664444",
"0.610558... | 0.5642465 | 72 |
Convert a timestamp (integer microseconds since epoch) to a humanreadable string, using the local timezone for display (e.g. from the TZ env var). | def li17(E3oo: int) -> str:
if E3oo == rfNq:
return '(minimum)'
if E3oo == qLXZ:
return '(maximum)'
JRYC = qcWV.datetime.fromtimestamp(QGdl(E3oo))
return JRYC.strftime('%a, %d %b %Y %H:%M:%S %z') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yF_0(E3oo=ITS7(), gqke='%Y-%m-%d %H:%M:%S'):\n return F803(gqke, FdZ9(E3oo))",
"def zKHa(E3oo=ITS7(), gqke='%Y-%m-%d %H:%M:%S'):\n return F803(gqke, WPt4(E3oo))",
"def E3oo():\n return qcWV.utcnow().strftime('%F %T')",
"def saqZ():\n HVay = ITS7.time()\n _PYT = repr(HVay).split('.')[1]\n ... | [
"0.79240173",
"0.76768285",
"0.7200962",
"0.71859604",
"0.7157436",
"0.70873976",
"0.70652544",
"0.7030897",
"0.7030897",
"0.7025387",
"0.7015704",
"0.70048666",
"0.69827145",
"0.6957344",
"0.69570935",
"0.69500625",
"0.6937256",
"0.693307",
"0.6917869",
"0.68773586",
"0.6877... | 0.6910722 | 19 |
Convert a Unix timestamp (floating point seconds since epoch) into a NILM timestamp (integer microseconds since epoch) | def u7it(Ei1M):
return int(round(Ei1M * 1000000.0)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QGdl(E3oo):\n return E3oo / 1000000.0",
"def _v3t(E3oo):\n _c1T = qcWV.strptime(E3oo, '%Y-%m-%d %H:%M:%S')\n return int(ITS7.mktime(_c1T.timetuple())) * 1000",
"def JrxT(JRYC):\n return arPL(JRYC - qtWj)",
"def wAg2(YKHO):\n try:\n WgTK = kJUT.parse(E3oo)\n YKHO.out_unix_mill... | [
"0.78923976",
"0.7661996",
"0.7597118",
"0.735602",
"0.7300543",
"0.72853243",
"0.727143",
"0.72053033",
"0.714664",
"0.71329045",
"0.7118739",
"0.71153766",
"0.71015227",
"0.7090832",
"0.7062039",
"0.7041989",
"0.70192975",
"0.7012208",
"0.70073247",
"0.69814116",
"0.6978951... | 0.7627219 | 2 |
Convert a NILM timestamp (integer microseconds since epoch) into a Unix timestamp (floating point seconds since epoch) | def QGdl(E3oo):
return E3oo / 1000000.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _v3t(E3oo):\n _c1T = qcWV.strptime(E3oo, '%Y-%m-%d %H:%M:%S')\n return int(ITS7.mktime(_c1T.timetuple())) * 1000",
"def u7it(Ei1M):\n return int(round(Ei1M * 1000000.0))",
"def gdlA(a1PO):\n return qcWV.fromtimestamp(a1PO / 1000.0)",
"def tAwz(Emd4, E3oo):\n if not isinstance(E3oo, qcWV.da... | [
"0.7693606",
"0.753093",
"0.735114",
"0.73278725",
"0.73242176",
"0.7214598",
"0.7176891",
"0.71321976",
"0.7085821",
"0.7061672",
"0.70609254",
"0.7049853",
"0.70330596",
"0.70321506",
"0.7014287",
"0.69972247",
"0.69893765",
"0.6980199",
"0.6977914",
"0.6924856",
"0.6912029... | 0.8100784 | 0 |
Set require_grad attribute of the activations of this layer to True, such that the gradient will be saved in the activation tensor. | def _6Ge(YKHO):
YKHO._activations.requires_grad = True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F41H(YKHO, _6Ge):\n for k78t in YKHO.parameters():\n k78t.requires_grad = _6Ge",
"def F41H(YKHO, _6Ge):\n for k78t in YKHO.parameters():\n k78t.requires_grad = _6Ge",
"def G2lF(YKHO, BWXx):\n if not isinstance(BWXx, bool):\n raise TypeError('The given value should be a boolean... | [
"0.7414841",
"0.7414841",
"0.7162721",
"0.7050536",
"0.68681514",
"0.6537397",
"0.6536761",
"0.65167916",
"0.65075076",
"0.65049225",
"0.6498522",
"0.6498522",
"0.6498522",
"0.6498522",
"0.6488693",
"0.64594144",
"0.6391781",
"0.6391781",
"0.6391781",
"0.63715726",
"0.6295197... | 0.8051192 | 0 |
Same as the forward method, besides that the activations and linear activations are not saved in self. | def xiAI(YKHO, WKvO):
MKlR = WKvO.mm(YKHO.weights.t())
if YKHO.bias is not None:
MKlR += YKHO.bias.unsqueeze(0).expand_as(MKlR)
MKlR = YKHO.forward_activationfunction(MKlR)
return MKlR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, WKvO):\n return YKHO.activation_function(YKHO.backbone_model(WKvO))",
"def KVH6(YKHO, WKvO):\n pass",
"def KVH6(YKHO, WKvO):\n WKvO = WKvO.view(-1, YKHO.input_size)\n yvT9 = WKvO\n YoQM = [yvT9]\n dgFt = []\n for gEmA in YKHO.hidden_layers:\n VZDU = gEmA(yvT9)\n ... | [
"0.7696587",
"0.7636193",
"0.7602142",
"0.75568557",
"0.75488514",
"0.75345045",
"0.7504663",
"0.7484289",
"0.74820065",
"0.74820065",
"0.74500275",
"0.74420303",
"0.74372995",
"0.7434587",
"0.7429219",
"0.7418667",
"0.7417188",
"0.73975044",
"0.73852396",
"0.7337412",
"0.732... | 0.0 | -1 |
Propagate the input of the layer forward to the linear activation of the current layer (so no nonlinearity applied), without saving the linear activations. | def EMjU(YKHO, WKvO):
jzdc = WKvO.mm(YKHO.weights.t())
if YKHO.bias is not None:
jzdc += YKHO.bias.unsqueeze(0).expand_as(jzdc)
return jzdc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, WKvO):\n WKvO = WKvO.view(-1, YKHO.input_size)\n yvT9 = WKvO\n YoQM = [yvT9]\n dgFt = []\n for gEmA in YKHO.hidden_layers:\n VZDU = gEmA(yvT9)\n yvT9 = YKHO.act(VZDU)\n YoQM.append(yvT9)\n VZDU.retain_grad()\n VZDU.requires_grad_(True)\n dgFt.... | [
"0.73968726",
"0.7367735",
"0.73378265",
"0.72530997",
"0.7204571",
"0.7072555",
"0.7066929",
"0.7051151",
"0.7049194",
"0.70065236",
"0.6987923",
"0.6955333",
"0.69394904",
"0.69282216",
"0.6917016",
"0.6899713",
"0.6894781",
"0.68933403",
"0.68775415",
"0.6863559",
"0.68487... | 0.67186487 | 31 |
Propagate the activation h backward through the backward mapping function g(h) = t(Qh + d) | def UuFc(YKHO, MKlR):
MKlR = MKlR.mm(YKHO.feedbackweights.t())
if YKHO.feedbackbias is not None:
MKlR += YKHO.feedbackbias.unsqueeze(0).expand_as(MKlR)
return YKHO.feedback_activationfunction(MKlR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u97B(YKHO):\n YKHO.loss_G.backward()",
"def xvea(LQ6K, wyyA, YDYE):\n pass",
"def o2sH(YKHO, fuBA, Csk6):\n return Csk6 * (1 - fuBA ** 2)",
"def m9vT(jzdc, epBp, UNs7):\n FAxD = oyIN.multiply(epBp, 1 - epBp)\n DSv_ = UNs7 * FAxD\n return DSv_",
"def ZD5u(Emd4, EYyA, QwYN):\n raise ... | [
"0.68786365",
"0.6867864",
"0.6615047",
"0.65797365",
"0.65652436",
"0.65652436",
"0.6551954",
"0.6540747",
"0.65339893",
"0.6449456",
"0.6431897",
"0.6411039",
"0.63963085",
"0.63957036",
"0.6386346",
"0.6366232",
"0.63532126",
"0.63340527",
"0.6333695",
"0.6331842",
"0.6323... | 0.72883886 | 0 |
Adds incomes to the SQLite DB from a JSON blob. | def oXwQ(RsFk):
with open(RsFk, 'rt') as eHNT:
wgfO = qQXR.load(eHNT)
for kLQb in wgfO:
JAVl = HL9c.db.IncomeRecord(date=qcWV.datetime.strptime(kLQb[0], '%Y-%m-%dT%H:%M:%S.%fZ').date(), amount=kLQb[1], category=kLQb[2], note=kLQb[3], account=kLQb[4])
NCls.session.add(JAVl)
NCls.sessi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ESKe(RsFk: str):\n with open(RsFk, 'rt') as eHNT:\n wgfO = qQXR.load(eHNT)\n for kLQb in wgfO:\n JAVl = HL9c.db.ExpenseRecord(date=qcWV.datetime.strptime(kLQb[0], '%Y-%m-%dT%H:%M:%S.%fZ').date(), amount=kLQb[1], category=kLQb[2], note=kLQb[3], account=kLQb[4])\n NCls.session.add(JAVl... | [
"0.6438482",
"0.5895376",
"0.58504933",
"0.5833467",
"0.5824965",
"0.5760895",
"0.57036936",
"0.5689061",
"0.5657639",
"0.56370056",
"0.5549808",
"0.55165136",
"0.55008954",
"0.5458344",
"0.54576606",
"0.5424737",
"0.5415092",
"0.53971153",
"0.5356982",
"0.5356726",
"0.533760... | 0.7174711 | 0 |
Sample a random position contained in a sprite. This is useful for handcrafted random agents. Note that this function does not uniformly sample with respect to sprite areas. Instead, it randomly selects a sprite, then selects a random position within that sprite. Consequently, small sprites are represented equally to l... | def vFeD(YKHO):
Jqc7 = YKHO._sprites[oyIN.random.randint(len(YKHO._sprites))]
return Jqc7.sample_contained_position() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kxG1(YKHO):\n return DhiK(tuKI.random() * YKHO.width, tuKI.random() * YKHO.height)",
"def kxG1(YKHO):\n WKvO = tuKI.randint(0, YKHO.width - 1)\n LVAh = tuKI.randint(0, YKHO.height - 1)\n return DhiK(WKvO, LVAh)",
"def kxG1(YKHO):\n Z1El = tuKI.randrange(0, YKHO.width)\n iPHV = tuKI.randra... | [
"0.6360241",
"0.6311611",
"0.62038076",
"0.6045359",
"0.6006172",
"0.5995479",
"0.59622943",
"0.59497637",
"0.5944109",
"0.5842172",
"0.57634485",
"0.56751513",
"0.56711155",
"0.5654988",
"0.5644654",
"0.5641509",
"0.5624186",
"0.5607512",
"0.55840975",
"0.5537526",
"0.553752... | 0.78666574 | 0 |
Check if a string is a valid UUID. | def Nm33(h_Bp):
return isinstance(h_Bp, str) and h4nb.match(h_Bp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Flfh(hUOr):\n try:\n S7kj(hUOr, version=4)\n return True\n except:\n return False",
"def gD9s(qxeD):\n try:\n DwRD = S7kj(qxeD, version=4)\n except ValueError:\n return False\n return str(DwRD) == qxeD",
"def Oab2(hUOr):\n try:\n S7kj(hUOr, versio... | [
"0.89210004",
"0.8351139",
"0.82712",
"0.8249813",
"0.79422736",
"0.79241806",
"0.78409225",
"0.7684529",
"0.7656513",
"0.7656513",
"0.7609126",
"0.7479075",
"0.7430325",
"0.74029744",
"0.7372589",
"0.7165484",
"0.69615036",
"0.6798446",
"0.673628",
"0.66985685",
"0.66835564"... | 0.8913077 | 1 |
Return the name of the current user, whether logged in or not. First, we'll try to deduce it solely from cookies, to avoid an unnecessary API query. For the cookiedetection method, see _get_username_from_cookies()'s docs. If our username isn't in cookies, then we're either using OAuth or we're probably not logged in, o... | def SLgN(YKHO):
mWFP = YKHO._get_username_from_cookies()
if mWFP:
return mWFP
if YKHO._oauth and YKHO._login_info[0]:
return YKHO._login_info[0]
return YKHO._get_username_from_api() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I_f2(YKHO):\n NtEF = YKHO.get_secure_cookie('username')\n if NtEF is None:\n return None\n else:\n return NtEF.decode('utf-8')",
"def I_f2(YKHO):\n NtEF = YKHO.get_secure_cookie('username')\n if NtEF is None:\n return None\n else:\n return NtEF.decode('utf-8')",
... | [
"0.77095276",
"0.77095276",
"0.74957067",
"0.7465287",
"0.74131876",
"0.73816687",
"0.72192925",
"0.7209759",
"0.7183674",
"0.7166811",
"0.7157658",
"0.7118057",
"0.71170485",
"0.69675136",
"0.6952424",
"0.6950646",
"0.6927873",
"0.6920135",
"0.690112",
"0.690112",
"0.690112"... | 0.82763696 | 0 |
The Site's language code, like ``"en"`` or ``"es"``. | def DuqQ(YKHO):
return YKHO._lang | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r6VR(YKHO) -> str:\n return qe4Y.get(YKHO, 'language_code')",
"def L5PF(YKHO):\n lhy8 = OZpC(YKHO.context, 'portal_properties')\n return lhy8.site_properties.getProperty('default_language') or 'en'",
"def Bmkt(YKHO) -> str:\n return gCuF.LANGUAGE_CODE",
"def Bmkt(YKHO):\n return YKHO.lang"... | [
"0.806508",
"0.80218065",
"0.78310937",
"0.7801867",
"0.77424365",
"0.76973027",
"0.76438516",
"0.7618568",
"0.7567719",
"0.7562287",
"0.75377035",
"0.7412597",
"0.7405118",
"0.73751295",
"0.73751295",
"0.73670673",
"0.73670673",
"0.73122424",
"0.72951007",
"0.729503",
"0.727... | 0.76499903 | 6 |
The UserAgent header sent to the API by the requests session. | def Lb1u(YKHO):
return YKHO._session.headers['User-Agent'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YE2Q(YKHO):\n return YKHO._userAgent",
"def RljE():\n MOPg = E_hp()\n return pz3A({'user-agent': MOPg['user-agent']})",
"def Lb1u(YKHO) -> str:\n return YKHO.root_hartree.user_agent",
"def ugmL(YKHO):\n YKHO._api_client.set_default_header('User-Agent', YKHO._api_client.user_agent)",
"def... | [
"0.79459804",
"0.7529621",
"0.74557334",
"0.7440511",
"0.73630434",
"0.72554636",
"0.7090749",
"0.70216715",
"0.6891309",
"0.68533766",
"0.68533766",
"0.6747359",
"0.6717786",
"0.671194",
"0.66033787",
"0.6573724",
"0.6419079",
"0.6415228",
"0.6396904",
"0.6392646",
"0.635018... | 0.825074 | 0 |
Computes the precision for the specified values of k | def vjyh(hlel, pan_, hz5a=(1,)):
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].view(-1).float().sum(0)
Ylbp.append(R2Dg.mul_(100.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(_ger, nvEb, G1Hx):\n G1Hx = min(len(nvEb), G1Hx)\n OCOs = min(len(_ger), G1Hx)\n return sum([int(nvEb[YRbF] in _ger) for YRbF in range(G1Hx)]) / OCOs",
"def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx] != 0\n if Mkmy.size != G1Hx:\n raise ValueError('R... | [
"0.76427615",
"0.74189496",
"0.7418079",
"0.72710466",
"0.72456723",
"0.72446615",
"0.7237539",
"0.72213703",
"0.7210107",
"0.7058935",
"0.6852219",
"0.6786084",
"0.67836976",
"0.6768417",
"0.67273885",
"0.67181736",
"0.67181736",
"0.67181736",
"0.67181736",
"0.67181736",
"0.... | 0.0 | -1 |
Add a colorbar to the right of an axis. | def Rz7N(YKHO, LZpg, aNZO, CkYf, MYQr, UXqs=''):
import matplotlib as x5MY
oeNL = aNZO.get_position()
BFKx = [oeNL.x1 + 0.025, oeNL.y0 + 0.0125, 0.015, oeNL.height * 0.8]
k13D = LZpg.add_axes(BFKx)
wn16 = x5MY.colorbar.ColorbarBase(k13D, cmap=MYQr, norm=CkYf, spacing='uniform', orientation='vertical... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Id6j(MPlV, nPrm, UXqs, **B2fa):\n JI1i = MPlV.get_figure()\n if 'right' not in B2fa:\n Dy_V = sCsf(MPlV)\n dvgN = B2fa.pop('pad', 0.1)\n k13D = Dy_V.append_axes('right', size='5%', pad=dvgN)\n else:\n JI1i.subplots_adjust(right=B2fa.pop('right'))\n k13D = JI1i.add_ax... | [
"0.7418903",
"0.74102116",
"0.7179385",
"0.7166474",
"0.71613485",
"0.71574956",
"0.6979866",
"0.6953447",
"0.6930779",
"0.67889935",
"0.6788904",
"0.6615177",
"0.6534736",
"0.6524789",
"0.65199506",
"0.6450172",
"0.6343112",
"0.62681675",
"0.62551737",
"0.625244",
"0.6166455... | 0.7577057 | 1 |
Add a colorbar to the right of an axis. | def Rz7N(YKHO, LZpg, aNZO, CkYf, MYQr, UXqs=''):
import matplotlib as x5MY
oeNL = aNZO.get_position()
BFKx = [oeNL.x1 + 0.025, oeNL.y0 + 0.0125, 0.015, oeNL.height * 0.8]
k13D = LZpg.add_axes(BFKx)
wn16 = x5MY.colorbar.ColorbarBase(k13D, cmap=MYQr, norm=CkYf, spacing='uniform', orientation='vertical... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Id6j(MPlV, nPrm, UXqs, **B2fa):\n JI1i = MPlV.get_figure()\n if 'right' not in B2fa:\n Dy_V = sCsf(MPlV)\n dvgN = B2fa.pop('pad', 0.1)\n k13D = Dy_V.append_axes('right', size='5%', pad=dvgN)\n else:\n JI1i.subplots_adjust(right=B2fa.pop('right'))\n k13D = JI1i.add_ax... | [
"0.7418903",
"0.74102116",
"0.7179385",
"0.7166474",
"0.71613485",
"0.71574956",
"0.6979866",
"0.6953447",
"0.6930779",
"0.67889935",
"0.6788904",
"0.6615177",
"0.6534736",
"0.6524789",
"0.65199506",
"0.6450172",
"0.6343112",
"0.62681675",
"0.62551737",
"0.625244",
"0.6166455... | 0.7577057 | 0 |
Compute the dropout rate for a given dataset. Dropout rate is the percent of rows that is invalid | def lo24(__n6, U_Wd=False):
from core.data.dataset import Dataset
from numpy import isnan
if not isinstance(__n6, Dataset):
raise TypeError('Dataset has to be class core.data.dataset.Dataset')
if U_Wd:
nPrm = __n6.data
UxaA = ((~isnan(nPrm)).sum(axis=1) != nPrm.shape[1]).sum()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dh6q(nPrm, oEL_=None):\n if oEL_ is None:\n oEL_ = cGpL(nPrm)\n kqge = 100\n if len(nPrm) < kqge:\n raise g4yC\n d6pt = aqIr(nPrm)\n assert d6pt[-1] > d6pt[0]\n WbTE = d6pt[-1] - d6pt[0]\n GozC = round(WbTE.total_seconds() / oEL_ + 1)\n lo24 = 1 - d6pt.size / GozC\n if ... | [
"0.70734394",
"0.6407013",
"0.6053338",
"0.60318905",
"0.6019802",
"0.5997282",
"0.59813225",
"0.58873934",
"0.5853313",
"0.56782526",
"0.5663235",
"0.5656324",
"0.56531626",
"0.56433153",
"0.5629436",
"0.5511207",
"0.5482371",
"0.5482366",
"0.545724",
"0.5455467",
"0.5443219... | 0.6615234 | 1 |
Set up a specified sensor strategy for a filtered list of sensors. | def GwTC(YKHO, _63S, KUnM, Ajn0, Ef6M=False):
qv1X = z8Ck('set_sampling_strategies', [_63S, KUnM, Ajn0, Ef6M])
Aofo = (yield YKHO._send(qv1X))
YKHO._cache_jsonrpc_request(qv1X)
raise my7k.gen.Return(Aofo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _kZf(YKHO, gCuF):\n for XtFw in gCuF.sensors:\n KCHu = XTqt(XtFw, gCuF.sensors, gCuF, YKHO.tiny_image, YKHO.send_q)\n YKHO.sensors.append(KCHu)",
"def Cv1j():\n ajbX = []\n ajbX.append(bmPO(factory_type_constant=AdH7, sensor_name='Sensor1', interval_between_readings=0.5, gpio_pin_id=No... | [
"0.6212168",
"0.6047879",
"0.5984111",
"0.5862111",
"0.56338465",
"0.56225127",
"0.5609816",
"0.55850655",
"0.55054116",
"0.54190886",
"0.5383307",
"0.5377089",
"0.5354387",
"0.5349821",
"0.5322056",
"0.528664",
"0.5280848",
"0.5251738",
"0.5243184",
"0.52375025",
"0.52157575... | 0.48311678 | 57 |
Extract and return list of schedule block IDs from a JSON response. | def NyLn(YKHO, nP0Q, qLA4):
nPrm = qQXR.loads(nP0Q)
dixj = []
if nPrm['result']:
xXIP = qQXR.loads(nPrm['result'])
for SoQO in xXIP:
if SoQO['sub_nr'] == qLA4 and SoQO['type'] == 'OBSERVATION':
dixj.append(SoQO['id_code'])
return dixj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TOCg(YKHO, ax5U):\n bD7m = (yield YKHO.get_sitemap())['capture_blocks'] + '/sb/' + ax5U\n geh0 = (yield YKHO._http_client.fetch(bD7m))\n geh0 = qQXR.loads(geh0.body)\n Sjjq = geh0['result']\n raise my7k.gen.Return(Sjjq)",
"def UxIe(YKHO):\n bD7m = (yield YKHO.get_sitemap())['schedule_blocks... | [
"0.6894451",
"0.6024687",
"0.57171553",
"0.53884",
"0.53079563",
"0.5235944",
"0.5219721",
"0.5123098",
"0.5094196",
"0.5088381",
"0.5043245",
"0.5033663",
"0.50309175",
"0.5025719",
"0.5008681",
"0.49947643",
"0.49406612",
"0.493699",
"0.49162883",
"0.48895472",
"0.4873885",... | 0.7273277 | 0 |
Add someone to a group. If the group does not already exist, it is created. Phone number should contain full country code, starting with +. The user must be in the channel to be added to the SMS group. | async def groupadd(JyK9: fido, YwkQ: str, vC92: str, qIxc: List[str]):
if len(qIxc) == 0:
return 'Usage: ' + EobE.commandPrefix + 'groupadd <groupname> <nickname> <phonenumber>'
Nqlg = []
print(f'Args: {qIxc}')
FGW3 = ''
dP7V = ''
uOe2 = ''
for d7pR in qIxc:
if d7pR == '':
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fBrL(CBIr: User, uOe2: Group) -> nQ3j:\n if CBIr.pw_name in uOe2.gr_mem:\n return nQ3j(wHLO.unchanged)\n oUZx(['/usr/sbin/addgroup', CBIr.pw_name, uOe2.gr_name])\n uOe2.gr_mem.append(CBIr.pw_name)\n return nQ3j(wHLO.success)",
"def YiQh(DDLl, iQG7, geh0, CBIr, Mkre=False, *qIxc, **B2fa):\n... | [
"0.7319026",
"0.70012885",
"0.6975936",
"0.6807812",
"0.67626345",
"0.6608218",
"0.6604799",
"0.6584964",
"0.64897585",
"0.64440286",
"0.643388",
"0.64286697",
"0.64208347",
"0.63954407",
"0.63441056",
"0.63386273",
"0.63230795",
"0.6320489",
"0.630707",
"0.629519",
"0.627943... | 0.72243863 | 1 |
Returns a logger with name set as given, and configured to the level given by the environment variable _LOGGING_LEVEL_ENVAR. | def fZx2(QePW, mWFP='ot_api'):
bo34 = G9jH.getLogger(mWFP)
if len(bo34.handlers) == 0:
if QePW is None:
ABDL = zAAC(Hy7s.environ.get(_vGv))
LzDI = UMuR(Hy7s.environ.get(gUoa))
uQEl = Hy7s.environ.get(SyYh)
else:
cGba, ZnIq, uQEl = gwJB(QePW)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fZx2(mWFP: str, ABDL: typing.Optional[str]=None) -> G9jH.Logger:\n if ABDL is None:\n ABDL = 'INFO'\n ABDL = Hy7s.environ.get('LOGLEVEL', ABDL)\n bo34 = G9jH.getLogger(mWFP)\n bo34.setLevel(ABDL)\n G9jH.basicConfig(format='%(levelname)s (%(name)s) %(message)s')\n Ry7x.append(bo34)\n ... | [
"0.7054101",
"0.6976178",
"0.69564885",
"0.6857762",
"0.6706148",
"0.6697224",
"0.6684151",
"0.6605958",
"0.6537116",
"0.6535315",
"0.6507628",
"0.64723676",
"0.645156",
"0.63975155",
"0.63804597",
"0.63747877",
"0.63729656",
"0.6353305",
"0.63409024",
"0.63368744",
"0.632537... | 0.6438538 | 13 |
Serialize datetime object to ISO format | def erUo(YEnM):
if isinstance(YEnM, qcWV):
Pt6R = YEnM.isoformat()
return Pt6R
raise TypeError('Type not serializable') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JW5R(YKHO, YEnM):\n if isinstance(YEnM, qcWV.datetime):\n return YEnM.isoformat()\n raise TypeError('Type not serializable')",
"def JuIU(wEf2):\n return Weve(wEf2)",
"def Ejwz(eGVy):\n return Qrp8().to_json(eGVy)",
"def UpCw(YEnM: datetime.datetime) -> str:\n return YEnM.replace(tzi... | [
"0.82276547",
"0.81338626",
"0.7988841",
"0.7720635",
"0.77111363",
"0.76109856",
"0.7569869",
"0.756686",
"0.7540016",
"0.75189203",
"0.74136925",
"0.7394607",
"0.7360123",
"0.72224283",
"0.72161275",
"0.72057235",
"0.71958494",
"0.7195442",
"0.71755505",
"0.716382",
"0.7132... | 0.7167063 | 19 |
E = R(1 ((1 T / S) ^ (1 / F)) | def eBuN(o4sw, A3Vt, vuvg, Kt_s):
if Kt_s > o4sw:
return 0
if vuvg == 100:
return int(A3Vt - A3Vt * Kt_s / o4sw)
return int(A3Vt * (1.0 - epAf.pow(float(o4sw - Kt_s) / float(o4sw), 100.0 / vuvg))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _791(gOIQ, Kt_s):\n chmV = 1.60218e-19\n sM89 = 1.38e-23\n return 1 / (1 + oyIN.exp(gOIQ / (sM89 * Kt_s / chmV)))",
"def KaIg(ut5U, UB01, Kt_s):\n return 1.0 / (1.0 + oyIN.exp((ut5U - UB01) / (Ux5V * Kt_s)))",
"def a1PO(z1Rg, Mkmy):\n return (Mkmy / z1Rg) ** 2",
"def P618(YKHO):\n p9YG ... | [
"0.6795593",
"0.66594297",
"0.6638636",
"0.65409285",
"0.64965796",
"0.6493236",
"0.64126164",
"0.63901526",
"0.63594913",
"0.6344598",
"0.6307584",
"0.6305195",
"0.62881887",
"0.62469935",
"0.6245017",
"0.6242335",
"0.62332916",
"0.6226866",
"0.6157747",
"0.61547387",
"0.614... | 0.60779136 | 24 |
This will return a dataframe of mesa adaptive moving average for the given symbol across the given range | def Ctv7(x0hE, o61b, range='6m', fvDH='close', Fz6L=0, arFn=0):
jQ3Z = x0hE.chartDF(o61b, range)
Cc7Y = {fvDH: jQ3Z[fvDH].values}
Cc7Y['mama-{}'.format(fvDH)], Cc7Y['fama-{}'.format(fvDH)] = a1PO.MAMA(jQ3Z[fvDH].values.astype(float), fastlimit=Fz6L, slowlimit=arFn)
return rLdf.DataFrame(Cc7Y) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ch6h(x0hE, o61b, range='6m', fvDH='close', w4Sv=None):\n if w4Sv is None:\n w4Sv = [30]\n w4Sv = lovD(w4Sv)\n jQ3Z = x0hE.chartDF(o61b, range)\n Cc7Y = {fvDH: jQ3Z[fvDH].values}\n for TEj7 in w4Sv:\n Cc7Y['sma-{}'.format(TEj7)] = a1PO.EMA(jQ3Z[fvDH].values.astype(float), TEj7)\n ... | [
"0.64383775",
"0.6349082",
"0.62321246",
"0.6192183",
"0.6133744",
"0.6114046",
"0.60660505",
"0.60596275",
"0.60399264",
"0.6012137",
"0.59781194",
"0.5976309",
"0.5968341",
"0.59655726",
"0.5945568",
"0.59419024",
"0.59157807",
"0.59114736",
"0.59101224",
"0.5898787",
"0.58... | 0.6333711 | 2 |
This will return a dataframe of parabolic sar for the given symbol across the given range | def UMER(x0hE, o61b, range='6m', whiW='high', iDvP='low', sgTf=0, PtQX=0):
jQ3Z = x0hE.chartDF(o61b, range)
UMER = a1PO.SAR(jQ3Z[whiW].values.astype(float), jQ3Z[iDvP].values.astype(float), acceleration=sgTf, maximum=PtQX)
return rLdf.DataFrame({whiW: jQ3Z[whiW].values, iDvP: jQ3Z[iDvP].values, 'sar': UMER}... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xld6(x0hE, o61b, range='6m', whiW='high', iDvP='low', pTwj=0, _jdl=0, cB1D=0, c2Ml=0, BjRc=0, ZNII=0, lbRY=0, x25P=0):\n jQ3Z = x0hE.chartDF(o61b, range)\n UMER = a1PO.SAREXT(jQ3Z[whiW].values.astype(float), jQ3Z[iDvP].values.astype(float), startvalue=pTwj, offsetonreverse=_jdl, accelerationinitlong=cB1D... | [
"0.54683787",
"0.52779174",
"0.5243521",
"0.5198385",
"0.50980455",
"0.508012",
"0.50593406",
"0.5048198",
"0.5036455",
"0.50329196",
"0.50227463",
"0.5008056",
"0.49852943",
"0.49674118",
"0.49571982",
"0.49538314",
"0.49523652",
"0.49279118",
"0.48937556",
"0.48650783",
"0.... | 0.6794634 | 0 |
Returns true if image contains black pixels. | def heMt(LNo8):
ssDt = _0Y7.Stat(LNo8).extrema
Mkmy = ssDt[0][0]
Oa1e = ssDt[1][0]
Fg_i = ssDt[2][0]
if Mkmy == 0 and Oa1e == 0 and (Fg_i == 0):
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SA09(YKHO):\n for HkJz in YKHO.pixels:\n if HkJz:\n return False\n return True",
"def ByNG(YKHO, QDYk, a7Da):\n if YKHO.width != QDYk or YKHO.height != a7Da:\n return False\n for HkJz in YKHO.pixels:\n if not HkJz:\n return False\n return True",
"de... | [
"0.7600084",
"0.71576995",
"0.69594336",
"0.69126666",
"0.6889662",
"0.6769178",
"0.67334336",
"0.66606975",
"0.66461545",
"0.65061605",
"0.63814247",
"0.63406545",
"0.62171984",
"0.6208997",
"0.6201711",
"0.61935437",
"0.6187557",
"0.61594856",
"0.61594856",
"0.6146994",
"0.... | 0.823544 | 0 |
Returns true if image contains black pixels. | def VMni(LNo8):
ssDt = _0Y7.Stat(LNo8).extrema
t8mO, fSnS = ssDt[0]
ucji, RA3q = ssDt[1]
DcNg, qntk = ssDt[2]
if t8mO == ucji == DcNg == fSnS == RA3q == qntk == 127:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def heMt(LNo8):\n ssDt = _0Y7.Stat(LNo8).extrema\n Mkmy = ssDt[0][0]\n Oa1e = ssDt[1][0]\n Fg_i = ssDt[2][0]\n if Mkmy == 0 and Oa1e == 0 and (Fg_i == 0):\n return True\n return False",
"def SA09(YKHO):\n for HkJz in YKHO.pixels:\n if HkJz:\n return False\n return... | [
"0.8236099",
"0.7599672",
"0.71560854",
"0.6959882",
"0.6911102",
"0.6888868",
"0.67685765",
"0.6733093",
"0.6658197",
"0.66448003",
"0.65059805",
"0.63805157",
"0.6340955",
"0.6216223",
"0.6208136",
"0.61993134",
"0.6192921",
"0.61873364",
"0.6158511",
"0.6158511",
"0.614801... | 0.0 | -1 |
Convert a PIL.Image to opencv readable image. | def EE5U(Ps57):
lsRG = oyIN.array(Ps57)
lsRG = lsRG[:, :, ::-1].copy()
return lsRG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MKDc(ndvW):\n ndvW = XC5k.cvtColor(ndvW, XC5k.COLOR_BGR2RGB)\n Ps57 = hnIv.fromarray(ndvW)\n return Ps57",
"def aHdx(YKHO, xKOL):\n CrIz = XC5k.cvtColor(xKOL, XC5k.COLOR_BGR2RGBA)\n return hnIv.fromarray(CrIz)",
"def BWqv(YKHO, F5c6):\n try:\n Ll8m = YKHO.bridge.imgmsg_to_cv2(F5c6,... | [
"0.75657105",
"0.69447476",
"0.69349277",
"0.6767946",
"0.6714264",
"0.66768193",
"0.6637803",
"0.66349536",
"0.6593623",
"0.6562439",
"0.65243876",
"0.6503841",
"0.6420061",
"0.64185685",
"0.6381608",
"0.63431305",
"0.63421994",
"0.6332812",
"0.62983567",
"0.62777305",
"0.62... | 0.7250674 | 1 |
Converts a opencv readable image to PIL.Image | def MKDc(ndvW):
ndvW = XC5k.cvtColor(ndvW, XC5k.COLOR_BGR2RGB)
Ps57 = hnIv.fromarray(ndvW)
return Ps57 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aHdx(YKHO, xKOL):\n CrIz = XC5k.cvtColor(xKOL, XC5k.COLOR_BGR2RGBA)\n return hnIv.fromarray(CrIz)",
"def BVZ5(p4m8: str) -> object:\n VXjJ = XC5k.imread(p4m8)\n return VXjJ",
"def q5aE(QMAG: str):\n return jbYn.imread(QMAG, jbYn.IMREAD_UNCHANGED)",
"def q5aE(zZcM):\n Xn71 = XC5k.imread(... | [
"0.7474325",
"0.72243446",
"0.71202993",
"0.70816153",
"0.70346075",
"0.70159465",
"0.70084906",
"0.6997545",
"0.69896716",
"0.6935454",
"0.6910456",
"0.6879457",
"0.6861066",
"0.68271935",
"0.68192875",
"0.6810771",
"0.6808273",
"0.6800702",
"0.6726575",
"0.67134756",
"0.671... | 0.76816833 | 0 |
Wrapper for tf.matmul to handle a 3D input tensor X. Will perform multiplication along the last dimension. | def e4wN(EcVT, XcU5):
adSQ = ZylS.reshape(EcVT, [-1, ZylS.shape(EcVT)[2]])
ZsZb = ZylS.matmul(adSQ, XcU5)
etdq = [ZylS.shape(EcVT)[0], ZylS.shape(EcVT)[1], ZylS.shape(XcU5)[1]]
return ZylS.reshape(ZsZb, etdq) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vOS2(UBMT, SwX6, mWFP):\n with ZylS.name_scope(mWFP, default_name='Matmul_3D_by_2D', values=[UBMT, SwX6]):\n qiip = ZylS.shape(UBMT)\n bjOx = ZylS.shape(SwX6)\n return ZylS.reshape(ZylS.matmul(ZylS.reshape(UBMT, [qiip[0] * qiip[1], qiip[2]]), SwX6), [qiip[0], qiip[1], bjOx[1]])",
"def... | [
"0.7388232",
"0.70595783",
"0.6666272",
"0.6648486",
"0.66293484",
"0.65410036",
"0.6523533",
"0.64212424",
"0.63774806",
"0.63591254",
"0.63506395",
"0.63181376",
"0.62571365",
"0.6218789",
"0.62185323",
"0.6211721",
"0.61155486",
"0.6047918",
"0.6034888",
"0.6033533",
"0.60... | 0.7767044 | 0 |
SubnetsSubnetPool a model defined in Swagger | def FIMM(YKHO):
YKHO.swagger_types = {'access_zone': 'str', 'aggregation_mode': 'str', 'alloc_method': 'str', 'description': 'str', 'ifaces': 'list[SubnetsSubnetPoolIface]', 'name': 'str', 'ranges': 'list[SubnetsSubnetPoolRange]', 'rebalance_policy': 'str', 'sc_auto_unsuspend_delay': 'int', 'sc_connect_policy': 'st... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Npkd(YKHO) -> qe4Y.Input[bdIy[qe4Y.Input[str]]]:\n return qe4Y.get(YKHO, 'subnets')",
"def Npkd(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['ResourceIdArgs']]]]:\n return qe4Y.get(YKHO, 'subnets')",
"def Npkd(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input[str]]]]:\n return qe4Y.get(YKHO, 'subnets')",
"de... | [
"0.7146768",
"0.702516",
"0.69233406",
"0.68750745",
"0.6789589",
"0.66612107",
"0.6629695",
"0.66123956",
"0.64476854",
"0.6438149",
"0.6438149",
"0.6305287",
"0.6230455",
"0.6214354",
"0.61496407",
"0.602596",
"0.6023392",
"0.5999694",
"0.5943222",
"0.59135246",
"0.5911383"... | 0.5968098 | 18 |
Gets the aggregation_mode of this SubnetsSubnetPool. OneFS supports the following NIC aggregation modes. | def ZmWm(YKHO):
return YKHO._aggregation_mode | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZmWm(YKHO, ZmWm):\n BbPm = ['roundrobin', 'failover', 'lacp', 'fec']\n if ZmWm is not None and ZmWm not in BbPm:\n raise ValueError('Invalid value for `aggregation_mode`, must be one of {0}'.format(BbPm))\n YKHO._aggregation_mode = ZmWm",
"def dhlv(YKHO) -> h8nf[str]:\n return qe4Y.get(YKH... | [
"0.7046668",
"0.6042484",
"0.60362566",
"0.60362566",
"0.5865496",
"0.5745859",
"0.5734494",
"0.572302",
"0.53063035",
"0.5284168",
"0.514451",
"0.512114",
"0.5081119",
"0.50785935",
"0.5040278",
"0.50395733",
"0.4992571",
"0.49845603",
"0.49750435",
"0.49648976",
"0.49615124... | 0.77992386 | 0 |
Sets the aggregation_mode of this SubnetsSubnetPool. OneFS supports the following NIC aggregation modes. | def ZmWm(YKHO, ZmWm):
BbPm = ['roundrobin', 'failover', 'lacp', 'fec']
if ZmWm is not None and ZmWm not in BbPm:
raise ValueError('Invalid value for `aggregation_mode`, must be one of {0}'.format(BbPm))
YKHO._aggregation_mode = ZmWm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZmWm(YKHO):\n return YKHO._aggregation_mode",
"def tSBy(YKHO, tSBy):\n BbPm = ['all', 'top', 'custom']\n if YKHO._configuration.client_side_validation and tSBy not in BbPm:\n raise ValueError('Invalid value for `tag_mode` ({0}), must be one of {1}'.format(tSBy, BbPm))\n YKHO._tag_mode = tS... | [
"0.6201632",
"0.4829967",
"0.47619343",
"0.47593033",
"0.47533628",
"0.47533628",
"0.46755812",
"0.46252024",
"0.46252024",
"0.4617803",
"0.45948148",
"0.45703322",
"0.45100906",
"0.449665",
"0.4482267",
"0.44757062",
"0.44463238",
"0.44431204",
"0.44327605",
"0.44026256",
"0... | 0.7710118 | 0 |
Gets the description of this SubnetsSubnetPool. A description of the pool. | def JBZA(YKHO):
return YKHO._description | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VWZy(YKHO) -> qe4Y.Output[h8nf['outputs.ResourceIdResponse']]:\n return qe4Y.get(YKHO, 'subnet')",
"def Npkd(YKHO) -> qe4Y.Output[bdIy[str]]:\n return qe4Y.get(YKHO, 'subnets')",
"def Npkd(YKHO) -> qe4Y.Output[bdIy[str]]:\n return qe4Y.get(YKHO, 'subnets')",
"def Npkd(YKHO) -> bdIy[str]:\n re... | [
"0.65410477",
"0.6482354",
"0.6482354",
"0.64789593",
"0.6398242",
"0.6306688",
"0.62765485",
"0.61229205",
"0.6119427",
"0.6100774",
"0.6088884",
"0.60768193",
"0.60532725",
"0.59503126",
"0.5947634",
"0.5890577",
"0.5874006",
"0.58460695",
"0.5815302",
"0.5765604",
"0.57153... | 0.53603315 | 70 |
Sets the description of this SubnetsSubnetPool. A description of the pool. | def JBZA(YKHO, JBZA):
if JBZA is not None and len(JBZA) > 128:
raise ValueError('Invalid value for `description`, length must be less than `128`')
YKHO._description = JBZA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AqxA(YKHO, HOap):\n gTEQ('PrlVirtNet_SetDescription', YKHO.handle, HOap)",
"def Npkd(YKHO, Npkd):\n YKHO._subnets = Npkd",
"def _QKK(YKHO, _QKK):\n YKHO._sc_subnet = _QKK",
"def qI2O(YKHO, qI2O):\n YKHO._src_subnet = qI2O",
"def JBZA(YKHO, JBZA: ConfigNodePropertyString):\n YKHO._descrip... | [
"0.6380787",
"0.5776665",
"0.5513259",
"0.5502801",
"0.5491602",
"0.53885",
"0.5378597",
"0.5354776",
"0.53299105",
"0.53263426",
"0.53223777",
"0.5307503",
"0.52544296",
"0.52544296",
"0.5229771",
"0.5216342",
"0.52130693",
"0.5194477",
"0.5128552",
"0.5128552",
"0.5128552",... | 0.50336593 | 65 |
Gets the name of this SubnetsSubnetPool. The name of the pool. It must be unique throughout the given subnet.It's a required field with POST method. | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dn8D(YKHO) -> str:\n return qe4Y.get(YKHO, 'subnet_group_name')",
"def dn8D(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'subnet_group_name')",
"def dn8D(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'subnet_group_name')",
"def dn8D(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4... | [
"0.73497295",
"0.71181536",
"0.7103576",
"0.7103576",
"0.6975695",
"0.68858784",
"0.66850966",
"0.6540356",
"0.6531634",
"0.6531634",
"0.63511825",
"0.63234025",
"0.63234025",
"0.6302717",
"0.6210384",
"0.6203277",
"0.6112852",
"0.61022234",
"0.6100887",
"0.6090951",
"0.60425... | 0.0 | -1 |
Sets the name of this SubnetsSubnetPool. The name of the pool. It must be unique throughout the given subnet.It's a required field with POST method. | def mWFP(YKHO, mWFP):
if mWFP is not None and len(mWFP) > 32:
raise ValueError('Invalid value for `name`, length must be less than `32`')
YKHO._name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pyfM(YKHO, pyfM):\n YKHO._subnet_id = pyfM",
"def dn8D(YKHO) -> str:\n return qe4Y.get(YKHO, 'subnet_group_name')",
"def tb1u(YKHO, hjKc):\n if gQXs.search(hjKc):\n raise AttributeError(f\"Pool name '{hjKc}' contains illegal characters\")\n if len(hjKc) > HPbw:\n raise AttributeEr... | [
"0.6074218",
"0.60503674",
"0.60151356",
"0.5923115",
"0.590467",
"0.590467",
"0.5867237",
"0.5757903",
"0.5745817",
"0.5644494",
"0.564288",
"0.55871063",
"0.5586776",
"0.5585627",
"0.55743086",
"0.54842025",
"0.5482448",
"0.54386467",
"0.54150635",
"0.5399001",
"0.5399001",... | 0.5170114 | 49 |
Sets the ranges of this SubnetsSubnetPool. List of IP address ranges in this pool. | def XT48(YKHO, XT48):
YKHO._ranges = XT48 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Npkd(YKHO, Npkd):\n YKHO._subnets = Npkd",
"def remM(YKHO, MEXo, OV1s):\n pass",
"def Npkd(YKHO) -> bdIy[str]:\n return qe4Y.get(YKHO, 'subnets')",
"def XT48(YKHO):\n return YKHO._ranges",
"def Npkd(YKHO) -> qe4Y.Input[bdIy[qe4Y.Input[str]]]:\n return qe4Y.get(YKHO, 'subnets')",
"def X... | [
"0.67228794",
"0.59278023",
"0.5787347",
"0.5768242",
"0.5750272",
"0.56791973",
"0.56791973",
"0.56791973",
"0.56791973",
"0.56331146",
"0.56140125",
"0.55526954",
"0.55389863",
"0.5458638",
"0.5458638",
"0.5458638",
"0.5458638",
"0.54410344",
"0.54360497",
"0.5429105",
"0.5... | 0.7128934 | 0 |
Gets the rebalance_policy of this SubnetsSubnetPool. Rebalance policy.. | def w9xc(YKHO):
return YKHO._rebalance_policy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w9xc(YKHO, w9xc):\n BbPm = ['auto', 'manual']\n if w9xc is not None and w9xc not in BbPm:\n raise ValueError('Invalid value for `rebalance_policy`, must be one of {0}'.format(BbPm))\n YKHO._rebalance_policy = w9xc",
"def ufaE(YKHO) -> qe4Y.Output['outputs.EventSubscriptionRetryPolicy']:\n ... | [
"0.65884155",
"0.60569364",
"0.5979603",
"0.56896055",
"0.5443392",
"0.54208374",
"0.54208374",
"0.5378019",
"0.5378019",
"0.53479934",
"0.52900136",
"0.5268837",
"0.5072071",
"0.50693744",
"0.5062869",
"0.50457704",
"0.5039955",
"0.50341755",
"0.50341755",
"0.50341755",
"0.5... | 0.8139084 | 0 |
Gets the sc_failover_policy of this SubnetsSubnetPool. SmartConnect IP failover policy. | def yeE_(YKHO):
return YKHO._sc_failover_policy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yeE_(YKHO, yeE_):\n BbPm = ['round_robin', 'conn_count', 'throughput', 'cpu_usage']\n if yeE_ is not None and yeE_ not in BbPm:\n raise ValueError('Invalid value for `sc_failover_policy`, must be one of {0}'.format(BbPm))\n YKHO._sc_failover_policy = yeE_",
"def gXkY(YKHO) -> 'outputs.DataCol... | [
"0.6898092",
"0.63561916",
"0.61526406",
"0.61500436",
"0.6012601",
"0.5823861",
"0.5823861",
"0.5655938",
"0.55789185",
"0.5570546",
"0.555616",
"0.5497216",
"0.5497216",
"0.54784936",
"0.52825147",
"0.51408124",
"0.5047272",
"0.5037962",
"0.5036231",
"0.5036231",
"0.5023863... | 0.8147701 | 0 |
Gets the sc_subnet of this SubnetsSubnetPool. Name of SmartConnect service subnet for this pool. | def _QKK(YKHO):
return YKHO._sc_subnet | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NPjE(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_subnet')",
"def HzzD(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'service_runtime_subnet_id')",
"def kuPp(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_subnet')",
"def VWZy(YKHO) -> qe4Y.Output[h8nf['outputs.ResourceIdResponse']]:\... | [
"0.7609892",
"0.7027893",
"0.69252676",
"0.6914663",
"0.67790663",
"0.6765147",
"0.67602944",
"0.6726223",
"0.6644179",
"0.6598673",
"0.6598673",
"0.6575017",
"0.6565587",
"0.650544",
"0.650544",
"0.6473729",
"0.6276193",
"0.627563",
"0.6240079",
"0.61633897",
"0.6129372",
... | 0.83138573 | 0 |
Sets the sc_subnet of this SubnetsSubnetPool. Name of SmartConnect service subnet for this pool. | def _QKK(YKHO, _QKK):
YKHO._sc_subnet = _QKK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qI2O(YKHO, qI2O):\n YKHO._src_subnet = qI2O",
"def _QKK(YKHO):\n return YKHO._sc_subnet",
"def pyfM(YKHO, pyfM):\n YKHO._subnet_id = pyfM",
"def hqjf(YKHO, hqjf):\n YKHO._dst_subnet = hqjf",
"def NPjE(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_subnet')",
"def FIMM(Ro_8, *, Ll4v: Op... | [
"0.6747766",
"0.65289974",
"0.60689086",
"0.60044193",
"0.5653991",
"0.5557469",
"0.5398206",
"0.53878",
"0.5285486",
"0.5285486",
"0.5240064",
"0.5216857",
"0.5166137",
"0.513898",
"0.512097",
"0.50805783",
"0.50730646",
"0.4976473",
"0.4976473",
"0.4957406",
"0.49570826",
... | 0.8509438 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.7961088",
"0.7961088",
"0.79433626",
"0.79303336",
"0.7926563",
"0.7897525",
"0.78826123",
"0.78826123",
"0.78806067",
"0.7872423",
"0.7868354",
"0.78668815",
"0.7825702",
"0.7819993",
"0.78162885",
"0.78078854",
"0.78068... | 0.79670393 | 34 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
compute how many columns values have been changed at the end of the transformation. | def qVW5(dfNc, mKtr):
IP77 = rLdf.DataFrame(index=dfNc.index, columns=diJd, data=dfNc[diJd])
VIPT = [IP77, mKtr]
vGZu = rLdf.concat(VIPT)
vGZu.loc['Diff'] = vGZu.iloc[0] - vGZu.iloc[1]
cDNZ[begg] = vGZu.loc['Diff'].astype(bool).sum()
print('changed tuples: ' + str(len(cDNZ))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W74N(YKHO):\n if YKHO.value.count != 0:\n return len(YKHO.value[0])\n else:\n return 0",
"def vSAd(YKHO) -> int:\n raise NotImplementedError('not implemented')",
"def Pnxq(YKHO):\n YKHO._config['Regression threshold'] = '0.25'\n YKHO._config['Maximum number of columns to change... | [
"0.6526498",
"0.63790566",
"0.61692965",
"0.6138007",
"0.60791665",
"0.60735327",
"0.605364",
"0.60477084",
"0.6038358",
"0.60348517",
"0.6018135",
"0.5999248",
"0.5981664",
"0.5968154",
"0.59143555",
"0.59015596",
"0.58669454",
"0.5848051",
"0.5843882",
"0.5838287",
"0.58281... | 0.53404444 | 85 |
Checks that the server properly generates a 404 status message when requesting a nonexistent URL object. | def wqUj(DfsO, YEnM, ayrW):
DfsO.request('GET', YEnM, headers={'Host': ayrW})
KL4Y = DfsO.getresponse()
assert KL4Y.status == B3z0.NOT_FOUND, 'Server failed to respond with a 404 status for obj=' + YEnM + ', gave response: ' + str(KL4Y.status)
KL4Y.read() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EEM3(YKHO):\n RKD7.err('HTTP Error 404')",
"def ZQkg(YKHO):\n YKHO._error_test(ODk9.HTTPNotFound)",
"def KE2t(x0hE):\n geh0 = x0hE.get('/not-exists')\n assert geh0.status_code == 404",
"def Vzhs(geh0: HTTPResponse) -> bool:\n return geh0.status_code == 404",
"def o3cf():\n return c1Bu... | [
"0.764341",
"0.7566126",
"0.75533015",
"0.7485968",
"0.7483502",
"0.74658805",
"0.73571515",
"0.73437613",
"0.73255426",
"0.73090976",
"0.7305266",
"0.7289082",
"0.72777605",
"0.7263893",
"0.7246395",
"0.7211469",
"0.7205335",
"0.7200515",
"0.71816766",
"0.7137802",
"0.711518... | 0.69670063 | 53 |
Check that the unsupported method supplied has either a NOT IMPLEMENTED or METHOD NOT ALLOWED response from the server. | def xr5Q(DfsO, NKcE, ayrW):
DfsO.request(NKcE, '/loadavg', headers={'Host': ayrW})
KL4Y = DfsO.getresponse()
assert KL4Y.status == B3z0.METHOD_NOT_ALLOWED or KL4Y.status == B3z0.NOT_IMPLEMENTED, 'Server failed to respond with the METHOD NOT ALLOWED or NOT IMPLEMENTED status for method: ' + NKcE + ' ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wx4s(YKHO, P4t4, NKcE, nfqd):\n YKHO._call(P4t4, method=NKcE, status=405)\n assert nfqd.entries == []",
"def RYij(YKHO):\n JkRY = ['POST', 'PUT', 'PATCH', 'DELETE']\n for Si4S in JkRY:\n with YKHO.subTest(method_name=Si4S):\n jZqH = getattr(YKHO.client, Si4S.lower())\n ... | [
"0.76389",
"0.75198126",
"0.7391555",
"0.73317313",
"0.73138714",
"0.716747",
"0.7125154",
"0.7123435",
"0.7100034",
"0.707472",
"0.70310396",
"0.69560313",
"0.6945674",
"0.6942764",
"0.6898435",
"0.6794875",
"0.678581",
"0.6759765",
"0.6758106",
"0.6745458",
"0.6742992",
"... | 0.0 | -1 |
A tool to determine the single observation astrometric precision. This is calculated in a bit of an ad hoc way. We call the overall parallax precision, then multiply by sqrt(N_obs), as this is the number that should have been used to determine | def t_r1(yvY1=None, cAlv=None, urJo=None, RQad=None, w3zd=None, W7nz=None, W4Ag=None, dimZ=None, lwkg=None):
if urJo is None:
print('You must provide a color index in the form of V_IC.')
return
if yvY1 is None and cAlv is None:
print('You must provide at least one color: G or V')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"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 rhd_(Y8eF, aMgO):\n COti = CdMZ.sum(CdMZ.round(CdMZ.clip(Y8eF * aMgO, 0, 1)))\n ftZB = CdMZ.sum(CdMZ.round(CdMZ.clip(aMgO, 0, 1)))\n rhd_... | [
"0.66291213",
"0.65281737",
"0.65103024",
"0.6478924",
"0.6458573",
"0.6406385",
"0.63949347",
"0.63949347",
"0.63949347",
"0.63949347",
"0.63949347",
"0.63949347",
"0.63904834",
"0.6380273",
"0.63714486",
"0.63714486",
"0.63714486",
"0.63714486",
"0.63714486",
"0.63714486",
... | 0.0 | -1 |
Returns the filtered queryset based on the value provided in the query string and retrievable via `self.value()`. | def SR0I(YKHO, QePW, SR0I):
if YKHO.value() == 'passed':
return SR0I.filter(renewal_date__lt=qcWV.datetime.now())
if YKHO.value() == 'today':
return SR0I.filter(renewal_date__gte=qcWV.datetime.now(), renewal_date__lte=qcWV.datetime.now() + qcWV.timedelta(days=1))
if YKHO.value() == 'week':
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SR0I(YKHO, QePW, SR0I):\n if YKHO.value() is None:\n return SR0I.all()\n return SR0I.filter(firm__pk=YKHO.value())",
"def SR0I(YKHO, QePW, SR0I):\n if YKHO.value():\n return SR0I.filter(state_pol=YKHO.value())",
"def SR0I(YKHO, QePW, SR0I):\n if YKHO.value() is None:\n retu... | [
"0.7539624",
"0.7419145",
"0.72444373",
"0.7204026",
"0.7088753",
"0.7049072",
"0.69752824",
"0.6782803",
"0.6761786",
"0.6732641",
"0.66813517",
"0.6655251",
"0.6588337",
"0.64702547",
"0.6401302",
"0.6382562",
"0.6367945",
"0.63480246",
"0.6348006",
"0.62765294",
"0.6266501... | 0.64148825 | 14 |
Gets status of current job as string | def GKCf(YKHO):
if YKHO.worker_thread is None:
return None
else:
return YKHO.worker_thread.get_status() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jGRS(YKHO) -> str:\n return YKHO._check_job_status()",
"def VLTN(YKHO):\n bD7m = 'data_request?id=jobstatus&job=%d&plugin=zwave' % YKHO.id\n return YKHO.vera.get(bD7m)",
"def k_qN(YKHO):\n GFu9 = cuiw.query(IdZj).filter_by(training_job_id=YKHO.id).count()\n YKL7 = cuiw.query(IdZj).filter_by(... | [
"0.82336414",
"0.77277565",
"0.77177054",
"0.7683568",
"0.765055",
"0.7611976",
"0.75931156",
"0.7571895",
"0.75184166",
"0.75184166",
"0.75184166",
"0.75184166",
"0.75184166",
"0.75184166",
"0.75184166",
"0.75184166",
"0.75184166",
"0.75184166",
"0.75184166",
"0.75184166",
"... | 0.7033229 | 85 |
Return the ENDF format string of a floating point number | def G7HL(BWXx):
if abs(BWXx) < 1e-09 or abs(BWXx) > 9999000000.0:
raise ValueError('value is too small or too big')
UWZe = '{:>13.6e}'.format(BWXx).replace('e', '').replace('+0', '+').replace('-0', '-')
if '+0' in UWZe:
UWZe = UWZe.replace('+0', '-0')
return UWZe | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fGXu(wEf2: float) -> str:\n if wEf2 < 0.0001:\n return '{:.2e}'.format(wEf2)\n else:\n return '{:.4f}'.format(wEf2)",
"def X1YB(YKHO):\n ...",
"def rKve(vIwR):\n if vIwR.strip() == '':\n return 0.0\n if '.' in vIwR:\n slrR = vIwR.split('.')\n return float(s... | [
"0.6853804",
"0.6829253",
"0.67047584",
"0.64607596",
"0.6452822",
"0.63223237",
"0.6258043",
"0.62099755",
"0.6206193",
"0.6165801",
"0.6134066",
"0.6126407",
"0.61103994",
"0.605507",
"0.6016943",
"0.6016886",
"0.60008043",
"0.598836",
"0.5963678",
"0.5926003",
"0.5915084",... | 0.79210347 | 0 |
Convert to a dictionary on `keys`. | def dict(YKHO, sjXb) -> dict:
return {G1Hx: YKHO(G1Hx) for G1Hx in sjXb} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _qt3(sjXb):\n return lambda rdlD: dict(DMWo(sjXb, rdlD))",
"def SmrQ(YKHO, sjXb):\n return bGrB(tbx9(sjXb, YKHO._))",
"def zT8f(sjXb, hkxX):\n return dict(zip(sjXb, hkxX))",
"def uuYL(YKHO, sjXb=None):\n sjXb = sjXb or []\n return {H5ew: True for H5ew in sjXb}",
"def MNRr(YKHO):\n ret... | [
"0.7378461",
"0.7076432",
"0.66986555",
"0.6534543",
"0.65160644",
"0.64518565",
"0.6331052",
"0.628006",
"0.6267647",
"0.619129",
"0.6179325",
"0.61710954",
"0.616365",
"0.6102621",
"0.60955125",
"0.6047556",
"0.60404044",
"0.6020093",
"0.60104835",
"0.59982044",
"0.59757394... | 0.7469684 | 0 |
View function for home page of site. | def d6pt(QePW):
return _1tc(QePW, 'index.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy(QePW):\n return _1tc(QePW, 'compta/home.html')",
"def vja_(QePW):\n return _1tc(QePW, 'ez_main/home_page.html')",
"def kZiy(QePW):\n return _1tc(QePW, 'home.html')",
"def C_QL(QePW):\n return _1tc(QePW, 'core/homepage.html')",
"def C_QL(QePW):\n return SGJU('h1ds_core/homepage.html'... | [
"0.8493426",
"0.84268916",
"0.83415145",
"0.83306193",
"0.82976943",
"0.8295291",
"0.8276345",
"0.82545686",
"0.82155704",
"0.8132563",
"0.81246215",
"0.81224865",
"0.8121264",
"0.81049734",
"0.8098485",
"0.80935514",
"0.80935514",
"0.80935514",
"0.80935514",
"0.80935514",
"0... | 0.0 | -1 |
Get ``upload_to`` compliant method which will always return a random filename however will also store the original filename in the model. | def lvBz(pmON, YP8V):
Oa1e = _3lR(pmON)
def eHNT(KAOR, Ux0P):
setattr(KAOR, YP8V, Ux0P)
return Oa1e(KAOR, Ux0P)
return eHNT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _3lR(pmON):\n\n def eHNT(KAOR, Ux0P):\n YBcr = Ux0P.split('.')[-1]\n Ux0P = '{0}.{1}'.format(qxeD.uuid4().hex, YBcr)\n return Hy7s.path.join(pmON, Ux0P)\n return eHNT",
"def uNgY(KAOR, Ux0P):\n import os\n cA8B, Va2z = os.path.splitext(Ux0P)\n _c1T = qcWV.now().strftime('%... | [
"0.74831945",
"0.6629071",
"0.6584601",
"0.65798",
"0.6561389",
"0.65375376",
"0.6399633",
"0.6395201",
"0.6334883",
"0.62998915",
"0.6263544",
"0.62394667",
"0.62386394",
"0.6228465",
"0.6188894",
"0.6153854",
"0.6061185",
"0.597854",
"0.5954602",
"0.5949434",
"0.59485215",
... | 0.74165535 | 1 |
Wrap each generator invocation with the context manager | def Tg9B(YKHO, JfyU):
@xBlr.wraps(JfyU)
def GWSJ(*qIxc, **B2fa):
eK5b = JfyU(*qIxc, **B2fa)
Emd4 = type(YKHO)
try:
with Emd4():
geh0 = eK5b.send(None)
while True:
try:
QePW = (yield geh0)
except ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def utuo(YKHO) -> jd6F[None, None, None]:\n try:\n yield\n finally:\n pass",
"def CGiY(OBr8):\n with OBr8 as OxJJ:\n for ZfUD in OxJJ:\n yield ZfUD",
"async def context(b6ry: AsyncGenerator) -> a53J:\n CFXx = oxPq.current\n async with b6ry:\n CFXx._become_c... | [
"0.734913",
"0.728714",
"0.71597064",
"0.7098914",
"0.705739",
"0.69353694",
"0.69248664",
"0.6832574",
"0.6710036",
"0.6622708",
"0.6599466",
"0.65704554",
"0.6555795",
"0.65336096",
"0.65003043",
"0.64926237",
"0.6468364",
"0.6395617",
"0.62900406",
"0.6287307",
"0.62844425... | 0.72039974 | 2 |
Property that is ``True`` if XSD validator has been fully parsed and built, ``False`` otherwise. For schemas the property is checked on all global components. For XSD components check only the building of local subcomponents. | def Ha9Z(YKHO) -> bool:
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def deVW(YKHO) -> bool:\n Co9B = [bool(getattr(YKHO, UXTL)) for UXTL in YKHO.necessary_fields]\n return all(Co9B)",
"def SGVO(YKHO):\n YKHO.logger.debug('In is_valid.')\n C13M = YKHO._get_raw_doc()\n cuiw = p02J.get_session()\n YKHO.logger.info('Got iHMP session.')\n deVW, ffBJ = cuiw.get_os... | [
"0.65819836",
"0.64502954",
"0.64124745",
"0.63751405",
"0.6299663",
"0.6277532",
"0.626997",
"0.6248494",
"0.62199074",
"0.62199074",
"0.6218503",
"0.61914146",
"0.6165104",
"0.6137465",
"0.61175853",
"0.61074924",
"0.61000574",
"0.6086787",
"0.60751176",
"0.6067178",
"0.606... | 0.57019275 | 65 |
Property that returns the validation status of the XSD validator. It can be 'full', 'partial' or 'none'. | def _pjI(YKHO) -> str:
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CxLN(YKHO):\n return YKHO.validate",
"def xzCw(YKHO):\n return _VfD.SBMLExternalValidator_validate(YKHO)",
"def jGRS(YKHO) -> h8nf['outputs.ValidatingAdmissionPolicyStatus']:\n return qe4Y.get(YKHO, 'status')",
"def uFPL(YKHO):\n return YKHO._validation_required",
"def _wj9(YKHO):\n retu... | [
"0.66547513",
"0.6615809",
"0.660616",
"0.6555182",
"0.6461616",
"0.636392",
"0.63427705",
"0.6189923",
"0.6181256",
"0.6175523",
"0.6175523",
"0.6154305",
"0.61200064",
"0.6100166",
"0.60991067",
"0.6087579",
"0.60874295",
"0.60782105",
"0.6053385",
"0.6031864",
"0.5959862",... | 0.0 | -1 |
The reference element of the schema for the component instance. | def _Fam(YKHO) -> Vf1G:
return YKHO.elem | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JV_Z(YKHO):\n return _VfD.SBaseRef_getReferencedElement(YKHO)",
"def JV_Z(YKHO):\n return _VfD.Member_getReferencedElement(YKHO)",
"def aC0l(YKHO):\n return YKHO._reference",
"def aC0l(YKHO):\n return YKHO._reference",
"def aC0l(YKHO):\n return YKHO._reference",
"def bf9h(YKHO):\n r... | [
"0.7293611",
"0.71506554",
"0.71457565",
"0.7132099",
"0.7132099",
"0.70699686",
"0.69538397",
"0.6904921",
"0.68841493",
"0.6641345",
"0.65973806",
"0.6536795",
"0.65191454",
"0.64318717",
"0.642226",
"0.6403344",
"0.63753295",
"0.63378876",
"0.6323613",
"0.6251697",
"0.6225... | 0.7199668 | 1 |
The ``'id'`` attribute of the component tag, ``None`` if missing. | def id(YKHO) -> h8nf[str]:
return YKHO.elem.get('id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def id(YKHO):\n return id(YKHO._component)",
"def id(YKHO) -> 'str':\n return YKHO._attrs.get('id')",
"def id(YKHO) -> h8nf[str]:\n return YKHO._id",
"def id(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'id')",
"def id(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'id')",
"def id(YKHO) -> h8n... | [
"0.7664326",
"0.735246",
"0.73366094",
"0.73222905",
"0.73222905",
"0.73222905",
"0.73222905",
"0.73222905",
"0.73222905",
"0.7275152",
"0.7239944",
"0.7239944",
"0.72293514",
"0.71449035",
"0.7102151",
"0.70932084",
"0.70932084",
"0.70932084",
"0.70932084",
"0.70932084",
"0.... | 0.7930096 | 0 |
Returns the global XSD component that contains the component instance. | def QaJy(YKHO) -> 'XsdComponent':
if YKHO.parent is None:
return YKHO
UksD = YKHO.parent
while UksD is not YKHO:
if UksD.parent is None:
return UksD
UksD = UksD.parent
else:
tO9_ = bGrB('parent circularity from {}')
raise gjl8(tO9_.format(YKHO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UksD(YKHO):\n return YKHO._component",
"def UksD(YKHO):\n return YKHO._component",
"def oRyy():\n global datacomponent_of\n if not Jmrj:\n Jmrj = QmWg.datacomponent_of()\n return Jmrj",
"def A0UY(LihS, jeGQ=True, U3Fm=True):\n SqPI = IeSx(LihS)\n try:\n DOtY = next(SqPI... | [
"0.6286199",
"0.6286199",
"0.5958231",
"0.59462523",
"0.5786969",
"0.5684322",
"0.5503915",
"0.5438865",
"0.54345995",
"0.5433707",
"0.5423527",
"0.5423527",
"0.54030484",
"0.53593516",
"0.53278685",
"0.5326421",
"0.5277924",
"0.5210875",
"0.51856184",
"0.5184458",
"0.5184035... | 0.65396667 | 0 |
Property that is `None` for a simpleType. For a complexType is the instance's content if this is a model group or `None` if the instance's content is a simpleType. | def xGSO(YKHO) -> h8nf['XsdGroup']:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jyyj(YKHO):\n return None",
"def Oq2b(YKHO) -> h8nf['XsdSimpleType']:\n raise NotImplementedError()",
"def type(Emd4):\n return 'None'",
"def object(YKHO):\n if not YKHO.initial.get('content_type'):\n return None\n if not YKHO.initial.get('object_id'):\n return None\n retu... | [
"0.57888377",
"0.57239676",
"0.56416565",
"0.55236816",
"0.55034775",
"0.54763633",
"0.54243916",
"0.5361706",
"0.5357385",
"0.53298587",
"0.5270638",
"0.52702963",
"0.5241103",
"0.52205056",
"0.5208793",
"0.51863956",
"0.51863956",
"0.5155559",
"0.515461",
"0.51545954",
"0.5... | 0.0 | -1 |
Returns `True` if the instance is a simpleType, `False` otherwise. | def kL6g() -> bool:
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kL6g(YKHO) -> bool:\n return YKHO.data in ('int', 'bool', 'float', 'str')",
"def Jo1q(Emd4):\n return all([Y0uN(gcB0).is_simple_in_opt_and_not_opt for gcB0 in Emd4._used_annotations()])",
"def kL6g(YKHO):\n ...",
"def kL6g(YKHO):\n return YKHO.propertyValueType.lower() in ('float', 'double', ... | [
"0.7518268",
"0.7465214",
"0.73016876",
"0.7215096",
"0.69040346",
"0.6799015",
"0.66962016",
"0.65748066",
"0.6570434",
"0.65286094",
"0.64456254",
"0.63326734",
"0.6330052",
"0.6305749",
"0.6235231",
"0.62327427",
"0.6174731",
"0.6113703",
"0.60313785",
"0.5956596",
"0.5944... | 0.6993229 | 4 |
Returns `True` if the instance is a complexType, `False` otherwise. | def GfZi() -> bool:
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GfZi(mLGw):\n try:\n complex(mLGw)\n except Exception:\n return False\n return True",
"def Dpwb(YEnM):\n if type(YEnM) is ITS7.struct_time:\n return True\n return False",
"def kjOd(YKHO) -> bool:\n raise NotImplementedError()",
"def mNRs(YKHO):\n return False",
... | [
"0.6991629",
"0.69816667",
"0.6833957",
"0.6578932",
"0.6540029",
"0.6409889",
"0.636288",
"0.6264476",
"0.6187651",
"0.6161092",
"0.61596096",
"0.61406785",
"0.61312276",
"0.61312276",
"0.6127211",
"0.6118144",
"0.61157477",
"0.61068714",
"0.605281",
"0.60324097",
"0.6022684... | 0.7926441 | 0 |
Returns `True` if the instance is an atomic simpleType, `False` otherwise. | def IbzQ(YKHO) -> bool:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kL6g(YKHO) -> bool:\n return YKHO.data in ('int', 'bool', 'float', 'str')",
"def kL6g(YKHO):\n ...",
"def kL6g() -> bool:\n raise NotImplementedError()",
"def kL6g(YKHO):\n return YKHO.propertyValueType.lower() in ('float', 'double', 'int', 'integer', 'string')",
"def kL6g(YKHO):\n retur... | [
"0.6914265",
"0.68693805",
"0.6555886",
"0.6528922",
"0.64907455",
"0.64276314",
"0.6419494",
"0.6274755",
"0.59600633",
"0.5919877",
"0.5916017",
"0.5793506",
"0.57831866",
"0.5748955",
"0.57120603",
"0.5677762",
"0.56652784",
"0.56652784",
"0.56429327",
"0.56262517",
"0.562... | 0.61446124 | 8 |
Returns `True` if the instance is a list simpleType, `False` otherwise. | def Lm1b(YKHO) -> bool:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lm1b(YKHO, KCHu):\n return isinstance(KCHu, type(list()))",
"def j5rG(YKHO):\n if YKHO.is_int():\n return YKHO.int() == 0\n else:\n return YKHO.size_words() == 2 and YKHO.tag() == 0 and YKHO.field(1)._is_list()",
"def Lm1b(b25f):\n return wUhG(b25f, x1iM)",
"def S7ID(YEnM):\n ... | [
"0.8060436",
"0.78784156",
"0.7842831",
"0.7836651",
"0.77882046",
"0.7740499",
"0.77369875",
"0.76916593",
"0.76041573",
"0.75871533",
"0.7534671",
"0.7433835",
"0.73666215",
"0.7357901",
"0.7315213",
"0.73009807",
"0.7051911",
"0.7023228",
"0.69761056",
"0.6931018",
"0.6921... | 0.8116657 | 0 |
Returns `True` if the instance is a union simpleType, `False` otherwise. | def AD5J(YKHO) -> bool:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aOHe(kmUU: Type) -> bool:\n return Wkq0(kmUU) is uLKX",
"def AD5J(kN9s):\n if not LJf3(kN9s):\n return False\n K93d = HbaL.get_declaration(kN9s)\n return K93d.class_type == Qgmf.CLASS_TYPES.UNION",
"def ByBQ(HRJ_):\n if HRJ_ is uLKX:\n return True\n try:\n return HRJ_... | [
"0.7794229",
"0.7668272",
"0.7333075",
"0.72975063",
"0.71848375",
"0.7168663",
"0.6862358",
"0.6836746",
"0.6821814",
"0.65681845",
"0.6568023",
"0.6547009",
"0.6159125",
"0.58400714",
"0.5830706",
"0.5716111",
"0.57065916",
"0.5680575",
"0.5680575",
"0.5655759",
"0.56489915... | 0.70754385 | 6 |
Returns `True` if the instance is a complexType with mixed or elementonly content, `False` otherwise. | def kjOd(YKHO) -> bool:
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GfZi() -> bool:\n raise NotImplementedError()",
"def eryl(YKHO) -> bool:\n raise NotImplementedError()",
"def Z4Tp(m5r4: str) -> bool:\n for G__Y in vJNg + lJLO:\n if m5r4.startswith(G__Y):\n return True\n return False",
"def JUFG(m5r4: str) -> bool:\n if m5r4.startswith(... | [
"0.73011476",
"0.6755603",
"0.6317352",
"0.63057965",
"0.6280332",
"0.62510455",
"0.61269337",
"0.61269337",
"0.61180156",
"0.60020965",
"0.5780087",
"0.5756838",
"0.57503045",
"0.5739632",
"0.5728757",
"0.572271",
"0.57003",
"0.56947136",
"0.5656418",
"0.5653285",
"0.564727"... | 0.7448259 | 0 |
Returns `True` if the instance is a complexType with mixed content, `False` otherwise. | def eryl(YKHO) -> bool:
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kjOd(YKHO) -> bool:\n raise NotImplementedError()",
"def GfZi() -> bool:\n raise NotImplementedError()",
"def Z4Tp(m5r4: str) -> bool:\n for G__Y in vJNg + lJLO:\n if m5r4.startswith(G__Y):\n return True\n return False",
"def Dpwb(YEnM):\n if type(YEnM) is ITS7.struct_tim... | [
"0.78021073",
"0.7548664",
"0.64474976",
"0.64036417",
"0.636686",
"0.6353591",
"0.6174185",
"0.61352396",
"0.59239054",
"0.58688146",
"0.5852847",
"0.58339196",
"0.58145285",
"0.58145285",
"0.58101594",
"0.57247716",
"0.5668973",
"0.56245",
"0.56166047",
"0.5589603",
"0.5577... | 0.70436835 | 2 |
Returns `True` if the instance is a complexType with elementonly content, `False` otherwise. | def N4Q7(YKHO) -> bool:
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kjOd(YKHO) -> bool:\n raise NotImplementedError()",
"def GfZi() -> bool:\n raise NotImplementedError()",
"def aPEn(YKHO):\n return _VfD.SBaseExtensionPoint_isElementOnly(YKHO)",
"def XbH2(YKHO) -> bool:\n return f34S.Structure.value in YKHO.type_data.attributes",
"def XbH2(YKHO) -> bool:\n ... | [
"0.733595",
"0.7081945",
"0.6312721",
"0.6067637",
"0.6067637",
"0.60672486",
"0.59432083",
"0.591976",
"0.5910551",
"0.58211654",
"0.5772116",
"0.5766335",
"0.57159615",
"0.5702853",
"0.5668826",
"0.55882066",
"0.5545876",
"0.5509464",
"0.5507616",
"0.54215693",
"0.54055274"... | 0.6505828 | 2 |
Generate a new artifact with provided upload data. Data must be a file like object. Returns artifact ID or raises ArtifactsClientError if response checks failed | def vKgu(YKHO, mWFP='', JBZA='', kzc2='', type='', qIxc='', nPrm=None):
RRlC = ZDPt.make_generate_meta({'name': (None, mWFP), 'description': (None, JBZA), 'device_types_compatible': (None, kzc2), 'type': (None, type), 'args': (None, qIxc), 'file': ('firmware', nPrm, 'application/octet-stream', {})})
uDyx = G4JS... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NAPt(YKHO, mLXZ, JBZA='', zNig=0, nPrm=None, WYga=None):\n RRlC = ZDPt.make_upload_meta({'artifact_id': WYga, 'description': (None, JBZA), 'size': (None, str(zNig)), 'artifact': ('firmware', nPrm, 'application/octet-stream', {})})\n bD7m = YKHO.make_api_url('/tenants/{}/artifacts'.format(mLXZ))\n uDyx... | [
"0.7032806",
"0.66699713",
"0.5927136",
"0.5796215",
"0.57826996",
"0.56864136",
"0.5632859",
"0.5349856",
"0.5343114",
"0.5293764",
"0.52279186",
"0.5169445",
"0.51295877",
"0.50673395",
"0.5060113",
"0.4999796",
"0.49880886",
"0.4957866",
"0.49079955",
"0.4869165",
"0.48432... | 0.71066165 | 0 |
Gets the query set from the provided model based on the user's filters. | def k66M(YKHO, C3ST, qWbT):
qWbT = 'model.objects.' + qWbT.lstrip('.')
return eval(qWbT, dict(model=C3ST)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b_xr(YKHO, KFJf, **B2fa):\n return KFJf.objects.filter(**B2fa)",
"def k66M(YKHO):\n assert YKHO.model or YKHO.queryset, 'No queryset found'\n if YKHO.queryset:\n return YKHO.queryset\n else:\n return YKHO.model.objects.all()",
"def umWR(YKHO) -> b5hG:\n if isinstance(YKHO, type... | [
"0.7228663",
"0.6917118",
"0.6848763",
"0.6751418",
"0.67430216",
"0.6717327",
"0.6622515",
"0.6590264",
"0.6575244",
"0.65468127",
"0.65411204",
"0.652278",
"0.64419085",
"0.64040303",
"0.64040303",
"0.63984716",
"0.6395474",
"0.63912994",
"0.63756317",
"0.636691",
"0.634097... | 0.62154794 | 34 |
Get the web service configuration. | def R09q():
global _service_config
if not dI4s:
Mkmy = G4JS.get('https://tech.lds.org/mobile/ldstools/config.json')
Mkmy.raise_for_status()
dI4s = Mkmy.json()
return dI4s | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eMhT(YKHO) -> dict:\n return YKHO.config",
"def tgzD(YKHO):\n return YKHO.config",
"def wLv7(YKHO):\n return YKHO._get_from_settings(gCuF.INTEGRATIONS_PAGER_DUTY_WEBHOOKS, 'service_key')",
"def xP7V():\n return GBug()",
"def tgzD(YKHO) -> cuzp[str, ImMB]:\n if YKHO.config is None:\n ... | [
"0.70686626",
"0.70344067",
"0.6984817",
"0.6951105",
"0.6927025",
"0.6927025",
"0.6903284",
"0.6873277",
"0.6873277",
"0.6873277",
"0.6873277",
"0.6873277",
"0.6873277",
"0.6873277",
"0.6873277",
"0.6873277",
"0.6873277",
"0.6873277",
"0.6873277",
"0.6873277",
"0.6873277",
... | 0.6689421 | 82 |
Convert sparse matrix to tuple representation. | def nPep(On0F):
def EV8W(RsfQ):
if not H4yH.isspmatrix_coo(RsfQ):
RsfQ = RsfQ.tocoo()
jNOo = oyIN.vstack((RsfQ.row, RsfQ.col)).transpose()
hkxX = RsfQ.data
ROpF = RsfQ.shape
return (jNOo, hkxX, ROpF)
if isinstance(On0F, list):
for YRbF in range(len(On... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nPep(On0F):\n\n def EV8W(RsfQ):\n if not H4yH.isspmatrix_coo(RsfQ):\n RsfQ = RsfQ.tocoo()\n jNOo = oyIN.vstack((RsfQ.row, RsfQ.col)).transpose()\n hkxX = RsfQ.data\n ROpF = RsfQ.shape\n return (jNOo, hkxX, ROpF)",
"def nPep(On0F):\n\n def EV8W(RsfQ):\n ... | [
"0.85870504",
"0.82527",
"0.82527",
"0.8091624",
"0.7986327",
"0.602773",
"0.59843755",
"0.5971062",
"0.59706587",
"0.59447116",
"0.59443593",
"0.5910293",
"0.5910293",
"0.5910293",
"0.5910293",
"0.5910293",
"0.58940256",
"0.58499134",
"0.5845008",
"0.577404",
"0.5689886",
... | 0.82655305 | 3 |
Symmetrically normalize adjacency matrix. | def ujN0(eQUr):
eQUr = H4yH.coo_matrix(eQUr)
mJjf = oyIN.array(eQUr.sum(1))
tvzN = oyIN.power(mJjf, -0.5).flatten()
tvzN[oyIN.isinf(tvzN)] = 0.0
hEeC = H4yH.diags(tvzN)
return eQUr.dot(hEeC).transpose().dot(hEeC).tocoo() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ujN0(eQUr):\n mJjf = oyIN.array(eQUr.sum(1))\n tvzN = oyIN.power(mJjf, -0.5).flatten()\n tvzN[oyIN.isinf(tvzN)] = 0.0\n hEeC = oyIN.diag(tvzN)\n return eQUr.dot(hEeC).transpose().dot(hEeC)",
"def ujN0(eQUr):\n eQUr = H4yH.coo_matrix(eQUr)\n mJjf = oyIN.array(eQUr.sum(1))\n tvzN = oyIN... | [
"0.788518",
"0.7698141",
"0.7698141",
"0.7698141",
"0.7698141",
"0.7698141",
"0.7698141",
"0.7698141",
"0.7698141",
"0.7698141",
"0.7691616",
"0.759434",
"0.7566608",
"0.7335597",
"0.72684425",
"0.688461",
"0.68616927",
"0.686005",
"0.6832041",
"0.682895",
"0.6750887",
"0.6... | 0.730491 | 14 |
Split channels (dimension 2) into multiple heads, becomes dimension 1). Must ensure `x.shape[1]` can be deviced by num_heads | def Hiht(WKvO, hC9O):
q1OH = Jp3R.get_shape_list(WKvO)
rb7a = q1OH[-1]
Wc9F = q1OH[0]
Q6uT = q1OH[1]
lRR3 = ZylS.reshape(WKvO, [ZylS.shape(WKvO)[0], ZylS.shape(WKvO)[1], hC9O, rb7a // hC9O])
return ZylS.transpose(lRR3, [0, 2, 1, 3]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hiht(YKHO, WKvO: torch.Tensor) -> ht2j.Tensor:\n rb7a = WKvO.size(-1)\n lPV6 = ht2j.reshape(WKvO, (WKvO.size(0), WKvO.size(1), YKHO._hparams.num_heads, rb7a // YKHO._hparams.num_heads))\n return lPV6.permute((0, 2, 1, 3))",
"def Plaj(WKvO, hC9O):\n Rv0k = WKvO.size()\n WKvO = WKvO.view(Rv0k[0]... | [
"0.82976234",
"0.8222446",
"0.8079792",
"0.79285574",
"0.77406865",
"0.7666386",
"0.7629393",
"0.7629393",
"0.7629393",
"0.7629393",
"0.7629393",
"0.7629393",
"0.7629393",
"0.7622903",
"0.7601256",
"0.722677",
"0.6768115",
"0.63592714",
"0.63557863",
"0.6236408",
"0.5963263",... | 0.7862194 | 4 |
Set the friendly name of a scene. | def VFug(yOxF: int, mWFP: str):
EdpN[yOxF] = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lFwr(YKHO, mWFP):\n F6jf = YKHO.scene()\n if F6jf:\n mWFP = F6jf.uniqueNodeName(mWFP)\n YKHO._objectName = mWFP\n YKHO._titleFont = None\n YKHO.update()",
"def AaSu(*qIxc):\n mM0K.openSceneFullPath = ccKF.file(q=True, sn=True)\n mM0K.openScene = Hy7s.path.basename(mM0K.openSceneFu... | [
"0.736499",
"0.6819682",
"0.65995824",
"0.65656346",
"0.65460163",
"0.65423506",
"0.6490112",
"0.64742696",
"0.6442343",
"0.643475",
"0.64257276",
"0.6391015",
"0.6384253",
"0.63751686",
"0.63751686",
"0.63751686",
"0.63751686",
"0.6343902",
"0.6335318",
"0.6335318",
"0.63353... | 0.7691896 | 0 |