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 |
|---|---|---|---|---|---|---|
Interface for a material stacker, to support e.g., stack = Si | air. | def gN4g(YKHO, Elif):
raise NotImplementedError('failed monkey-patch: material stacker needs to replace __or__ in Scatterer') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E5BI(YKHO, *qIxc, **B2fa):\n return YKHO._block(*qIxc, container='stack', **B2fa)",
"def UA4s():\n return S9Ut()",
"def nrOS(YKHO, *qIxc, **YSA3):\n raise NotImplementedError('failed monkey-patch: material stacker needs to replace __call__ in Scatterer')",
"def FIMM(YKHO, Gzv5: int, EDoJ: int, z... | [
"0.61101735",
"0.604537",
"0.5795938",
"0.5777025",
"0.57206774",
"0.5676153",
"0.5670715",
"0.5616618",
"0.5590499",
"0.5580484",
"0.55559886",
"0.5537987",
"0.5515781",
"0.5513628",
"0.5478354",
"0.546652",
"0.5447304",
"0.5436564",
"0.5433909",
"0.5433909",
"0.5433909",
... | 0.0 | -1 |
Returns an alloy defined by relative mass of the constituents. Mixture.bymass(base, M2, F2, ..., name='mixture name') | def HjYA(Emd4, P8oC, *SQ3m, **YSA3):
return Emd4(P8oC, SQ3m, by='mass', **YSA3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E43s(YKHO):\n return YKHO.mass[1]",
"def cZ59(nyWF, p6Rr=1):\n return nyWF * js4S(size=p6Rr)",
"def Wt4Q(YKHO, mWFP):\n r8hN = oyIN.asanyarray(YKHO['mass'])\n U5bT = qw7D.SimArray((YKHO[mWFP].transpose() * r8hN).transpose().mean(axis=0) / r8hN.mean(), YKHO[mWFP].units)\n return U5bT",
"def... | [
"0.56320035",
"0.5259214",
"0.50910425",
"0.50587785",
"0.50541496",
"0.5018914",
"0.496936",
"0.49654782",
"0.4910878",
"0.486393",
"0.48429003",
"0.48299593",
"0.478215",
"0.47258285",
"0.47050986",
"0.46959585",
"0.46885803",
"0.4685525",
"0.4683247",
"0.46759623",
"0.4669... | 0.61888427 | 0 |
Compute the density of the mixture from the density and proportion of the individual components. | def p6EJ(YKHO):
wA3x = oyIN.array([0.0] + [r8hN.value for r8hN in YKHO.fraction])
wA3x[0] = 100 - sum(wA3x)
if (wA3x < 0).any():
return uIGg
akib = YKHO._volume(wA3x)
InLe = oyIN.array([r8hN.density() for r8hN in [YKHO.base] + YKHO.material])
return oyIN.sum(akib * InLe) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s61C(pDQF):\n InLe = 0.0\n for epBp, wA3x in pDQF.items():\n InLe += wA3x / cfQG.mass_density_kg_m3(epBp)\n return 1.0 / InLe",
"def Eo2K(YKHO, EcVT):\n raise NotImplementedError",
"def NXCA(YKHO):\n g2VT = kuG0(C77I)\n g2VT.fit(YKHO.data)\n EcVT = oyIN.array([2000.0, 200.0, 0.0... | [
"0.7156759",
"0.6423372",
"0.63320816",
"0.62585247",
"0.6232724",
"0.6228395",
"0.6218764",
"0.6208273",
"0.6172866",
"0.6144694",
"0.6133219",
"0.6126653",
"0.6063127",
"0.6054448",
"0.601485",
"0.601485",
"0.601485",
"0.59881055",
"0.5986512",
"0.59815633",
"0.59663427",
... | 0.71525383 | 1 |
Extend a to match the number of dimensions of b. This adds dimensions to the end of a rather than the beginning. It is equivalent to a[..., None, None] with the right number of None elements to make the number of dimensions match (or np.newaxis if you prefer). | def FJj_(jzdc, Fg_i):
if oyIN.isscalar(jzdc):
return jzdc
_xz6 = (1,) * (Fg_i.ndim - jzdc.ndim)
return jzdc.reshape(jzdc.shape + _xz6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RZdE(jzdc, MPlV):\n if type(MPlV) == int:\n return oyIN.expand_dims(jzdc, MPlV)\n for aNZO in sorted(MPlV):\n jzdc = oyIN.expand_dims(jzdc, aNZO)\n return jzdc",
"def JaGE(ezWE: array_like, vKFw: int=0, qC1Y: Optional[int]=None):\n ezWE = oyIN.asarray(ezWE)\n if qC1Y is None:\n ... | [
"0.60436183",
"0.5992693",
"0.57490283",
"0.57351136",
"0.5716952",
"0.57017934",
"0.5662988",
"0.5577876",
"0.549605",
"0.54837286",
"0.5458152",
"0.5403845",
"0.5391427",
"0.5391427",
"0.5391427",
"0.53542334",
"0.5346788",
"0.52701664",
"0.5269523",
"0.52688",
"0.5216148",... | 0.8198336 | 0 |
Recall metric. Only computes a batchwise average of recall. Computes the recall, a metric for multilabel classification of how many relevant items are selected. | def AOzf(Y8eF, aMgO):
COti = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1)))
z5jX = nMvt.sum(nMvt.round(nMvt.clip(Y8eF, 0, 1)))
AOzf = COti / (z5jX + nMvt.epsilon())
return AOzf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AOzf(Y8eF, aMgO, S8vG, Crrw):\n Y8eF, aMgO = eN6f(Y8eF, aMgO, S8vG, Crrw)\n Aofo = None\n r8hN = len(Y8eF)\n exwG = len(Crrw)\n YsYU = A3YK(Y8eF, aMgO, Crrw).T\n if S8vG == 'micro':\n M6pt = oyIN.trace(YsYU)\n UUZ1 = oyIN.sum(YsYU)\n Aofo = M6pt / UUZ1\n elif S8vG == '... | [
"0.76047015",
"0.74474794",
"0.74041575",
"0.7280166",
"0.7208148",
"0.716517",
"0.7156958",
"0.7131029",
"0.710041",
"0.7096404",
"0.7096404",
"0.7096404",
"0.7096404",
"0.7096404",
"0.7096404",
"0.7096404",
"0.7096404",
"0.7096404",
"0.7096404",
"0.7096404",
"0.7096404",
... | 0.7144544 | 8 |
Precision metric. Only computes a batchwise average of precision. Computes the precision, a metric for multilabel classification of how many selected items are relevant. | def rhd_(Y8eF, aMgO):
COti = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1)))
ftZB = nMvt.sum(nMvt.round(nMvt.clip(aMgO, 0, 1)))
rhd_ = COti / (ftZB + nMvt.epsilon())
return rhd_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(YKHO):\n YKHO.overall_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=YKHO.average_type).round(YKHO.digits_count_fp)\n YKHO.classes_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=None).round(YKHO.digits_count_fp)",
"def lGpo(nPrm, svPB=4):\n gCUM = []\n for KAOR in nPrm:\n RDeU... | [
"0.7489789",
"0.7288577",
"0.7160126",
"0.71535283",
"0.7066027",
"0.69853693",
"0.6965701",
"0.69550425",
"0.69127744",
"0.6834017",
"0.68179363",
"0.6809387",
"0.6785694",
"0.67576426",
"0.67576426",
"0.67576426",
"0.67576426",
"0.67576426",
"0.67576426",
"0.67576426",
"0.6... | 0.68049496 | 13 |
Find max random eVal by fitting Marcenko's distribution | def shLX(Rf1r, vexM, MWF_):
yvT9 = Wg84(lambda WKvO, *qIxc: ZKp4(WKvO[0], *qIxc), 0.5, args=(Rf1r, vexM, MWF_), bounds=((1e-05, 1 - 1e-05),))
if yvT9['success']:
SRYB = yvT9['x'][0]
else:
SRYB = 1
dIYc = SRYB * (1 + (1.0 / vexM) ** 0.5) ** 2
return (dIYc, SRYB) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tTpl(YKHO):\n if YKHO._e is None:\n sbkn = 29.9 * (YKHO.j[0] / YKHO.k[0]) ** (2 / 3)\n vexM = YKHO.distributions.truncated_normal(YKHO.q_c, YKHO.q_w, sbkn * (1 - 0.8), sbkn * (1 - 0.001))\n YKHO._e = 1 - vexM / sbkn\n return YKHO._e",
"def q1NN(hkxX):\n hkxX = oyIN.array(hkxX)\n... | [
"0.6881554",
"0.68471813",
"0.64754087",
"0.64344823",
"0.6400722",
"0.63806707",
"0.63057715",
"0.62959087",
"0.628247",
"0.6230704",
"0.6211851",
"0.61930484",
"0.6144895",
"0.61265093",
"0.61006325",
"0.60901797",
"0.60901797",
"0.60828626",
"0.6082433",
"0.60670894",
"0.6... | 0.65277886 | 2 |
Returns true if position 'a' is at least as far along as 'b'. | def YotH(YKHO, jzdc, Fg_i):
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M8p3(YKHO, jzdc, Fg_i):\n return YKHO.position_at_least(jzdc, Fg_i) and (not YKHO.position_equal(jzdc, Fg_i))",
"def GLol(jzdc, Fg_i):\n Q_eH = Fg_i[0] - jzdc[0]\n q_cO = Fg_i[1] - jzdc[1]\n return Q_eH == 0 and q_cO != 0 or (q_cO == 0 and Q_eH != 0) or abs(q_cO) == abs(Q_eH)",
"def kwP_(jzdc: ... | [
"0.7240502",
"0.6646913",
"0.6580503",
"0.6432033",
"0.6425145",
"0.64237106",
"0.6342213",
"0.6326465",
"0.63134277",
"0.6301747",
"0.6262241",
"0.6261322",
"0.62323034",
"0.62176603",
"0.62143695",
"0.61994565",
"0.61577237",
"0.61227244",
"0.6122717",
"0.61041033",
"0.6086... | 0.6585925 | 2 |
Returns true if position 'a' is after 'b' | def M8p3(YKHO, jzdc, Fg_i):
return YKHO.position_at_least(jzdc, Fg_i) and (not YKHO.position_equal(jzdc, Fg_i)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X5FL(YKHO, Q6kx, yKcO):\n return Q6kx.start > yKcO",
"def nqTe(zFiD: tuple) -> bool:\n return zFiD[1][1] > zFiD[0][1]",
"def uDFq(YKHO, jzdc, Fg_i):\n return None",
"def _YhM(YKHO, Elif):\n if YKHO.is_before(Elif) or YKHO == Elif:\n return False\n else:\n return True",
"def... | [
"0.670546",
"0.64037275",
"0.61174804",
"0.6063479",
"0.6032431",
"0.6004654",
"0.59408724",
"0.5939187",
"0.5934258",
"0.5909052",
"0.5857507",
"0.58499545",
"0.5839095",
"0.58281857",
"0.57706666",
"0.5753403",
"0.5752184",
"0.57051396",
"0.5697424",
"0.565242",
"0.564713",... | 0.8300808 | 0 |
Returns the config to initialize a `TensorAdapter`. | def bFFM(YKHO) -> iac6.TensorAdapterConfig:
return iac6.TensorAdapterConfig(YKHO.ArrowSchema(), YKHO.TensorRepresentations()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KJy4(YKHO) -> iac6.TensorAdapter:\n return iac6.TensorAdapter(YKHO.TensorAdapterConfig())",
"def tgzD():\n GPtr = ZylS.ConfigProto(allow_soft_placement=True)\n GPtr.gpu_options.allow_growth = True\n return GPtr",
"def tgzD():\n GPtr = ZylS.ConfigProto(allow_soft_placement=True)\n GPtr.gpu... | [
"0.688907",
"0.6445407",
"0.64321053",
"0.6400288",
"0.63017076",
"0.62444454",
"0.62420505",
"0.6002032",
"0.599247",
"0.5987138",
"0.58802295",
"0.5878723",
"0.58364713",
"0.58364713",
"0.58323306",
"0.58259887",
"0.5805665",
"0.57914877",
"0.5779149",
"0.57739383",
"0.5769... | 0.830687 | 0 |
Returns a TensorAdapter that converts pa.RecordBatch to TF inputs. May raise an error if the TFMD schema was not provided at construction time. | def KJy4(YKHO) -> iac6.TensorAdapter:
return iac6.TensorAdapter(YKHO.TensorAdapterConfig()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HoEz(YKHO) -> ZylS.data.Dataset:\n __n6 = YKHO.parser()\n\n def if1K(DUG2):\n return YKHO.decoder(DUG2)\n __n6 = __n6.map(if1K, num_parallel_calls=YKHO.AUTOTUNE)\n __n6 = __n6.prefetch(YKHO.config.batch_size)\n if YKHO._training:\n __n6 = __n6.map(lambda r8m5, LNo8, cviu, KndY: YKH... | [
"0.6136353",
"0.602169",
"0.59734833",
"0.5922168",
"0.5779653",
"0.57790613",
"0.5744001",
"0.5658783",
"0.55623484",
"0.55615926",
"0.5549354",
"0.5529868",
"0.5529265",
"0.54796416",
"0.5472046",
"0.5454743",
"0.54431385",
"0.5434877",
"0.54239327",
"0.541194",
"0.5403455"... | 0.53859323 | 27 |
ARN of the IAM role used to create the stack. | def SQQ_(YKHO) -> str:
return qe4Y.get(YKHO, 'iam_role_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def axXk(YKHO) -> str:\n return qe4Y.get(YKHO, 'role_arn')",
"def axXk(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'role_arn')",
"def axXk(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'role_arn')",
"def axXk(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'role_arn')",
... | [
"0.78653973",
"0.7670398",
"0.7619725",
"0.74739546",
"0.74739546",
"0.74739546",
"0.74739546",
"0.74074626",
"0.74074626",
"0.7174054",
"0.70448273",
"0.70448273",
"0.6996795",
"0.6977378",
"0.6965926",
"0.6965926",
"0.6850099",
"0.6796837",
"0.6770975",
"0.67069715",
"0.667... | 0.7655819 | 2 |
Map of tags associated with this stack. | def dJ1p(YKHO) -> GySg[str, str]:
return qe4Y.get(YKHO, 'tags') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dJ1p(YKHO) -> dict:\n return YKHO._tags",
"def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> dict:\n return YKHO._tags or None",
"def dJ1p(YKHO) -> h8nf[GySg[str, ImMB]]:\n return ... | [
"0.82098186",
"0.8172031",
"0.8172031",
"0.79406893",
"0.7720642",
"0.76715726",
"0.76715726",
"0.76715726",
"0.76715726",
"0.76715726",
"0.76715726",
"0.76715726",
"0.76715726",
"0.76652753",
"0.7578484",
"0.7576007",
"0.7509383",
"0.7461461",
"0.7432332",
"0.7432332",
"0.74... | 0.8147913 | 4 |
r"""\"?(\w+ \ \w\d \ )\"? | def DVqF(a1PO):
return a1PO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zbdc(l5Ny):\n return ZbWC.sub('(\\\\W)', '\\\\\\\\\\\\1', l5Ny)",
"def KDSv(YSA3):\n YSA3 = YSA3.replace('\\\\', '\\\\\\\\')\n YSA3 = YSA3.replace('(', '\\\\(')\n YSA3 = YSA3.replace(')', '\\\\)')\n YSA3 = YSA3.replace('+', '\\\\+')\n YSA3 = YSA3.replace('-', '\\\\-')\n YSA3 = YSA3.repla... | [
"0.58149666",
"0.5590527",
"0.5557459",
"0.54897135",
"0.5483146",
"0.5472348",
"0.54616034",
"0.543409",
"0.54280347",
"0.5421222",
"0.5386508",
"0.5367306",
"0.53665555",
"0.53575504",
"0.52577657",
"0.5233827",
"0.52100337",
"0.5179832",
"0.51553875",
"0.51145166",
"0.5104... | 0.0 | -1 |
If the path is not fully qualified, prepend the original current working directory to the path | def T6pu(pmON):
if not EzFS.search(pmON):
pmON = Hy7s.path.join(sWmO, pmON)
return pmON | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OyQC(pmON):\n if M_SG and (not '/' in pmON):\n pmON = M_SG + pmON\n if not ck3z:\n return pmON\n return gzes(ck3z, pmON)",
"def znsr():\n YMZ3 = Hy7s.path.dirname(Hy7s.path.abspath(tq_1.getfile(tq_1.currentframe())))\n hSrp = Hy7s.path.dirname(YMZ3)\n HwRy.path.insert(0, hSrp)... | [
"0.7620671",
"0.74919146",
"0.7460935",
"0.731429",
"0.7300813",
"0.6977725",
"0.6915363",
"0.6718533",
"0.67154497",
"0.66916203",
"0.66771317",
"0.6654359",
"0.663174",
"0.66099477",
"0.65857214",
"0.6553072",
"0.65458477",
"0.65247303",
"0.6524716",
"0.6442794",
"0.6418941... | 0.6567196 | 15 |
Transform column to numpy array | def NMoC(YKHO):
HCmI = dict()
HCmI['name_'] = YKHO.thisptr['df_name_']
HCmI['type_'] = 'BooleanColumn.get'
HCmI['col_'] = YKHO.thisptr
KCHu = JZ1r.send_and_receive_socket(HCmI)
tO9_ = JZ1r.recv_string(KCHu)
if tO9_ != 'Found!':
KCHu.close()
raise Exception(tO9_)
vb7U = JZ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rKYu(Mkmy):\n jzdc = oyIN.ma.array([YRbF for YRbF in Mkmy.as_void()])\n return jzdc",
"def WTDd(WKvO):\n return WKvO.squeeze().detach().cpu().numpy()",
"def cSel(Kiac, g1da):\n qw7D = Kiac[[g1da]]\n qw7D[g1da] = qw7D[g1da].apply(lambda WKvO: WKvO.toarray())\n qw7D[g1da] = qw7D[g1da].apply... | [
"0.7197415",
"0.713459",
"0.6926442",
"0.6919213",
"0.6718125",
"0.6693851",
"0.6660445",
"0.66309017",
"0.66002786",
"0.6577402",
"0.65694815",
"0.6568747",
"0.65588635",
"0.65338016",
"0.6533754",
"0.6518823",
"0.6517641",
"0.6515271",
"0.65083706",
"0.64859676",
"0.6461372... | 0.0 | -1 |
Extract day (of the month) from a time stamp. If the column is discrete or numerical, that number will be interpreted as the number of days since epoch time (January 1, 1970). | def cKoo(YKHO):
return NgP7(df_name=YKHO.thisptr['df_name_'], operator='day', operand1=YKHO, operand2=None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HYZd(M_Ra):\n return oyIN.asarray([JRYC.day for JRYC in M_Ra.astype(qcWV)])",
"def gLAx(_c1T):\n return _c1T.day",
"def BgU3(_c1T):\n return gLAx(_c1T)",
"def E2ep():\n return qcWV.date.today().day",
"def K61z(EQf4):\n _c1T = OLXh(EQf4)\n return GRk0.monthrange(_c1T.year, _c1T.month)[... | [
"0.72674775",
"0.7132711",
"0.67705905",
"0.6641441",
"0.64805484",
"0.6470614",
"0.6470614",
"0.6320599",
"0.6237334",
"0.61512125",
"0.60725784",
"0.60700744",
"0.6020121",
"0.59909475",
"0.59447384",
"0.59447384",
"0.59400976",
"0.57701856",
"0.57391006",
"0.5735653",
"0.5... | 0.0 | -1 |
Transform column to numpy array | def feOr(YKHO, iG42=None):
HCmI = dict()
HCmI['name_'] = YKHO.thisptr['df_name_']
HCmI['type_'] = 'Column.get'
HCmI['col_'] = YKHO.thisptr
if iG42 is None:
KCHu = JZ1r.send_and_receive_socket(HCmI)
else:
KCHu = iG42
JZ1r.send_string(KCHu, qQXR.dumps(HCmI))
tO9_ = JZ1r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rKYu(Mkmy):\n jzdc = oyIN.ma.array([YRbF for YRbF in Mkmy.as_void()])\n return jzdc",
"def WTDd(WKvO):\n return WKvO.squeeze().detach().cpu().numpy()",
"def cSel(Kiac, g1da):\n qw7D = Kiac[[g1da]]\n qw7D[g1da] = qw7D[g1da].apply(lambda WKvO: WKvO.toarray())\n qw7D[g1da] = qw7D[g1da].apply... | [
"0.7197415",
"0.713459",
"0.6926442",
"0.6919213",
"0.6718125",
"0.6693851",
"0.6660445",
"0.66309017",
"0.66002786",
"0.6577402",
"0.65694815",
"0.6568747",
"0.65588635",
"0.65338016",
"0.6533754",
"0.6518823",
"0.6517641",
"0.6515271",
"0.65083706",
"0.64859676",
"0.6461372... | 0.0 | -1 |
Transform column to numpy array | def xDxD(YKHO, iG42=None):
HCmI = dict()
HCmI['name_'] = YKHO.thisptr['df_name_']
HCmI['type_'] = 'CategoricalColumn.get'
HCmI['col_'] = YKHO.thisptr
if iG42 is None:
KCHu = JZ1r.send_and_receive_socket(HCmI)
else:
KCHu = iG42
JZ1r.send_string(KCHu, qQXR.dumps(HCmI))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rKYu(Mkmy):\n jzdc = oyIN.ma.array([YRbF for YRbF in Mkmy.as_void()])\n return jzdc",
"def WTDd(WKvO):\n return WKvO.squeeze().detach().cpu().numpy()",
"def cSel(Kiac, g1da):\n qw7D = Kiac[[g1da]]\n qw7D[g1da] = qw7D[g1da].apply(lambda WKvO: WKvO.toarray())\n qw7D[g1da] = qw7D[g1da].apply... | [
"0.7197415",
"0.713459",
"0.6926442",
"0.6919213",
"0.6718125",
"0.6693851",
"0.6660445",
"0.66309017",
"0.66002786",
"0.6577402",
"0.65694815",
"0.6568747",
"0.65588635",
"0.65338016",
"0.6533754",
"0.6518823",
"0.6517641",
"0.6515271",
"0.65083706",
"0.64859676",
"0.6461372... | 0.0 | -1 |
Extract month from a time stamp. If the column is discrete or numerical, that number will be interpreted as the number of days since epoch time (January 1, 1970). | def ZP2C(YKHO):
return NgP7(df_name=YKHO.thisptr['df_name_'], operator='month', operand1=YKHO, operand2=None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wfY9(sd8v):\n _c1T = None\n for mXDZ in FmhY:\n try:\n _c1T = qcWV.strptime(sd8v, mXDZ)\n if _c1T:\n break\n except ValueError:\n continue\n x0eS = _c1T.strftime('%m')\n return int(x0eS)",
"def pL8v(vIwR):\n pdbK = qcWV.datetime.str... | [
"0.68955654",
"0.6881809",
"0.6862225",
"0.68166107",
"0.6807643",
"0.6762404",
"0.6590734",
"0.6555987",
"0.6469025",
"0.64303976",
"0.6420243",
"0.63874197",
"0.62579584",
"0.612969",
"0.6104456",
"0.60417455",
"0.60187334",
"0.5988254",
"0.59776855",
"0.5963438",
"0.594426... | 0.5401495 | 53 |
Extract second (of the minute) from a time stamp. If the column is discrete or numerical, that number will be interpreted as the number of days since epoch time (January 1, 1970). | def cQ30(YKHO):
return NgP7(df_name=YKHO.thisptr['df_name_'], operator='second', operand1=YKHO, operand2=None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vLpG(_c1T):\n return _c1T.second",
"def B5MA(ITS7):\n return g6xZ(ITS7).second",
"def XYAA(E3oo):\n return int(E3oo.seconds) + 60 * int(E3oo.minutes) + 3600 * int(E3oo.hours) + float(int(E3oo.hours) / 1000)",
"def RpJm(it6R):\n return oyIN.array(it6R.second).reshape(-1, 1)",
"def l6_o(ITS7)... | [
"0.6949661",
"0.680905",
"0.6749577",
"0.6457093",
"0.64513844",
"0.6405497",
"0.63529843",
"0.6312502",
"0.6219344",
"0.6168191",
"0.6091094",
"0.60906607",
"0.6060383",
"0.6015944",
"0.5986964",
"0.5986964",
"0.59643793",
"0.59459335",
"0.5916862",
"0.58843815",
"0.5865007"... | 0.0 | -1 |
Transforms a categorical column to a numeric column. | def rbGv(YKHO):
return NgP7(df_name=YKHO.thisptr['df_name_'], operator='to_num', operand1=YKHO, operand2=None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IRAX(VZFQ):\n wTRj = VZFQ.copy(deep=True)\n for AniK in wTRj.columns:\n if wTRj[AniK].dtype != float:\n wTRj[AniK] = rLdf.Categorical(wTRj[AniK])\n wTRj[AniK] = wTRj[AniK].cat.codes\n return wTRj",
"def GjfZ(jQ3Z, fvDH, mWFP, WM5g):\n if not diP9(fvDH) and (WM5g is No... | [
"0.7188043",
"0.6811991",
"0.67667705",
"0.66084474",
"0.6456137",
"0.6443407",
"0.63923967",
"0.6379456",
"0.6368147",
"0.6344595",
"0.62350583",
"0.6234621",
"0.6222905",
"0.61672026",
"0.6116077",
"0.60962564",
"0.6088739",
"0.60025185",
"0.60025185",
"0.60012805",
"0.5908... | 0.56527865 | 31 |
Close the data link connection with the SNEP server. | def DDI8(YKHO):
if YKHO.socket:
YKHO.socket.close()
YKHO.socket = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ngVb(YKHO):\n YKHO.nodesocket.close()",
"def zml5(YKHO):\n print('closing connection...')\n YKHO.s.close()\n quit()",
"def ngVb(YKHO):\n YKHO._connection.close()\n print('Closed connection....')",
"def AAOP(YKHO, *X3BZ):\n YKHO.link.close()",
"def DDI8(YKHO):\n YKHO.connection =... | [
"0.73130095",
"0.7239946",
"0.70138234",
"0.6988987",
"0.6901466",
"0.6899947",
"0.6850949",
"0.6842043",
"0.6822807",
"0.68138045",
"0.6799122",
"0.677157",
"0.6771503",
"0.6753925",
"0.6753925",
"0.67453843",
"0.6736168",
"0.6721766",
"0.670781",
"0.6704745",
"0.67007434",
... | 0.63161427 | 90 |
The set of arguments for constructing a Ipam resource. | def FIMM(Ro_8, *, JBZA: Optional[pulumi.Input[str]]=None, JEDZ: Optional[pulumi.Input[Sequence[pulumi.Input['IpamOperatingRegionArgs']]]]=None, dJ1p: Optional[pulumi.Input[Sequence[pulumi.Input['IpamTagArgs']]]]=None):
if JBZA is not None:
qe4Y.set(Ro_8, 'description', JBZA)
if JEDZ is not None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, *, G0Vx: pulumi.Input[str], c2OH: pulumi.Input[str], o9ap: Optional[pulumi.Input[int]]=None, TQnE: Optional[pulumi.Input[int]]=None, EPPn: Optional[pulumi.Input[int]]=None, vh8X: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]=None, LJeY: Optional[pulumi.Input[bool]]=None, A0ZM: Optional[pul... | [
"0.63863933",
"0.6357599",
"0.63269305",
"0.6093002",
"0.60835433",
"0.60813326",
"0.6008819",
"0.5984128",
"0.59629196",
"0.59609276",
"0.5939549",
"0.5913157",
"0.5902689",
"0.5896046",
"0.5858542",
"0.5848704",
"0.5775459",
"0.577129",
"0.5757634",
"0.5750422",
"0.57475907... | 0.58011156 | 16 |
The Amazon Resource Name (ARN) of the IPAM. | def hMqs(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def S... | [
"0.73320585",
"0.73320585",
"0.73320585",
"0.73320585",
"0.73320585",
"0.7172065",
"0.6982838",
"0.69482833",
"0.69482833",
"0.69482833",
"0.6927228",
"0.68976563",
"0.6862851",
"0.6855026",
"0.6855026",
"0.6855026",
"0.6855026",
"0.6855026",
"0.6855026",
"0.6855026",
"0.6855... | 0.735993 | 10 |
Id of the IPAM. | def U2HA(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'ipam_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C3RF(YKHO):\n return id(YKHO)",
"def unpH(YKHO):\n return YKHO.iid",
"def id(YKHO) -> str:\n return qe4Y.get(YKHO, 'id')",
"def id(YKHO) -> str:\n return qe4Y.get(YKHO, 'id')",
"def id(YKHO) -> str:\n return qe4Y.get(YKHO, 'id')",
"def id(YKHO) -> str:\n return qe4Y.get(YKHO, 'id')"... | [
"0.6954828",
"0.6807734",
"0.6722497",
"0.6722497",
"0.6722497",
"0.6722497",
"0.6722497",
"0.6722497",
"0.6722497",
"0.6722497",
"0.6722497",
"0.6722497",
"0.6722497",
"0.6722497",
"0.6722497",
"0.6722497",
"0.6722497",
"0.6722497",
"0.6722497",
"0.6722497",
"0.6722497",
"... | 0.8265104 | 0 |
Returns the value of the node. | def Oegh(YKHO, exwG):
Q6kx = YKHO.get_node(exwG)
if Q6kx:
return Q6kx.value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BWXx(YKHO):\n return YKHO.node_value",
"def UnfG(YKHO):\n return _VfD.ASTNode_getValue(YKHO)",
"def BWXx(YKHO):\n return YKHO.get_attribute('value', str(YKHO.children))",
"def Oegh(Q6kx: Node):\n if Q6kx.type != 'Const':\n raise Exception(\"Can't get value for non-constant node {}\".fo... | [
"0.89655745",
"0.786774",
"0.78107053",
"0.76275945",
"0.7586012",
"0.75806415",
"0.75448227",
"0.75057507",
"0.74218774",
"0.74218774",
"0.7372386",
"0.73676634",
"0.733452",
"0.733452",
"0.730461",
"0.730461",
"0.730461",
"0.73026633",
"0.7300878",
"0.7300878",
"0.7300878",... | 0.8300337 | 1 |
Prepare image for inputting to the neural network. Returns a Variable | def psOH(VXjJ, pRq0):
fCrN = VXjJ
tpio = (fCrN.shape[1], fCrN.shape[0])
VXjJ = ZqLj(fCrN, (pRq0, pRq0))
t9mp = VXjJ[:, :, ::-1].transpose((2, 0, 1)).copy()
t9mp = ht2j.from_numpy(t9mp).float().div(255.0).unsqueeze(0)
return (t9mp, fCrN, tpio) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def biH0(YKHO, VXjJ):\n t9mp = LNo8.load_img(VXjJ, target_size=(299, 299))\n t9mp = LNo8.img_to_array(t9mp)\n t9mp = oyIN.expand_dims(t9mp, axis=0)\n t9mp = fjyB(t9mp)\n return t9mp",
"def R8NI(pT7i):\n bSx5 = pT7i.data.numpy()[0]\n bSx5[bSx5 > 1] = 1\n bSx5[bSx5 < 0] = 0\n return bSx5... | [
"0.62916833",
"0.6211987",
"0.6211208",
"0.6197419",
"0.61689556",
"0.61650276",
"0.6141847",
"0.6129262",
"0.61196506",
"0.6114234",
"0.61141485",
"0.6100635",
"0.6094669",
"0.60811746",
"0.60798824",
"0.60216117",
"0.6013268",
"0.59965223",
"0.59670097",
"0.5966533",
"0.596... | 0.0 | -1 |
Initializes a new Affine instance with default values | def FIMM(YKHO, jzdc=23, Fg_i=50):
YKHO.characters = list(YKHO.characters + vIwR.ascii_lowercase + vIwR.digits + vIwR.punctuation + ' ')
try:
TPG_ = pvHv.are_coprimes(jzdc, len(YKHO.characters))
if TPG_:
raise ValueError('{} found to be a common divisor.\n"a" and {} must be coprimes.\... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jE4Z(YKHO):\n lgoG = HUXa['affine']\n j_2U = lgoG.ConfigClass()\n with B1jb.utils.tests.getTempFilePath('.py') as AesY:\n YKHO.checkConfig(lgoG, j_2U, AesY)\n rnv5 = lgoG(j_2U)\n YKHO.assertEqual(type(rnv5), b_5L)\n YKHO.checkBasics(rnv5)\n for qnf_ in YKHO.fromIter(... | [
"0.6638548",
"0.65145046",
"0.62317014",
"0.61064374",
"0.59976363",
"0.59914225",
"0.5963453",
"0.5944052",
"0.59122866",
"0.5878966",
"0.5768456",
"0.5730906",
"0.5635327",
"0.5635327",
"0.5578717",
"0.5554409",
"0.55494297",
"0.5540451",
"0.5512622",
"0.5511559",
"0.545105... | 0.531882 | 34 |
Constructs a cone by its ellipse intersection. | def Lwbo(YrSa, gPmF, JK4V, hLLw, WJ05, Csk6, DDOk):
KMvS = -DDOk
jzdc = KMvS ** 2 * YrSa
Fg_i = KMvS ** 2 * JK4V
Z9rn = Csk6
Csk6 = KMvS ** 2 * Csk6
eHNT = -KMvS * WJ05
Oa1e = -KMvS * hLLw
MKlR = KMvS ** 2 * gPmF
P6bq = KMvS ** 2 * hLLw
Ty9i = KMvS ** 2 * WJ05
yzQ0 = -KMvS * ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Et2J(YKHO, u54L):\n EcVT, fuBA, Nk6w = ElDj(YKHO.angles)\n Aofo = qmA5([], [], [])\n assert Aofo.pnFacesInPoly()\n eHNT = Aofo.addVertex(YKHO.focalPoint)\n for KCHu in YKHO.segments:\n rB6o = (YKHO.focalDist * EcVT + KCHu[0][0] * Nk6w + KCHu[0][1] * fuBA).normalize()\n zQyp = (YKHO... | [
"0.64262986",
"0.6255224",
"0.6185348",
"0.6177203",
"0.61609423",
"0.60686046",
"0.59440607",
"0.591871",
"0.5872244",
"0.5866773",
"0.585719",
"0.58543086",
"0.58384305",
"0.5803261",
"0.577742",
"0.5739006",
"0.56999755",
"0.5681495",
"0.56791973",
"0.5669729",
"0.5668109"... | 0.6315355 | 1 |
Use this API to count the nshttpprofile resources configured on NetScaler. | def UHFx(Emd4, x0hE):
try:
YEnM = _Oaf()
PPeq = xAU6()
PPeq.count = True
geh0 = YEnM.get_resources(x0hE, PPeq)
if geh0:
return geh0[0].__dict__['___count']
return 0
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UHFx(Emd4, x0hE):\n try:\n YEnM = LWRE()\n PPeq = xAU6()\n PPeq.count = True\n geh0 = YEnM.get_resources(x0hE, PPeq)\n if geh0:\n return geh0[0].__dict__['___count']\n return 0\n except Exception as e:\n raise tTpl",
"def UHFx(Emd4, x0hE):\n ... | [
"0.6287189",
"0.6198469",
"0.5946004",
"0.5831939",
"0.57442707",
"0.55919224",
"0.5390651",
"0.53646576",
"0.5354177",
"0.52801627",
"0.52671957",
"0.52559274",
"0.5229863",
"0.5204532",
"0.5141443",
"0.5118464",
"0.51152074",
"0.5101045",
"0.509449",
"0.50832164",
"0.505680... | 0.71893114 | 0 |
Use this API to count filtered the set of nshttpprofile resources. | def hOC2(Emd4, x0hE, UU6M):
try:
YEnM = _Oaf()
PPeq = xAU6()
PPeq.count = True
PPeq.filter = UU6M
geh0 = YEnM.getfiltered(x0hE, PPeq)
if geh0:
return geh0[0].__dict__['___count']
return 0
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UHFx(Emd4, x0hE):\n try:\n YEnM = _Oaf()\n PPeq = xAU6()\n PPeq.count = True\n geh0 = YEnM.get_resources(x0hE, PPeq)\n if geh0:\n return geh0[0].__dict__['___count']\n return 0\n except Exception as e:\n raise tTpl",
"def hOC2(Emd4, x0hE, UU6M... | [
"0.7018164",
"0.60775137",
"0.6072945",
"0.59472954",
"0.59049845",
"0.5901454",
"0.5779798",
"0.56615466",
"0.54069823",
"0.53780264",
"0.5328295",
"0.529881",
"0.5290429",
"0.52850246",
"0.5236266",
"0.52264166",
"0.5214276",
"0.51986754",
"0.5165597",
"0.5153964",
"0.51191... | 0.680692 | 1 |
Create an image from a given data. Returns a png image as a string. | def cMYb(YKHO, Ty9i):
LZpg = qjJM.figure(figsize=(YKHO.hsize, YKHO.hsize * float(Ty9i.shape[0]) / Ty9i.shape[1]))
aNZO = LZpg.add_axes([0, 0, 1, 1])
Ty9i = oyIN.flipud(Ty9i)
VNqG = Ty9i < 1.0
Ty9i[VNqG] = oyIN.NaN
YKHO.colormap.set_bad(alpha=0.0)
qjJM.imshow(Ty9i)
qjJM.axis('off')
YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NOjq(nPrm):\n nPrm = nPrm.partition(',')[2]\n dvgN = len(nPrm) % 4\n nPrm += '=' * dvgN\n LNo8 = hnIv.open(aKaX(leDs(nPrm)))\n return LNo8",
"def imIF(nPrm):\n if not nPrm:\n return u''\n if nPrm[0:5] != u'data:':\n return None\n N2Ym = nPrm[5:nPrm.index(u';')].lower()\n... | [
"0.6842017",
"0.68145114",
"0.6727903",
"0.6723739",
"0.6694281",
"0.66845906",
"0.6559768",
"0.6548694",
"0.6332545",
"0.632956",
"0.6304356",
"0.62824196",
"0.6216008",
"0.61489815",
"0.61393625",
"0.6135189",
"0.61224425",
"0.6122261",
"0.6122087",
"0.60089344",
"0.5988018... | 0.0 | -1 |
Return the time interval information for this image using the kml format string `timestr'. Or an empty string to disable animations. | def m7L9(YKHO):
return '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hfK9(KCHu):\n a1PO = nyPp()\n a1PO.id = KCHu.get('id', None)\n a1PO.name = KCHu.get('name', None)\n if KCHu.has_key('interval'):\n j6gM = KCHu['interval']\n if j6gM[-1:] == 's':\n a1PO.seconds = int(j6gM[:-1])\n if j6gM[-1:] == 'm':\n a1PO.minutes = int(j6... | [
"0.52695566",
"0.526532",
"0.52152336",
"0.51752627",
"0.51453054",
"0.5118938",
"0.5115575",
"0.5101139",
"0.5072153",
"0.5040522",
"0.5027899",
"0.50040615",
"0.4964468",
"0.4955831",
"0.49558255",
"0.49392334",
"0.4923896",
"0.49041823",
"0.4901534",
"0.4860963",
"0.484665... | 0.44655097 | 88 |
Determine whether or not `n` is prime. | def T1qg(exwG):
if exwG in (2, 3, 5, 7, 11, 13, 17, 19):
return True
if exwG <= 1 or exwG % 2 == 0 or exwG % 3 == 0:
return False
nkdn = int(epAf.ceil(epAf.sqrt(exwG))) + 1
return not any((exwG % G1Hx == 0 for G1Hx in range(3, nkdn, 2))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBNJ(exwG):\n return T1qg(exwG)",
"def FBNJ(exwG):\n return T1qg(exwG)",
"def T1qg(exwG):\n return kU5Q(exwG)",
"def JVAb(Emd4, exwG):\n if exwG <= 1:\n return False\n if exwG <= 3:\n return True\n if exwG % 2 == 0 or exwG % 3 == 0:\n return False\n YRbF = 5\n ... | [
"0.86517954",
"0.8644571",
"0.84845525",
"0.84433305",
"0.8308401",
"0.8290361",
"0.827796",
"0.82606864",
"0.82584834",
"0.8245748",
"0.8239699",
"0.82380414",
"0.8230631",
"0.8222912",
"0.82188195",
"0.8203481",
"0.8203481",
"0.8201891",
"0.8200143",
"0.81981033",
"0.819364... | 0.7948411 | 57 |
Test Subject object str/unicode representation | def Dt2g(YKHO):
YKHO.assertEqual(str(YKHO.subject), 'Test Subject') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jSYH(YKHO):\n MgeT = k_g4.prepare('connectmessages.Thread')\n YKHO.assertEqual(str(MgeT), 'Thread %s' % MgeT.subject)",
"def hB2q(YKHO):\n g3Gt = G8qb.objects.get(user=YKHO.test_user)\n YKHO.assertEqual(QMSQ(g3Gt), 'test@test.com')",
"def Dt2g(YKHO):\n CKaL = CAGz.Status('test')\n YKHO.as... | [
"0.7344731",
"0.71959597",
"0.6907719",
"0.68475324",
"0.68000567",
"0.67501134",
"0.6746139",
"0.6705036",
"0.666691",
"0.6655922",
"0.65556186",
"0.6528937",
"0.65061873",
"0.64942676",
"0.6489136",
"0.6488789",
"0.6452057",
"0.6400791",
"0.6366024",
"0.63625705",
"0.635013... | 0.79284596 | 0 |
Build the encoder network input_tensor = 1 batch = 1 episode (batch size, neurons) Assumes second last item is degraded input, last is target | def IAb6(YKHO, FRUf):
NSpA = False
bY98 = False
wB0Y = True
GhuM = FRUf.get_shape().as_list()
CFLU = oyIN.prod(GhuM[1:])
tAM8 = (-1, CFLU)
KUnM = YKHO._hparams.filters + YKHO._hparams.bias_neurons
wjbX = [KUnM]
bCyF = [KUnM, KUnM]
with ZylS.variable_scope('rnn'):
qNG5 = Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AB1J(YKHO, QjBU, LT6S):\n with ZylS.variable_scope('trajectory_encoder'):\n with ZylS.name_scope('source_placeholder'):\n wZtD = Zsxs.list_placeholder(YKHO.num_gpu, (None, YKHO.input_length, YKHO.input_dims), ZylS.float32)\n for KZ_l in wZtD:\n ZylS.add_to_collection('pla... | [
"0.6593034",
"0.65355295",
"0.6466942",
"0.6456194",
"0.6428047",
"0.63008356",
"0.6207852",
"0.6181998",
"0.6170921",
"0.6156885",
"0.61471003",
"0.6146541",
"0.61147505",
"0.61057067",
"0.60913515",
"0.6082964",
"0.6064296",
"0.6049051",
"0.6045714",
"0.60414076",
"0.604104... | 0.5959482 | 33 |
Remove ignored empty subelements from list subelems1. | def Ci6g(lfK1, FBje, NmVZ, NdiG, qTAa, hEYQ):
oxOY = hEYQ
if oxOY:
(print >> oxOY, 'parent_path: %s' % NmVZ)
eSnm = []
for YRbF, p17A in enumerate(lfK1):
if len(p17A.getchildren()) > 0:
continue
hZAz = False
for UYdb in qTAa:
if oxOY:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zwrn(yv6U: List[T]) -> x1iM[Kt_s]:\n return [LihS for LihS in yv6U if LihS]",
"def lJ7Y(zZcM):\n return [geyT for geyT in zZcM if geyT]",
"def L3pH(yv6U):\n return [VmPb for VmPb in yv6U if VmPb is not fX7D.EMPTY_CELL]",
"def N2qy(YKHO):\n YKHO.elements = list(set(YKHO.elements))\n YKHO.el... | [
"0.60873926",
"0.59045243",
"0.5823922",
"0.56260103",
"0.5594796",
"0.5461794",
"0.54547054",
"0.54202217",
"0.54115343",
"0.54080206",
"0.54053164",
"0.54018784",
"0.5378819",
"0.53624374",
"0.5319633",
"0.5278939",
"0.52657926",
"0.52614665",
"0.5253238",
"0.52442133",
"0.... | 0.8047649 | 0 |
Returns the main saver nodes in the scene or an empty list. | def Rcoo(YKHO):
CWN7 = YKHO.comp.GetToolList(False, 'Saver').values()
yX6l = []
for Dstj in CWN7:
if Dstj.GetAttrs('TOOLS_Name').startswith(YKHO._main_output_node_name):
yX6l.append(Dstj)
return yX6l | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dEUy(YKHO):\n return YKHO.caller.player_ob.db.random_scenelist or []",
"def rWKl(YKHO):\n Cyum = []\n for YRbF in YKHO.scenes:\n Cyum.append(YKHO.scenes[YRbF])\n return Cyum",
"def ps_a():\n return NqvI.IDLER.scenes[0]",
"def CDNe(YKHO):\n return YKHO.__allNodes",
"def hqwz(YKH... | [
"0.6589055",
"0.6212284",
"0.6154428",
"0.6099545",
"0.60515314",
"0.60497767",
"0.602391",
"0.59723955",
"0.5965573",
"0.59623826",
"0.5957704",
"0.5957704",
"0.5957704",
"0.59216017",
"0.5908601",
"0.5896296",
"0.5854739",
"0.5794002",
"0.5746687",
"0.57233626",
"0.56957334... | 0.74653554 | 0 |
Returns an int64_list from a bool / enum / int / uint. | def Oety(BWXx):
return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=[int(Ty9i) for Ty9i in BWXx])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kmpz(FiiE):\n Aofo = []\n for d7pR in FiiE:\n if isinstance(d7pR, (list, tuple)):\n Aofo.append(Kmpz(d7pR))\n elif d7pR is True:\n Aofo.append(1)\n elif d7pR is False:\n Aofo.append(0)\n else:\n Aofo.append(d7pR)\n return Aofo",
... | [
"0.68822104",
"0.6595804",
"0.6461252",
"0.6448161",
"0.6367609",
"0.62926817",
"0.6269916",
"0.621823",
"0.6104528",
"0.59533274",
"0.5947467",
"0.5863832",
"0.5863832",
"0.58563983",
"0.5844792",
"0.58434534",
"0.5829844",
"0.5801042",
"0.5793561",
"0.5793561",
"0.5793561",... | 0.5901199 | 11 |
Helper for creating a serialized Example proto. | def i3lk(AwTT, Ikh1, Gmx9):
PU1l = ZylS.train.SequenceExample(feature_lists=ZylS.train.FeatureLists(feature_list={'utterances': ZylS.train.FeatureList(feature=[bPiq(P6bq) for P6bq in Ikh1]), 'speakers': ZylS.train.FeatureList(feature=[Oety(AwTT)]), 'emotions': ZylS.train.FeatureList(feature=[Oety(Gmx9)])}))
ret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i3lk(kNzm, jvSB, U08W, CtWL):\n PU1l = ZylS.train.Example(features=ZylS.train.Features(feature={'decode_pre': Oety(DfXy(kNzm, CtWL)), 'encode': Oety(DfXy(jvSB, CtWL)), 'decode_post': Oety(DfXy(U08W, CtWL))}))\n return PU1l.SerializeToString()",
"def Ix8_(vOvM, N3C1, L0Nd, TP22):\n RDhP = {'feature0'... | [
"0.69729173",
"0.6940555",
"0.6913458",
"0.66323334",
"0.6630081",
"0.64159954",
"0.636575",
"0.62038136",
"0.61284894",
"0.6119847",
"0.6066663",
"0.6048224",
"0.60357213",
"0.6022706",
"0.5981263",
"0.59517866",
"0.59373945",
"0.5922947",
"0.5785494",
"0.578472",
"0.5734378... | 0.698503 | 0 |
Given a tensor name, returns the name of the op generating the tensor, prefixed with a special scope indicating that the op has been added by Sparkdl. | def R0uv(YKHO, AzER):
yhyn = FGJZ.op_name(AzER)
return FGJZ.add_scope_to_name(scope=YKHO.SPARKDL_OP_SCOPE, name=yhyn) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KlOO(YKHO):\n TZ9E = ZbWC.sub('\\\\W+', '', YKHO.tag)\n if TZ9E:\n TZ9E = '_' + TZ9E\n return '%s_%s%s' % (YKHO.dtype, '_'.join((str(WKvO) for WKvO in YKHO.shape)), TZ9E)",
"def OHrd(mWFP):\n if mWFP.rfind(':') == -1:\n mWFP += ':0'\n return ZylS.get_default_graph().get_tensor_by... | [
"0.7050225",
"0.67406046",
"0.6703274",
"0.664962",
"0.66281646",
"0.6575906",
"0.65679836",
"0.64626014",
"0.6395855",
"0.62461805",
"0.62423223",
"0.61312103",
"0.6037407",
"0.5957678",
"0.5956572",
"0.59418094",
"0.59319746",
"0.5930965",
"0.5918136",
"0.5770822",
"0.57148... | 0.7817917 | 0 |
Returns the status of the application, whether the application is healthy or not. | def vzMz():
jGRS = Vfbh.is_healthy()
if jGRS is True:
JBvl = 200
else:
JBvl = 503
return oGir({}, JBvl, mimetype='application/json') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jGRS(YKHO):\n if YKHO.app_id:\n return YKHO.yarn_api.apps_info(YKHO.app_id)\n else:\n raise ZoQu('Cannot get status, app not started')",
"def QtQ8(YKHO):\n Ii1o = YKHO._getPid()\n if Ii1o:\n if vexM.system.process.isPidAlive(Ii1o):\n return jY8p.RUNNING\n return... | [
"0.78126806",
"0.77946573",
"0.7324687",
"0.72223175",
"0.72223175",
"0.7090448",
"0.7066058",
"0.69669664",
"0.69631153",
"0.6915402",
"0.68789726",
"0.6872001",
"0.68718374",
"0.6858139",
"0.68492746",
"0.68426496",
"0.68109775",
"0.68006766",
"0.67740697",
"0.67573667",
"0... | 0.0 | -1 |
Returns the list of all the resources, their condition (Healthy / Unhealthy), and reason that caused it. | def IBiY():
hlel = [f'{'S. No.':6}\t{'Resource':50}\t{'Health State':12}\t{'Reason':100}\n']
for d6pt, Eorv in enumerate(Vfbh.resource_state):
hlel.append(f'{d6pt + 1:<6}\t{Eorv:<50}\t{('Healthy' if Vfbh.resource_state[Eorv]['is_healthy'] else 'Unhealthy'):<12}\t{Vfbh.resource_state[Eorv]['reason']:<100... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GXfY(YKHO, kL40: [], RfLK: int):\n SaD0 = {}\n drp0 = YKHO._get_all_resources()\n _LAD = YKHO._filter_resources_by_age(drp0, RfLK)\n _LAD = YKHO._filter_resources_by_status(_LAD, kL40)\n if len(_LAD) < 1:\n bo34.info(Pw4_.WARNING + ' No resources found. Check your filter options.' + Pw4_.... | [
"0.6243034",
"0.61976194",
"0.617127",
"0.59208584",
"0.58697176",
"0.5862257",
"0.58564204",
"0.5842596",
"0.5831965",
"0.58103293",
"0.5807915",
"0.5807915",
"0.5807915",
"0.5798504",
"0.5783467",
"0.5764604",
"0.5760925",
"0.57560474",
"0.5752172",
"0.5735913",
"0.5735913"... | 0.6228301 | 1 |
Check if two boards are equal | def goQM(iBIi, k7RY):
return (k7RY == iBIi).all() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif) -> None:\n for G1Hx, Ty9i in enumerate(YKHO.board):\n if Ty9i != Elif.board[G1Hx]:\n return False\n return True",
"def xa14(YKHO, Elif):\n for rdlD in range(YKHO.n):\n if YKHO.board[rdlD] != Elif.board[rdlD]:\n return False\n return True",
"d... | [
"0.76765525",
"0.7590167",
"0.7520879",
"0.73166174",
"0.7049794",
"0.6997381",
"0.69779974",
"0.696249",
"0.69501203",
"0.6933911",
"0.6929893",
"0.68988365",
"0.6865647",
"0.68118745",
"0.6808368",
"0.67976785",
"0.67858136",
"0.6755733",
"0.673824",
"0.67163175",
"0.660529... | 0.7748529 | 1 |
A context manager for a temporary mount. | def B7og(JZXy, e1vZ=None, VKhi=None, vCE4=None, PdtV=1, NHb8=3):
NArs = []
if VKhi:
NArs.extend(['-o', ','.join(VKhi)])
if vCE4:
NArs.extend(['-t', vCE4])
if e1vZ is None:
e1vZ = gbPf.mkdtemp()
WoCN = True
else:
WoCN = False
B7og = False
try:
n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GWxD(YKHO, pmON: str) -> 'Container':\n M56f = [kDLT('path', pmON)]\n GSuR = YKHO._select('withMountedTemp', M56f)\n return pa4n(GSuR)",
"def Lcjt(y0cW='tmp', oEge=None, S8SU=None, coje=False):\n if S8SU is None:\n\n class foon(object):\n pass\n S8SU = eZ8K()\n KUjY(S8... | [
"0.6684779",
"0.6623937",
"0.6605116",
"0.65905076",
"0.6294695",
"0.62732834",
"0.61629766",
"0.61086386",
"0.6097886",
"0.6067137",
"0.60359883",
"0.6020762",
"0.6004185",
"0.59716064",
"0.5940682",
"0.58644783",
"0.58579874",
"0.58278334",
"0.5798571",
"0.57862985",
"0.575... | 0.644671 | 4 |
Unpickle, restoring unpicklable relationships | def UzTX(YKHO, QTBn):
YKHO.__dict__ = QTBn
YKHO.get_esoh_solver = jtAy()(YKHO._get_esoh_solver) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HXpd(YKHO):\n pass",
"def wBIE(YKHO, oAiD: bytes) -> None:\n grwe = t2lc.loads(oAiD)\n YKHO.__dict__.update(grwe.__dict__)",
"def dZU0(YKHO, hGI9: pathlib.Path):\n return t2lc.load(hGI9.open(mode='rb'))",
"def wBIE(YKHO):\n YKHO.abstract_obj.restore()",
"def E1bO(YKHO):\n m0le = tpMz.... | [
"0.73612714",
"0.672248",
"0.6688589",
"0.64883816",
"0.6374593",
"0.62724084",
"0.6263405",
"0.6250536",
"0.61748654",
"0.61724526",
"0.610855",
"0.6080979",
"0.5913445",
"0.5899791",
"0.58983",
"0.5894404",
"0.58572745",
"0.58443195",
"0.58423454",
"0.5838881",
"0.5789083",... | 0.0 | -1 |
Test that the configured schema name is returned for a topic | def pNip(YKHO):
YKHO.assertEqual(kequ.topic.schema_name_for_topic('test_topic'), 'TestSchema')
with YKHO.assertRaises(kequ.topic.TopicNotConfigured):
kequ.topic.schema_name_for_topic('not a schema') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YroZ(YKHO):\n wv1o = {'/^regex\\\\.*/': {'schema_name': 'regex.schema'}}\n kequ.topic.update_topic_config(wv1o)\n YKHO.assertEqual(kequ.topic.schema_name_for_topic('regex.topic'), 'regex.schema')\n YKHO.assertTrue(kequ.topic.is_topic_configured('regex.topic'))\n YKHO.assertFalse(kequ.topic.is_to... | [
"0.7529392",
"0.676147",
"0.6198551",
"0.6052444",
"0.59660745",
"0.5945555",
"0.58825374",
"0.5851181",
"0.58297294",
"0.5794581",
"0.57934237",
"0.5782582",
"0.5781492",
"0.5749154",
"0.57409734",
"0.57311475",
"0.5717271",
"0.56910455",
"0.56830275",
"0.5672669",
"0.565822... | 0.87503934 | 0 |
Plot 3D vectors in 3D | def HZOm(he6J, *qIxc, **B2fa):
he6J = oyIN.reshape(he6J, (-1, 3))
return QrM1.plot(he6J[:, 0], he6J[:, 1], he6J[:, 2], *qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NBT1(F7BS, MWMx):\n ICmq = rLdf.DataFrame(data=F7BS, columns=['pc1', 'pc2', 'pc3'])\n LZpg = QrM1.figure()\n aNZO = LZpg.add_subplot(111, projection='3d')\n fUYa = ICmq['pc1']\n bEXe = ICmq['pc2']\n YBbd = ICmq['pc3']\n aNZO.scatter(fUYa, bEXe, YBbd, s=50, alpha=0.6, edgecolors='w')\n a... | [
"0.7357655",
"0.7181526",
"0.70493865",
"0.7042275",
"0.701293",
"0.6982947",
"0.69759756",
"0.6970553",
"0.673817",
"0.6735246",
"0.6713215",
"0.6678552",
"0.66756463",
"0.6664053",
"0.666278",
"0.6576681",
"0.65756327",
"0.6572264",
"0.65662205",
"0.655414",
"0.6530669",
... | 0.76035553 | 0 |
Retrieve Post selected by slug in JSON format | def yz3o(s5ru):
CJuX = y75a.filter(T97t.slug == s5ru).first()
if CJuX is None:
eTsH(404)
rIYp = kKTL(CJuX[0], CJuX[2])
return pz3A(rIYp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RTbv(QePW, Fi3q):\n m8z6 = Iofl(T97t, id=Fi3q)\n qQXR = IyFz.serialize('json', [m8z6], fields=('pub_time', '_text_rendered', 'title', 'text', 'image', 'image_width', 'image_height', 'replies', 'tags'))\n return igJ6(content=qQXR)",
"def k66M(YKHO):\n return FYrf.BlogPost.objects.filter(blog__slug... | [
"0.66719913",
"0.64250666",
"0.63932985",
"0.62193274",
"0.61872536",
"0.6180209",
"0.61666185",
"0.60169053",
"0.599319",
"0.5987742",
"0.5890632",
"0.58787733",
"0.58772683",
"0.58458585",
"0.5832694",
"0.5815097",
"0.5812258",
"0.5770354",
"0.572046",
"0.5693896",
"0.56920... | 0.7541584 | 0 |
The identity block is the block that has no conv layer at shortcut. | def ro9T(FRUf, Ot1W, KUnM, EtM5, XkN1, Y9ns=None):
DZWo, MXwb = KUnM
if ZylS.keras.backend.image_data_format() == 'channels_last':
z5f9 = 3
else:
z5f9 = 1
RmTP = 'res' + str(EtM5) + XkN1 + '_branch'
lPXw = 'bn' + str(EtM5) + XkN1 + '_branch'
WKvO = ZylS.keras.layers.Conv2D(DZWo, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aP6R(YKHO, FRUf, KUnM, YDYE, EtM5, XkN1, AkBB=True):\n RmTP = 'res' + str(EtM5) + XkN1 + '_branch'\n uFbb = 'batch_norm' + str(EtM5) + XkN1 + '_branch'\n T9jN = FRUf\n WKvO = None\n if AkBB:\n WKvO = GVKG(axis=3, name=uFbb + '_1')(FRUf)\n WKvO = MroH(YDYE)(WKvO)\n else:\n ... | [
"0.6863723",
"0.6613831",
"0.65261513",
"0.64593554",
"0.64359504",
"0.6433214",
"0.638604",
"0.6383168",
"0.6336141",
"0.63211936",
"0.63197666",
"0.62679076",
"0.62557864",
"0.624875",
"0.62460726",
"0.6225587",
"0.62168217",
"0.61974704",
"0.61882806",
"0.61882806",
"0.612... | 0.5732476 | 34 |
A block that has a conv layer at shortcut. | def NAsP(FRUf, Ot1W, KUnM, EtM5, XkN1, FEri=(2, 2), Y9ns=None):
DZWo, MXwb = KUnM
if ZylS.keras.backend.image_data_format() == 'channels_last':
z5f9 = 3
else:
z5f9 = 1
RmTP = 'res' + str(EtM5) + XkN1 + '_branch'
lPXw = 'bn' + str(EtM5) + XkN1 + '_branch'
WKvO = ZylS.keras.layers.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mQG_(YKHO, DVMO, UU6M, b27A):\n return YKHO.add_layer(mQG_, DVMO, UU6M, b27A)",
"def FIMM(YKHO, tpio, eFZt, ykhl, OC7S, e5sz):\n super(BB3m, YKHO).__init__()\n YKHO.conv_block = YKHO.build_conv_block(tpio, eFZt, ykhl, OC7S, e5sz)",
"def mQG_(FRUf, Ot1W, KUnM, EtM5, yetk, FEri=(2, 2), wH3T='channel... | [
"0.70699036",
"0.64443517",
"0.64287764",
"0.6405969",
"0.63976103",
"0.6366892",
"0.6366892",
"0.6316457",
"0.63042253",
"0.62855816",
"0.62733924",
"0.6247351",
"0.6237473",
"0.62362826",
"0.62230587",
"0.62127405",
"0.6167685",
"0.61336136",
"0.61248565",
"0.61248565",
"0.... | 0.55873454 | 89 |
A block which applies conv followed by multiple identity blocks. | def ZLzW(FRUf, zNig, Ot1W, KUnM, EtM5, _BVU=(2, 2), Y9ns=None):
WKvO = NAsP(FRUf, Ot1W, KUnM, stage=EtM5, strides=_BVU, block='block_0', training=Y9ns)
for YRbF in range(zNig - 1):
WKvO = ro9T(WKvO, Ot1W, KUnM, stage=EtM5, block='block_%d' % (YRbF + 1), training=Y9ns)
return WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aP6R(KUnM, EtM5, XkN1):\n\n def gEmA(FRUf):\n PLPF = bWJn()\n exGu = SdeN()\n RKO_, UIER, txxm, GuRx = K8Sv(EtM5, XkN1)\n WKvO = GVKG(name=UIER + '0', **exGu)(FRUf)\n WKvO = MroH('relu', name=txxm + '0')(WKvO)\n WKvO = yHwh(KUnM // 2, (1, 1), name=RKO_ + '1', **PLPF... | [
"0.67161036",
"0.671363",
"0.66017777",
"0.659006",
"0.65577346",
"0.65103227",
"0.6497052",
"0.6413386",
"0.64049524",
"0.63726693",
"0.63662475",
"0.6362494",
"0.63368106",
"0.6326875",
"0.63124686",
"0.63029474",
"0.6301655",
"0.6270162",
"0.6267877",
"0.6267877",
"0.62654... | 0.0 | -1 |
Instantiates the ResNet architecture. | def WWYJ(YIPF, KndY=10, Y9ns=None):
GhuM = (32, 32, 3)
Hydj = fhcK.Input(shape=GhuM)
if DDLl.image_data_format() == 'channels_first':
WKvO = fhcK.Lambda(lambda WKvO: DDLl.permute_dimensions(WKvO, (0, 3, 1, 2)), name='transpose')(Hydj)
z5f9 = 1
else:
WKvO = Hydj
z5f9 = 3
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CLgi(JACg, XkN1, fhcK, mL4f, Eb4t, **B2fa):\n C3ST = S1Vm(XkN1, fhcK, **B2fa)\n if mL4f:\n xA7f = LwA_(mDCG[JACg], progress=Eb4t)\n C3ST.load_state_dict(xA7f)\n return C3ST",
"def FIMM(YKHO):\n YKHO.device = ht2j.device('cuda') if ht2j.cuda.is_available() else ht2j.device('cpu')\n ... | [
"0.68416464",
"0.6734476",
"0.66279775",
"0.6583275",
"0.6381526",
"0.63464487",
"0.6279225",
"0.6233799",
"0.62183166",
"0.6157543",
"0.6128495",
"0.61096853",
"0.60788697",
"0.6077962",
"0.60732657",
"0.60661584",
"0.60580444",
"0.60450524",
"0.6033731",
"0.6006453",
"0.600... | 0.0 | -1 |
fl_get_formbrowser_topform(ptr_flobject) Finds out the form that is currently the first form in the formbrowser visible to the user. | def jTpq(HEas):
GhTN = xuBC.cfuncproto(xuBC.load_so_libforms(), 'fl_get_formbrowser_topform', Bo55.POINTER(Iqz3.FL_FORM), [Bo55.POINTER(Iqz3.FL_OBJECT)], 'FL_FORM * fl_get_formbrowser_topform(FL_OBJECT * ob)')
xuBC.check_if_flinitialized()
xuBC.verify_flobjectptr_type(HEas)
xuBC.keep_elem_refs(HEas)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kzQw(HEas, Fu_1):\n vM5d = xuBC.cfuncproto(xuBC.load_so_libforms(), 'fl_set_formbrowser_topform', Bo55.c_int, [Bo55.POINTER(Iqz3.FL_OBJECT), Bo55.POINTER(Iqz3.FL_FORM)], 'int fl_set_formbrowser_topform(FL_OBJECT * ob, FL_FORM * form)')\n xuBC.check_if_flinitialized()\n xuBC.verify_flobjectptr_type(HEa... | [
"0.82495654",
"0.70543236",
"0.6692165",
"0.6565622",
"0.6377104",
"0.6065812",
"0.5868449",
"0.5867141",
"0.5820693",
"0.58161795",
"0.5811634",
"0.5795953",
"0.5795953",
"0.5794322",
"0.5751721",
"0.57496995",
"0.5686302",
"0.5678801",
"0.55942607",
"0.5590195",
"0.5563277"... | 0.88938385 | 0 |
fl_get_formbrowser_yoffset(ptr_flobject) > offset Finds out the current vertical offset from top in pixel of a formbrowser. | def Wfad(HEas):
Wu4g = xuBC.cfuncproto(xuBC.load_so_libforms(), 'fl_get_formbrowser_yoffset', Bo55.c_int, [Bo55.POINTER(Iqz3.FL_OBJECT)], 'int fl_get_formbrowser_yoffset(FL_OBJECT * ob)')
xuBC.check_if_flinitialized()
xuBC.verify_flobjectptr_type(HEas)
xuBC.keep_elem_refs(HEas)
RI88 = Wu4g(HEas)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S0DA(HEas, vgXP):\n eLVz = xuBC.cfuncproto(xuBC.load_so_libforms(), 'fl_set_formbrowser_yoffset', Bo55.c_int, [Bo55.POINTER(Iqz3.FL_OBJECT), Bo55.c_int], 'int fl_set_formbrowser_yoffset(FL_OBJECT * ob, int offset)')\n xuBC.check_if_flinitialized()\n xuBC.verify_flobjectptr_type(HEas)\n a74P = xuBC.... | [
"0.76883155",
"0.6815306",
"0.63925767",
"0.62800264",
"0.6051936",
"0.59256405",
"0.5796087",
"0.5621576",
"0.5567504",
"0.5558454",
"0.5540203",
"0.5527888",
"0.5521293",
"0.5479259",
"0.54022866",
"0.538861",
"0.53879684",
"0.5373583",
"0.5371534",
"0.53263324",
"0.5297352... | 0.8302833 | 0 |
Returns a string representation of the internal structure. | def zAg0(YKHO):
KCHu = '--\n'
for U6D_ in YKHO:
KCHu += U6D_.__str__() + '\n'
KCHu += '--'
return KCHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n golO = ''\n for YRbF in YKHO.structref:\n golO = golO + '%-15s = ' % YRbF[YKHO.NAME]\n BWXx = YKHO.value[YRbF[YKHO.NAME]]\n if roeU(BWXx):\n golO = golO + '%d, 0x%X' % (BWXx, BWXx)\n if BWXx >= 32 and BWXx <= 255:\n golO = golO + \" ... | [
"0.76401013",
"0.75780433",
"0.737806",
"0.7371001",
"0.73026323",
"0.7280957",
"0.7232877",
"0.7216389",
"0.7207536",
"0.7200661",
"0.7200661",
"0.7172027",
"0.71693057",
"0.71568936",
"0.71568936",
"0.71568936",
"0.71568936",
"0.71568936",
"0.71568936",
"0.71568936",
"0.715... | 0.0 | -1 |
Adds a new element at the beginning of the list. | def qIuc(YKHO, U6D_):
ycBG = o7DN(U6D_, None, YKHO.head)
YKHO.size += 1
if YKHO.size <= 1:
YKHO.tail = YKHO.head
YKHO.head = ycBG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qIuc(YKHO, ZfUD: Any):\n YKHO.insert(0, ZfUD)",
"def _jXH(YKHO, ZfUD):\n YKHO.list.prepend(ZfUD)",
"def rMGb(YKHO, tTpl):\n YKHO._insert_between(tTpl, YKHO._head, YKHO._head._next)",
"def dZVG(YKHO, ZfUD):\n YKHO.items.insert(0, ZfUD)",
"def qIuc(YKHO, WKvO):\n YKHO.insert(0, WKvO)",
"... | [
"0.7645144",
"0.74540466",
"0.7391316",
"0.73808426",
"0.7307733",
"0.72177297",
"0.71836996",
"0.713922",
"0.7095898",
"0.7085709",
"0.70738816",
"0.6933297",
"0.69114035",
"0.6891791",
"0.68781537",
"0.682188",
"0.67894083",
"0.6745922",
"0.67296624",
"0.6704134",
"0.669013... | 0.7547386 | 1 |
Not Equal comparator override needed to treat None as special case. | def Vdqg(YKHO, Elif):
if Elif != None:
return YKHO != Elif
else:
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif):\n return Elif != YKHO._cmpkey()",
"def xTmh(YKHO):\n jzdc = ei4T.OpaqueObject(YKHO.bytes_a, aVkO.OpaqueDataType.NONE)\n Fg_i = ei4T.OpaqueObject(YKHO.bytes_b, aVkO.OpaqueDataType.NONE)\n YKHO.assertFalse(jzdc == Fg_i)\n YKHO.assertFalse(Fg_i == jzdc)",
"def Vdqg(YKHO, Elif)... | [
"0.65781915",
"0.6568875",
"0.6510773",
"0.6498509",
"0.64486724",
"0.6445185",
"0.6441627",
"0.64290476",
"0.64030296",
"0.6344365",
"0.63384914",
"0.63384914",
"0.63384914",
"0.63384914",
"0.6335178",
"0.6294304",
"0.6274809",
"0.62714094",
"0.62714094",
"0.62714094",
"0.62... | 0.6316833 | 16 |
Equal comparator override needed to treat None as special case. | def xa14(YKHO, Elif):
if Elif != None:
return YKHO == Elif
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Aicm(YKHO, z1Rg):\n if z1Rg != None:\n return eHkp(YKHO.value, z1Rg.value)\n else:\n return eHkp(YKHO.value, 0)",
"def tbdg(JfyU):\n\n @xBlr.wraps(JfyU)\n def _gRY(BzZr, RL4V):\n if BzZr is not None and RL4V is not None:\n return JfyU(BzZr, RL4V)\n if BzZr i... | [
"0.70458424",
"0.6012948",
"0.5855398",
"0.5847252",
"0.5752761",
"0.5639236",
"0.5564903",
"0.5561971",
"0.5502965",
"0.5502243",
"0.54622483",
"0.5406374",
"0.5382291",
"0.53739244",
"0.5370734",
"0.53640735",
"0.5348624",
"0.53068304",
"0.5303177",
"0.5302633",
"0.52997214... | 0.5685966 | 5 |
Class constructor. The default maximum amount of elements that a heap may contain is 100. | def FIMM(YKHO, gBIt=100):
YKHO.data = [None] * gBIt
YKHO.size = 0
YKHO.maxSize = gBIt
YKHO._ratingsAdded = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, mGqz, MOfs):\n YKHO.heap = ['NaN'] * mGqz\n YKHO.noOfElements = mGqz\n YKHO.i = 1\n YKHO.noOfRemovedElements = 0\n YKHO.limitOfRestructuring = MOfs",
"def FIMM(YKHO):\n YKHO.small = []\n YKHO.large = []",
"def FIMM(YKHO):\n YKHO.min_heap = []\n YKHO.max_heap = []\n ... | [
"0.77659756",
"0.77134633",
"0.7709894",
"0.76250595",
"0.7601998",
"0.7590448",
"0.75754297",
"0.7572874",
"0.7562456",
"0.75383246",
"0.75383246",
"0.75383246",
"0.75302464",
"0.74907875",
"0.7488479",
"0.7438323",
"0.7387267",
"0.73687977",
"0.7335402",
"0.7334932",
"0.732... | 0.0 | -1 |
This method sorts the heap, heapsterheapsort 'maxheap' style. | def BA9O(YKHO):
def oR3i(yKcO, UHFx):
"""
This method tries to swap down the children's of the branch
given by index 'start', making the lowest.
"""
tk5Y = yKcO
while tk5Y * 2 + 1 < UHFx:
aUGN = tk5Y * 2 + 1
if aUGN < UHFx - 1 and ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qMzV(gGCN):\n p06G = gGCN.tamanio\n for YRbF in range(0, gGCN.tamanio - 1):\n geT8(gGCN)\n gGCN.tamanio = p06G",
"def sEWy(list):\n pass",
"def sEWy(k0lF):\n X6SM(k0lF)\n for YRbF in range(len(k0lF) - 1, 1, -1):\n k0lF[1], k0lF[YRbF] = (k0lF[YRbF], k0lF[1])\n k0lF[0] ... | [
"0.7954443",
"0.7704634",
"0.7661137",
"0.76418877",
"0.7568516",
"0.7566614",
"0.7566614",
"0.752546",
"0.751029",
"0.74851584",
"0.74764675",
"0.74764675",
"0.74259967",
"0.73818517",
"0.73349744",
"0.7279047",
"0.7161782",
"0.70729274",
"0.69781077",
"0.6911468",
"0.688382... | 0.7289161 | 15 |
Class constructor. By default, it has 200 buckets. | def FIMM(YKHO, gSR0=200):
YKHO.data = [None] * gSR0
YKHO.slot = [None] * gSR0
YKHO.size = gSR0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.bucket_length = 997\n YKHO.bucket_array = [FIO_() for YRbF in range(YKHO.bucket_length)]",
"def FIMM(YKHO):\n YKHO.size = 1000\n YKHO.bucket = [None] * YKHO.size",
"def FIMM(YKHO):\n YKHO.m = 1000\n YKHO.bucket = [None] * 1000",
"def FIMM(YKHO):\n YKHO.buckets = 10... | [
"0.83085835",
"0.81867886",
"0.8080716",
"0.8070462",
"0.80031365",
"0.7923197",
"0.7839979",
"0.7578241",
"0.75207067",
"0.741177",
"0.7305787",
"0.72986007",
"0.72080123",
"0.71899796",
"0.7007758",
"0.69700575",
"0.6967752",
"0.69194496",
"0.68415594",
"0.6833852",
"0.6831... | 0.8107324 | 2 |
Returns a string representation of the hash table's content. | def zAg0(YKHO):
KCHu = '--\n'
for U6D_ in YKHO:
KCHu += U6D_.__str__() + '\n'
KCHu += '--'
'\n # Uncomment if you want to see the internal structure\n s = "\n--\n"\n for i in xrange(self.size):\n s += "%d [%s, %s]\n" % ( i, self.slot[i], self.data[i] )\n s ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return 'HashTable({!r})'.format(YKHO.items())",
"def zAg0(YKHO):\n D6Z9 = [YKHO.headers]\n for rdlD in YKHO.data:\n D6Z9.append([rdlD[fvDH] or '' for fvDH in YKHO.headers])\n return OaA6(D6Z9)",
"def PFzB(YKHO) -> str:\n KCHu = ''\n for YRbF in range(YKHO.size):\n ... | [
"0.709523",
"0.690549",
"0.6902213",
"0.6829075",
"0.6729887",
"0.6729887",
"0.6685864",
"0.66615003",
"0.6640291",
"0.6523178",
"0.650346",
"0.6426786",
"0.6399151",
"0.63738275",
"0.6373564",
"0.6370942",
"0.63311255",
"0.63195366",
"0.6309758",
"0.6300921",
"0.6294546",
... | 0.0 | -1 |
Not Equal comparator override needed to treat None as special case. | def Vdqg(YKHO, Elif):
if Elif != None:
return YKHO != Elif
else:
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif):\n return Elif != YKHO._cmpkey()",
"def xTmh(YKHO):\n jzdc = ei4T.OpaqueObject(YKHO.bytes_a, aVkO.OpaqueDataType.NONE)\n Fg_i = ei4T.OpaqueObject(YKHO.bytes_b, aVkO.OpaqueDataType.NONE)\n YKHO.assertFalse(jzdc == Fg_i)\n YKHO.assertFalse(Fg_i == jzdc)",
"def Vdqg(YKHO, Elif)... | [
"0.65781915",
"0.6568875",
"0.6510773",
"0.6498509",
"0.64486724",
"0.6445185",
"0.6441627",
"0.64290476",
"0.64030296",
"0.6344365",
"0.63384914",
"0.63384914",
"0.63384914",
"0.63384914",
"0.6335178",
"0.6294304",
"0.6274809",
"0.62714094",
"0.62714094",
"0.62714094",
"0.62... | 0.6316833 | 15 |
Equal comparator override needed to treat None as special case. | def xa14(YKHO, Elif):
if Elif != None:
return YKHO == Elif
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Aicm(YKHO, z1Rg):\n if z1Rg != None:\n return eHkp(YKHO.value, z1Rg.value)\n else:\n return eHkp(YKHO.value, 0)",
"def tbdg(JfyU):\n\n @xBlr.wraps(JfyU)\n def _gRY(BzZr, RL4V):\n if BzZr is not None and RL4V is not None:\n return JfyU(BzZr, RL4V)\n if BzZr i... | [
"0.70458424",
"0.6012948",
"0.5855398",
"0.5847252",
"0.5752761",
"0.5639236",
"0.5564903",
"0.5561971",
"0.5502965",
"0.5502243",
"0.54622483",
"0.5406374",
"0.5382291",
"0.53739244",
"0.5370734",
"0.53640735",
"0.5348624",
"0.53068304",
"0.5303177",
"0.5302633",
"0.52997214... | 0.5685966 | 6 |
Returns the valid minimum and maximum integer values of rating to be accepted. | def taO1(YKHO):
min = YKHO.minRatingInput.get()
max = YKHO.maxRatingInput.get()
try:
min = int(min)
except ValueError:
min = 0
try:
max = int(max)
except ValueError:
max = 100
return (min, max) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rMrP(YKHO):\n return (YKHO.interaction_data.label.min(), YKHO.interaction_data.label.max())",
"def P9NW(YKHO, H5ew, BWXx):\n assert BWXx is None or (BWXx <= 10 and BWXx >= 0)\n return BWXx",
"def Y00y(gXtX):\n if not gXtX:\n return (None, None)\n if len(gXtX) == None:\n return ... | [
"0.68871963",
"0.6037417",
"0.5943928",
"0.59224224",
"0.59139097",
"0.5906557",
"0.5896781",
"0.58612174",
"0.5858479",
"0.5740879",
"0.5719466",
"0.570176",
"0.56268877",
"0.5625947",
"0.5612996",
"0.5598409",
"0.55931854",
"0.55873454",
"0.5583822",
"0.5549162",
"0.5533472... | 0.86774224 | 0 |
Update maxdim to a new (possibly larger) value. If the new_maxdim is larger than the current maxdim, new CG coefficients should be calculated and the cg_dict will be updated. Otherwise, do nothing. | def x7uX(YKHO, nGGZ):
if YKHO and YKHO.maxdim >= nGGZ:
return YKHO
UKbA = d4Rp(nGGZ, existing_keys=YKHO._cg_dict.keys())
UKbA = {H5ew: {aHrC: GEYW.reshape(-1, GEYW.shape[-1]) for aHrC, GEYW in wEf2.items()} for H5ew, wEf2 in UKbA.items()}
if YKHO.transpose:
UKbA = {H5ew: {aHrC: H7f4.perm... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SPD_(YKHO, Jizi, Mt8n):\n PRV_.updateVmaxCritDen(YKHO, Jizi, Mt8n)\n for VmPb in YKHO.cells:\n VmPb.capacity = YKHO.params['qcap'] / 3600.0\n VmPb.delta = YKHO.params['bws'] / YKHO.params['ffs']\n return None",
"def EwBy(YKHO):\n if YKHO.initialized:\n E0wO = YKHO._compute_ma... | [
"0.5415424",
"0.527124",
"0.5225765",
"0.5208541",
"0.51170534",
"0.51067793",
"0.50919217",
"0.5074529",
"0.50702584",
"0.50369895",
"0.5030819",
"0.50169176",
"0.50151",
"0.5014445",
"0.50011855",
"0.49827418",
"0.49399847",
"0.49080595",
"0.4892601",
"0.48839384",
"0.48415... | 0.890233 | 0 |
Function to get the missing number in the array. It uses array index and applies binary search to find the missing element | def ndlh(jzdc, yKcO, Os4s):
x1fj = (yKcO + Os4s) // 2
if jzdc[x1fj] - x1fj == 2 and jzdc[x1fj - 1] - (x1fj - 1) == 1:
return jzdc[x1fj] - 1
elif jzdc[x1fj] - x1fj == 1:
return ndlh(jzdc, x1fj + 1, Os4s)
return ndlh(jzdc, yKcO, x1fj - 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aSkA(xYvp):\n KCHu = set(xYvp)\n for YRbF in range(1, len(xYvp) + 1):\n if YRbF not in KCHu:\n return YRbF",
"def s2rR(xYvp):\n exwG = len(xYvp)\n if 1 not in xYvp:\n return 1\n if exwG == 1:\n return 2\n for YRbF in range(exwG):\n if xYvp[YRbF] <= 0 o... | [
"0.74282336",
"0.74006873",
"0.7346324",
"0.7095865",
"0.7034864",
"0.70149314",
"0.68569654",
"0.6775487",
"0.6726845",
"0.6643612",
"0.6504375",
"0.650078",
"0.6283411",
"0.6255586",
"0.62332183",
"0.6200883",
"0.61429423",
"0.6142735",
"0.6136089",
"0.60460436",
"0.6018562... | 0.715457 | 3 |
Create a random maze with given dimensions. | def tuKI(YKHO, TVTK, H2v2, yokr=None):
YKHO.grid = [[''] * TVTK for YRbF in range(H2v2)]
tuKI.seed(yokr)
yKcO = (tuKI.randint(0, len(YKHO.grid) - 1), tuKI.randint(0, len(YKHO.grid[0]) - 1))
azXi = set([yKcO])
YKHO._createPath(yKcO, azXi)
yKcO = (tuKI.randint(0, len(YKHO.grid) - 1), 0)
Imx0 =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C6M2(TVTK=20, H2v2=20):\n r8hN = gHhh(TVTK, H2v2)\n r8hN.randomize()\n return r8hN",
"def HSWm(zNig):\n N06i = JBVv.generate_dot_positions(zNig.x, zNig.y)\n TxAA = JBVv.create_grid_string(N06i, zNig.x, zNig.y)\n return TxAA",
"def Rfe7(HN6s, co3n, rp9O):\n QNvB = tuKI.randrange(0, HN6s... | [
"0.81536824",
"0.7654686",
"0.72348464",
"0.70972234",
"0.7012057",
"0.6809065",
"0.6768927",
"0.66074973",
"0.6593092",
"0.65481275",
"0.6396931",
"0.63291836",
"0.63126177",
"0.6284645",
"0.6275926",
"0.627424",
"0.6270308",
"0.625854",
"0.62200063",
"0.6209391",
"0.6031401... | 0.6237441 | 18 |
Return a Manifest parsed from the file at `location` or None if this cannot be parsed. | def Lb40(Rci7):
Tuqy = 'r'
with open(Rci7, Tuqy) as Kz8N:
return hWFo(Kz8N.read()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hfK9(Rci7):\n if not T_Ry(Rci7):\n return\n YUJx = WI8m()\n K3_f = YUJx.parse_spec(Rci7)\n return Vjkf(K3_f)",
"def NMoC(YKHO, Rci7):\n assert Rci7\n try:\n return Fnhy(YKHO.cookie, Rci7)\n except:\n try:\n AgJ6 = Rci7.encode('utf-8')\n return F... | [
"0.58562344",
"0.58349985",
"0.58210677",
"0.57527477",
"0.55973893",
"0.5497127",
"0.53391445",
"0.52457935",
"0.52388185",
"0.5170804",
"0.5119593",
"0.50760597",
"0.5070068",
"0.5002711",
"0.49651408",
"0.49273306",
"0.49158376",
"0.49129593",
"0.49103758",
"0.49025667",
"... | 0.7987999 | 0 |
Get the variant record for a specific variant | def FLAV(YKHO, v0pW, *Uusk, **B2fa):
cL6_ = 'vcf_%s' % str(v0pW)
if cL6_ not in YKHO._obj:
raise AttributeError("Could not find chromosome '%s'" % v0pW)
return YKHO._obj[cL6_].get_var(v0pW, *Uusk, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fVBa(TpbX):\n pPTc = Vq7P.get(lambda KCHu: KCHu.id == TpbX and KCHu.deletedAt is None)\n if pPTc is None:\n return (pPTc, 'Variant Not Found !')\n return (pPTc, '')",
"def acg8(pPTc):\n if isinstance(pPTc, dict) and 'dependencies' in pPTc:\n return pPTc\n if isinstance(pPTc, dict... | [
"0.6785357",
"0.6437172",
"0.642053",
"0.6210719",
"0.61327404",
"0.61224264",
"0.6091645",
"0.60727954",
"0.59721285",
"0.59281015",
"0.5904911",
"0.57644695",
"0.57592535",
"0.57436377",
"0.5742235",
"0.57272667",
"0.5691172",
"0.56856006",
"0.56748956",
"0.5646046",
"0.564... | 0.0 | -1 |
check if the length of the key is exactly four characters and raise an exception if it isn't ) | def gyqr(PAmf):
if len(PAmf) != 4:
raise LdsH("'%s': EGI wants the key to be exactly four characters!" % (PAmf,))
else:
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oqfj(BWXx):\n if not len(BWXx) == 32:\n raise sUXu('Value must be a string containing 32 alphanumeric characters')",
"def TSw_(PAmf):\n if type(PAmf) != type(''):\n raise LdsH(\"'%s': EGI wants the key to be four _characters_ (not %s) !\" % (type(PAmf),))\n else:\n return True",... | [
"0.72827256",
"0.7258681",
"0.70289433",
"0.65476596",
"0.64192337",
"0.6391955",
"0.63831055",
"0.6372131",
"0.63249785",
"0.6269419",
"0.62655115",
"0.62018806",
"0.6201516",
"0.6145788",
"0.61211675",
"0.61047417",
"0.6002564",
"0.5986112",
"0.59737736",
"0.596418",
"0.592... | 0.89149225 | 0 |
use this function to help convert the XYZ color to Lab color | def ai9l(a1PO):
ai9l = a1PO ** (1.0 / 3.0) if a1PO > 0.008856 else 7.787 * a1PO + 4 / 29
return ai9l | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ut4u(J3tW, *qIxc, **B2fa):\n l5i_ = J3tW.get_illuminant_xyz()\n aiVP = (J3tW.lab_l + 16.0) / 116.0\n mvR3 = J3tW.lab_a / 500.0 + aiVP\n qCCG = aiVP - J3tW.lab_b / 200.0\n if epAf.pow(aiVP, 3) > Xysb.CIE_E:\n aiVP = epAf.pow(aiVP, 3)\n else:\n aiVP = (aiVP - 16.0 / 116.0) / 7.787... | [
"0.80680877",
"0.8039829",
"0.79639745",
"0.79218674",
"0.7571032",
"0.75506425",
"0.7220851",
"0.7195475",
"0.7195235",
"0.6910048",
"0.68040377",
"0.6740893",
"0.6738716",
"0.67074794",
"0.6666223",
"0.66342336",
"0.6604",
"0.6582574",
"0.6561643",
"0.6557854",
"0.65265197"... | 0.0 | -1 |
Checks whether the other object is precisely of type Pred | def xa14(YKHO, Elif):
return type(Elif) == au80 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TPjt(YKHO, Elif):\n return isinstance(Elif, au80)",
"def Zcf_(YKHO, Elif):\n return type(Elif) == au80 or (isinstance(Elif, wdRj) and Elif <= YKHO)",
"def Zcf_(YKHO, Elif):\n return type(Elif) == au80 or (isinstance(Elif, nRDJ) and Elif <= YKHO)",
"def S0Wr(YKHO, lgNN, WKvO):\n if isinstance(... | [
"0.7989573",
"0.691933",
"0.65437293",
"0.6371689",
"0.62266195",
"0.6081958",
"0.6079807",
"0.5973649",
"0.57671505",
"0.5752512",
"0.5745007",
"0.5717215",
"0.56954515",
"0.5656266",
"0.561868",
"0.5594256",
"0.55892855",
"0.55669737",
"0.5541569",
"0.5539564",
"0.55233693"... | 0.788401 | 1 |
Checks whether the other object is a Pred (including subclasses) | def TPjt(YKHO, Elif):
return isinstance(Elif, au80) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return type(Elif) == au80",
"def Zcf_(YKHO, Elif):\n return type(Elif) == au80 or (isinstance(Elif, wdRj) and Elif <= YKHO)",
"def Zcf_(YKHO, Elif):\n return type(Elif) == au80 or (isinstance(Elif, nRDJ) and Elif <= YKHO)",
"def S0Wr(YKHO, lgNN, WKvO):\n if isinstance(lgNN... | [
"0.72877574",
"0.6560735",
"0.6254987",
"0.60644215",
"0.6023281",
"0.59898055",
"0.5831223",
"0.57459927",
"0.573637",
"0.5680956",
"0.5669229",
"0.55886406",
"0.55696404",
"0.5550624",
"0.5522853",
"0.5522019",
"0.55095553",
"0.55095553",
"0.55082124",
"0.5502657",
"0.54914... | 0.76817876 | 0 |
Return a string, with leading underscore | def zAg0(YKHO):
if YKHO.sense:
return '_{}_{}_{}'.format(*YKHO)
else:
return '_{}_{}'.format(*YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A5d0(l5Ny):\n return f'__{l5Ny}__'",
"def QoZA(l5Ny):\n return l5Ny.replace(' ', '__')",
"def MD47(Emd4, H5ew):\n try:\n return H5ew.replace('-', '_')\n except AttributeError:\n return H5ew",
"def QoZA(vIwR):\n vIwR = ZbWC.sub('([A-Z]+)([A-Z][a-z])', '\\\\1_\\\\2', vIwR)\n ... | [
"0.80002666",
"0.79894155",
"0.78204006",
"0.76461875",
"0.7317165",
"0.7145789",
"0.71382326",
"0.70918024",
"0.6994601",
"0.68601984",
"0.685701",
"0.67795587",
"0.6767514",
"0.67275536",
"0.67186755",
"0.6694951",
"0.6694092",
"0.66866255",
"0.6668597",
"0.660507",
"0.6565... | 0.0 | -1 |
Checks whether the other GPred underspecifies or equals this GPred | def Zcf_(YKHO, Elif):
return type(Elif) == au80 or (isinstance(Elif, nRDJ) and Elif <= YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TPjt(YKHO, Elif):\n return isinstance(Elif, nRDJ) and (YKHO.name == '?' or YKHO.name == Elif.name)",
"def Zcf_(YKHO, Elif):\n return type(Elif) == au80 or (isinstance(Elif, wdRj) and Elif <= YKHO)",
"def xa14(YKHO, Elif):\n return type(Elif) == au80",
"def xa14(YKHO, Elif):\n try:\n re... | [
"0.7768122",
"0.7301095",
"0.724538",
"0.68995285",
"0.6839322",
"0.68281305",
"0.67866725",
"0.6769135",
"0.6765716",
"0.6674404",
"0.6570947",
"0.65578675",
"0.6503561",
"0.6490967",
"0.6480386",
"0.64562446",
"0.64560777",
"0.64406484",
"0.6425388",
"0.64242107",
"0.641671... | 0.7680136 | 1 |
Instantiate from a dictionary mapping features to values | def Tljw(Emd4, cmPJ):
if 'cvarsort' in cmPJ and cmPJ['cvarsort'] != Emd4.cvarsort:
raise dHJr('{} must have cvarsort {}, not {}'.format(Emd4.__name__, Emd4.cvarsort, cmPJ['cvarsort']))
return Emd4(**{H5ew: BWXx for H5ew, BWXx in cmPJ.items() if H5ew != 'cvarsort'}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jG8h(Emd4, qHj0) -> 'Features':\n return gnPz.deserialize_model(qHj0, Emd4)",
"def a2RA(Csk6):\n eHNT = KGJO.Feature(None, KGJO.Dictionary(Csk6))\n return eHNT",
"def U7Mr(cmPJ):\n bySB = {}\n for G1Hx, Ty9i in jKi7.iteritems(cmPJ):\n bySB[G1Hx] = ZylS.train.Feature(int64_list=ZylS.tr... | [
"0.6945418",
"0.6687065",
"0.64480686",
"0.6420319",
"0.6304808",
"0.6287154",
"0.6133221",
"0.60973674",
"0.6094694",
"0.6035275",
"0.600433",
"0.6002844",
"0.59536535",
"0.59388053",
"0.5912897",
"0.5825443",
"0.5800749",
"0.5800749",
"0.5788094",
"0.5785598",
"0.5770132",
... | 0.0 | -1 |
Checks whether this Sortinfo underspecifies or equals the other Sortinfo. Features can be underspecified using '?', or 'u', or None. | def TPjt(YKHO, Elif):
return (YKHO.cvarsort == 'i' or YKHO.cvarsort == Elif.cvarsort) and all((Elif[H5ew] == BWXx for H5ew, BWXx in YKHO.iter_specified())) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n if not isinstance(Elif, b1Ws):\n return False\n return YKHO.__dict__ == Elif.__dict__",
"def xa14(YKHO, Elif):\n return isinstance(Elif, type(YKHO)) and YKHO.get_all_features() == Elif.get_all_features()",
"def Aicm(YKHO, Elif):\n return eHkp(type(YKHO), type(Elif)) o... | [
"0.6070401",
"0.5863833",
"0.5821739",
"0.57886076",
"0.57441217",
"0.57098776",
"0.56863517",
"0.56498265",
"0.5561309",
"0.5538162",
"0.55137753",
"0.54744035",
"0.54550236",
"0.5426506",
"0.5401985",
"0.53902215",
"0.5379935",
"0.53799117",
"0.5349858",
"0.53330594",
"0.53... | 0.5760416 | 4 |
Construct a datastructure from structured data contained in a json file. | def pktP(Emd4, VqRE):
import os
if os.path.isfile(VqRE) == False:
FBcw = Emd4()
FBcw.to_json(VqRE)
print('New Json Created: Type=', FBcw.data['type'])
return FBcw
with open(VqRE, 'r') as ytgA:
nPrm = qQXR.load(ytgA)
print('Json Loaded: Type=', nPrm['type'])
as... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def refC(Emd4, wM3v):\n with ZylS.io.gfile.GFile(wM3v, 'r') as N5Pj:\n l5Ny = N5Pj.read()\n return Emd4(**qQXR.loads(l5Ny))",
"def pktP(Emd4, IznC):\n Csk6 = PSj2(IznC)\n return Emd4.from_dict(Csk6)",
"def refC(Emd4, wM3v):\n with ZylS.io.gfile.GFile(wM3v, 'r') as N5Pj:\n l5Ny = N5... | [
"0.70568234",
"0.70331746",
"0.6935122",
"0.6907662",
"0.68670607",
"0.686026",
"0.68299675",
"0.680536",
"0.680536",
"0.680536",
"0.6803864",
"0.67914397",
"0.6778058",
"0.67400634",
"0.6697472",
"0.6697084",
"0.6631146",
"0.66303545",
"0.6536246",
"0.65114516",
"0.6479827",... | 0.6241394 | 29 |
If user voted before for some post, the view will not add same record to DB. | def sUcV(YKHO):
YKHO.client.login(username='John', password='newpass1234')
GeZm = len(uOUu.objects.all())
try:
with Kh6j.atomic():
Ow0d = YKHO.client.post('/posts/1/vote/', {'vote': '1'})
except:
pass
YKHO.assertEqual(len(uOUu.objects.all()), GeZm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tfu9(QePW):\n if QePW.method == 'POST':\n CBIr = QePW.user\n Fi3q = QePW.data['post_id']\n try:\n m8z6 = T97t.objects.get(pk=Fi3q)\n except T97t.DoesNotExist:\n return oGir(status=jGRS.HTTP_404_NOT_FOUND)\n YtOc = QePW.data['is_positive'].title() == '... | [
"0.65567726",
"0.6152567",
"0.60525256",
"0.60126126",
"0.5974876",
"0.59715676",
"0.5938795",
"0.5910688",
"0.5817493",
"0.5779226",
"0.5763908",
"0.57561576",
"0.5731106",
"0.5719798",
"0.5673531",
"0.56513643",
"0.56011975",
"0.557869",
"0.5566654",
"0.55463964",
"0.551864... | 0.57435757 | 12 |
Create the api flask app | def LUif(Zu8l):
from webapi.models import User, Event, Rsvp
nNXP = hqYt('api', __name__)
P4t4 = BscO(__name__, instance_relative_config=True)
CyRP(P4t4)
mATr(P4t4, template_file='docs.yml')
P4t4.config.from_pyfile('config.py')
P4t4.config.from_object(dLQw[Zu8l])
P4t4.config['SQLALCHEMY_T... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LUif():\n P4t4 = L2w0(__name__, instance_relative_config=False)\n P4t4.config.from_object('config.Config')\n nNXP = fyIx(P4t4)\n with P4t4.app_context():\n from .flights import TicketRoute, FlightRoute\n nNXP.add_resource(TicketRoute, '/api/tickets')\n nNXP.add_resource(FlightR... | [
"0.8327965",
"0.8242621",
"0.8167216",
"0.81209785",
"0.811774",
"0.8066591",
"0.80617046",
"0.80022544",
"0.79124504",
"0.7880826",
"0.7843001",
"0.78110445",
"0.7779304",
"0.7741042",
"0.77386755",
"0.7710511",
"0.7679554",
"0.765608",
"0.7652868",
"0.7588703",
"0.7586857",... | 0.78834623 | 9 |
Class constructor, takes the same arguments as the builtin dict class. _factory argument expects dictlike class (dict by default). OrderedDict is useful to use. | def FIMM(YKHO, Q6uT=None, gXBk=dict, **B2fa):
YKHO._factory = gXBk
YKHO.__dict__ = gXBk()
YKHO.__dict__.update(Q6uT or [], **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Y8ds=None, **B2fa):\n pass",
"def FIMM(YKHO, i_PC, *qIxc, **B2fa):\n super(j7Hg, YKHO).__init__(*qIxc, **B2fa)\n YKHO.factory = i_PC",
"def FIMM(YKHO, *qIxc, **B2fa):\n dict.__init__(YKHO, *qIxc, **B2fa)",
"def FIMM(YKHO, dict):\n YKHO.dict = dict",
"def FIMM(YKHO, dict):\n ... | [
"0.75063807",
"0.7486621",
"0.7137487",
"0.69422853",
"0.69422853",
"0.68224156",
"0.67333937",
"0.66059273",
"0.6483352",
"0.6449121",
"0.6434168",
"0.6410364",
"0.6392783",
"0.63687307",
"0.6355196",
"0.633188",
"0.63273394",
"0.63273394",
"0.63139564",
"0.6303666",
"0.6282... | 0.6537128 | 8 |
Returns true if all positions overlap within a certain threshold | def yHH9(FJhS, Yk_P, idx7):
cntZ = [int(oeNL) for oeNL in FJhS[:-2].replace('-', ':').split(':')[1:]]
CsFy = [int(oeNL) for oeNL in Yk_P[:-2].replace('-', ':').split(':')[1:]]
if all([abs(cntZ[0] - CsFy[0]) <= idx7, cntZ[1] == CsFy[1], cntZ[2] == CsFy[2], abs(cntZ[3] - CsFy[3]) <= idx7]):
return Tru... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hqA6(jvSB, UZ_k, yHH9=200):\n for THkp in jvSB:\n JSN7 = THkp[2:4]\n jNOo = UZ_k[2:4]\n if a4Si(jNOo, JSN7) >= yHH9:\n return True\n return False",
"def kcgv(o4D3, s1k6, ajwV, xMw6):\n if o4D3 + s1k6 < ajwV - xMw6:\n return False\n if o4D3 - s1k6 > ajwV + xM... | [
"0.69130903",
"0.6816558",
"0.6797546",
"0.67819244",
"0.6711758",
"0.66718805",
"0.66590476",
"0.6657999",
"0.6631553",
"0.659259",
"0.6582453",
"0.65530163",
"0.6528308",
"0.65192884",
"0.6500429",
"0.6482811",
"0.6471511",
"0.64666826",
"0.64298123",
"0.6425962",
"0.642453... | 0.0 | -1 |
Get OS Version for instances. | def Cu3Z(KAOR):
if KAOR.cloud == 'aws':
x0hE = iVGz.client('ec2', KAOR.region)
r8m5 = x0hE.describe_instances(InstanceIds=[KAOR.id])['Reservations'][0]['Instances'][0]['ImageId']
return '16.04' if '16.04' in x0hE.describe_images(ImageIds=[r8m5])['Images'][0]['Name'] else '14.04'
if KAOR.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cu3Z(YKHO):\n return gTEQ('PrlVmCfg_GetOsVersion', YKHO.handle)",
"def vr5H(YKHO):\n return gTEQ('PrlFoundVmInfo_GetOSVersion', YKHO.handle)",
"def Cu3Z(YKHO):\n return gTEQ('PrlSrvInfo_GetOsVersion', YKHO.handle)",
"def LioG(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'os_version')",
... | [
"0.79875946",
"0.79586005",
"0.7936079",
"0.7702793",
"0.76817834",
"0.75905967",
"0.7469308",
"0.7279414",
"0.72768956",
"0.71630955",
"0.7093232",
"0.69964516",
"0.6866415",
"0.6838467",
"0.67755955",
"0.6670259",
"0.6637329",
"0.6612405",
"0.6551434",
"0.6539134",
"0.65291... | 0.7800671 | 3 |
Transforms a 3D image array into a stack of strided squares | def LrO4(VXjJ, Ot1W=224, _0fC=32):
for Npgh in range(3):
YwkQ = VXjJ[:, :, Npgh]
pPbt, nJ9F, nxyw = _K5G(YwkQ, kernel_size=Ot1W, stride=_0fC)
if Npgh == 0:
xiPz = oyIN.zeros(pPbt.shape + (3,), dtype=oyIN.uint8)
xiPz[:, :, :, :, 0] = pPbt
else:
xiPz... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MNdK(aPED):\n aPED /= 127.5\n aPED -= 1.0\n return aPED",
"def we4a(oEeO):\n E5BI = []\n for VXjJ in oEeO:\n if VXjJ.ndim == 2:\n E5BI.append(VXjJ[XTiz.newaxis, ...])\n elif VXjJ.ndim == 3:\n E5BI.append(VXjJ)\n return XTiz.concatenate(E5BI, axis=0)",
"... | [
"0.6696273",
"0.649901",
"0.64032286",
"0.6378003",
"0.6369362",
"0.62527514",
"0.6252344",
"0.62478673",
"0.62177765",
"0.62166095",
"0.62133825",
"0.6212621",
"0.6197302",
"0.61411",
"0.6066334",
"0.60573846",
"0.6042998",
"0.60328686",
"0.60328686",
"0.60328686",
"0.595025... | 0.56808317 | 51 |
Calculates the IoU score given two boxes. | def oAjl(HtXD, ROGq):
FJ23 = max(HtXD[0], ROGq[0])
cpky = max(HtXD[1], ROGq[1])
lCRk = min(HtXD[2], ROGq[2])
w871 = min(HtXD[3], ROGq[3])
c5_M = max(0, lCRk - FJ23 + 0) * max(0, w871 - cpky + 0)
aipi = (HtXD[2] - HtXD[0] + 1) * (HtXD[3] - HtXD[1] + 1)
g94v = (ROGq[2] - ROGq[0] + 1) * (ROGq[3... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tj3g(YKHO, knvf, IkxF):\n FvNp, se9S, HJ6y, TReR = map(int, knvf)\n hReE, jsVl, ogd_, vx1U = map(int, IkxF)\n '\\n\\t\\t\\tbox has format (x1,y1,x2,y2)\\n\\t\\t\\twhere x1,y1 is top left corner\\n\\t\\t\\tand x2,y2 is bottom right corner\\n\\t\\t'\n Jw7X = min(HJ6y, ogd_) - max(FvNp, hReE)\n eUW... | [
"0.8232943",
"0.7747916",
"0.7723805",
"0.77119595",
"0.7681055",
"0.7601882",
"0.74615335",
"0.74348414",
"0.7381097",
"0.73438334",
"0.73378426",
"0.7334757",
"0.7329097",
"0.7280645",
"0.72627085",
"0.72627085",
"0.72585803",
"0.7240356",
"0.7240356",
"0.72254574",
"0.7222... | 0.0 | -1 |
Run nonmax suppression algorithm on bounding boxes. Delete "other" boxes from predictions. | def yxcb(S7xM, WErR, nJ9F, nxyw, HHMN, bQTK=0.1):
eDGE = oyIN.arange(0, len(S7xM), dtype='int')
lXgg = []
hZU1 = [nvEb != 'other' for nvEb in S7xM]
eDGE = list(eDGE[hZU1])
while len(eDGE) > 0:
dnKM = WErR[eDGE].argmax()
EfUA = eDGE.pop(dnKM)
lXgg.append(EfUA)
IZc0 = [... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zh61(YKHO, F29b, grDl, nZlY):\n cgXv = []\n meWZ = []\n ReDT = []\n for UXqs in range(len(YKHO.class_names)):\n oUSw = []\n nPSo = []\n MSb5 = []\n for YRbF in range(len(grDl)):\n if grDl[YRbF] == UXqs:\n oUSw.append(F29b[YRbF])\n ... | [
"0.7609908",
"0.7309103",
"0.7156956",
"0.7019556",
"0.6995653",
"0.6962792",
"0.6932959",
"0.68343633",
"0.6735911",
"0.67253315",
"0.6664882",
"0.66249186",
"0.66177607",
"0.6614669",
"0.6520627",
"0.65198725",
"0.64789647",
"0.6394972",
"0.6344385",
"0.6342206",
"0.6339941... | 0.712029 | 3 |
Sanitizes the reviewed string by removing punctuation and stop words | def aSeI(Slbv):
x0SS = Slbv.translate(Slbv.maketrans(vIwR.punctuation, ' ' * len(vIwR.punctuation)))
x0SS = ZbWC.sub(' +', ' ', x0SS)
V22M = Dhdw.word_tokenize(x0SS)
swcj = []
for yzQ0 in V22M:
if yzQ0 not in hwHU:
swcj.append(yzQ0)
mkhU = Dhdw.stem.snowball.SnowballStemmer('... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WasB(YKHO, KCHu):\n KCHu = KCHu.lower()\n for WKvO in KCHu:\n if WKvO in pC3l:\n KCHu = KCHu.replace(WKvO, '')\n return KCHu",
"def QrZ9(YKHO, l5Ny):\n l5Ny = rKuS(l5Ny, 'lxml').text\n l5Ny = l5Ny.lower()\n l5Ny = wmai.sub(' ', l5Ny)\n l5Ny = fSUb.sub('', l5Ny)\n l5N... | [
"0.78122836",
"0.7746282",
"0.7746282",
"0.7746282",
"0.7746282",
"0.7746282",
"0.7746282",
"0.7641063",
"0.75522417",
"0.7552097",
"0.7534518",
"0.75256824",
"0.7490996",
"0.7484867",
"0.7478481",
"0.7422949",
"0.74216217",
"0.7402721",
"0.7368999",
"0.7368086",
"0.7355277",... | 0.7883673 | 0 |
Loads a pretrained resnet for the vision model. | def _gAJ(ApAG=(224, 224, 3), _mSQ='imagenet'):
rvDU = ZylS.keras.applications.ResNet50V2(weights=_mSQ, include_top=False, input_shape=ApAG)
pKvt = ZylS.keras.layers.Input(shape=ApAG)
WKvO = rvDU(pKvt)
WKvO = c9xy.GlobalAveragePooling2D()(WKvO)
qAA9 = WKvO.shape[-1]
j_yl = ZylS.keras.Model(pKvt, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GsCc(mL4f=False):\n C3ST = S1Vm(em1m, [3, 6, 10, 3])\n if mL4f:\n pass\n return C3ST",
"def CLgi(JACg, XkN1, fhcK, mL4f, Eb4t, **B2fa):\n C3ST = S1Vm(XkN1, fhcK, **B2fa)\n if mL4f:\n xA7f = LwA_(mDCG[JACg], progress=Eb4t)\n C3ST.load_state_dict(xA7f)\n return C3ST",
"... | [
"0.74834746",
"0.73818487",
"0.7348241",
"0.7264618",
"0.71854216",
"0.718426",
"0.71669805",
"0.7113567",
"0.71053666",
"0.7078506",
"0.7078506",
"0.7078506",
"0.7078506",
"0.7078506",
"0.7058108",
"0.70563084",
"0.70329475",
"0.70329475",
"0.70329475",
"0.70091623",
"0.6969... | 0.0 | -1 |
Patch {resource} with 'identifier'. | def Qtru(YKHO, qv1X, _hkX, *qIxc, **NArs):
KAOR = YKHO.get_object(**NArs)
YKHO.save_object(qv1X.params, qv1X, _hkX, KAOR, **NArs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Po4F(YKHO, Eorv, nPrm, pan_=None, b7IC='patch', **B2fa):\n return YKHO._modify_resource(Eorv, nPrm, pan_, b7IC, **B2fa)",
"def Po4F(YKHO, Po4F):\n if not Po4F:\n raise kIbg('Patch data is required to patch a resource')\n if not YKHO.id:\n raise kIbg('Resource ID is required to patch a ... | [
"0.71194124",
"0.6724157",
"0.65292746",
"0.6528879",
"0.649335",
"0.6492151",
"0.64744544",
"0.64331853",
"0.6411547",
"0.629487",
"0.6292101",
"0.6288072",
"0.6262141",
"0.62542963",
"0.62542963",
"0.62542963",
"0.6169901",
"0.6167785",
"0.6158397",
"0.615485",
"0.61273533"... | 0.0 | -1 |
Get {resource} version corresponding to 'version' number. | def hJbn(YKHO, qv1X, _hkX, DpZH, **B2fa):
KAOR = YKHO.get_object(**B2fa)
DpZH = KAOR.load_version(DpZH)
if not DpZH:
raise aazL.HTTPNotFound()
_hkX.json(**DpZH.as_resource) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q1_x(YKHO) -> str:\n return YKHO._version",
"def jUoO(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'resource_version')",
"def ulUe(OfSO, pNGv, QePW):\n return OfSO.versions[pNGv - 1]",
"def kaPv(YKHO):\n return YKHO.__make_api_call('get/version')",
"def kaPv(YKHO):\n bD7m = '{... | [
"0.733593",
"0.716252",
"0.71117955",
"0.70612",
"0.694454",
"0.6934818",
"0.691447",
"0.682851",
"0.6801032",
"0.67890674",
"0.6756802",
"0.66987455",
"0.6673594",
"0.66270727",
"0.66244024",
"0.6616252",
"0.65965587",
"0.65735924",
"0.6571601",
"0.65665656",
"0.6533844",
... | 0.6608656 | 16 |
Returns the policy network. | def eVVj(YKHO):
return YKHO.__network | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oV_0(YKHO) -> 'outputs.NetworkPolicyResponse':\n return qe4Y.get(YKHO, 'network_policy')",
"def oV_0(YKHO) -> h8nf[qe4Y.Input[uLKX[str, 'NetworkPolicy']]]:\n return qe4Y.get(YKHO, 'network_policy')",
"def XHTY(YKHO):\n return YKHO._network",
"def XHTY(YKHO):\n return YKHO.get_ip_network()[-1]... | [
"0.85800314",
"0.8183918",
"0.7382225",
"0.7328549",
"0.7209905",
"0.7122168",
"0.7122168",
"0.7122168",
"0.7104112",
"0.7013619",
"0.69694334",
"0.68539214",
"0.6714824",
"0.66980344",
"0.6639451",
"0.657638",
"0.65745556",
"0.6526325",
"0.636042",
"0.6330798",
"0.6295388",
... | 0.71662897 | 5 |
Constructor for the Hash Map. Initiates an empty array with 20 slots | def FIMM(YKHO):
YKHO._items = [[] for bGrB in range(20)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.hashmap = [[] for bGrB in range(YKHO._cap)]",
"def FIMM(YKHO):\n YKHO.hashmap = [[[], []] for bGrB in range(YKHO.N)]",
"def FIMM(YKHO):\n YKHO.size = 10000\n YKHO.hashmap = [None] * YKHO.size",
"def FIMM(YKHO):\n YKHO.elements_count: int = 0\n YKHO.capacity: int = 163... | [
"0.80606514",
"0.8022576",
"0.7895672",
"0.7743391",
"0.7635444",
"0.7609988",
"0.7579706",
"0.7505076",
"0.7503903",
"0.7483324",
"0.7423699",
"0.74089164",
"0.7358948",
"0.73384506",
"0.73104066",
"0.72739786",
"0.72486436",
"0.7229644",
"0.7209098",
"0.72066134",
"0.720186... | 0.66458315 | 58 |
Add image summary of input attention probabilities. | def aZ7M(YKHO, mWFP, qg47):
def Cxft(LZpg, MPlV, KTO8, leAC):
kj9G.AddImage(LZpg, MPlV, KTO8, title=leAC)
MPlV.set_ylabel(kj9G.ToUnicode('Output sequence index'), wrap=True)
MPlV.set_xlabel(kj9G.ToUnicode('Input sequence index'), wrap=True)
with kj9G.MatplotlibFigureSummary(mWFP + '/att... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qQIR(rzq2):\n hlkr = rzq2\n hlkr = ZylS.transpose(hlkr, [1, 2, 0])\n hlkr = ZylS.nn.l2_normalize(hlkr, axis=2, name='normalized_attention')\n hlkr *= 255\n return hlkr",
"def TTPo(YKHO, g4y1):\n c3Oi = nMvt.batch_dot(x=g4y1, y=nMvt.permute_dimensions(g4y1, pattern=(0, 2, 1)))\n return nM... | [
"0.62113434",
"0.57106376",
"0.5489736",
"0.5444808",
"0.54258764",
"0.5422566",
"0.5287773",
"0.5283039",
"0.5242512",
"0.5225544",
"0.52208567",
"0.52154243",
"0.52083695",
"0.5206032",
"0.51894885",
"0.5148222",
"0.51121503",
"0.5079399",
"0.50693566",
"0.50638986",
"0.506... | 0.69535536 | 0 |
Uses path of this file to determine location of the data directory required for testing YAML files | def xe5l(CqrQ: str='tests', Wxm9: str='data') -> str:
pmON = ''
RVjQ = Hy7s.path.abspath(xAKo).split(Hy7s.path.sep)
try:
Vfgc = RVjQ.index(CqrQ)
except ValueError:
G9jH.error('Unable to determine test directory')
else:
BjEE = Hy7s.path.sep.join(RVjQ[:Vfgc + 1])
pmON =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WLhE(YKHO):\n return Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.abspath(xAKo)), 'data')",
"def h_xa():\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'test', 'data')",
"def h_xa():\n return Hy7s.path.join(Hy7s.path.dirname(D40k), 'test', 'data')",
"def Eitm():\n return Hy7s.path.abspath(Hy7... | [
"0.7702016",
"0.74392825",
"0.73016876",
"0.7264485",
"0.7111394",
"0.70671517",
"0.6826767",
"0.6821471",
"0.6690712",
"0.6672021",
"0.6651541",
"0.6612191",
"0.66018",
"0.65833336",
"0.65804845",
"0.6536781",
"0.65306693",
"0.6521055",
"0.65179825",
"0.65121657",
"0.6488952... | 0.0 | -1 |
Override 'get_queryset' method in order to customize filter | def k66M(YKHO):
SR0I = YKHO.queryset.all()
xDcj = YKHO.request.query_params.get('q', None)
if xDcj:
SR0I = SR0I.filter(T8ck(pk__icontains=xDcj) | T8ck(customer__name__icontains=xDcj))
vgXP = int(YKHO.request.query_params.get('offset', 0))
qoqK = int(YKHO.request.query_params.get('limit', gCu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k66M(YKHO):\n umWR = super().get_queryset()\n HI6H = YKHO.request.GET.get('search_box')\n if HI6H is not None:\n umWR = umWR.search_by(HI6H)\n return umWR",
"def k66M(YKHO):\n return None",
"def k66M(YKHO):\n return None",
"def k66M(YKHO, QePW, SR0I):\n return SR0I",
"def k6... | [
"0.76590014",
"0.7476171",
"0.7476171",
"0.74560636",
"0.7435379",
"0.7390569",
"0.73302686",
"0.7254939",
"0.71744686",
"0.7169471",
"0.7166284",
"0.7161659",
"0.7134327",
"0.71224046",
"0.71109146",
"0.7102263",
"0.7079528",
"0.7068127",
"0.705371",
"0.70483613",
"0.7030815... | 0.0 | -1 |
Retrieves a list that describes one or more specified Directory Config objects for AppStream 2.0, if the names for these objects are provided. Otherwise, all Directory Config objects in the account are described. These objects include the information required to join streaming instances to an Active Directory domain. A... | def ucB8(EALc=None, xTyj=None, aSFH=None):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def prNl(ZrNc: str):\n for GPtr in L8Py:\n if ZrNc in GPtr['streamers']:\n return GPtr['streamers']\n return",
"def Ot2k(Ylbp, OaeV):\n if WZJ4(Ylbp):\n return W2jj(Ylbp, OaeV)\n Nqlg = []\n for GPtr in Ylbp['configs']:\n zFiD = '* ' if GPtr['current'] else ' '\n ... | [
"0.5709695",
"0.5629899",
"0.55749893",
"0.55571437",
"0.54638493",
"0.54361755",
"0.5352287",
"0.53096795",
"0.5293821",
"0.5261037",
"0.5232696",
"0.5214524",
"0.5194618",
"0.5183116",
"0.5160518",
"0.5153592",
"0.51518035",
"0.5096261",
"0.5083338",
"0.50745064",
"0.506805... | 0.5920142 | 0 |
Retrieves a list of all tags for the specified AppStream 2.0 resource. You can tag AppStream 2.0 image builders, images, fleets, and stacks. For more information about tags, see Tagging Your Resources in the Amazon AppStream 2.0 Developer Guide . | def SkJ4(Q064=None):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def list(YKHO):\n return YKHO._post(request='list', uri=f8tE.TAGS.value).get('tags')",
"def list(YKHO):\n return YKHO._list('/tag', 'tag')",
"def wWtK(Q064=None):\n pass",
"def SkJ4(ISu2=None):\n pass",
"def YxY3(YKHO, j7HU):\n i9zE = iVGz.client('kinesis')\n PAlO = j7HU.split(':')[-1].sp... | [
"0.7247066",
"0.72314256",
"0.7172434",
"0.7153537",
"0.71357125",
"0.7064777",
"0.7002867",
"0.697742",
"0.68891263",
"0.68507856",
"0.68481565",
"0.6831018",
"0.6777414",
"0.67647344",
"0.6756973",
"0.67518383",
"0.6680134",
"0.66385937",
"0.6517758",
"0.6487143",
"0.645456... | 0.6992986 | 7 |