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 |
|---|---|---|---|---|---|---|
The JobConfigWriter constructor should raise an AssertionError if the 'num_of_derived_imls' parameter is specified with an invalid value. | def iECA(YKHO):
R7xe = 1234
YKHO.assertRaises(AssertionError, JYqv.JobConfigWriter, R7xe, derive_imls_from_vuln=True, num_of_derived_imls=0)
YKHO.assertRaises(AssertionError, JYqv.JobConfigWriter, R7xe, derive_imls_from_vuln=True, num_of_derived_imls=1)
YKHO.assertRaises(AssertionError, JYqv.JobConfigWr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mXcz(YKHO):\n JYqv.JobConfigWriter(1234, derive_imls_from_vuln=True, num_of_derived_imls=2)\n JYqv.JobConfigWriter(1234, derive_imls_from_vuln=True, num_of_derived_imls=25)\n JYqv.JobConfigWriter(1234, num_of_derived_imls=-2)\n JYqv.JobConfigWriter(1234, serialize_results_to_db=True)\n JYqv.JobC... | [
"0.71202236",
"0.5600095",
"0.5500832",
"0.52861285",
"0.52736104",
"0.5236715",
"0.5176728",
"0.5033004",
"0.49509338",
"0.49405283",
"0.49405283",
"0.49405283",
"0.4930075",
"0.4908208",
"0.48736063",
"0.4849452",
"0.48060822",
"0.47866508",
"0.47693413",
"0.47222376",
"0.4... | 0.7465089 | 0 |
Test that the JobConfigWriter constructor does not throw any errors with knowngood input combinations. | def mXcz(YKHO):
JYqv.JobConfigWriter(1234, derive_imls_from_vuln=True, num_of_derived_imls=2)
JYqv.JobConfigWriter(1234, derive_imls_from_vuln=True, num_of_derived_imls=25)
JYqv.JobConfigWriter(1234, num_of_derived_imls=-2)
JYqv.JobConfigWriter(1234, serialize_results_to_db=True)
JYqv.JobConfigWrite... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iECA(YKHO):\n R7xe = 1234\n YKHO.assertRaises(AssertionError, JYqv.JobConfigWriter, R7xe, derive_imls_from_vuln=True, num_of_derived_imls=0)\n YKHO.assertRaises(AssertionError, JYqv.JobConfigWriter, R7xe, derive_imls_from_vuln=True, num_of_derived_imls=1)\n YKHO.assertRaises(AssertionError, JYqv.Jo... | [
"0.69262516",
"0.66159654",
"0.6340037",
"0.6216784",
"0.6189592",
"0.61094993",
"0.6061986",
"0.59829265",
"0.5909848",
"0.590581",
"0.5855556",
"0.58407277",
"0.58407277",
"0.58280843",
"0.58157444",
"0.5802778",
"0.5784862",
"0.57807773",
"0.5776043",
"0.57735026",
"0.5771... | 0.8032045 | 0 |
Checks for the validity of bundle columns representing uncertainty. Returns 4 boolean pd.Series that represent where to index to replace values. | def xqvV(jQ3Z):
CQkj = ~jQ3Z['standard_error'].isnull() & (jQ3Z['standard_error'] > 0)
na1r.info(f'{sum(CQkj)} rows have standard error.')
QeV5 = ~jQ3Z['lower'].isnull() & ~jQ3Z['upper'].isnull()
na1r.info(f'{sum(QeV5)} rows have uncertainty.')
oMN9 = ~jQ3Z['effective_sample_size'].isnull() & (jQ3Z[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def soPZ(YKHO, B2fa):\n YDwv = len(B2fa.get('usecols', YKHO.columns)) - int(B2fa.get('index_col') is not None)\n return YDwv == 1",
"def DTsq(YTVa: pd.DataFrame) -> rLdf.Series:\n aiOv = [fvDH for fvDH in YTVa if fvDH.startswith('production')]\n Ylbp = (YTVa.fillna(0)[aiOv] < 500000).all(axis=1).asty... | [
"0.62554073",
"0.6209427",
"0.5967835",
"0.59532493",
"0.58542484",
"0.58215296",
"0.57008266",
"0.5644488",
"0.5643728",
"0.5637964",
"0.5636572",
"0.56258065",
"0.56111276",
"0.56030315",
"0.5594825",
"0.5574854",
"0.5544355",
"0.5536928",
"0.5500266",
"0.54898363",
"0.5482... | 0.6638859 | 0 |
Plots a CDF of `x_vals` on `axis` with the desired color, linestyle, label, and transparency (alpha) level. | def MT3C(mMG6, jDK_, qfpW='#a6bddb', Rw5g='-', UXqs=None, Cwt5=0.1):
F2BP = XAfe(mMG6)
Udli = oyIN.sort(oyIN.unique(mMG6))
b0EN = F2BP(Udli)
jDK_.plot(Udli, b0EN, c=qfpW, ls=Rw5g, alpha=Cwt5, label=UXqs, drawstyle='steps-post')
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yF6P(lTdq, dlth, gJ4K, aNZO=None, Uto2=None, NkkI=False, RKD7=False, lR77=None, iMGt='viridis', UNYr=[None, None], Cwt5=1, **YSA3):\n if aNZO is None:\n LZpg = QrM1.figure(figsize=(12, 7))\n aNZO = LZpg.add_subplot(111)\n if Uto2 is None:\n lTdq = oyIN.array(lTdq)\n vNyt = oyI... | [
"0.65436256",
"0.6113787",
"0.59230775",
"0.5912224",
"0.5894773",
"0.58846766",
"0.5828561",
"0.58273804",
"0.5802481",
"0.57807326",
"0.57756513",
"0.5763852",
"0.5753133",
"0.5722336",
"0.5699875",
"0.5649206",
"0.5636439",
"0.5632981",
"0.5596113",
"0.5590849",
"0.5587776... | 0.7388263 | 0 |
If given git log entry is of interest, return true | def agNo(cQXT):
if 'commit message' in cQXT:
if ZrXr.search(cQXT['commit message']) is not None:
return True
if 'commit' in cQXT and 'parent' in cQXT:
R_QJ = EvYR.git_diff_parents(cQXT['commit'])
if oXJ9.search(R_QJ) is not None:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YSJu(xXEl):\n print(xXEl)\n NBjn = Yn3K.Popen(['git', 'log'], cwd=xXEl, stdout=Yn3K.PIPE)\n try:\n return len(ZbWC.findall('pep8', NBjn.communicate()[0].decode('utf-8'))) > 2\n except UnicodeDecodeError:\n return False",
"def jFHS(YKHO, YPaw):\n F3jJ = atrW(YPaw.build.properties.... | [
"0.66103613",
"0.640905",
"0.64057803",
"0.6388903",
"0.6355329",
"0.6349632",
"0.6287735",
"0.6254126",
"0.6233616",
"0.61709154",
"0.614285",
"0.61376464",
"0.6124483",
"0.607414",
"0.60420734",
"0.6039858",
"0.60387665",
"0.6036822",
"0.6032558",
"0.6018064",
"0.6016436",
... | 0.7430028 | 0 |
Unwraps a function and returns the original function object in a nonblocking manner. | def XFw0(JfyU: Callable) -> YrBT:
try:
return tq_1.unwrap(JfyU)
except ValueError:
return JfyU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XFw0(YKHO, m2Zb):\n XFw0(m2Zb, YKHO._wrapper_map.pop(YWvJ(kI0w, m2Zb)))",
"def XFw0(JfyU, JCyR=None):\n if JCyR is None:\n Y_xU = lambda eHNT: hasattr(eHNT, '__wrapped__')\n else:\n Y_xU = lambda eHNT: hasattr(eHNT, '__wrapped__') and (not JCyR(eHNT))\n eHNT = JfyU\n i_PE = {id(J... | [
"0.71600014",
"0.71345466",
"0.6965765",
"0.6882753",
"0.6882753",
"0.6767232",
"0.622842",
"0.6216577",
"0.61820334",
"0.6026804",
"0.6020608",
"0.6015986",
"0.59832895",
"0.5978035",
"0.58645254",
"0.582649",
"0.5816354",
"0.5812749",
"0.5805049",
"0.58017915",
"0.57967603"... | 0.7355019 | 0 |
Return a set of all base modules detected in the provided class object. | def qdJG(jxGD: Type[VertaModelBase]) -> fHNa[str]:
aaXC = set()
for m2Zb in kJ2N(jxGD):
a4HF = m2Zb
G_nq = iJ_T(a4HF)
kZsJ = RcjZ(a4HF)
aaXC |= G_nq | kZsJ
return aaXC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KZ52(YKHO):\n return [r8hN for jzdc in vars(YKHO).values() if isinstance(jzdc, nX8V) for r8hN in jzdc.modules] + [YKHO]",
"def F63l(YKHO):\n KndY = {}\n yR_P = ANWz.import_module(YKHO.namespace)\n for ag0A in M7QU.iter_modules(yR_P.__path__, yR_P.__name__ + '.'):\n r9b6 = YKHO._get_classes... | [
"0.694947",
"0.69114834",
"0.67852575",
"0.6744311",
"0.6739425",
"0.67075557",
"0.665702",
"0.66025984",
"0.6559606",
"0.6558791",
"0.6528536",
"0.6523724",
"0.6496168",
"0.6495396",
"0.6464766",
"0.64555526",
"0.6428769",
"0.6397809",
"0.6391087",
"0.6371097",
"0.63598454",... | 0.6543879 | 10 |
Return a dictionary where the key is the name of the import module and the value is the list of possible distribution packages for each 3rdparty import module in the provided set that can be found in the locally installed package_distributions. | def fYqY(f4yx: Set[str]) -> cuzp[str, x1iM[str]]:
KrM1 = y6bI()
return {r8hN: KrM1.get(r8hN) for r8hN in f4yx if KrM1.get(r8hN)} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZcVV():\n global _DISTRIBUTIONS\n if RJqY is not None:\n return RJqY\n try:\n import importlib.metadata as _IPn\n except ImportError:\n import _IPn\n A37B = set()\n for pImw in _IPn.distributions():\n pmON = str(pImw.locate_file(''))\n yIVm = pImw.metadata\n... | [
"0.7179083",
"0.6659251",
"0.6475692",
"0.64368975",
"0.6431601",
"0.6427573",
"0.642384",
"0.6398954",
"0.625358",
"0.62476075",
"0.62462276",
"0.62378156",
"0.61364794",
"0.61293274",
"0.6112811",
"0.61102885",
"0.61002505",
"0.60883546",
"0.6065124",
"0.60141885",
"0.60087... | 0.7546814 | 0 |
r"""Rpc to replace a KubeRun resource. Only the spec and metadata labels and annotations are modifiable. After the Update request, KubeRun will work to make the 'status' match the requested 'spec'. May provide metadata.resourceVersion to enforce update from last read for optimistic concurrency control. | def IB2D(YKHO, QePW, jMd6=None):
GPtr = YKHO.GetMethodConfig('ReplaceKubeRun')
return YKHO._RunMethod(GPtr, QePW, global_params=jMd6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sarO(qIxc, DpZH):\n eHr0 = qIxc.CONCEPTS.tensorboard_run.Parse()\n qIxc.region = eHr0.AsDict()['locationsId']\n with wROM.AiplatformEndpointOverrides(DpZH, region=qIxc.region):\n try:\n khtY = x0hE.TensorboardRunsClient(version=DpZH).Patch(eHr0, qIxc)\n except UAju.NoFieldsSpe... | [
"0.6266048",
"0.60655355",
"0.60503286",
"0.59776527",
"0.5923648",
"0.58704555",
"0.58303624",
"0.5825656",
"0.5820943",
"0.5703861",
"0.562597",
"0.5589559",
"0.55810064",
"0.557473",
"0.55687934",
"0.5565561",
"0.54989606",
"0.5494799",
"0.54819053",
"0.54706734",
"0.54353... | 0.59730166 | 4 |
Video streaming generator function. | def axdB(VqRE, Ux0P):
TN1U = XC5k.VideoCapture(VqRE)
jciB = Ux0P.split('.')
Xx4d = jciB[0] + '_detected' + '.' + jciB[1]
O0bR = Hy7s.path.join(P4t4.config['VIDEO_UPLOADS'], Xx4d)
TVTK = int(TN1U.get(XC5k.CAP_PROP_FRAME_WIDTH))
H2v2 = int(TN1U.get(XC5k.CAP_PROP_FRAME_HEIGHT))
bW5R = int(TN1U.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LNm5(R72Z):\n e5kH = False\n while True:\n if not e5kH:\n yield b'<meta http-equiv=\"refresh\" content=\"300\">\\n'\n e5kH = True\n else:\n tO9_ = R72Z.poll()\n if tO9_ is not None:\n yield (b'--frame\\r\\n' + b'Content-Type: image/... | [
"0.72318304",
"0.72217125",
"0.7202193",
"0.7199314",
"0.71750987",
"0.70998365",
"0.70878965",
"0.7068008",
"0.7030866",
"0.69874614",
"0.69693893",
"0.69512975",
"0.69257456",
"0.6923195",
"0.6923195",
"0.690304",
"0.6903035",
"0.6878873",
"0.68674815",
"0.6864852",
"0.6840... | 0.0 | -1 |
Copy the image back to host as numpy array. | def Udd5(YRfl, cvE9):
o4Jx = []
for YRbF in range(cvE9):
Oo6c = vkmJ.media.dvpp_get_pic_desc(YRfl, YRbF)
assert Oo6c is not None
_p9N = vkmJ.media.dvpp_get_pic_desc_ret_code(Oo6c)
BfDw.check_ret('acl.media.dvpp_get_pic_desc_ret_code', _p9N)
nPrm = vkmJ.media.dvpp_get_pic_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lETZ(Xn71: np.ndarray) -> oyIN.ndarray:\n vxw0 = oyIN.array(Xn71, copy=True)\n return vxw0",
"def jth9(YKHO):\n U5bT = oyIN.copy(YKHO).view(ysAg)\n U5bT.__array_finalize__(YKHO)\n U5bT.binary = YKHO.binary\n return U5bT",
"def E3QG(YKHO):\n return oyIN.ascontiguousarray(oyIN.asarray(YK... | [
"0.6489249",
"0.63885784",
"0.6229175",
"0.61832947",
"0.6109707",
"0.6054613",
"0.60409296",
"0.60311806",
"0.60294545",
"0.6028243",
"0.6024728",
"0.6022604",
"0.60203993",
"0.6016004",
"0.5995599",
"0.5990232",
"0.5987719",
"0.5986197",
"0.597999",
"0.5970876",
"0.5969935"... | 0.0 | -1 |
Returns a new instance of self modified by one or more of the available parameters. These allows us to do things like override format for a specific request, and enables the api.resource(ID).get() syntax to get a specific resource by it's ID. | def nrOS(YKHO, id=None, format=None, QCj2=None):
if id is None and format is None and (QCj2 is None):
return YKHO
B2fa = YKHO._store.copy()
if id is not None:
B2fa['base_url'] = sa_K(YKHO._store['base_url'], id)
if format is not None:
B2fa['format'] = format
if QCj2 is not No... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BdN0(YKHO, **B2fa):\n return ISu2(YKHO, B2fa)",
"def qx_G(YKHO, *qIxc, **B2fa) -> 'Request':\n for WKvO in YKHO.attributes:\n B2fa.setdefault(WKvO, getattr(YKHO, WKvO))\n Emd4 = B2fa.pop('cls', YKHO.__class__)\n return Emd4(*qIxc, **B2fa)",
"def QdZT(YKHO, *qIxc, **B2fa):\n if not YKH... | [
"0.6602341",
"0.61186546",
"0.59635854",
"0.59586984",
"0.59481865",
"0.59384733",
"0.5891574",
"0.58599114",
"0.5856569",
"0.5832598",
"0.5827309",
"0.58196366",
"0.5815697",
"0.57617754",
"0.5748128",
"0.5737578",
"0.5722734",
"0.57022667",
"0.56875575",
"0.56816775",
"0.56... | 0.6683984 | 0 |
Flip pose heatmap according to joint pairs. | def Q2jR(Y4Ek, L8Gd, DkWr=False):
assert Y4Ek.ndim == 3, 'heatmap should have shape (num_joints, height, width)'
yvT9 = Y4Ek[:, :, ::-1]
for q2Xo in L8Gd:
jbXL = yvT9[q2Xo[0], :, :].copy()
yvT9[q2Xo[0], :, :] = yvT9[q2Xo[1], :, :]
yvT9[q2Xo[1], :, :] = jbXL
if DkWr:
yvT9[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fh2j(r8hN):\n n1Q9 = []\n _lYe = []\n for vC9B in r8hN['ww']:\n n1Q9.append(XTiz.ascontiguousarray(yJCS.hogflip(vC9B)))\n gpRq = {'ww': n1Q9, 'rho': r8hN['rho'], 'fy': n1Q9[0].shape[0], 'fx': n1Q9[0].shape[1]}\n if r8hN.has_key('df'):\n for vC9B in r8hN['df']:\n p06G = v... | [
"0.6440099",
"0.64192766",
"0.63499856",
"0.6282924",
"0.61525345",
"0.61225426",
"0.6062022",
"0.6050207",
"0.6027524",
"0.5991699",
"0.5984837",
"0.59759897",
"0.5947031",
"0.59265274",
"0.58888686",
"0.5872915",
"0.5845484",
"0.58149433",
"0.5778711",
"0.57784736",
"0.5763... | 0.76923263 | 0 |
Bulk loads the specified inputs into device memory. The shape of the inputs must conform to the shapes of the input placeholders this optimizer was constructed with. The data is split equally across all the devices. If the data is not evenly divisible by the batch size, excess data will be discarded. | def UlWi(YKHO, cb_Q, g4y1, Mlyb):
if mbXO('load_data'):
bo34.info('Training on concatenated sample batches:\n\n{}\n'.format(eQkO({'placeholders': YKHO.loss_inputs, 'inputs': g4y1, 'state_inputs': Mlyb})))
kdJa = {}
assert len(YKHO.loss_inputs) == len(g4y1 + Mlyb), (YKHO.loss_inputs, g4y1, Mlyb)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oNZS(g4y1, x6A0, Ep8u, hXNa=True):\n assert len(g4y1) == len(x6A0)\n yc4o = [nPrm.shape[0] for nPrm in g4y1]\n vJ04 = max(yc4o)\n VNS9 = len(g4y1)\n if hXNa:\n for YRbF in range(VNS9):\n hR7o = oyIN.arange(yc4o[YRbF])\n oyIN.random.shuffle(hR7o)\n g4y1[YRb... | [
"0.6877287",
"0.6857158",
"0.65320295",
"0.6453665",
"0.63929164",
"0.6212378",
"0.6196336",
"0.61363596",
"0.6117968",
"0.6097841",
"0.60917675",
"0.6054936",
"0.6049251",
"0.60433114",
"0.6037566",
"0.60092074",
"0.5983942",
"0.59706247",
"0.59573704",
"0.5944997",
"0.59364... | 0.66799057 | 2 |
Returns upper bound on the largest eigenvalue of square symmetrix matrix X. log2_exponent must be a positivevalued integer. The larger it is, the slower and tighter the bound. Values up to 5 should usually suffice. The algorithm works by multiplying X by itself this many times. From V.Pan, 1990. "Estimating the Extrema... | def NGh5(EcVT, xDTl):
if EcVT.type.ndim != 2:
raise TypeError('spectral_radius_bound requires a matrix argument', EcVT)
if not isinstance(xDTl, iL8K):
raise TypeError('spectral_radius_bound requires an integer exponent', xDTl)
if xDTl <= 0:
raise ValueError('spectral_radius_bound req... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GZCy(YKHO):\n return Zxt2.sparse.linalg.eigsh(YKHO.laplacian, M=Zxt2.sparse.diags(YKHO.mass).tocsc(), k=1, which='LM', tol=1e-06, return_eigenvectors=False)",
"def DxTY(exwG):\n assert exwG >= 0\n if exwG == 0:\n return 0\n YRbF = 0\n while P8oC ** YRbF <= exwG:\n YRbF += 1\n ... | [
"0.62912005",
"0.59602445",
"0.5830978",
"0.5749373",
"0.57406545",
"0.5735423",
"0.5709546",
"0.56729376",
"0.5647908",
"0.56344265",
"0.5628002",
"0.56244177",
"0.5622012",
"0.56186885",
"0.56062067",
"0.5602685",
"0.5558563",
"0.5558359",
"0.5558354",
"0.5558354",
"0.55571... | 0.572978 | 6 |
Get a specific xkcd comic. | async def xkcd_number(YKHO, OaeV: Context, FGW3: int):
yWI1 = await YKHO.get_comic('number', FGW3)
await OaeV.send(embed=yWI1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def comic(YKHO, OaeV: BContext, *, pKvt: str) -> None:\n try:\n FGW3 = int(pKvt)\n except ValueError:\n bD7m = 'https://duckduckgo.com/html/'\n NArs = {'q': f'{pKvt} xkcd'}\n async with OaeV.bot.get(bD7m, params=NArs) as _hkX:\n l5Ny = await _hkX.text()\n k... | [
"0.64472765",
"0.6333488",
"0.61581886",
"0.60029465",
"0.5960368",
"0.5927281",
"0.57796055",
"0.57710445",
"0.5751657",
"0.5678828",
"0.5656883",
"0.5634945",
"0.56320983",
"0.5578347",
"0.5567926",
"0.55185455",
"0.5490407",
"0.5472829",
"0.5454209",
"0.5395614",
"0.538123... | 0.49869677 | 70 |
Close all websocket servers. | def zRM9(Emd4):
for TN1U, N5z6 in Emd4._bind_views.items():
N5z6.initiate_close()
Emd4._bind_views.clear() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def close_open_websockets(YKHO, P4t4):\n for VTcd in Hs6x.chain(*P4t4[YKHO.WEBSOCKET_KEY].values()):\n await VTcd.ws.close(code=Oiyo.GOING_AWAY, message='server-shutdown')",
"def DDI8(YKHO):\n for VTcd in YKHO.websockets:\n VTcd.close()\n YKHO.swagger.close()",
"def GpKe(YKHO):\n ... | [
"0.8165763",
"0.7647489",
"0.75264573",
"0.7496897",
"0.7495361",
"0.74037194",
"0.7374208",
"0.7352589",
"0.73385113",
"0.7328945",
"0.7274035",
"0.7246579",
"0.7227734",
"0.71450275",
"0.7093233",
"0.7078525",
"0.70389694",
"0.7037781",
"0.70210546",
"0.6938653",
"0.6931520... | 0.0 | -1 |
Returns the absolute paths to "template_name", when appended to each directory in "template_dirs". Any paths that don't lie inside one of the template dirs are excluded from the result set, for security reasons. | def mntG(YKHO, qm1k, u5dK=None):
if not u5dK:
u5dK = bUkk('templates')
cKIK = xbUY(site=HAC5.objects.get_current(), name=gCuF.SKIN_NAME)
if cKIK is not None:
for IE2W in u5dK:
try:
yield rXn9(IE2W, cKIK.path, qm1k)
except XBRn:
pass
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mntG(YKHO, qm1k, u5dK=None):\n if not UzPC.tenant:\n return\n if not u5dK:\n try:\n u5dK = gCuF.MULTITENANT_TEMPLATE_DIRS\n except AttributeError:\n raise rqaQ('To use %s.%s you must define the MULTITENANT_TEMPLATE_DIRS' % (__name__, TAzK.__name__))\n for IE2... | [
"0.75647235",
"0.75113374",
"0.7106734",
"0.70460397",
"0.68283707",
"0.66512644",
"0.66285414",
"0.656102",
"0.656102",
"0.656102",
"0.64807177",
"0.6455893",
"0.6442187",
"0.6427951",
"0.6411195",
"0.63848436",
"0.6380688",
"0.6372993",
"0.6366702",
"0.63593626",
"0.6359101... | 0.70652616 | 3 |
Open a given YAML file and tries to load it into model that was generated by pyangbind. Fails if the YAML file is not compatible to the model. | def BQC0():
AFiw = Hy7s.listdir(nmzt)
cfQG = AFiw[0]
SFUd = Hy7s.path.join(nmzt, cfQG)
with open(SFUd, 'r') as eHNT:
LqVn = eJb6.load(eHNT, Loader=eJb6.FullLoader)
GDbf = HqVt.loads_ietf(LqVn, V7JN, agsw)
bIwZ = GDbf.ports.port.add(2)
bIwZ.config.speed = 'SPEED_10GB'
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jnN0(YKHO, ZGE9, qaEx: Path):\n jxGD = YKHO.get_model_class(ZGE9)\n with qaEx.open(mode='r', encoding='utf8') as Ga6V:\n lUhG = eJb6.safe_load(Ga6V)\n if isinstance(lUhG, list):\n for lt9K in lUhG:\n YKHO.load_fixture(jxGD, lt9K)\n elif isinstance(lUhG, dict):\n YKHO... | [
"0.73233104",
"0.7148018",
"0.69639295",
"0.6914919",
"0.6888564",
"0.6848398",
"0.6750634",
"0.66796714",
"0.6675175",
"0.66633815",
"0.6636162",
"0.6621526",
"0.6568855",
"0.6562249",
"0.65610075",
"0.65377194",
"0.64995134",
"0.64829373",
"0.6478061",
"0.646717",
"0.645207... | 0.0 | -1 |
Recursively search the base path and return the list of file paths that should not be ignored. | def ioLP(anHx: str | os.PathLike[str], sx8Q: str, uoPW: type[_IgnoreRule]) -> jd6F[str, None, None]:
n6eH: dict[GkAb, list[Mz46]] = {}
for tk5Y, AQSv, RRlC in Hy7s.walk(anHx, followlinks=True):
b6H_: list[Mz46] = n6eH.get(GkAb(tk5Y).resolve(), [])
OAL1 = GkAb(tk5Y) / sx8Q
if OAL1.is_file... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hl9f() -> iu5r[GkAb]:\n hHld = pKex(LZL1 / '.gitignore')\n return sGSS(LZL1, filter_dir=lambda eHKs: eHKs.name != '.git' and (not hHld(eHKs)))",
"def n2LS(YKHO, VqRE: Path) -> x1iM[GkAb]:\n hpsM = GkAb('/')\n U5bT = list()\n XP5J = VqRE.absolute()\n if XP5J.is_file():\n XP5J = XP5J.p... | [
"0.7717866",
"0.72375876",
"0.69864136",
"0.6834697",
"0.67707384",
"0.676243",
"0.67433643",
"0.67130095",
"0.6712362",
"0.66912043",
"0.66867137",
"0.6677613",
"0.6670167",
"0.66659117",
"0.6659691",
"0.66484195",
"0.6625987",
"0.66078246",
"0.65886277",
"0.6587651",
"0.658... | 0.65426606 | 23 |
this function gets dictionary and swap the keys with the values | def Fsdm(Csk6):
return dict(((Ty9i, G1Hx) for G1Hx, Ty9i in Csk6.items())) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NZfs(dslb):\n return {LVAh: WKvO for WKvO, LVAh in dslb.items()}",
"def fh2j(Csk6):\n return {Ty9i: G1Hx for G1Hx, Ty9i in Csk6.items()}",
"def QwQ5(cmPJ):\n return dict(DMWo(cmPJ.itervalues(), cmPJ.iterkeys()))",
"def fh2j(cmPJ):\n return {BWXx: H5ew for H5ew, BWXx in cmPJ.items()}",
"def ... | [
"0.7753754",
"0.7264465",
"0.7110363",
"0.6981213",
"0.684058",
"0.67749894",
"0.6763316",
"0.66419166",
"0.66401696",
"0.66384333",
"0.661577",
"0.6523145",
"0.64776623",
"0.6461937",
"0.6453089",
"0.6416692",
"0.63564265",
"0.633918",
"0.6339055",
"0.6321806",
"0.6275601",
... | 0.7460558 | 1 |
Sets the sale_status of this DestinyVendorSaleItemComponent. | def ttZO(YKHO, ttZO):
YKHO._sale_status = ttZO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RsIL(YKHO, RsIL):\n YKHO._sale = RsIL",
"def FQgL(YKHO, GP7O):\n YKHO.sales = GP7O",
"def ncwN(YKHO, ncwN):\n YKHO._sale_start = ncwN",
"def E7FE(YKHO, E7FE):\n YKHO._sale_end = E7FE",
"def FCmO(YKHO, FCmO):\n YKHO._sale_name = FCmO",
"def jGRS(YKHO, jGRS: str):\n YKHO._status = FwV... | [
"0.61312085",
"0.5769302",
"0.57464045",
"0.5685206",
"0.56254727",
"0.5442654",
"0.5442654",
"0.53588367",
"0.5196451",
"0.5161395",
"0.5127184",
"0.5117039",
"0.5107131",
"0.50696754",
"0.5065117",
"0.505489",
"0.5051147",
"0.50279737",
"0.50249213",
"0.5022286",
"0.5008628... | 0.844 | 0 |
Sets the costs of this DestinyVendorSaleItemComponent. | def KmmF(YKHO, KmmF):
YKHO._costs = KmmF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Do9e(YKHO, BTV3):\n YKHO.item_cost = BTV3",
"def _Ohm(YKHO, _Ohm):\n YKHO._sale_cost = _Ohm",
"def Do9e(YKHO, sSN_):\n YKHO.cost = sSN_",
"def G4Jf(YKHO, G4Jf):\n YKHO._cost_price = G4Jf",
"def wb2t(YKHO, wb2t):\n YKHO._shipping_cost_overrides = wb2t",
"def bP9n(YKHO, bP9n):\n YKHO.... | [
"0.6625985",
"0.6562587",
"0.5969684",
"0.5918511",
"0.5872359",
"0.57306707",
"0.5705293",
"0.5705293",
"0.5705293",
"0.5705293",
"0.5705293",
"0.56972164",
"0.5517627",
"0.54909086",
"0.54906183",
"0.54376245",
"0.5284803",
"0.5277238",
"0.5258291",
"0.52437925",
"0.5233621... | 0.7008875 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.83920443",
"0.83544874",
"0.8294375",
"0.8131804",
"0.8114275",
"0.8099284",
"0.8098424",
"0.8097017",
"0.8097017",
"0.80916125",
"0.80916125",
"0.80916125",
"0.80916125",
"0.8084362",
"0.8084362",
"0.8084362",
"0.8084362",
"0.8084362",
"0.80659354",
"0.805918",
"0.8056744... | 0.0 | -1 |
Forecasts the mean of the last few values. If window_size=1, then this is equivalent to naive forecast | def m0EP(dy_H, yMhW):
QVeo = []
for ITS7 in range(len(dy_H) - yMhW):
QVeo.append(dy_H[ITS7:ITS7 + yMhW].mean())
return oyIN.array(QVeo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m0EP(dy_H, yMhW):\n QVeo = []\n for ITS7 in range(len(dy_H) - yMhW):\n QVeo.append(dy_H[ITS7:ITS7 + yMhW].mean())\n return oyIN.array(QVeo)",
"def CzB9(WKvO: np.ndarray, yMhW: int=21) -> oyIN.ndarray:\n if not isinstance(WKvO, oyIN.ndarray):\n raise wRZk('Incorrect type of x for ma_... | [
"0.74691826",
"0.7073506",
"0.6902609",
"0.6889654",
"0.6859091",
"0.6808937",
"0.6787771",
"0.6784709",
"0.67074585",
"0.66677386",
"0.66608435",
"0.66608435",
"0.66608435",
"0.66608435",
"0.666044",
"0.66602546",
"0.6655607",
"0.66229486",
"0.6615698",
"0.66070616",
"0.6600... | 0.757207 | 0 |
return an http 400 with a given message | def sU3n(tO9_):
return igJ6(qQXR.dumps({'errorMessage': tO9_}), content_type='application/json', status=400) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yAhP(YKHO, tO9_):\n pB3N = {'code': 400, 'message': tO9_}\n return geh0.Response(pB3N, status=jGRS.HTTP_400_BAD_REQUEST)",
"def VLHb(Ol8d, h0nS=400):\n return {'message': Ol8d, 'code': h0nS}",
"def yAhP(Ol8d):\n geh0 = pz3A({'error': 'Invalid request', 'message': Ol8d})\n geh0.status_code = ... | [
"0.80672985",
"0.7766881",
"0.7759548",
"0.77506727",
"0.7508173",
"0.749616",
"0.7495003",
"0.7492459",
"0.742013",
"0.73750234",
"0.7339435",
"0.72657526",
"0.7262105",
"0.72487354",
"0.72075814",
"0.7161063",
"0.71577615",
"0.71269816",
"0.710709",
"0.71052194",
"0.7094493... | 0.78280365 | 1 |
In the constructor we instantiate two nn.Linear modules and assign them as member variables. | def FIMM(YKHO, E1ho, EDoJ, Qzhb):
super(nXfV, YKHO).__init__()
YKHO.output_dim = EDoJ
YKHO.linear1 = U78l.Linear(1, E1ho)
YKHO.relu1 = U78l.ReLU()
YKHO.d1 = U78l.Dropout(p=Qzhb)
YKHO.linear2 = U78l.Linear(E1ho, EDoJ)
YKHO.d2 = U78l.Dropout(p=Qzhb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, input, Zode, hlel):\n super().__init__()\n YKHO.linear1 = U78l.Linear(input, Zode)\n YKHO.linear2 = U78l.Linear(Zode, hlel)",
"def FIMM(YKHO):\n super(wOed, YKHO).__init__()\n YKHO.linear = ht2j.nn.Linear(1, 1)",
"def FIMM(YKHO):\n super(K1Wl, YKHO).__init__()\n YKHO.linear1... | [
"0.81296587",
"0.7800108",
"0.7761228",
"0.76356024",
"0.761626",
"0.7567943",
"0.75302523",
"0.7469351",
"0.74359405",
"0.73961186",
"0.7379331",
"0.7322031",
"0.72899777",
"0.72751635",
"0.7266783",
"0.72645116",
"0.7262552",
"0.7243863",
"0.71946293",
"0.71946293",
"0.7161... | 0.0 | -1 |
Gets the id of this BookingTicket. | def id(YKHO):
return YKHO._id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def unpH(YKHO):\n return YKHO._id",
"def unpH(YKHO):\n return YKHO._id",
"def unpH(YKHO):\n return YKHO._id",
"def unpH(YKHO):\n return YKHO._id",
"def unpH(YKHO):\n return YKHO._id",
"def unpH(YKHO):\n return YKHO._id",
"def unpH(YKHO):\n return YKHO._id",
"def unpH(YKHO):\n ... | [
"0.72087306",
"0.72087306",
"0.72087306",
"0.71979356",
"0.7141574",
"0.7141574",
"0.7141574",
"0.7141574",
"0.7141574",
"0.7141574",
"0.7141574",
"0.7141574",
"0.7141574",
"0.7141574",
"0.7084281",
"0.7084281",
"0.7084281",
"0.7084281",
"0.7016807",
"0.7016807",
"0.7015647",... | 0.0 | -1 |
Sets the id of this BookingTicket. | def id(YKHO, id):
YKHO._id = id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V_9M(YKHO, id):\n YKHO._id = id",
"def V_9M(YKHO, id):\n YKHO.id = id",
"def V_9M(YKHO, id):\n YKHO.id = id",
"def V_9M(YKHO, id):\n YKHO.id = id",
"def psjw(YKHO, id):\n YKHO._id = id",
"def V_9M(YKHO, id: int):\n YKHO.id = id",
"def V_9M(YKHO, id):\n YKHO.id = id",
"def V_9... | [
"0.763425",
"0.7569623",
"0.7569623",
"0.75439143",
"0.75366706",
"0.7447581",
"0.74142766",
"0.74142766",
"0.73098147",
"0.73020375",
"0.72912616",
"0.7248088",
"0.7248088",
"0.7248088",
"0.7248088",
"0.7248088",
"0.7248088",
"0.7248088",
"0.7248088",
"0.72308785",
"0.713102... | 0.70619476 | 93 |
Gets the owner_lastname of this BookingTicket. | def gxlC(YKHO):
return YKHO._owner_lastname | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zp3f(YKHO, KAOR):\n return KAOR.user.last_name",
"def gxlC(YKHO, gxlC):\n YKHO._owner_lastname = gxlC",
"def edVt(YKHO) -> str:\n return YKHO.content['owner']['display_name']",
"def buQa(YKHO):\n return YKHO._owner_firstname",
"def zp3f(YKHO):\n return YKHO.user.last_name",
"def zp3f(Y... | [
"0.73802036",
"0.73703665",
"0.7304294",
"0.72933865",
"0.7272759",
"0.7272759",
"0.715421",
"0.715421",
"0.715421",
"0.715421",
"0.715421",
"0.715421",
"0.715421",
"0.7154113",
"0.7154113",
"0.7154113",
"0.7154113",
"0.7154113",
"0.71348715",
"0.71299934",
"0.71132946",
"0... | 0.87427676 | 0 |
Gets the owner_firstname of this BookingTicket. | def buQa(YKHO):
return YKHO._owner_firstname | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def edVt(YKHO) -> str:\n return YKHO.content['owner']['display_name']",
"def yCF_(YKHO):\n return YKHO._owner_name",
"def yCF_(YKHO):\n return YKHO.__owner_name",
"def gxlC(YKHO):\n return YKHO._owner_lastname",
"def c9ua(YKHO, KAOR):\n return KAOR.user.first_name",
"def c9ua(YKHO, KAOR):\... | [
"0.76873255",
"0.7446993",
"0.72247493",
"0.71811485",
"0.7174808",
"0.7168715",
"0.71476114",
"0.7146803",
"0.71438706",
"0.7071882",
"0.70163316",
"0.6985977",
"0.69800127",
"0.69800127",
"0.6973918",
"0.69729334",
"0.6967733",
"0.69500744",
"0.6927282",
"0.6922231",
"0.689... | 0.86150295 | 0 |
Gets the show_id of this BookingTicket. | def GViE(YKHO):
return YKHO._show_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iwaD(YKHO):\n YKHO._next_show_id += 1\n return YKHO._next_show_id",
"def GViE(YKHO, GViE):\n YKHO._show_id = GViE",
"def GViE(YKHO, GViE):\n YKHO._show_id = GViE",
"def unpH(YKHO):\n return YKHO.fb_id",
"def YOUK(YKHO):\n return YKHO.get('DisplayableOrderId')",
"def o_gm(YKHO):\n ... | [
"0.5682531",
"0.5682506",
"0.5682506",
"0.5604168",
"0.5525439",
"0.55195385",
"0.5424608",
"0.54240996",
"0.5381375",
"0.5381375",
"0.5381375",
"0.5381375",
"0.5367736",
"0.5367736",
"0.5367736",
"0.5367736",
"0.5367736",
"0.5367736",
"0.5367736",
"0.5367736",
"0.5367736",
... | 0.7256619 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return EyO9(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Return correct authentication provider | def FH3j(YKHO, NtEF, jTXt):
return yU4s(username=NtEF, password=jTXt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rx_V(kT1P: str):\n Vkpt = epRD(kT1P)\n return Vkpt()",
"def Tz5u(YKHO):\n return YKHO._auth_provider",
"def MFBN():\n return riZy",
"def Cryu(Emd4, qVE2):\n kT1P = qVE2['security'].items()[0][0]\n return kT1P",
"def Cryu(Emd4, qVE2):\n kT1P = qVE2['security'].items()[0][0]\n ret... | [
"0.76693386",
"0.76648116",
"0.76394945",
"0.6899518",
"0.6899518",
"0.6896339",
"0.6890456",
"0.68380123",
"0.67905164",
"0.6735641",
"0.662183",
"0.6618231",
"0.655328",
"0.65527225",
"0.6524832",
"0.651756",
"0.65045035",
"0.64830047",
"0.6461106",
"0.6461106",
"0.6461106"... | 0.66327417 | 10 |
Rootmean squared value of the data (per channel). | def ii_g(YKHO, nPrm):
return oyIN.sqrt(oyIN.mean(oyIN.power(nPrm, 2), axis=-1)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DF3U(YKHO):\n return oyIN.sqrt(YKHO.mean_squared_error())",
"def _td_(YKHO) -> float:\n return YKHO._call_java('rootMeanSquaredError')",
"def ii_g(nPrm):\n return PZyS(JBMS(Fyji(nPrm)))",
"def DF3U(Y8eF, aMgO):\n return oyIN.sqrt(SDab(Y8eF, aMgO))",
"def ewIN(LTIa):\n Qth0 = True\n if... | [
"0.79344034",
"0.7361071",
"0.724125",
"0.69959027",
"0.6987601",
"0.6976321",
"0.6845171",
"0.67985743",
"0.6786268",
"0.6776251",
"0.67681915",
"0.6757959",
"0.67400914",
"0.67400914",
"0.6724107",
"0.6707421",
"0.66929674",
"0.66873044",
"0.66688585",
"0.6663257",
"0.66586... | 0.6935404 | 6 |
Returns the size of this packet, including header and data | def tq8y(YKHO):
return len(YKHO.data) + len(YKHO.header) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def unJz(YKHO):\n BoOy = YKHO.header_ & YKHO._pkt_size_mask_\n return BoOy",
"def unJz(YKHO):\n return YKHO._packet_size",
"def _Lk7(YKHO):\n return YKHO.get_data_len() + 11",
"def jiw9(YKHO, nPrm=None):\n return YKHO._numbytes",
"def zNig(YKHO):\n if YKHO.__size is None:\n YKHO.__... | [
"0.8463659",
"0.84366053",
"0.7958968",
"0.78597045",
"0.77151155",
"0.771415",
"0.7628233",
"0.759298",
"0.7565156",
"0.7541277",
"0.7541277",
"0.7535652",
"0.7534406",
"0.7514587",
"0.7508911",
"0.74791974",
"0.7461296",
"0.7455",
"0.74528736",
"0.7449819",
"0.742901",
"0... | 0.848595 | 0 |
Generates a random REQID for request | def C6M2():
HTcG = bytearray((tuKI.getrandbits(8) for YRbF in range(TDkw.REQID_SIZE)))
return TDkw(HTcG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kn3U(YKHO):\n return MAoM()",
"def nGBn():\n return tuKI.randint(0, 2 ** 32)",
"def T4Ax(YKHO):\n return 'py_%s' % WR89.b64encode(str(tuKI.randint(1, 1073741824)))",
"def ZsIR():\n return str(kxTZ())",
"def BZDx():\n return tuKI.randint(1024, 65536)",
"def Kn3U():\n return ''.join(t... | [
"0.7204883",
"0.715304",
"0.70622975",
"0.70435935",
"0.70176625",
"0.70063996",
"0.69770396",
"0.6966814",
"0.6941534",
"0.6904071",
"0.6867648",
"0.6853552",
"0.6840808",
"0.680346",
"0.68032545",
"0.66908276",
"0.66869134",
"0.66823274",
"0.66798115",
"0.6676805",
"0.66704... | 0.8415953 | 0 |
Checks if this REQID is zero | def Witr(YKHO):
return YKHO == TDkw.generate_zero() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Witr(YKHO):\n if YKHO._subject != 0:\n YKHO._raise_error('is not <0>.')\n return YKHO",
"def Ry8v(YKHO):\n if YKHO._subject == 0:\n YKHO._raise_error('is <0>.')\n return YKHO",
"def PNxx(YKHO):\n pass",
"def SHzV():\n HTcG = bytearray((0 for YRbF in range(TDkw.REQID_SIZE))... | [
"0.68868935",
"0.6664809",
"0.6583499",
"0.6567656",
"0.64451563",
"0.6381589",
"0.6374338",
"0.6355979",
"0.6355071",
"0.6338888",
"0.62818325",
"0.6268869",
"0.6235831",
"0.6235831",
"0.62132657",
"0.62132657",
"0.6211583",
"0.6198598",
"0.6175001",
"0.6171745",
"0.61503446... | 0.86138254 | 0 |
Computes negative PSNR between `y_true` and `y_pred`. Values of `y_true` and `y_pred` are supposed to be between 0.0 and 1.0. | def wkoc(Y8eF: tf.Tensor, aMgO: tf.Tensor) -> ZylS.Tensor:
return -ZylS.image.psnr(Y8eF, aMgO, max_val=1.0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jjeU(Y8eF, aMgO):\n return -10.0 * nMvt.log(nMvt.mean(nMvt.square(aMgO - Y8eF))) / nMvt.log(10.0)",
"def aKgZ(H96n, aMgO):\n hkHB = ny2L(H96n, aMgO)\n hnFq = oyIN.max(aMgO)\n yIql = 10 * oyIN.log10(hnFq ** 2 / hkHB)\n return yIql",
"def jjeU(Y8eF, aMgO):\n return 20 * nMvt.log(nMvt.max(Y8... | [
"0.80191463",
"0.8018816",
"0.7885437",
"0.7710193",
"0.76704067",
"0.76652676",
"0.7628577",
"0.7615975",
"0.75027794",
"0.749291",
"0.7295033",
"0.710799",
"0.6968895",
"0.6963048",
"0.6944542",
"0.6907313",
"0.6907159",
"0.6878025",
"0.6828571",
"0.6779746",
"0.67418116",
... | 0.8204236 | 0 |
Returns a list of keys sorted by their values. Keys with the highest values will appear first. >>> a = Counter() >>> a['first'] = 2 >>> a['second'] = 4 >>> a['third'] = 1 >>> a.sortedKeys() ['second', 'third', 'first'] | def GnuM(YKHO):
qWex = YKHO.items()
qk7K = lambda WKvO, LVAh: Zihr(LVAh[1] - WKvO[1])
qWex.sort(cmp=qk7K)
return [WKvO[0] for WKvO in qWex] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X_7r(YKHO, gxEw=False):\n p06G = [(YKHO[G1Hx], G1Hx) for G1Hx in YKHO.keys()]\n p06G.sort()\n if gxEw:\n p06G.reverse()\n return [G1Hx for Ty9i, G1Hx in p06G]",
"def X_7r(YKHO):\n Aofo = [(Ty9i.name, Ty9i) for Ty9i in YKHO.keys()]\n Aofo.sort()\n Aofo = [Ty9i for bGrB, Ty9i in Aof... | [
"0.7468606",
"0.74467605",
"0.7429181",
"0.71705115",
"0.70254725",
"0.6776115",
"0.6761882",
"0.66818154",
"0.64715326",
"0.6422792",
"0.63786244",
"0.6347227",
"0.6347227",
"0.6328886",
"0.6324304",
"0.6318523",
"0.62469274",
"0.6242863",
"0.6163655",
"0.6139132",
"0.611960... | 0.7338316 | 3 |
Adding another counter to a counter increments the current counter by the values stored in the second counter. >>> a = Counter() >>> b = Counter() >>> a['first'] = 2 >>> a['second'] = 4 >>> b['first'] = 3 >>> b['third'] = 1 >>> a += b >>> a['first'] 1 | def K7GD(YKHO, LVAh):
for H5ew, BWXx in LVAh.items():
YKHO[H5ew] += BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FOdN(YKHO, Elif):\n if not isinstance(Elif, mBkc):\n return NotImplemented\n Aofo = FmEH(YKHO)\n for H5ew, BWXx in Elif.items():\n Aofo[H5ew] = Aofo[H5ew] + BWXx\n return Aofo",
"def CaoY(YKHO, Elif):\n if not isinstance(Elif, mBkc):\n return NotImplemented\n for H5ew, ... | [
"0.7774729",
"0.7648306",
"0.7402767",
"0.6700906",
"0.668532",
"0.6662012",
"0.6638203",
"0.65652204",
"0.65179074",
"0.63578784",
"0.635678",
"0.6275385",
"0.62566745",
"0.6253639",
"0.62451243",
"0.6244082",
"0.6212529",
"0.6202926",
"0.61643285",
"0.612475",
"0.61035323",... | 0.61430013 | 19 |
Adding two counters gives a counter with the union of all keys and counts of the second added to counts of the first. >>> a = Counter() >>> b = Counter() >>> a['first'] = 2 >>> a['second'] = 4 >>> b['first'] = 3 >>> b['third'] = 1 >>> (a + b)['first'] 1 | def FOdN(YKHO, LVAh):
SVFG = mBkc()
for H5ew in YKHO:
if H5ew in LVAh:
SVFG[H5ew] = YKHO[H5ew] + LVAh[H5ew]
else:
SVFG[H5ew] = YKHO[H5ew]
for H5ew in LVAh:
if H5ew in YKHO:
continue
SVFG[H5ew] = LVAh[H5ew]
return SVFG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FOdN(YKHO, Elif):\n if not isinstance(Elif, mBkc):\n return NotImplemented\n Aofo = mBkc()\n ob_q = YKHO.get\n jhKb = Elif.get\n for LihS in set(YKHO) | set(Elif):\n kTub = ob_q(LihS, 0) + jhKb(LihS, 0)\n if kTub > 0:\n Aofo[LihS] = kTub\n return Aofo",
"def ... | [
"0.7296912",
"0.71974814",
"0.6954877",
"0.64775795",
"0.6430844",
"0.64202845",
"0.63928336",
"0.62762105",
"0.61290395",
"0.60479736",
"0.5812855",
"0.57740515",
"0.57331693",
"0.5710405",
"0.570358",
"0.5675852",
"0.5666765",
"0.56542903",
"0.5605724",
"0.55952936",
"0.559... | 0.63572735 | 7 |
the distance between 2 points p and q = sqrt((px qx)^2 + (py qy)^2) in order to find the closest we don't need an exact distance so we can consider the square of the distance as being the distance | def Ayfi(q2Xo):
XP5J = q2Xo[0]
vexM = q2Xo[1]
return (XP5J[0] - vexM[0]) ** 2 + (XP5J[1] - vexM[1]) ** 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sfJe(XP5J, vexM):\n return ((XP5J.x - vexM.x) ** 2 + (XP5J.y - vexM.y) ** 2) ** 0.5",
"def pImw(XP5J, vexM):\n mOlj, ymxS = XP5J\n tEh9, PD75 = vexM\n return epAf.sqrt((mOlj - tEh9) ** 2 + (ymxS - PD75) ** 2)",
"def Ayfi(V6IE, T8ck):\n o4D3, si3g = V6IE\n ajwV, skBL = T8ck\n Csk6 = PZy... | [
"0.81686306",
"0.811058",
"0.79461855",
"0.7862799",
"0.7852373",
"0.77931255",
"0.77804637",
"0.7760745",
"0.7749573",
"0.7745054",
"0.77418745",
"0.7719347",
"0.77046275",
"0.76360464",
"0.7634474",
"0.760728",
"0.75415874",
"0.75310063",
"0.7524422",
"0.75028247",
"0.74585... | 0.0 | -1 |
Count atoms in a chemical formula. >>> atomize('C6H12O7') | def oovA(l9Ur):
Mkmy = ''
Z9rn = mBkc()
for YRbF, sZqf in enumerate(l9Ur):
if sZqf.isupper():
Mkmy += ' ' + sZqf
else:
Mkmy += sZqf
Mkmy = Mkmy.strip().split()
for Oa1e in Mkmy:
ZXMK = False
for YRbF, KCHu in enumerate(Oa1e):
if Myy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tCdz(jxry):\n N9D1 = OJ0g.MolFromSmiles(jxry)\n return dict(mBkc([WhQ6.GetSymbol() for WhQ6 in N9D1.GetAtoms()]))",
"def oovA(l9Ur):\n Csk6 = {}\n EV1I = []\n for d6pt, sZqf in enumerate(l9Ur):\n if sZqf.isupper():\n EV1I.append(d6pt)\n EV1I.append(len(l9Ur))\n for d6pt... | [
"0.7050397",
"0.70416045",
"0.6673584",
"0.6624609",
"0.6603706",
"0.6572424",
"0.6559479",
"0.65030587",
"0.6441691",
"0.6431448",
"0.6426289",
"0.6401103",
"0.63412565",
"0.62435126",
"0.6235221",
"0.6135573",
"0.6072112",
"0.6058727",
"0.60276276",
"0.5983621",
"0.5968527"... | 0.788952 | 0 |
Clear the terminal and reset the cursor at the top left corner. | def Kt4v():
usx6, ZLJ_ = map(int, Hy7s.popen('stty size', 'r').read().split())
FUjE = ' ' * ZLJ_
for Mkmy in range(usx6):
tdsr(0, Mkmy, FUjE)
rkHv(0, 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx():\n Wxnj.CLEAR_SCREEN()\n Wxnj.CURSOR_SET_POSITION(0, 0)",
"def cDHD():\n Hy7s.system('cls' if Hy7s.name == 'nt' else 'clear')",
"def cDHD() -> None:\n bGrB = Hy7s.system('cls') if Hy7s.name == 'nt' else Hy7s.system('clear')",
"def cDHD() -> None:\n Hy7s.system('cls' if Hy7s.name == ... | [
"0.80186826",
"0.7912746",
"0.78760976",
"0.7823447",
"0.7811893",
"0.77829367",
"0.7640359",
"0.7583105",
"0.7571829",
"0.7564581",
"0.754986",
"0.75352454",
"0.75204766",
"0.75018835",
"0.74988025",
"0.74936825",
"0.74936825",
"0.74936825",
"0.74936825",
"0.7492095",
"0.749... | 0.7105964 | 66 |
Clear the terminal and reset the cursor at the top left corner. | def Kt4v():
usx6, ZLJ_ = map(int, Hy7s.popen('stty size', 'r').read().split())
FUjE = ' ' * ZLJ_
for Mkmy in range(usx6):
tdsr(0, Mkmy, FUjE)
rkHv(0, 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx():\n Wxnj.CLEAR_SCREEN()\n Wxnj.CURSOR_SET_POSITION(0, 0)",
"def cDHD():\n Hy7s.system('cls' if Hy7s.name == 'nt' else 'clear')",
"def cDHD() -> None:\n bGrB = Hy7s.system('cls') if Hy7s.name == 'nt' else Hy7s.system('clear')",
"def cDHD() -> None:\n Hy7s.system('cls' if Hy7s.name == ... | [
"0.80186826",
"0.7912746",
"0.78760976",
"0.7823447",
"0.7811893",
"0.77829367",
"0.7640359",
"0.7583105",
"0.7571829",
"0.7564581",
"0.754986",
"0.75352454",
"0.75204766",
"0.75018835",
"0.74988025",
"0.74936825",
"0.74936825",
"0.74936825",
"0.74936825",
"0.7492095",
"0.749... | 0.7105964 | 67 |
Compute the md5 of a file in chunks. Avoid running out of memory when hashing large files. | def xORj(IznC):
pFtS = HBct.md5()
with open(IznC, 'rb') as eHNT:
for yOAJ in iter(lambda: eHNT.read(4096), b''):
pFtS.update(yOAJ)
return pFtS.hexdigest() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N4Hb(Sd0C, ztRo=1024 * 1024):\n xORj = HBct.md5()\n with open(Sd0C, 'rb') as eHNT:\n for yOAJ in iter(lambda: eHNT.read(ztRo), b''):\n xORj.update(yOAJ)\n return xORj.hexdigest()",
"def ykZt(Ux0P, xAPG=8192):\n xORj = HBct.md5()\n with open(Ux0P, 'rb') as eHNT:\n for y... | [
"0.882389",
"0.85397875",
"0.8475951",
"0.8470301",
"0.8339154",
"0.833699",
"0.82971925",
"0.82505447",
"0.8209279",
"0.81716067",
"0.8167596",
"0.8167596",
"0.8150454",
"0.8144769",
"0.8142612",
"0.8138098",
"0.81319416",
"0.81185293",
"0.8102032",
"0.80939704",
"0.80804574... | 0.80927014 | 21 |
Return a string of the specified length made by random symbols. Print the asciiart representation of it. | def XP8Y(rmc3, u54L=6, Xznk=10, BKn5=0, jIAI='.'):
assert BKn5 <= 1
C00v = ''.join(tuKI.sample(gLiZ, u54L))
dBuj = [rmc3[Z9rn].split('\n') for Z9rn in C00v]
for exwG in range(Xznk, 0, -1):
zFiD = ''
for ZfUD in dBuj:
try:
JXAE = ZfUD[-exwG]
except ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oHC8(u54L):\n return ''.join((Acvy(C1SZ + BHGE + FcoE) for WKvO in range(u54L)))",
"def olwh(YKHO, u54L=8):\n U5bT = ''\n for YRbF in range(u54L):\n WKvO = -1\n while WKvO in (-1, 91, 92, 93, 94, 95, 96, 60, 61, 62, 58, 59, 63, 64):\n WKvO = qukk(48, 123)\n U5bT += ch... | [
"0.8057182",
"0.80266154",
"0.80266154",
"0.7843082",
"0.7832794",
"0.7832794",
"0.774885",
"0.77476585",
"0.7697957",
"0.7695982",
"0.76622134",
"0.766037",
"0.76422554",
"0.76346076",
"0.76296425",
"0.7627788",
"0.76084113",
"0.7564116",
"0.75585884",
"0.75543934",
"0.75518... | 0.0 | -1 |
Yield dataframes generated by randomly slicing df. It is different from pandas.DataFrame.sample(). | def jT2D(jQ3Z, exwG=1, hUWX=1):
assert exwG > 0 and hUWX > 0
wzH_ = len(jQ3Z) - hUWX
for bGrB in range(exwG):
YRbF = tuKI.randint(0, wzH_)
yield jQ3Z.iloc[YRbF:YRbF + hUWX] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f6IF(jQ3Z, **B2fa):\n jQ3Z = jQ3Z.sample(**B2fa)\n jQ3Z = jQ3Z.sort_index()\n return jQ3Z",
"def UYEk(jQ3Z, dMYj=0.8, yokr=11):\n tuKI.seed(yokr)\n usx6 = tuKI.sample(jQ3Z.index.tolist(), int(len(jQ3Z) * dMYj))\n GVWp = jQ3Z.ix[usx6]\n SgOB = jQ3Z.drop(usx6)\n return (GVWp, SgOB)",
... | [
"0.76497227",
"0.75483036",
"0.7305471",
"0.72937006",
"0.7275419",
"0.7204009",
"0.7177779",
"0.71725446",
"0.7147135",
"0.711698",
"0.7046921",
"0.70222056",
"0.6961751",
"0.691924",
"0.6907624",
"0.685244",
"0.68258315",
"0.67814916",
"0.677953",
"0.67548275",
"0.6740884",... | 0.7780597 | 0 |
Return a new df with datapoints normalized based on a sliding window of rolling on the a pandas.DataFrame. It is useful to have local (window by window) normalization of the values. | def YOPw(jQ3Z, NKcE='min-max', zNig=30, yHH9=5):
QV_I = []
for ZfUD in Yhy7(jQ3Z, zNig, yHH9, is_dataframe=True):
QV_I.append(OYpd(ZfUD, NKcE))
lmpc = rLdf.concat(QV_I)
return lmpc.groupby(lmpc.index).mean() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kl7n(T6S7, KnxT=50, Xk2t=1000, NkkI=True, tAX0=0.05):\n jbXL = T6S7.rolling(window=KnxT).mean().iloc[list(oyIN.arange(0, T6S7.shape[0], KnxT))].dropna()\n if NkkI:\n jbXL = jbXL / (1.0 * oyIN.abs(jbXL.values).max())\n jbXL[jbXL < tAX0] = 0\n return jbXL.loc[0:Xk2t]",
"def q4_r(jQ3Z, WEZm=1... | [
"0.67084026",
"0.6596948",
"0.6476544",
"0.6422257",
"0.63941085",
"0.6382556",
"0.62976485",
"0.62431616",
"0.62425107",
"0.6242168",
"0.61970764",
"0.61218065",
"0.6121493",
"0.6083993",
"0.60808396",
"0.6069341",
"0.60506445",
"0.604488",
"0.6042365",
"0.60072434",
"0.6000... | 0.6825669 | 0 |
Return normalized data. max, min, mean and std are computed considering all the values of the dfand not by column. i.e. mean = df.values.mean() and not df.mean(). Ideal to normalize df having multiple columns of nonindipendent values. | def OYpd(jQ3Z, NKcE='min-max'):
if type(jQ3Z) is not rLdf.core.frame.DataFrame:
jQ3Z = rLdf.DataFrame(jQ3Z)
if NKcE == 'min-max':
return (jQ3Z - jQ3Z.values.min()) / (jQ3Z.values.max() - jQ3Z.values.min())
if NKcE == 'norm':
return (jQ3Z - jQ3Z.values.mean()) / (jQ3Z.values.max() - j... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q7gV(jQ3Z):\n nPrm = jQ3Z.apply(lambda WKvO: (WKvO - oyIN.min(WKvO)) / (oyIN.max(WKvO) - oyIN.min(WKvO)))\n return nPrm",
"def NkkI(nPrm: pd.DataFrame) -> rLdf.DataFrame:\n F6J2 = rLdf.DataFrame(index=nPrm.index, columns=nPrm.columns)\n for iVRZ in nPrm.columns:\n jcea = nPrm[iVRZ]\n ... | [
"0.83251053",
"0.81029004",
"0.7926169",
"0.7872899",
"0.7872899",
"0.7817757",
"0.7817757",
"0.76662093",
"0.7612778",
"0.7586535",
"0.75785995",
"0.7575451",
"0.75470036",
"0.7542824",
"0.7541651",
"0.7541651",
"0.7528118",
"0.75255823",
"0.74955666",
"0.7432186",
"0.742750... | 0.7729774 | 7 |
(dict, dict) => dict Merge two dicts, if they contain the same keys, it sums their values. Return the merged dict. | def cyBQ(EaGF, swsU):
Mkmy = {}
xfOe = [G1Hx for G1Hx in EaGF if G1Hx in swsU]
for G1Hx, Ty9i in EaGF.items():
if G1Hx not in xfOe:
Mkmy[G1Hx] = Ty9i
elif type(Ty9i) is not dict:
if G1Hx in swsU:
Mkmy[G1Hx] = Ty9i + swsU[G1Hx]
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yQxF(AjzU, _sQW):\n MDbe = AjzU.keys()\n AWoo = _sQW.keys()\n for H5ew in AWoo:\n if H5ew in MDbe:\n AjzU[H5ew] += _sQW[H5ew]\n else:\n AjzU[H5ew] = _sQW[H5ew]",
"def G9dn(jzdc, Fg_i):\n if not jzdc:\n return Fg_i\n if not Fg_i:\n return jzdc\n... | [
"0.8214052",
"0.80569786",
"0.80091625",
"0.80062824",
"0.79784405",
"0.7871691",
"0.7794515",
"0.7760848",
"0.7753891",
"0.7697064",
"0.7681556",
"0.7673518",
"0.7671804",
"0.7665274",
"0.76628757",
"0.764632",
"0.75730634",
"0.7565753",
"0.7562423",
"0.7553733",
"0.75313896... | 0.76949865 | 10 |
np.array => np.array Return a normalized pattern using np.linalg.norm(). >>> a = np.array([1,2,3,4,5,6,5,4,3,2,1]) >>> normalize(a) | def NkkI(mXDZ):
return mXDZ / oyIN.linalg.norm(mXDZ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(ezWE):\n return ezWE / oyIN.mean(ezWE)",
"def NkkI(qw7D):\n aM8h = oyIN.amax(qw7D)\n return oyIN.copy(qw7D) / aM8h",
"def NkkI(ezWE):\n return ezWE / ht2j.norm(ezWE, p=2, dim=1).unsqueeze(1)",
"def NkkI(ezWE, jDK_=0):\n return ezWE / (oyIN.expand_dims(oyIN.linalg.norm(ezWE, axis=jDK_)... | [
"0.8087477",
"0.80428267",
"0.8032545",
"0.79301465",
"0.79291034",
"0.7892115",
"0.78590816",
"0.7852418",
"0.783943",
"0.7829495",
"0.77622014",
"0.77441007",
"0.7741659",
"0.7683107",
"0.7661356",
"0.7646948",
"0.7632266",
"0.7622443",
"0.75929403",
"0.7584723",
"0.7578618... | 0.7586113 | 19 |
(dict,list) => OrderedDict Change the order of a dictionary's keys without copying the dictionary (save RAM!). Return an OrderedDict. | def ap8e(Csk6, sjXb):
jbXL = U8Lr()
for G1Hx in sjXb:
jbXL[G1Hx] = Csk6[G1Hx]
del Csk6[G1Hx]
return jbXL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qftx(tbx9):\n TDnD = U8Lr()\n TDnD['name'] = tbx9.get('name')\n TDnD['type'] = tbx9.get('type')\n TDnD['conditions'] = tbx9.get('conditions')\n TDnD['scopes'] = tbx9.get('scopes')\n TDnD['values'] = tbx9.get('values')\n return TDnD",
"def jIOt(WA7Q):\n return U8Lr(sorted(WA7Q.items(),... | [
"0.77341974",
"0.7549602",
"0.72244555",
"0.7211081",
"0.71733767",
"0.70260733",
"0.7001572",
"0.69658643",
"0.69565624",
"0.67984766",
"0.6785793",
"0.6783484",
"0.67714316",
"0.67714316",
"0.6657878",
"0.6599405",
"0.652962",
"0.65181047",
"0.6499753",
"0.648867",
"0.64734... | 0.7371928 | 2 |
Return the GC content of a sequence. | def uZ96(aWuw, DuZT=True):
aWuw = aWuw.upper()
Oa1e = aWuw.count('G')
Z9rn = aWuw.count('C')
a1PO = aWuw.count('T')
jzdc = aWuw.count('A')
s6sF = Oa1e + Z9rn
UHiN = Oa1e + Z9rn + a1PO + jzdc
if UHiN == 0:
print('Error in gc_content(sequence): sequence may contain only Ns')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V80h(YKHO, Q6uT):\n Q6uT = ''.join(Q6uT)\n VutF = ['G', 'C']\n jv1k = [WKvO for WKvO in Q6uT if WKvO in VutF]\n uZ96 = len(jv1k) / len(Q6uT) * 100\n return uZ96",
"def uZ96(YKHO):\n return round((YKHO.seq.count('C') + YKHO.seq.count('G')) / len(YKHO.seq) * 100, 6)",
"def uZ96(YKHO):\n ... | [
"0.7352656",
"0.73504376",
"0.7327413",
"0.71902776",
"0.7179495",
"0.7122227",
"0.7109416",
"0.7057572",
"0.7036531",
"0.69903207",
"0.6938453",
"0.69042575",
"0.69038445",
"0.68819445",
"0.67001104",
"0.6436935",
"0.64279115",
"0.64063615",
"0.63378394",
"0.63197803",
"0.62... | 0.58371973 | 41 |
(list,list) => list Return the intersection of two lists, i.e. the item in common. | def XMlP(Kt9y, I_KI):
return [ZfUD for ZfUD in I_KI if ZfUD in Kt9y] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zVQj(Kt9y, I_KI):\n return [ZfUD for ZfUD in Kt9y if ZfUD in I_KI]",
"def zVQj(iHrl, X1zw):\n return list(set(iHrl) & set(X1zw))",
"def XMlP(Kt9y, I_KI):\n Aofo = []\n for U6D_ in Kt9y:\n if U6D_ in I_KI:\n Aofo.append(U6D_)\n return Aofo",
"def XMlP(Kt9y, I_KI):\n ret... | [
"0.8651353",
"0.8571637",
"0.84734803",
"0.84359604",
"0.84165156",
"0.8357096",
"0.82608545",
"0.8224825",
"0.82186824",
"0.8211856",
"0.820132",
"0.8149289",
"0.8059274",
"0.8017981",
"0.79627275",
"0.7960993",
"0.79469144",
"0.7918936",
"0.7898973",
"0.78929025",
"0.788122... | 0.85676503 | 2 |
Convert a number into a bytes string. | def U0pJ(exwG):
return exwG.to_bytes(epAf.ceil(exwG.bit_length() / 8), 'little').decode() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jykZ(YKHO, FGW3):\n if not (type(FGW3) is SnBA.LongType or type(FGW3) is SnBA.IntType):\n raise TypeError('You must pass a long or an int')\n vIwR = ''\n while FGW3 > 0:\n vIwR = '%s%s' % (chr(FGW3 & 255), vIwR)\n FGW3 /= 256\n return vIwR",
"def jaYO(mLGw):\n v7uq = b''\n... | [
"0.8244941",
"0.82357645",
"0.82357645",
"0.7892567",
"0.77156323",
"0.73307323",
"0.72509885",
"0.72490364",
"0.72045577",
"0.71936023",
"0.7126945",
"0.7109317",
"0.71063447",
"0.70946276",
"0.70514894",
"0.7037035",
"0.703197",
"0.69853467",
"0.6971004",
"0.6942812",
"0.69... | 0.7930841 | 3 |
Generates a random string made by uppercase ascii chars and digits | def KdFI(u54L):
gLiZ = vIwR.ascii_uppercase + vIwR.digits
return ''.join((tuKI.choice(gLiZ) for hcXw in range(u54L))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yjEv():\n return chr(ord('A') + tuKI.randint(0, 25))",
"def BWvy() -> str:\n return ''.join((Acvy(tcl1 + BHGE) for bGrB in range(ajWY(0, 1000))))",
"def gkKB():\n return ''.join((tuKI.choice(yPrR) for bGrB in range(10)))",
"def HLwP(FVpJ=6):\n PdTY = vIwR.ascii_letters + vIwR.digits\n retu... | [
"0.80183536",
"0.7881274",
"0.78636444",
"0.77502227",
"0.76872736",
"0.76659584",
"0.7618979",
"0.7612216",
"0.7594825",
"0.75868326",
"0.75647795",
"0.7535594",
"0.7534639",
"0.7534113",
"0.75314975",
"0.751815",
"0.751815",
"0.7516284",
"0.75072575",
"0.7488333",
"0.748362... | 0.0 | -1 |
Return a list of filepaths for each file into path with the target extension. If recursive, it will loop over subfolders as well. | def zxMN(pmON, Fst3, znBS=False):
if not znBS:
for qaEx in SC2F.iglob(pmON + '/*.' + Fst3):
yield qaEx
else:
for tk5Y, AQSv, RRlC in Hy7s.walk(pmON):
for qaEx in SC2F.iglob(tk5Y + '/*.' + Fst3):
yield qaEx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vIK3():\n ckRy = []\n for tk5Y, AQSv, RRlC in Hy7s.walk('./'):\n for Ux0P in RRlC:\n if Ux0P.endswith(n_9U):\n ckRy.append(Hy7s.path.join(tk5Y, Ux0P))\n return ckRy",
"def XSeE(xtX7=None, Va2z=None):\n MVVZ = []\n if xtX7 is None:\n return MVVZ\n for ... | [
"0.79888374",
"0.75992024",
"0.7441269",
"0.74263746",
"0.73042965",
"0.73035365",
"0.72669977",
"0.72536373",
"0.7223477",
"0.72113156",
"0.7198788",
"0.7171401",
"0.7159493",
"0.71524745",
"0.71404916",
"0.7131608",
"0.71249926",
"0.70819604",
"0.70501786",
"0.70424443",
"0... | 0.71360767 | 15 |
Return the actions object or None if action doesn't exist. 'action' is an action 'path' (e.g. 'object/view'). Raises an ValueError exception if the action is of the wrong format. Permission Private Returns The actions object reference. | def rhCX(YKHO, XeOP):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q6sW(YKHO):\n if not YKHO.actions is None:\n return YKHO.actions\n else:\n return []",
"def Q6sW(YKHO, XeOP=None, Jyyj=None):\n return YKHO._get_actions(XeOP, Jyyj)",
"def q8Ng(YKHO, jxGD, XeOP, eLpg=False):\n Ilxn = YKHO._get_action_identifier(jxGD, XeOP)\n if eLpg:\n I... | [
"0.6603011",
"0.6470279",
"0.6321218",
"0.6292071",
"0.62491584",
"0.62491584",
"0.62491584",
"0.62379855",
"0.6197881",
"0.61922294",
"0.61808294",
"0.6179711",
"0.61491907",
"0.6128687",
"0.61234653",
"0.6061669",
"0.6046016",
"0.6046016",
"0.6046016",
"0.60414594",
"0.6040... | 0.61317074 | 13 |
Returns the input tensor view as numpy array. | def FRUf(mh5P):
I0Uz = mh5P.get_input_details()[0]['index']
return mh5P.tensor(I0Uz)()[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pMsC(WKvO):\n return WKvO.numpy()",
"def WTDd(vhpA):\n return vhpA.cpu().detach().numpy()",
"def UQOX(YKHO, vhpA):\n return vhpA.detach().cpu().numpy()",
"def iwLm(YKHO):\n BlLG = tF99('onnx')\n if not isinstance(YKHO.raw_tensor, (oyIN.ndarray, list, tuple, int, float)):\n return Bl... | [
"0.7573658",
"0.72767174",
"0.72490245",
"0.72410625",
"0.71448594",
"0.70789456",
"0.7049442",
"0.7026411",
"0.6914762",
"0.68935454",
"0.68843746",
"0.6881549",
"0.68507344",
"0.68220234",
"0.6814598",
"0.674697",
"0.6677224",
"0.6675714",
"0.6659229",
"0.6656181",
"0.66395... | 0.6151223 | 72 |
Return the cosine of a tensor ``a``. | def YhSR(YKHO: Any, jzdc: Tensor) -> llWB:
raise NotImplementedError("Backend '{}' has not implemented `cos`.".format(YKHO.name)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fH9s(YKHO: Any, jzdc: Tensor) -> llWB:\n raise NotImplementedError(\"Backend '{}' has not implemented `acos`.\".format(YKHO.name))",
"def tFNH(WKvO):\n return oyIN.cos(WKvO)",
"def tFNH(YKHO, jzdc, Fg_i):\n jzdc = oyIN.array(jzdc)\n Fg_i = oyIN.array(Fg_i)\n vP2v = oyIN.dot(jzdc, Fg_i)\n ... | [
"0.7458726",
"0.6995391",
"0.68997365",
"0.6864063",
"0.67525893",
"0.67470014",
"0.67419726",
"0.6730689",
"0.6723354",
"0.66779613",
"0.65936273",
"0.65926427",
"0.64994854",
"0.6495675",
"0.64617634",
"0.64423734",
"0.6441038",
"0.6411399",
"0.640602",
"0.63846856",
"0.633... | 0.7836314 | 0 |
Return the atan of a tensor ``y``/``x``. | def vwZf(YKHO: Any, LVAh: Tensor, WKvO: Tensor) -> llWB:
raise NotImplementedError("Backend '{}' has not implemented `atan2`.".format(YKHO.name)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YylR(WKvO: torch.Tensor) -> ht2j.Tensor:\n return ht2j.atan2(WKvO[..., 1], WKvO[..., 0])",
"def Udy2(*, u28U, D1Q7) -> ImMB:\n Vgdn = ZylS.math.atan2(y=u28U, x=D1Q7)\n return Vgdn",
"def Gqkf(WKvO):\n if isinstance(WKvO, SG4E):\n return SG4E(epAf.atan(WKvO.x), WKvO.dx / (1 + WKvO.x ** 2)... | [
"0.7586776",
"0.75270957",
"0.7515453",
"0.7503701",
"0.73672813",
"0.732912",
"0.7295212",
"0.727727",
"0.72633314",
"0.7213073",
"0.7129357",
"0.7075629",
"0.7021044",
"0.6965094",
"0.6959236",
"0.69541",
"0.69462705",
"0.6909179",
"0.68867016",
"0.68846464",
"0.68695176",
... | 0.7534393 | 1 |
Return the total number of elements in ``a`` in tensor form. | def zNig(YKHO: Any, jzdc: Tensor) -> llWB:
raise NotImplementedError("Backend '{}' has not implemented `size`.".format(YKHO.name)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hDhB(vhpA):\n return DIkg(hbDd(vhpA))",
"def zWTy(jzdc, jDK_=None):\n if hasattr(jzdc, 'count'):\n mLGw = jzdc.count(axis=jDK_)\n if isinstance(mLGw, oyIN.ndarray) and mLGw.ndim == 0:\n mLGw = int(mLGw)\n elif jDK_ is None:\n mLGw = jzdc.size\n else:\n mLGw ... | [
"0.74205977",
"0.71087945",
"0.71087945",
"0.7064099",
"0.6834875",
"0.68348134",
"0.6819671",
"0.67726654",
"0.6631071",
"0.6626937",
"0.66062945",
"0.6476939",
"0.6449269",
"0.64436257",
"0.6427661",
"0.6416573",
"0.6391795",
"0.63901514",
"0.63874596",
"0.63600576",
"0.635... | 0.66208035 | 10 |
Return the total number of elements in tensor ``a``, but in integer form. | def MoOC(YKHO: Any, jzdc: Tensor) -> int:
return Pusg(AdrB, list(jzdc.shape) + [1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zWTy(jzdc, jDK_=None):\n if hasattr(jzdc, 'count'):\n mLGw = jzdc.count(axis=jDK_)\n if isinstance(mLGw, oyIN.ndarray) and mLGw.ndim == 0:\n mLGw = int(mLGw)\n elif jDK_ is None:\n mLGw = jzdc.size\n else:\n mLGw = jzdc.shape[jDK_]\n return mLGw",
"def zWTy(... | [
"0.7400388",
"0.7400388",
"0.71855164",
"0.647345",
"0.646573",
"0.64595675",
"0.6349315",
"0.6330503",
"0.62905186",
"0.62675303",
"0.62661064",
"0.62314147",
"0.6222277",
"0.6196036",
"0.61717874",
"0.6169968",
"0.6161228",
"0.61049294",
"0.608704",
"0.60762715",
"0.6072792... | 0.6061042 | 22 |
Reshape a tensor to the [2, 2, ...] shape. | def QERh(YKHO: Any, jzdc: Tensor) -> llWB:
Spuz = int(oyIN.log2(YKHO.sizen(jzdc)))
jzdc = YKHO.reshape(jzdc, [2 for bGrB in range(Spuz)])
return jzdc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ca86(vhpA):\n return vhpA.reshape(vhpA.shape[0], vhpA.shape[1] * vhpA.shape[2])",
"def b7l5(vhpA):\n with ZylS.compat.v1.name_scope(name='reshape_to_2d'):\n fdMZ = vhpA.shape.rank if vhpA.shape is not None else None\n if fdMZ is not None and fdMZ != 2:\n if fdMZ >= 3:\n ... | [
"0.8086132",
"0.806888",
"0.80363274",
"0.80363274",
"0.7302445",
"0.72763705",
"0.7191606",
"0.7055658",
"0.70053065",
"0.6998967",
"0.69405353",
"0.6939946",
"0.6938619",
"0.6928988",
"0.6928988",
"0.68720776",
"0.68604386",
"0.6827799",
"0.68238914",
"0.682019",
"0.6808555... | 0.6645804 | 38 |
Reshape a tensor to the [l, l] shape. | def cBXk(YKHO: Any, jzdc: Tensor) -> llWB:
vC9B = int(oyIN.sqrt(YKHO.sizen(jzdc)))
jzdc = YKHO.reshape(jzdc, [vC9B, vC9B])
return jzdc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q3V_(FRUf: tf.Tensor, ROpF: List[int], mWFP: str='tf_util_reshape'):\n return ZylS.reshape(FRUf, ROpF, mWFP)",
"def PWgb(WKvO: tf.Tensor) -> ZylS.Tensor:\n return ZylS.reshape(WKvO, (-1,))",
"def PWgb(WKvO):\n return ZylS.reshape(WKvO, [-1])",
"def PWgb(WKvO, mWFP='flatten'):\n with ZylS.name... | [
"0.7077135",
"0.69656414",
"0.68738693",
"0.6860201",
"0.68391454",
"0.6799483",
"0.67900443",
"0.67785937",
"0.6739309",
"0.6720039",
"0.66991526",
"0.6696498",
"0.668771",
"0.6658033",
"0.6620956",
"0.6618043",
"0.6606468",
"0.6592771",
"0.6575513",
"0.6573451",
"0.6573451"... | 0.6597245 | 17 |
Compute the standard deviation along the specified axis. | def M1Jx(YKHO: Any, jzdc: Tensor, jDK_: Optional[Sequence[int]]=None, JsoO: bool=False) -> llWB:
raise NotImplementedError("Backend '{}' has not implemented `std`.".format(YKHO.name)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M1Jx(YKHO, jDK_=None, P_MT=0):\n return YKHO.__reduce(tF9S.nanstd, axis=jDK_, ddof=P_MT)",
"def p7FH(YKHO, jDK_):\n jDK_ = jDK_.lower()\n ezWE = oyIN.std(YKHO.data, axis=YKHO.conf['order'][jDK_]) / oyIN.mean(YKHO.data, axis=YKHO.conf['order'][jDK_])\n Fv2L = YKHO.UpdateConf(jDK_)\n return D6E7... | [
"0.75763476",
"0.7348324",
"0.72748506",
"0.7230984",
"0.71799535",
"0.7117614",
"0.71081555",
"0.7084004",
"0.70509565",
"0.7016111",
"0.701052",
"0.69987345",
"0.6982494",
"0.6979228",
"0.6978533",
"0.692602",
"0.6879984",
"0.6870017",
"0.68636185",
"0.6855452",
"0.6855452"... | 0.0 | -1 |
Softmax function. Computes the function which rescales elements to the range [0,1] such that the elements along axis sum to 1. | def N93T(YKHO: Any, jzdc: Sequence[Tensor], jDK_: Optional[int]=None) -> llWB:
raise NotImplementedError("Backend '{}' has not implemented `softmax`.".format(YKHO.name)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(WKvO):\n return oyIN.exp(WKvO - oyIN.max(WKvO)) / oyIN.sum(oyIN.exp(WKvO - oyIN.max(WKvO)), axis=0)",
"def N93T(WKvO):\n if WKvO.ndim == 1:\n uw5A = oyIN.exp(WKvO - oyIN.max(WKvO))\n return uw5A / uw5A.sum(axis=0)\n else:\n uw5A = oyIN.exp(WKvO.T - oyIN.max(WKvO, axis=1))\n... | [
"0.8570218",
"0.8505948",
"0.84855825",
"0.8462336",
"0.8451181",
"0.84139735",
"0.84095657",
"0.8407848",
"0.8401511",
"0.84009755",
"0.83952624",
"0.8389098",
"0.8386521",
"0.8386108",
"0.8386052",
"0.8385273",
"0.83849645",
"0.83837694",
"0.838094",
"0.83806586",
"0.838065... | 0.0 | -1 |
Onehot encodes the given ``a``. Each index in the input ``a`` is encoded as a vector of zeros of length ``num`` | def aFAW(YKHO: Any, jzdc: Tensor, mLGw: int) -> llWB:
raise NotImplementedError("Backend '{}' has not implemented `onehot`.".format(YKHO.name)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aFAW(jzdc):\n co3n = jzdc.max() + 1\n yvT9 = oyIN.zeros((jzdc.size, co3n), dtype=oyIN.uint8)\n yvT9[oyIN.arange(jzdc.size), jzdc.ravel()] = 1\n yvT9 = yvT9.reshape(jzdc.shape + (co3n,))\n return yvT9",
"def KLLm(jzdc, jTqs):\n jzdc = jzdc.astype(oyIN.int64)\n return oyIN.squeeze(oyIN.eye... | [
"0.811107",
"0.7702894",
"0.7666479",
"0.7623062",
"0.7579204",
"0.75626403",
"0.7545761",
"0.7541195",
"0.7539515",
"0.75206625",
"0.7502251",
"0.74998254",
"0.7477237",
"0.74627006",
"0.74602336",
"0.7454496",
"0.7448906",
"0.74378747",
"0.7396911",
"0.739432",
"0.7365726",... | 0.7548609 | 6 |
Shift the bits of an integer x to the right y bits. | def H_EU(YKHO: Any, WKvO: Tensor, LVAh: Tensor) -> llWB:
raise NotImplementedError("Backend '{}' has not implemented `right_shift`.".format(YKHO.name)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DkWr(YKHO, WKvO, LVAh):\n pass",
"def H_EU(YKHO, WKvO, LVAh):\n nvUx(NotImplementedError)",
"def yhqV(WKvO, DkWr=0):\n return qlQt.int_to_uint(WKvO >> DkWr) % 2 ** 32",
"def DkWr(YKHO, WE8E, i3eI):\n YKHO.x += WE8E\n YKHO.y += i3eI",
"def wrcZ(YKHO, WKvO, LVAh):\n YKHO.v[15] = YKHO.v[... | [
"0.72036123",
"0.7009873",
"0.6821697",
"0.6497477",
"0.6453613",
"0.6450408",
"0.6364262",
"0.63329697",
"0.62803555",
"0.6273422",
"0.6263505",
"0.6238521",
"0.6211427",
"0.61310315",
"0.6085351",
"0.6062334",
"0.6041648",
"0.6003294",
"0.59783053",
"0.59625685",
"0.5962121... | 0.62110937 | 13 |
Shift the bits of an integer x to the left y bits. | def LYTE(YKHO: Any, WKvO: Tensor, LVAh: Tensor) -> llWB:
raise NotImplementedError("Backend '{}' has not implemented `left_shift`.".format(YKHO.name)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DkWr(YKHO, WKvO, LVAh):\n pass",
"def H_EU(YKHO, WKvO, LVAh):\n nvUx(NotImplementedError)",
"def yhqV(WKvO, DkWr=0):\n return qlQt.int_to_uint(WKvO >> DkWr) % 2 ** 32",
"def DkWr(YKHO, WKvO=0, LVAh=0):\n if not isinstance(WKvO, int):\n assert LVAh == 0, 'Bag.shift: x=%r not integer and... | [
"0.72193027",
"0.6872593",
"0.67186654",
"0.6564269",
"0.65121293",
"0.63817513",
"0.62955177",
"0.62475806",
"0.62051815",
"0.61802584",
"0.6168395",
"0.615937",
"0.6149998",
"0.6140457",
"0.61292535",
"0.6112696",
"0.6106103",
"0.61021537",
"0.61021537",
"0.6082774",
"0.606... | 0.60532707 | 21 |
Generate the coo format sparse matrix from indices and values, which is the only sparse format supported in different ML backends. | def _loL(YKHO: Any, _0VL: Tensor, hkxX: Tensor, ROpF: Tensor) -> llWB:
raise NotImplementedError("Backend '{}' has not implemented `coo`.".format(YKHO.name)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NRUd(YKHO):\n rdlD = []\n fvDH = []\n nPrm = []\n Enzc = YKHO.id2i\n for YRbF, abTv in list(YKHO.neighbor_offsets.items()):\n dxhl = YKHO.cardinalities[YRbF]\n rdlD.extend([Enzc[YRbF]] * dxhl)\n fvDH.extend(abTv)\n nPrm.extend(YKHO.weights[YRbF])\n rdlD = oyIN.arra... | [
"0.7693505",
"0.75376993",
"0.7511827",
"0.7419814",
"0.7293848",
"0.71464956",
"0.7107153",
"0.70564353",
"0.6914683",
"0.6890346",
"0.68635577",
"0.6787623",
"0.678657",
"0.678657",
"0.6783737",
"0.6764533",
"0.6742579",
"0.6732339",
"0.6732238",
"0.6727705",
"0.67148715",
... | 0.79653734 | 0 |
Convert a sparse matrix to dense tensor. | def NG8_(YKHO: Any, EsO2: Tensor) -> llWB:
raise NotImplementedError("Backend '{}' has not implemented `to_dense`.".format(YKHO.name)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NG8_(YKHO, vhpA):\n if isinstance(vhpA, ZylS.SparseTensor):\n return ZylS.sparse_tensor_to_dense(vhpA)\n else:\n return vhpA",
"def NG8_(YKHO) -> llWB:\n return L4zi.get('csr_to_dense')(YKHO)",
"def N9pj(FXoG):\n _0VL = ZylS.where(ZylS.not_equal(FXoG, -1))\n hkxX = ZylS.gather_... | [
"0.7778051",
"0.75810146",
"0.749466",
"0.7398158",
"0.73563796",
"0.7130545",
"0.71296525",
"0.70940614",
"0.7077785",
"0.70661616",
"0.7029347",
"0.702456",
"0.6992453",
"0.6975031",
"0.6957214",
"0.6940793",
"0.69203824",
"0.691891",
"0.69154423",
"0.6912386",
"0.6899894",... | 0.6284247 | 85 |
Function that computes a (forwardmode) Jacobianvector product of ``f``. Strictly speaking, this function is value_and_jvp. | def DT3J(YKHO: Any, eHNT: Callable[..., Any], g4y1: Union[Tensor, Sequence[Tensor]], Ty9i: Union[Tensor, Sequence[Tensor]]) -> AzJI[uLKX[llWB, bdIy[llWB]], uLKX[llWB, bdIy[llWB]]]:
raise NotImplementedError("Backend '{}' has not implemented `jvp`.".format(YKHO.name)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YGej(eHNT, WKvO, Jw7X=1e-08, ywwl=0):\n _Y71 = []\n lDaR = eHNT(WKvO)\n pdhd = oyIN.eye(len(WKvO))\n KaIg = eHNT(WKvO)\n for YRbF in range(len(WKvO)):\n o36Q = eHNT(WKvO + pdhd[:, YRbF] * Jw7X)\n OUwQ = (o36Q - KaIg) / Jw7X\n if ywwl > 0:\n a1PO = OUwQ[:ywwl, ywwl... | [
"0.7273437",
"0.7159744",
"0.7019331",
"0.70054096",
"0.69471365",
"0.6939072",
"0.68939966",
"0.6846035",
"0.68146366",
"0.6720858",
"0.6708861",
"0.6680767",
"0.66525036",
"0.66507983",
"0.66231096",
"0.66171944",
"0.66051143",
"0.65659064",
"0.6555863",
"0.65172523",
"0.65... | 0.60757303 | 45 |
Return the vectorized map or batched version of ``f`` on the first extra axis. The general interface supports ``f`` with multiple arguments and broadcast in the fist dimension. | def pkba(YKHO: Any, eHNT: Callable[..., Any], hRcq: Union[int, Sequence[int]]=0) -> ImMB:
raise NotImplementedError("Backend '{}' has not implemented `vmap`.".format(YKHO.name)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S6ID(eHNT, qw7D, *qIxc):\n return oyIN.array([eHNT(rdlD, *qIxc) for rdlD in qw7D])",
"def _Eet(eHNT):\n from numpy import array\n\n def vuvg(EcVT, *qIxc, **B2fa):\n if LpJY(EcVT):\n return eHNT(EcVT, *qIxc, **B2fa)\n return array([eHNT(WKvO, *qIxc, **B2fa) for WKvO in EcVT])... | [
"0.7101141",
"0.70097697",
"0.7004081",
"0.6926445",
"0.6770272",
"0.66438866",
"0.65169394",
"0.64614904",
"0.64614075",
"0.64580667",
"0.64092916",
"0.6267484",
"0.6262794",
"0.6238198",
"0.6176073",
"0.6172981",
"0.61408955",
"0.61178535",
"0.6102144",
"0.60745376",
"0.604... | 0.61272174 | 17 |
Return the VVAG function of ``f``. The inputs for ``f`` is (args[0], args[1], args[2], ...), and the output of ``f`` is a scalar. Suppose VVAG(f) is a function with inputs in the form (vargs[0], args[1], args[2], ...), where vagrs[0] has one extra dimension than args[0] in the first axis and consistent with args[0] in ... | def Fsgj(YKHO: Any, eHNT: Callable[..., Any], tqyv: Union[int, Sequence[int]]=0, hRcq: Union[int, Sequence[int]]=0, MvlC: bool=False) -> YrBT[..., AzJI[ImMB, ImMB]]:
raise NotImplementedError("Backend '{}' has not implemented `vectorized_value_and_grad`.".format(YKHO.name)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pkba(YKHO: Any, eHNT: Callable[..., Any], hRcq: Union[int, Sequence[int]]=0) -> ImMB:\n raise NotImplementedError(\"Backend '{}' has not implemented `vmap`.\".format(YKHO.name))",
"def Z2YL(YKHO, *qIxc):\n return PZpo.TGStatVec_GetValV(YKHO, *qIxc)",
"def aJ4_(*qIxc):\n return JGLG.gevStatV(*qIxc)... | [
"0.5636236",
"0.5492036",
"0.5479669",
"0.5436042",
"0.5415446",
"0.5383978",
"0.5360244",
"0.53192157",
"0.52815354",
"0.5253588",
"0.52247363",
"0.52171534",
"0.51191723",
"0.5116602",
"0.51126415",
"0.5097406",
"0.5094641",
"0.506787",
"0.5040879",
"0.501801",
"0.5001929",... | 0.5322216 | 7 |
Given a tensor ``a``, return the corresponding backend | def Ei03(jzdc: Tensor, L_9R: bool=True) -> ImMB:
yR_P = type(jzdc).__module__.split('.')[0]
VouX = LBIJ[yR_P]
if not L_9R:
return VouX
return JLXL(VouX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ei03(jzdc: Tensor, L_9R: bool=True) -> ImMB:\n yR_P = type(jzdc).__module__.split('.')[0]\n VouX = LBIJ[yR_P]\n if not L_9R:\n return VouX\n return JLXL(VouX)",
"def JLXL(qw7D):\n if isinstance(qw7D, ht2j.Tensor):\n return ht2j\n elif isinstance(qw7D, oyIN.ndarray):\n r... | [
"0.7758982",
"0.70791066",
"0.6563381",
"0.6542583",
"0.6529445",
"0.6386069",
"0.619271",
"0.6191638",
"0.61296517",
"0.6112067",
"0.6083639",
"0.5962629",
"0.58050215",
"0.57914156",
"0.57367635",
"0.57041454",
"0.5686087",
"0.56400007",
"0.5603095",
"0.5597944",
"0.5594621... | 0.7782458 | 0 |
PyTorch nn Module wrapper on quantum function ``f``. | def FIMM(YKHO, eHNT: Callable[..., Any], bCyF: Sequence[Tuple[int, ...]], MuED: Union[Any, Sequence[Any]]=None, tQdI: bool=True, hRcq: Union[int, Sequence[int]]=0, YQQr: bool=True, y4gV: bool=True, ANCh: bool=False):
super().__init__()
if tQdI:
eHNT = DDLl.vmap(eHNT, vectorized_argnums=hRcq)
if YQQr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lr0b(YKHO):\n\n class M1(U78l.Module):\n\n def FIMM(YKHO):\n super().__init__()\n YKHO.w1 = U78l.Parameter(ht2j.empty(1, 1))\n YKHO.b1 = U78l.Parameter(ht2j.zeros(1))\n ht2j.nn.init.kaiming_uniform_(YKHO.w1, a=epAf.sqrt(5))\n\n def KVH6(YKHO, WKvO):\... | [
"0.6747956",
"0.5946195",
"0.5921119",
"0.5904111",
"0.58891493",
"0.5855822",
"0.5854419",
"0.5824345",
"0.5818667",
"0.57856613",
"0.5783086",
"0.5776759",
"0.57617515",
"0.5749285",
"0.57453597",
"0.5738211",
"0.57128054",
"0.5694727",
"0.5659194",
"0.56564605",
"0.5655738... | 0.56403047 | 22 |
Get response body as iterator content (stream). | def uACi(YKHO, ztRo=1024, GGsY=False):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n759(YKHO) -> bDy6[J8o1]:\n return YKHO._request.iter_content()",
"def Ueki(YKHO) -> bytes:\n try:\n return YKHO._content\n except AttributeError:\n YKHO._validate_streaming_access()\n YKHO._content = YKHO._internal_response.body() or b''.join(YKHO.iter_raw())\n YKHO._clo... | [
"0.76150143",
"0.71926576",
"0.7106584",
"0.70928043",
"0.7012021",
"0.7003062",
"0.6967766",
"0.68825555",
"0.6699254",
"0.6698754",
"0.6689018",
"0.6664178",
"0.66636854",
"0.664551",
"0.6645464",
"0.6619105",
"0.6598632",
"0.6573585",
"0.65678936",
"0.6506671",
"0.6506438"... | 0.60780716 | 48 |
Get response body as iterator content (stream). | def uACi(YKHO, ztRo=1024, GGsY=False):
return YKHO.response.iter_content(chunk_size=ztRo, decode_unicode=GGsY) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n759(YKHO) -> bDy6[J8o1]:\n return YKHO._request.iter_content()",
"def Ueki(YKHO) -> bytes:\n try:\n return YKHO._content\n except AttributeError:\n YKHO._validate_streaming_access()\n YKHO._content = YKHO._internal_response.body() or b''.join(YKHO.iter_raw())\n YKHO._clo... | [
"0.76150143",
"0.71926576",
"0.7106584",
"0.70928043",
"0.7012021",
"0.7003062",
"0.68825555",
"0.6699254",
"0.6698754",
"0.6689018",
"0.6664178",
"0.66636854",
"0.664551",
"0.6645464",
"0.6619105",
"0.6598632",
"0.6573585",
"0.65678936",
"0.6506671",
"0.6506438",
"0.648488",... | 0.6967766 | 6 |
Returns the average value of all the nodes in t. >>> t0 = Tree(0, [Tree(1), Tree(2, [Tree(3)])]) >>> average(t0) 1.5 >>> t1 = Tree(8, [t0, Tree(4)]) >>> average(t1) 3.0 | def S8vG(a1PO):
def PKrH(a1PO):
wjRY, UHFx = (a1PO.label, 1)
for Fg_i in a1PO.branches:
wjRY, UHFx = (wjRY + PKrH(Fg_i)[0], UHFx + PKrH(Fg_i)[1])
return (wjRY, UHFx)
wjRY, UHFx = PKrH(a1PO)
return wjRY / UHFx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S8vG(a1PO):\n\n def PKrH(a1PO):\n if a1PO.is_leaf():\n return a1PO.label\n else:\n return a1PO.label + sum([PKrH(Fg_i) for Fg_i in a1PO.branches])\n\n def nztc(a1PO):\n UHFx = 1\n for Fg_i in a1PO.branches:\n UHFx += nztc(Fg_i)\n return ... | [
"0.7997749",
"0.7812056",
"0.7780968",
"0.7747893",
"0.7050046",
"0.7050046",
"0.69786185",
"0.69379336",
"0.6657516",
"0.6657516",
"0.6627137",
"0.64937586",
"0.6493426",
"0.64003676",
"0.63903934",
"0.62928635",
"0.62814283",
"0.6274605",
"0.6224738",
"0.61503655",
"0.61316... | 0.7730728 | 4 |
Return a custom 404 error. | def m7kB(tTpl):
return ('Sorry, Nothing at this URL.', 404) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o3cf(P1dF):\n return '404'",
"def mZnU():\n return oGir(RA4y, '<h1>404 Error : Some crap went down, so just <a href=\"/\">HEAD HOME</a>.</h1>', [])",
"def eJkH(XObx):\n return dict(err=XObx)",
"def o3cf(P1dF):\n return G3KB('Not Found', 404)",
"def RQdI(P1dF):\n return 'Sorry, Nothing at... | [
"0.8263737",
"0.79933435",
"0.79192984",
"0.78825426",
"0.7845269",
"0.78424567",
"0.7818006",
"0.7818006",
"0.7818006",
"0.7816168",
"0.78139937",
"0.78001934",
"0.77720594",
"0.77618265",
"0.7702134",
"0.76248384",
"0.7620647",
"0.76148254",
"0.75642604",
"0.75578934",
"0.7... | 0.72552013 | 76 |
Return a custom 500 error. | def e_kA(tTpl):
return ('Sorry, unexpected error: {}'.format(tTpl), 500) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C89g(tTpl):\n return (TvZl('500.html'), 500)",
"def e_kA(tTpl):\n return ('Sorry, unexpected error: {}'.format(tTpl), 500)",
"def r1yd(tTpl):\n return (TvZl('500.html'), 500)",
"def e_kA(tTpl):\n return ('Sorry, unexpected error: {}'.format(tTpl), 500)",
"def r1yd(XObx):\n return (TvZl('... | [
"0.77419347",
"0.77353114",
"0.7727835",
"0.76502776",
"0.76437634",
"0.7625618",
"0.7604917",
"0.7602182",
"0.7597321",
"0.75885934",
"0.7562816",
"0.7562463",
"0.75489175",
"0.75489175",
"0.75374174",
"0.75283426",
"0.75283426",
"0.74986404",
"0.74597794",
"0.7424432",
"0.7... | 0.7710948 | 6 |
Splits the input file name string into path, name and extension | def BIH8(Ux0P):
pmON, mWFP = Hy7s.path.split(Ux0P)
mWFP, YBcr = Hy7s.path.splitext(mWFP)
return (pmON, mWFP, YBcr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kdT2(Ux0P):\n return Hy7s.path.splitext(Ux0P)[0]",
"def kdT2(pmON):\n Ux0P = yFjF(pmON)\n aPr_, Fst3 = Hy7s.path.splitext(Ux0P)\n Fst3 = Fst3.replace('.', '').strip()\n return (aPr_, Fst3)",
"def _CMI(mWFP):\n return pmON.splitext(pmON.split(mWFP)[1])[0].split('_')",
"def ud_i(Ux0P):\n ... | [
"0.7815397",
"0.77862644",
"0.7778147",
"0.77401036",
"0.7705434",
"0.7705236",
"0.7694898",
"0.76583135",
"0.75997645",
"0.75117713",
"0.74733126",
"0.74623823",
"0.7405201",
"0.74047744",
"0.7368666",
"0.7364211",
"0.73630244",
"0.73630244",
"0.73388964",
"0.7326538",
"0.72... | 0.73269486 | 19 |
normalize the L2 norm of the template density_map | def oWcy(rPXJ):
aM8h = PZyS(oyIN.sum(oyIN.square(rPXJ.density_map)))
if aM8h != 0:
return rPXJ.density_map / aM8h
else:
raise Exception('Error normalizing template: L2 norm is zero') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QnOr(WKvO):\n return WKvO / oyIN.linalg.norm(WKvO)",
"def XUZM(xfoo):\n JCoA = oyIN.amax(xfoo)\n xfoo = xfoo / JCoA\n xfoo *= 100\n return xfoo",
"def rrcH(YKHO, eHiF):\n CkYf = YKHO.calculate_vector_norm(eHiF)\n for H5ew, BWXx in eHiF.items():\n eHiF[H5ew] = BWXx / CkYf\n re... | [
"0.6580485",
"0.6471754",
"0.6464706",
"0.64528924",
"0.63657755",
"0.6310554",
"0.6275769",
"0.62682533",
"0.6259449",
"0.625452",
"0.62238866",
"0.62134975",
"0.62018627",
"0.61481565",
"0.61413056",
"0.61261207",
"0.611249",
"0.60762054",
"0.60467345",
"0.60408413",
"0.603... | 0.82816577 | 0 |
Returns the contact object of this principal. | def aimK(YKHO, AQnM, d0C1=False):
if not YKHO.is_contact(AQnM):
raise ValueError('Principal %s is not a contact' % str(AQnM))
Piln = OZpC(UWoM(), 'portal_catalog')
xDcj = {'portal_type': 'opengever.contact.contact', 'contactid': AQnM}
if not d0C1:
T1p0 = muA7.searchResults(Piln, **xDcj)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mxk0(YKHO):\n YKHO.logger.debug(\"In 'contact' getter.\")\n return YKHO._contact",
"def Mxk0(YKHO):\n return YKHO._contact",
"def Mxk0(YKHO):\n return YKHO._contact",
"def JKRR(YKHO):\n return YKHO._contact_person",
"def Mxk0(YKHO):\n return YKHO.contacts.get()",
"def aimK(YKHO):\n ... | [
"0.82034504",
"0.7918247",
"0.7918247",
"0.76068723",
"0.75540084",
"0.7216318",
"0.71904004",
"0.70442456",
"0.6961927",
"0.67687595",
"0.67105234",
"0.668954",
"0.66541535",
"0.65827644",
"0.6496891",
"0.6490019",
"0.6479621",
"0.646498",
"0.64428663",
"0.6353057",
"0.63469... | 0.7627597 | 3 |
Returns a client identified by `client_id`. | def suPn(YKHO, zb3C):
x0hE = YKHO._clients_query().filter_by(enabled=True, client_id=zb3C).first()
return x0hE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jRq6(zb3C):\n return i9zE.query.get(zb3C)",
"def wVsW(zb3C):\n return i9zE.query.filter(i9zE.client_id == zb3C).first()",
"def Gy8V(cuiw, zb3C):\n return B373.get_client(zb3C)",
"def NMoC(YKHO, zb3C):\n if YKHO.has(zb3C):\n x0hE = YKHO.clients[zb3C]\n else:\n x0hE = None\n ... | [
"0.87730056",
"0.8504586",
"0.8154446",
"0.7992337",
"0.7822801",
"0.77177995",
"0.7717069",
"0.7484149",
"0.7401724",
"0.7325526",
"0.73061925",
"0.73061925",
"0.72517264",
"0.70381993",
"0.6946772",
"0.68638265",
"0.68638265",
"0.68211144",
"0.6786978",
"0.67454904",
"0.672... | 0.8475752 | 2 |
Return True if the specified user is in the user_group of the specified client | def b4MZ(YKHO, n10L=None, zb3C=None):
if not zb3C:
zb3C = RTzd()
if not n10L:
mS46 = OZpC(UWoM(), 'portal_membership').getAuthenticatedMember()
n10L = mS46.getId()
return YKHO._is_client_assigned(n10L, zb3C) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KbQy(CBIr, uOe2):\n try:\n return CBIr in uOe2.get_users()\n except:\n return 'Invalid Input'",
"def KbQy(CBIr, uOe2):\n DW23 = uOe2.get_users()\n if CBIr in DW23:\n return True\n eTTr = False\n moMn = uOe2.get_groups()\n for KqA1 in moMn:\n eTTr = KbQy(CBIr, ... | [
"0.7754967",
"0.752884",
"0.7505384",
"0.7504875",
"0.750345",
"0.74490374",
"0.7439694",
"0.7439623",
"0.7426706",
"0.7420023",
"0.7417628",
"0.74161595",
"0.73853904",
"0.7341463",
"0.732434",
"0.7320005",
"0.7320005",
"0.7320005",
"0.7279434",
"0.7269654",
"0.7208028",
"... | 0.0 | -1 |
Return whether a row is empty i.e. has no filled squares. | def t0SE(YKHO, LVAh: int) -> bool:
if not 0 <= LVAh < YKHO._height:
raise ValueError('Invalid row specified.')
for WKvO in range(YKHO._width):
if YKHO._field[WKvO][LVAh] != None:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nBv7(rdlD):\n at7l = [VmPb for VmPb in rdlD if VmPb]\n return len(at7l) > 0",
"def Vy5n(YKHO):\n return all((VmPb.value for YRbF in range(YKHO.size) for VmPb in YKHO.get_row(YRbF)))",
"def FBfn(YKHO, rdlD, fvDH):\n return YKHO._cells[rdlD][fvDH] == KAvf",
"def FBfn(YKHO, rdlD, fvDH):\n ret... | [
"0.84484404",
"0.83668494",
"0.82940227",
"0.82940227",
"0.82940227",
"0.81646293",
"0.81104296",
"0.80805707",
"0.80670893",
"0.79323894",
"0.7921364",
"0.78921026",
"0.7878637",
"0.7841209",
"0.7778503",
"0.7764657",
"0.77470595",
"0.7732558",
"0.77300286",
"0.7728972",
"0.... | 0.8309125 | 2 |
Return True if `self` is equal to `other`. | def xa14(YKHO, Elif):
if isinstance(Elif, YKHO.__class__):
return YKHO.__dict__ == Elif.__dict__
return NotImplemented | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def InF8(YKHO, Elif):\n return YKHO.__eq__(Elif)",
"def aPi6(YKHO, Elif):\n return bool(YKHO.impl['equals'](YKHO, Elif))",
"def xa14(YKHO, Elif):\n return YKHO is Elif",
"def aPi6(YKHO, Elif):\n pass",
"def aPi6(YKHO, Elif):\n pass",
"def xa14(YKHO, Elif):\n if YKHO is Elif:\n re... | [
"0.87064546",
"0.85551536",
"0.8374296",
"0.83324224",
"0.83324224",
"0.8306582",
"0.8281927",
"0.827246",
"0.827246",
"0.827246",
"0.8271512",
"0.8264168",
"0.82217276",
"0.8219748",
"0.817891",
"0.8177726",
"0.8177726",
"0.8174084",
"0.8168994",
"0.81661385",
"0.81628174",
... | 0.0 | -1 |
String representation of the Presentation Context. | def zAg0(YKHO):
KCHu = 'ID: {0!s}\n'.format(YKHO.ID)
if YKHO.AbstractSyntax is not None:
KCHu += 'Abstract Syntax: {0!s}\n'.format(YKHO.AbstractSyntax)
KCHu += 'Transfer Syntax(es):\n'
for G7HG in YKHO.TransferSyntax:
KCHu += '\t={0!s}\n'.format(G7HG)
if YKHO.Result is not None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO) -> str:\n return f'Context({YKHO._dict.__repr__()})'",
"def zAg0(YKHO) -> str:\n return f'Context({YKHO._dict.__str__()})'",
"def QpfX(YKHO) -> str:\n raise NotImplementedError",
"def QpfX(YKHO) -> str:\n raise NotImplementedError",
"def zAg0(YKHO):\n l5Ny = f'Context: {YKHO.q... | [
"0.7907245",
"0.77663785",
"0.727797",
"0.7101262",
"0.6929497",
"0.6871783",
"0.68111914",
"0.676664",
"0.6759562",
"0.6758945",
"0.6742503",
"0.673795",
"0.6690845",
"0.6690845",
"0.6690845",
"0.6690845",
"0.6631593",
"0.6613894",
"0.6604882",
"0.66007787",
"0.65608966",
... | 0.0 | -1 |
Return the Presentation Context's ID parameter. | def yHil(YKHO):
return YKHO._id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WV7m(YKHO) -> str:\n return YKHO._context_id",
"def VveW(YKHO) -> str:\n return YKHO._context_id",
"def VveW(YKHO):\n return YKHO._context_id",
"def jeSt(YKHO):\n return YKHO._my_parameter.get_id()",
"def mLJR(YKHO):\n return Q0HP(YKHO.context)",
"def unpH(YKHO):\n return YKHO._cont... | [
"0.734811",
"0.7305953",
"0.72883445",
"0.7188453",
"0.7072553",
"0.69469744",
"0.6829454",
"0.6792369",
"0.6759354",
"0.67161775",
"0.66959137",
"0.66936946",
"0.6685927",
"0.6652096",
"0.66012657",
"0.65827745",
"0.65822875",
"0.65822875",
"0.65822875",
"0.65822875",
"0.658... | 0.0 | -1 |
Return the Presentation Context's Abstract Syntax parameter. | def uZz2(YKHO):
return YKHO._abstract_syntax | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G7HG(YKHO):\n ...",
"def G7HG(YKHO):\n return ''",
"def LKYZ(YKHO):\n return 'other'",
"def cCo4(YKHO):\n return YKHO._my_map['syntax']",
"def _p21(YKHO):\n tTee = ev6Y()\n rrBf = tTee.syntax_name(tTee.sel()[0].begin())\n WJ2U = 'html'\n WOrs = None\n try:\n if 'xsl' i... | [
"0.6437367",
"0.6367277",
"0.6272304",
"0.6105457",
"0.58257556",
"0.57962984",
"0.57719654",
"0.56653994",
"0.5619171",
"0.5618069",
"0.5589354",
"0.5579718",
"0.5558057",
"0.55259126",
"0.55065525",
"0.54785013",
"0.5438798",
"0.54369587",
"0.5376604",
"0.53622955",
"0.5325... | 0.7335571 | 0 |
Constructs a ResNet model. | def WWYJ(**B2fa):
return S1Vm(**B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zmIt(YKHO):\n YKHO.compile(loss='binary_crossentropy', optimizer=qhl4(0.0001))\n return YKHO",
"def FIMM(YKHO, qIxc):\n super(S1Vm, YKHO).__init__()\n YKHO.args = qIxc\n if qIxc.model == yI1f:\n WWYJ = FYrf.resnet101(pretrained=qIxc.pretrained)\n elif qIxc.model == S7lA:\n WWY... | [
"0.7649233",
"0.7376856",
"0.7354889",
"0.72768724",
"0.7195494",
"0.7195494",
"0.71535224",
"0.7097737",
"0.701445",
"0.701445",
"0.701445",
"0.701445",
"0.697802",
"0.69658226",
"0.6954004",
"0.69470996",
"0.69470996",
"0.69470996",
"0.6905179",
"0.6903568",
"0.6885971",
... | 0.6891352 | 20 |
Converts a time value in seconds to a time value in nanoseconds. `time_seconds` is a `float` as returned by `time.time()` which represents the number of seconds since the epoch. The returned value is an `int` representing the number of nanoseconds since the epoch. | def UCUh(xXys):
return int(xXys * 1000000000.0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZScW(kFfS):\n return kFfS / 1000000000.0",
"def v8J_(a1PO):\n C6wh = int(a1PO)\n vLI5 = int((a1PO - C6wh) * uwaB.SECONDS_TO_NANOS)\n return (C6wh, vLI5)",
"def UPiq(YKHO):\n return YKHO.seconds * W4ov + YKHO.nanos",
"def UPiq(YKHO):\n return YKHO.seconds * W4ov + YKHO.nanos",
"def vzH... | [
"0.75423664",
"0.70114326",
"0.66714776",
"0.66714776",
"0.6458337",
"0.64558434",
"0.6426509",
"0.6426509",
"0.6409125",
"0.6371502",
"0.62942106",
"0.62882",
"0.62786317",
"0.6262498",
"0.6220981",
"0.621865",
"0.6174623",
"0.61451983",
"0.6085431",
"0.6049591",
"0.60491353... | 0.80716556 | 0 |
Converts a time value in nanoseconds to a time value in seconds. `time_nanoseconds` is an `int` representing the number of nanoseconds since the epoch. The returned value is a `float` representing the number of seconds since the epoch. | def ZScW(kFfS):
return kFfS / 1000000000.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o_e2(YKHO, gToQ):\n hUPq = gToQ / 1000\n return hUPq",
"def UCUh(xXys):\n return int(xXys * 1000000000.0)",
"def v8J_(a1PO):\n C6wh = int(a1PO)\n vLI5 = int((a1PO - C6wh) * uwaB.SECONDS_TO_NANOS)\n return (C6wh, vLI5)",
"def TkH8(ITS7):\n O66n = ITS7.hour * 60 + ITS7.minute\n C6wh... | [
"0.71681744",
"0.67219186",
"0.64233804",
"0.6369493",
"0.6369493",
"0.6333519",
"0.61576355",
"0.609625",
"0.59582406",
"0.59434164",
"0.5901029",
"0.5834273",
"0.582551",
"0.58107525",
"0.5809537",
"0.57851046",
"0.5740949",
"0.57244587",
"0.57230574",
"0.5707328",
"0.56925... | 0.81740814 | 0 |
Adds a InceptionResNet block. This function builds 3 types of InceptionResNet blocks mentioned in the paper, controlled by the `block_type` argument (which is the | def MhEu(WKvO, NXpY, bgCG, KF9g, YDYE='relu'):
if bgCG == 'block35':
iMlE = y964(WKvO, 16, 1)
xBRQ = y964(WKvO, 16, 1)
xBRQ = y964(xBRQ, 16, 3)
tymS = y964(WKvO, 16, 1)
tymS = y964(tymS, 24, 3)
tymS = y964(tymS, 32, 3)
GZiu = [iMlE, xBRQ, tymS]
elif bgCG =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MhEu(WKvO, NXpY, bgCG, KF9g, YDYE='relu'):\n if bgCG == 'block35':\n iMlE = dy0Q(WKvO, 32, 1)\n xBRQ = dy0Q(WKvO, 32, 1)\n xBRQ = dy0Q(xBRQ, 32, 3)\n tymS = dy0Q(WKvO, 32, 1)\n tymS = dy0Q(tymS, 48, 3)\n tymS = dy0Q(tymS, 64, 3)\n GZiu = [iMlE, xBRQ, tymS]\n ... | [
"0.743876",
"0.6253765",
"0.6246214",
"0.6168796",
"0.6168796",
"0.6168796",
"0.6168796",
"0.61608446",
"0.61354804",
"0.609045",
"0.6056497",
"0.6011767",
"0.60068935",
"0.5990265",
"0.5961705",
"0.5915793",
"0.5840931",
"0.5840931",
"0.5840931",
"0.58107",
"0.5791844",
"0... | 0.7315484 | 1 |