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 |
|---|---|---|---|---|---|---|
Return bool of whether circle (represented with arguments 'cx', 'cy', and 'cr') collides with point (represented with arguments 'px' and 'py'.) | def XLVA(UV8M, vHO5, KBgZ, Xlvp, nfKA):
return lNLu(UV8M, vHO5).distance(lNLu(Xlvp, nfKA)) <= KBgZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PJ2f(nJ9F, nxyw, Mkmy, WKvO, LVAh) -> bool:\n return HEbx(WKvO - nJ9F, LVAh - nxyw) <= Mkmy",
"def cnqE(YKHO, WKvO, LVAh, r1VO, Z9rn) -> bool:\n UV8M, vHO5 = Z9rn\n rAHv = (WKvO - UV8M) ** 2\n gZUC = (LVAh - vHO5 - 8) ** 2\n return epAf.sqrt(rAHv + gZUC) < r1VO",
"def nRbd(WKvO, LVAh, jzdc=0... | [
"0.8437193",
"0.7781428",
"0.7649778",
"0.75375605",
"0.7511522",
"0.740021",
"0.73859537",
"0.73762625",
"0.73103446",
"0.73021996",
"0.7301924",
"0.7170944",
"0.7131591",
"0.71293736",
"0.71234155",
"0.70995075",
"0.7029462",
"0.7022057",
"0.7021801",
"0.7003961",
"0.699637... | 0.64374816 | 62 |
Return True if circle (represented with arguments 'cx', 'cy', and 'cr') collides with line segment (represented with arguments 'p1x', 'p1y', 'p2x', and 'p2y'). | def KaRq(UV8M, vHO5, KBgZ, jlZt, lCWw, Vk7a, csa7):
B5hb = f_vP(UV8M, vHO5, jlZt, lCWw, Vk7a, csa7, edge_col=True)
if not B5hb[2]:
return False
if lNLu(UV8M, vHO5).distance(lNLu(B5hb[0], B5hb[1])) <= KBgZ:
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PJ2f(nJ9F, nxyw, Mkmy, WKvO, LVAh) -> bool:\n return HEbx(WKvO - nJ9F, LVAh - nxyw) <= Mkmy",
"def IhWy(zFiD, FV9o):\n tdL7 = FV9o[0][0]\n PVF6 = FV9o[0][1]\n Mkmy = FV9o[1]\n jzdc = zFiD[1][1] - zFiD[0][1]\n Fg_i = zFiD[1][0] - zFiD[0][0]\n Z9rn = zFiD[0][0] * zFiD[1][1] - zFiD[1][0] * ... | [
"0.7352582",
"0.73085845",
"0.7241451",
"0.7161725",
"0.71488",
"0.69850886",
"0.6976811",
"0.69609123",
"0.6914817",
"0.6900033",
"0.68883",
"0.6882738",
"0.6861994",
"0.67916167",
"0.6786958",
"0.67078686",
"0.6702834",
"0.6601612",
"0.6600182",
"0.65960634",
"0.6555982",
... | 0.0 | -1 |
Use `inspect.signature` to try accessing `func` args. Otherwise, ensure they are provided by user. | def qVCe(JfyU, DTb0):
try:
Bbxl = tq_1.signature(JfyU).parameters
except ValueError:
Bbxl = {}
if not DTb0:
raise ValueError('Unable to inspect `func` signature, and `param_names` was not provided.')
if DTb0:
NArs = DTb0
else:
NArs = list(Bbxl)[1:]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gz3k(JfyU):\n Mzww = tq_1.getfullargspec(JfyU)\n return pPGT(JfyU, Mzww)",
"def D4WQ(JfyU, qIxc, B2fa):\n try:\n aadv(JfyU).bind(*(qIxc or []), **B2fa or {})\n except TypeError as exc:\n raise neMO(str(BQDi))",
"def rUrJ(JfyU: Method, *qIxc: Any, **B2fa: Any) -> _W0Q:\n try:\n ... | [
"0.7042346",
"0.6938083",
"0.6930232",
"0.6920338",
"0.68772304",
"0.67446345",
"0.670162",
"0.669252",
"0.6680118",
"0.6637951",
"0.65899724",
"0.65818167",
"0.6564041",
"0.6545273",
"0.65391934",
"0.64107776",
"0.6402588",
"0.63948894",
"0.63696426",
"0.6358067",
"0.6356680... | 0.0 | -1 |
Returns a copy of this dataset. If `deep=True`, a deep copy is made of each of the component variables. Otherwise, a shallow copy of each of the component variable is made, so that the underlying memory region of the new dataset is the same as in the original dataset. Use `data` to create a new object with the same str... | def jth9(YKHO: T_Dataset, y4ha: bool=False, nPrm: Mapping[Any, ArrayLike] | None=None) -> rBI9:
return YKHO._copy(deep=y4ha, data=nPrm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO, y4ha=True):\n oxOY = YKHO.dataset.copy(deep=y4ha)\n return oxOY[YKHO.name]",
"def jth9(YKHO):\n Cc00 = QyXt()\n Cc00.row_hints = YKHO.row_hints\n Cc00.col_hints = YKHO.col_hints\n Cc00.rows = _qLf(YKHO.rows)\n Cc00.cols = _qLf(YKHO.cols)\n return Cc00",
"def jth9(YKHO, y4... | [
"0.7764137",
"0.71176124",
"0.70667833",
"0.6780271",
"0.67111397",
"0.6658467",
"0.66557723",
"0.66443014",
"0.6634868",
"0.6576624",
"0.6537845",
"0.65232724",
"0.6481986",
"0.64623696",
"0.6429786",
"0.6417994",
"0.64117527",
"0.64012426",
"0.6400263",
"0.6400263",
"0.6397... | 0.776398 | 1 |
Coerces wrapped data and coordinates into numpy arrays, returning a Dataset. See also DataArray.as_numpy | def FV0E(YKHO: T_Dataset) -> rBI9:
KgUG = {G1Hx: Ty9i.as_numpy() for G1Hx, Ty9i in YKHO.variables.items()}
return YKHO._replace(variables=KgUG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WPdU(YKHO) -> uLKX[zuVY.DataArray, zuVY.Dataset]:\n WKvO = oyIN.linspace(YKHO._center - YKHO._width, YKHO._center + YKHO._width, YKHO._raw_data_samples)\n LVAh = [YKHO.compute(wEf2) for wEf2 in WKvO]\n return zuVY.DataArray(LVAh, dims=['x'], coords={'x': WKvO})",
"def OPP5(BDc6: DatasetCoordinates, ... | [
"0.6861207",
"0.6844469",
"0.6741877",
"0.66814166",
"0.66366816",
"0.6570493",
"0.6540759",
"0.65214753",
"0.64029855",
"0.63846195",
"0.63846195",
"0.6382951",
"0.6345437",
"0.63350564",
"0.6327025",
"0.6291031",
"0.6265056",
"0.6253863",
"0.62484527",
"0.6237766",
"0.62377... | 0.6240567 | 19 |
Two Datasets are broadcast equal if they are equal after broadcasting all variables against each other. For example, variables that are scalar in one dataset but nonscalar in the other dataset can still be broadcast equal if the the nonscalar variable is a constant. Examples 2D array with shape (1, 3) >>> data = np.arr... | def rC0T(YKHO, Elif: Dataset) -> bool:
try:
return YKHO._all_compat(Elif, 'broadcast_equals')
except (TypeError, AttributeError):
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vs0t(jzdc, Fg_i):\n jzdc, Fg_i = oyIN.atleast_1d(jzdc, Fg_i)\n if jzdc.size == 1 and Fg_i.size != 1:\n jzdc = oyIN.broadcast_to(jzdc, Fg_i.shape)\n elif Fg_i.size == 1 and jzdc.size != 1:\n Fg_i = oyIN.broadcast_to(Fg_i, jzdc.shape)\n return (jzdc, Fg_i)",
"def _tiv():\n EcVT = o... | [
"0.6652484",
"0.6327855",
"0.63214487",
"0.63214487",
"0.6281803",
"0.62413794",
"0.60828537",
"0.60783696",
"0.5991922",
"0.5910932",
"0.589446",
"0.5861708",
"0.5856567",
"0.5827269",
"0.5821313",
"0.5820716",
"0.5795234",
"0.57877314",
"0.5766856",
"0.5758523",
"0.5744646"... | 0.7363883 | 0 |
Two Datasets are equal if they have matching variables and coordinates, all of which are equal. Datasets can still be equal (like pandas objects) if they have NaN values in the same locations. This method is necessary because `v1 == v2` for ``Dataset`` does elementwise comparisons (like numpy.ndarrays). Examples 2D arr... | def aPi6(YKHO, Elif: Dataset) -> bool:
try:
return YKHO._all_compat(Elif, 'equals')
except (TypeError, AttributeError):
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H0BN(YKHO, Elif: Dataset) -> bool:\n try:\n return BfDw.dict_equiv(YKHO.attrs, Elif.attrs) and YKHO._all_compat(Elif, 'identical')\n except (TypeError, AttributeError):\n return False",
"def LWSD(gS5G, OgAF, tO9_='Datasets unequal', SOnQ=None):\n SjMt(gS5G.keys(), OgAF.keys(), '%s: dif... | [
"0.7027562",
"0.69370884",
"0.6716561",
"0.6696833",
"0.6686219",
"0.6622541",
"0.65995204",
"0.65768236",
"0.64637816",
"0.64406985",
"0.6416272",
"0.64013433",
"0.6397543",
"0.63919777",
"0.6366751",
"0.63467664",
"0.6343633",
"0.6342793",
"0.6327812",
"0.6315749",
"0.62979... | 0.6979512 | 1 |
Mapping from dimension names to block lengths for this dataset's data, or None if the underlying data is not a dask array. Cannot be modified directly, but can be modified by calling .chunk(). Same as Dataset.chunksizes, but maintained for backwards compatibility. See Also Dataset.chunk Dataset.chunksizes xarray.unify_... | def eHxA(YKHO) -> GySg[eA6S, tuple[int, ...]]:
return mSwr(YKHO.variables.values()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dDXW(YKHO) -> GySg[eA6S, tuple[int, ...]]:\n return mSwr(YKHO.variables.values())",
"def Htse(YKHO):\n if YKHO.data is not None:\n return list(YKHO.data.shape[::-1])\n else:\n return None",
"def _OAq(YKHO):\n t_1g = YKHO.root_tag\n usY7 = 16\n if not hasattr(YKHO.world, 'Hei... | [
"0.6371565",
"0.6099958",
"0.60015357",
"0.5986375",
"0.588886",
"0.58607906",
"0.5815526",
"0.57436657",
"0.57406706",
"0.57340765",
"0.57113135",
"0.57065606",
"0.56777954",
"0.56421083",
"0.56333876",
"0.56213707",
"0.5619175",
"0.5541509",
"0.5521011",
"0.55154335",
"0.54... | 0.6450696 | 0 |
Mapping from dimension names to block lengths for this dataset's data, or None if the underlying data is not a dask array. Cannot be modified directly, but can be modified by calling .chunk(). Same as Dataset.chunks. See Also Dataset.chunk Dataset.chunks xarray.unify_chunks | def dDXW(YKHO) -> GySg[eA6S, tuple[int, ...]]:
return mSwr(YKHO.variables.values()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHxA(YKHO) -> GySg[eA6S, tuple[int, ...]]:\n return mSwr(YKHO.variables.values())",
"def Htse(YKHO):\n if YKHO.data is not None:\n return list(YKHO.data.shape[::-1])\n else:\n return None",
"def _OAq(YKHO):\n t_1g = YKHO.root_tag\n usY7 = 16\n if not hasattr(YKHO.world, 'Hei... | [
"0.6203883",
"0.60873777",
"0.60851854",
"0.5976098",
"0.59579575",
"0.5931177",
"0.5835609",
"0.5823773",
"0.5800167",
"0.57525",
"0.5676193",
"0.5657053",
"0.56256384",
"0.5610348",
"0.5599923",
"0.55664426",
"0.55625474",
"0.5560812",
"0.5559406",
"0.5549431",
"0.55154383"... | 0.596313 | 4 |
Returns a new dataset with each array indexed by tick labels along the specified dimension(s). In contrast to `Dataset.isel`, indexers for this method should use labels instead of integers. Under the hood, this method is powered by using pandas's powerful Index objects. This makes label based indexing essentially just ... | def iz5W(YKHO: T_Dataset, usCR: Mapping[Any, Any] | None=None, NKcE: str | None=None, D1sU: int | float | Iterable[int | float] | None=None, ReNU: bool=False, **o5SP: Any) -> rBI9:
usCR = SOsP(usCR, o5SP, 'sel')
nVWr = fpyV(YKHO, indexers=usCR, method=NKcE, tolerance=D1sU)
if ReNU:
FbsR = {}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RPP3(Emd4):\n\n def OP2O(YKHO, d6pt):\n nPrm, pan_ = Emd4.__getitem__(YKHO, d6pt)\n return (nPrm, pan_, d6pt)\n return type(Emd4.__name__, (Emd4,), {'__getitem__': OP2O})",
"def OP2O(YKHO, YRbF):\n return oekH.DataSetIndex2D___getitem__(YKHO, YRbF)",
"def FIMM(YKHO, *qIxc):\n if l... | [
"0.5828582",
"0.5598587",
"0.55137116",
"0.5496028",
"0.54760504",
"0.54739565",
"0.54500926",
"0.5441022",
"0.54231364",
"0.5417839",
"0.5388393",
"0.5371385",
"0.5298459",
"0.5281187",
"0.52727723",
"0.52623844",
"0.5226814",
"0.5223001",
"0.5213939",
"0.5195884",
"0.519369... | 0.0 | -1 |
Returns a new dataset with the first `n` values of each array for the specified dimension(s). | def sdCG(YKHO: T_Dataset, usCR: Mapping[Any, int] | int | None=None, **o5SP: Any) -> rBI9:
if not o5SP:
if usCR is None:
usCR = 5
if not isinstance(usCR, int) and (not ygM9(usCR)):
raise TypeError('indexers must be either dict-like or a single integer')
if isinstance(usCR... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XXkR(exwG=5):\n nPrm = []\n for YRbF in range(exwG):\n nPrm.append(hO81(frame=YRbF))\n TTm1 = zuVY.concat(nPrm, dim='t')\n TTm1.attrs['variables'] = ['x', 'y', 'u', 'v']\n TTm1.attrs['units'] = ['pix', 'pix', 'pix/dt', 'pix/dt']\n TTm1.attrs['dt'] = 1.0\n TTm1.attrs['files'] = ''\n ... | [
"0.644427",
"0.6361562",
"0.6349346",
"0.62321526",
"0.6228634",
"0.62147075",
"0.6172733",
"0.6168511",
"0.6098964",
"0.60858077",
"0.60373944",
"0.6021549",
"0.59902215",
"0.59385794",
"0.59137416",
"0.5890828",
"0.5884073",
"0.5872638",
"0.58605653",
"0.5856875",
"0.579914... | 0.0 | -1 |
Returns a new dataset with each array indexed along every `n`th value for the specified dimension(s) | def KRH5(YKHO: T_Dataset, usCR: Mapping[Any, int] | int | None=None, **o5SP: Any) -> rBI9:
if not o5SP and (not isinstance(usCR, int)) and (not ygM9(usCR)):
raise TypeError('indexers must be either dict-like or a single integer')
if isinstance(usCR, int):
usCR = {tpio: usCR for tpio in YKHO.dims... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oUGu(exwG, OQe7):\n Yw_3 = ht2j.randn(OQe7 + 1, 1, exwG, exwG)\n WKvO = Yw_3[:-1]\n LVAh = Yw_3[1:]\n __n6 = sAMW(WKvO, LVAh)\n return __n6",
"def XXkR(exwG=5):\n nPrm = []\n for YRbF in range(exwG):\n nPrm.append(hO81(frame=YRbF))\n TTm1 = zuVY.concat(nPrm, dim='t')\n TTm1.... | [
"0.65892595",
"0.64827025",
"0.6474866",
"0.6403683",
"0.64027965",
"0.635378",
"0.633429",
"0.62979156",
"0.62570924",
"0.6241197",
"0.612158",
"0.6092412",
"0.6088472",
"0.60196435",
"0.59703577",
"0.5969386",
"0.58966243",
"0.58947104",
"0.5891403",
"0.5876579",
"0.5867604... | 0.0 | -1 |
Broadcast this DataArray against another Dataset or DataArray. This is equivalent to xr.broadcast(other, self)[1] | def xYX5(YKHO: T_Dataset, Elif: Dataset | DataArray, DNHh: Iterable[Hashable] | None=None) -> rBI9:
if DNHh is None:
DNHh = set()
else:
DNHh = set(DNHh)
qIxc = mIJV(Elif, YKHO, join='outer', copy=False, exclude=DNHh)
ZS5P, Mfl3 = Ol45(qIxc, DNHh)
return BADU(YWvJ('T_Dataset', qIxc[1]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rC0T(YKHO, Elif: Dataset) -> bool:\n try:\n return YKHO._all_compat(Elif, 'broadcast_equals')\n except (TypeError, AttributeError):\n return False",
"def KtTj(YKHO, Elif):\n for VQ6Z, fh3O in zip(YKHO.DataSet(), Elif.DataSet()):\n for aq_w in [O9fF.POINT, O9fF.CELL]:\n ... | [
"0.6503587",
"0.6454188",
"0.6385124",
"0.61584",
"0.615066",
"0.6013881",
"0.5978927",
"0.5851026",
"0.58105475",
"0.5786605",
"0.5772327",
"0.5766058",
"0.57632434",
"0.57396185",
"0.5724771",
"0.5701354",
"0.5686775",
"0.5665963",
"0.5661923",
"0.5651394",
"0.5651394",
"... | 0.7552647 | 0 |
Interpolate this object onto the coordinates of another object, filling the out of range values with NaN. If interpolating along a single existing dimension, | def _86Z(YKHO, Elif: Dataset | DataArray, NKcE: InterpOptions='linear', FJSc: bool=False, B2fa: Mapping[str, Any] | None=None, yeLO: str='nearest') -> x3i3:
if B2fa is None:
B2fa = {}
jNOo = {}
GaSH = Elif.xindexes
for tpio in YKHO.dims:
bwoo = GaSH.get_all_coords(tpio, errors='ignore')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pbku() -> None:\n WKvO = [0, 1, 2]\n LVAh = [10, 20]\n Z9rn = {'x': WKvO, 'y': LVAh}\n jzdc = oyIN.arange(6, dtype=float).reshape(2, 3)\n jzdc[0, 1] = oyIN.nan\n h16r = zuVY.DataArray(jzdc, dims=('y', 'x'), coords=Z9rn)\n SG6Y = zuVY.DataArray([1, 2, 2], dims='a', coords={'a': [0, 2, 4]})\... | [
"0.6607958",
"0.65028465",
"0.6423092",
"0.6405435",
"0.64013034",
"0.63994443",
"0.6397277",
"0.632371",
"0.6294779",
"0.62692636",
"0.62140715",
"0.6198254",
"0.61899346",
"0.61615527",
"0.614337",
"0.6136967",
"0.6122166",
"0.6102648",
"0.60999167",
"0.60887086",
"0.607968... | 0.0 | -1 |
Return a new object with an additional axis (or axes) inserted at the corresponding position in the array shape. The new object is a view into the underlying array, not a copy. If dim is already a scalar coordinate, it will be promoted to a 1D coordinate consisting of a single value. | def wmvz(YKHO, tpio: None | Hashable | Sequence[Hashable] | Mapping[Any, Any]=None, jDK_: None | int | Sequence[int]=None, **yCxa: Any) -> x3i3:
if tpio is None:
pass
elif isinstance(tpio, GySg):
tpio = dict(tpio)
elif isinstance(tpio, int):
raise TypeError('dim should be hashable or... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PI0m(QpfX, mBtZ, JNn7, qC1Y, jDK_):\n assert len(JNn7) == qC1Y - 1\n C07d = _ABP.ArrayType(Zlwm.intp_t, qC1Y)\n N8OZ = Zlwm.alloca_once(mBtZ, C07d)\n a0GJ = Zlwm.intp_t(1)\n for tpio in range(qC1Y - 1):\n RRcV = Zlwm.intp_t(tpio)\n fhGJ = mBtZ.icmp_signed('>=', RRcV, jDK_)\n ... | [
"0.64882624",
"0.62552947",
"0.60480297",
"0.60008883",
"0.59475565",
"0.5904746",
"0.5888784",
"0.58676124",
"0.57990134",
"0.57880074",
"0.57094276",
"0.5699326",
"0.5681027",
"0.5678731",
"0.56253046",
"0.5594855",
"0.55739343",
"0.5568219",
"0.5561849",
"0.5559724",
"0.55... | 0.56214666 | 15 |
Unstack existing dimensions corresponding to MultiIndexes into multiple new dimensions. New dimensions will be added at the end. | def Nps3(YKHO: T_Dataset, tpio: Dims=None, xgWT: Any=UnfH.NA, o7sj: bool=False) -> rBI9:
if tpio is None:
Htse = list(YKHO.dims)
else:
if isinstance(tpio, str) or not isinstance(tpio, iu5r):
Htse = [tpio]
else:
Htse = list(tpio)
lbLm = [Csk6 for Csk6 in Ht... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nps3():\n raise NotImplementedError('unstack')",
"def E5BI(YKHO: T_Dataset, DbyF: Mapping[Any, Sequence[Hashable | ellipsis]] | None=None, tHXQ: bool | None=True, kgqc: type[Index]=IrJJ, **T5BZ: Sequence[Hashable | ellipsis]) -> rBI9:\n DbyF = SOsP(DbyF, T5BZ, 'stack')\n Aofo = YKHO\n for qO2t, H... | [
"0.5898017",
"0.56305164",
"0.5533827",
"0.5507205",
"0.5466851",
"0.5396043",
"0.52967846",
"0.529355",
"0.5292634",
"0.52769506",
"0.52737683",
"0.52732885",
"0.5245161",
"0.5244052",
"0.5231908",
"0.5225689",
"0.52155775",
"0.5208451",
"0.5191532",
"0.517212",
"0.51496506"... | 0.6120311 | 0 |
Backward compatible method based on `drop_vars` and `drop_sel` Using either `drop_vars` or `drop_sel` is encouraged See Also Dataset.drop_vars Dataset.drop_sel | def ReNU(YKHO: T_Dataset, Crrw=None, tpio=None, *, UAju: ErrorOptions='raise', **WXY_) -> rBI9:
if UAju not in ['raise', 'ignore']:
raise ValueError('errors must be either "raise" or "ignore"')
if ygM9(Crrw) and (not isinstance(Crrw, dict)):
qmLP.warn('dropping coordinates using `drop` is be dep... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m_rJ(__n6: xr.Dataset, BKBR: Sequence[str]) -> zuVY.Dataset:\n j8AJ = __n6.drop_vars(BKBR)\n cXk1 = []\n for SRYB in BKBR:\n for tpio in j8AJ.dims:\n if ZbWC.match(f'{SRYB}_dim_\\\\d', tpio):\n cXk1.append(tpio)\n j8AJ = j8AJ.drop_dims(cXk1)\n return j8AJ",
"de... | [
"0.72417265",
"0.71583104",
"0.70896906",
"0.69473803",
"0.67146736",
"0.6708122",
"0.6706589",
"0.66972935",
"0.6563618",
"0.6534768",
"0.6371044",
"0.6290643",
"0.61428684",
"0.6137255",
"0.6135854",
"0.61326194",
"0.6047882",
"0.60398656",
"0.6026763",
"0.5982972",
"0.5980... | 0.6633012 | 8 |
Returns a new dataset with dropped labels for missing values along the provided dimension. | def zQHC(YKHO: T_Dataset, tpio: Hashable, UAE4: Literal['any', 'all']='any', knl1: int | None=None, vcn7: Iterable[Hashable] | None=None) -> rBI9:
if tpio not in YKHO.dims:
raise ValueError(f'{tpio} must be a single dataset dimension')
if vcn7 is None:
vcn7 = iter(YKHO.data_vars)
UHFx = oyIN... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K53G(nPrm, v3uw=-999.0):\n deVW = []\n v98u = oyIN.ma.masked_values(nPrm, v3uw)\n for d6pt in range(nPrm.shape[1]):\n if oyIN.sum(v98u[:, d6pt]._get_mask()) == 0:\n deVW.append(d6pt)\n print(len(deVW), 'valid training column, with index \\n \\t', end='')\n print(deVW)\n UShr... | [
"0.6119076",
"0.6017345",
"0.6005528",
"0.5960003",
"0.5905894",
"0.58298457",
"0.581891",
"0.5785094",
"0.5724835",
"0.5712938",
"0.56209147",
"0.56054205",
"0.5600876",
"0.55816823",
"0.55738246",
"0.55205345",
"0.5483751",
"0.5479101",
"0.5478181",
"0.54464495",
"0.5423297... | 0.56622547 | 10 |
Fill in NaNs by interpolating according to different methods. | def IWmw(YKHO: T_Dataset, tpio: Hashable | None=None, NKcE: InterpOptions='linear', qoqK: int | None=None, RVA9: bool | Hashable=True, hUbj: int | float | str | pd.Timedelta | np.timedelta64 | datetime.timedelta=None, **B2fa: Any) -> rBI9:
from xarray.core.missing import _apply_over_vars_with_dim, interp_na
BdN... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x7Dv(YKHO):\n if oyIN.isnan(YKHO.spint[0]):\n YKHO.spint[0] = 0\n if oyIN.isnan(YKHO.spint[-1]):\n YKHO.spint[-1] = 0\n v3uw = oyIN.isnan(YKHO.spint)\n RmZE = vldj(YKHO.rt[~v3uw], YKHO.spint[~v3uw])\n IJ6Y = oyIN.nanmean(YKHO.mz)\n YKHO.mz[v3uw] = IJ6Y\n YKHO.spint[v3uw] = Rm... | [
"0.7555632",
"0.72469354",
"0.71874034",
"0.6971056",
"0.69080704",
"0.6887172",
"0.67830133",
"0.65722257",
"0.6547945",
"0.65181607",
"0.64789414",
"0.6475848",
"0.64571375",
"0.6409197",
"0.6386507",
"0.63864285",
"0.6379456",
"0.637077",
"0.6349818",
"0.63119686",
"0.6306... | 0.59319234 | 52 |
Convert this dataset into an xarray.DataArray The data variables of this dataset will be broadcast against each other and stacked along the first axis of the new array. All coordinates of this dataset will remain coordinates. | def iwLm(YKHO, tpio: Hashable='variable', mWFP: Hashable | None=None) -> DataArray:
from xarray.core.dataarray import DataArray
qz7Z = [YKHO.variables[G1Hx] for G1Hx in YKHO.data_vars]
QOt3 = JGmp(*qz7Z)
nPrm = XIkr.stack([Fg_i.data for Fg_i in QOt3], axis=0)
Htse = (tpio,) + QOt3[0].dims
Es0b =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nrOS(YKHO, nPrm):\n nPrm = oyIN.stack(nPrm, axis=YKHO._axis).astype(YKHO._dtype) if YKHO._dtype else oyIN.stack(nPrm, axis=YKHO._axis)\n return nPrm",
"def CPaz(YKHO):\n try:\n import xarray as zuVY\n except:\n bo34.error(' Cannot import xarray')\n raise ImportError\n if ... | [
"0.67904663",
"0.66558754",
"0.66520965",
"0.6537215",
"0.650157",
"0.64673597",
"0.64573604",
"0.6437191",
"0.639846",
"0.62893",
"0.6237522",
"0.62118566",
"0.61800694",
"0.6112933",
"0.61025864",
"0.6089117",
"0.6089117",
"0.6073766",
"0.6067443",
"0.6052756",
"0.6026141",... | 0.6185421 | 12 |
Convert a pandas.DataFrame into an xarray.Dataset Each column will be converted into an independent variable in the Dataset. If the dataframe's index is a MultiIndex, it will be expanded into a tensor product of onedimensional indices (filling in missing values with NaN). This method will produce a Dataset very similar... | def vxs7(Emd4: type[T_Dataset], bOBl: pd.DataFrame, o7sj: bool=False) -> rBI9:
if not bOBl.columns.is_unique:
raise ValueError('cannot convert DataFrame with non-unique columns')
or8S = CVIA(bOBl.index)
if isinstance(or8S, rLdf.MultiIndex) and (not or8S.is_unique):
raise ValueError('cannot c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ARze(YKHO, **B2fa):\n try:\n from xarray import Dataset\n return Dataset.from_dataframe(YKHO.to_pandas(**B2fa))\n except ImportError as error:\n print('xray import error')\n raise P1dF",
"def n8Ps(jQ3Z):\n pSfY = rLdf.DataFrame({'ones': oyIN.ones(len(jQ3Z))})\n nPrm = ... | [
"0.6700777",
"0.623904",
"0.623904",
"0.6162966",
"0.60832566",
"0.6069984",
"0.603691",
"0.595078",
"0.59091926",
"0.589735",
"0.5873845",
"0.5817299",
"0.57777464",
"0.57100797",
"0.5696461",
"0.5695821",
"0.5688809",
"0.56761336",
"0.5667291",
"0.5649406",
"0.5640165",
"... | 0.71482015 | 0 |
Pad this dataset along one or more dimensions. | def hVLt(YKHO: T_Dataset, GUum: Mapping[Any, int | tuple[int, int]] | None=None, Tuqy: PadModeOptions='constant', qutQ: int | tuple[int, int] | Mapping[Any, tuple[int, int]] | None=None, XTLp: float | tuple[float, float] | Mapping[Any, tuple[float, float]] | None=None, YK2W: int | tuple[int, int] | Mapping[Any, tuple[i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hVLt(YKHO, nPrm):\n Fbjb = YKHO.get_length(nPrm)\n KLk8 = max(Fbjb)\n Gmep = len(nPrm)\n H5Km = oyIN.zeros([Gmep, KLk8], dtype=oyIN.int32)\n for YRbF, u54L in enumerate(Fbjb):\n H5Km[YRbF, :u54L] = nPrm[YRbF]\n return H5Km",
"def AeBf(YKHO, HEZd, u54L):\n if YKHO._train_set:\n ... | [
"0.6628599",
"0.6593728",
"0.6584865",
"0.6507679",
"0.6470262",
"0.64496356",
"0.64319426",
"0.6354058",
"0.6334992",
"0.62155217",
"0.62155217",
"0.62052923",
"0.6058766",
"0.6048936",
"0.6032995",
"0.6029009",
"0.6025209",
"0.60147953",
"0.6001583",
"0.5988987",
"0.5971194... | 0.56764525 | 37 |
Return the coordinate label of the maximum value along a dimension. Returns a new `Dataset` named after the dimension with the values of the coordinate labels along that dimension corresponding to maximum values along that dimension. | def Z8HC(YKHO: T_Dataset, tpio: Hashable | None=None, nLK1: bool | None=None, xgWT: Any=UnfH.NA, L3SL: bool | None=None) -> rBI9:
return YKHO.map(ZMcn('idxmax', dim=tpio, skipna=nLK1, fill_value=xgWT, keep_attrs=L3SL)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a1UY(YKHO, jDK_=None):\n if jDK_ is None:\n return max([max(epBp) for epBp in YKHO.label])\n else:\n return max([epBp for epBp in YKHO.label[jDK_]])",
"def Fepg(YKHO, EcVT, Oa10):\n BEuN = YKHO.config.network.populations[Oa10]\n return f'$\\\\mathrm{{max}}\\\\, {{{EcVT}}}_{{{BEuN.ID... | [
"0.6897802",
"0.6459761",
"0.63429517",
"0.60971665",
"0.6086768",
"0.60471755",
"0.60247314",
"0.6021087",
"0.5989448",
"0.59388083",
"0.59177655",
"0.591767",
"0.59029984",
"0.5885993",
"0.5877059",
"0.58660436",
"0.5859039",
"0.5824701",
"0.5780533",
"0.57755005",
"0.57574... | 0.0 | -1 |
Rolling window object for Datasets. | def upF9(YKHO, tpio: Mapping[Any, int] | None=None, Encw: int | None=None, hgjH: bool | Mapping[Any, bool]=False, **aQmZ: int) -> DatasetRolling:
from xarray.core.rolling import DatasetRolling
tpio = SOsP(tpio, aQmZ, 'rolling')
return DatasetRolling(YKHO, tpio, min_periods=Encw, center=hgjH) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upF9(YKHO, *qIxc, **B2fa):\n from pandas.core.window import RollingGroupby\n return RollingGroupby(YKHO, *qIxc, **B2fa)",
"def upF9(YKHO, *qIxc, **B2fa):\n Aofo = YKHO._cudf_groupby.rolling(*qIxc, **B2fa)\n return IUo2.DataFrame.from_cudf(Aofo) if isinstance(Aofo, Y3tb.DataFrame) else Aofo",
"d... | [
"0.72429746",
"0.67472255",
"0.6741924",
"0.6644916",
"0.6613621",
"0.6569151",
"0.65638053",
"0.6521412",
"0.6490179",
"0.6444465",
"0.6444465",
"0.6438691",
"0.6333844",
"0.63274384",
"0.6290517",
"0.62583995",
"0.6253431",
"0.6253431",
"0.6234085",
"0.62119895",
"0.6201499... | 0.7028513 | 1 |
Sets the subscription_started of this APIBillingPeriodUsageOut. | def caC8(YKHO, caC8):
YKHO._subscription_started = caC8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YOta(YKHO, YOta):\n YKHO._subscription_end_at = YOta",
"def e59M(HCmI, mouR):\n z39Z = SYRW(cli_ctx=HCmI.cli_ctx)\n if not id:\n raise SrG1('Please provide subscription id or unique name.')\n z39Z.set_active_subscription(mouR)",
"def UXWu(YKHO, UXWu):\n YKHO._period_started = UXWu",
... | [
"0.5838911",
"0.504524",
"0.50209236",
"0.48838577",
"0.48456457",
"0.47694418",
"0.47073683",
"0.47038367",
"0.47038367",
"0.4635562",
"0.4526256",
"0.45225373",
"0.44805196",
"0.44604975",
"0.4410199",
"0.44095573",
"0.44026098",
"0.43662202",
"0.43498233",
"0.4325568",
"0.... | 0.6563321 | 0 |
Sets the stripe_current_period_end of this APIBillingPeriodUsageOut. | def sqkk(YKHO, sqkk):
YKHO._stripe_current_period_end = sqkk | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _cNM(YKHO, _cNM):\n YKHO._billing_period_end = _cNM",
"def XV6Z(YKHO, XV6Z):\n YKHO._period_end = XV6Z",
"def Vcai(YKHO, Vcai):\n YKHO._actual_end_date = Vcai",
"def YdaC(YKHO, YdaC):\n YKHO._end_odometer = YdaC",
"def YdaC(YKHO, YdaC: int):\n YKHO._end_odometer = YdaC",
"def eSlf(YKHO... | [
"0.7017063",
"0.68732125",
"0.6360303",
"0.6243931",
"0.62066627",
"0.6154548",
"0.60320055",
"0.5985056",
"0.58738697",
"0.58642256",
"0.57781065",
"0.57780224",
"0.57780224",
"0.57780224",
"0.57623714",
"0.57500947",
"0.57500947",
"0.57500947",
"0.57500947",
"0.57500947",
"... | 0.81460124 | 0 |
Sets the usage of this APIBillingPeriodUsageOut. | def e2h5(YKHO, e2h5):
YKHO._usage = e2h5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _rPS(YKHO, _rPS):\n YKHO._usage_limit = _rPS",
"def fpzi(YKHO, fpzi):\n YKHO._usage_unit = fpzi",
"def eH79(YKHO, eH79):\n YKHO._payed_usage = eH79",
"def KmZq(YKHO, KmZq):\n YKHO._api_usage = KmZq",
"def e2h5(YKHO, e2h5):\n if YKHO.local_vars_configuration.client_side_validation and e2h... | [
"0.64041823",
"0.6241013",
"0.61313117",
"0.59087753",
"0.56604666",
"0.55296683",
"0.55074656",
"0.5406461",
"0.53800815",
"0.5320889",
"0.52301407",
"0.5184183",
"0.51721966",
"0.5137805",
"0.5137531",
"0.5114101",
"0.5105528",
"0.5090172",
"0.5047148",
"0.50427717",
"0.495... | 0.5831806 | 4 |
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.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 |
To calculate L1 loss between two matrices | def Io4v(YKHO, FPuT, sUrP):
return oyIN.mean(oyIN.abs(FPuT - sUrP)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pD1a(YKHO):\n with QpfX.eager_mode():\n lULz = oyIN.random.rand(5, 10).astype(oyIN.float32)\n ChBB = oyIN.random.rand(5, 10).astype(oyIN.float32)\n Aofo = fhcK.L1Loss()(lULz, ChBB)\n aEqx = oyIN.mean(oyIN.abs(lULz - ChBB), axis=1)\n assert oyIN.allclose(Aofo, aEqx)",
"de... | [
"0.7683957",
"0.72801715",
"0.72694564",
"0.7177023",
"0.70576674",
"0.69231564",
"0.69082344",
"0.6876851",
"0.68455416",
"0.67613614",
"0.67449605",
"0.67371494",
"0.6702905",
"0.67000544",
"0.6676378",
"0.6663969",
"0.66294974",
"0.66254896",
"0.66252786",
"0.6609237",
"0.... | 0.83040607 | 0 |
Returns the value to which the specified key is mapped, or 1 if this map contains no mapping for the key | def NMoC(YKHO, H5ew: int) -> int:
DMRb = H5ew % YKHO.record_count
YKHO.map[DMRb].get(H5ew) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, H5ew: int) -> int:\n if H5ew in YKHO.hashmap:\n return YKHO.hashmap[H5ew]\n else:\n return -1",
"def NMoC(YKHO, H5ew: int) -> int:\n return YKHO.hash_map.get(H5ew, -1)",
"def NMoC(YKHO, H5ew: int) -> int:\n or8S = YKHO.hashf(H5ew)\n DpUl = YKHO.map[or8S]\n while D... | [
"0.7848024",
"0.75730664",
"0.75311434",
"0.7467767",
"0.7459674",
"0.7427529",
"0.7400849",
"0.7394425",
"0.73413885",
"0.7307691",
"0.72523814",
"0.7241443",
"0.7225553",
"0.71833247",
"0.71715623",
"0.7169278",
"0.71402776",
"0.70381206",
"0.6959099",
"0.6834812",
"0.67573... | 0.70865685 | 17 |
Add a ml process name The name of the ml process If it is not specified, it will be "ml_0", "ml_1", and so on. target_module The full name of the module to be executed in the ml process. The module must have `MLPlay` class. init_args The positional arguments to be passed to the `MLPlay.__init__()` init_kwargs The keywo... | def lpjk(YKHO, mWFP, exSq, dHdm=(), wpLl={}):
if mWFP == '':
mWFP = 'ml_' + str(len(YKHO._ml_executor_propties))
for UfCK in YKHO._ml_executor_propties:
if mWFP == UfCK.name:
raise ValueError("The name '{}' has been used.".format(mWFP))
UfCK = FoFK(mWFP, exSq, dHdm, wpLl)
YKH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f2vH(YKHO, *qIxc):\n return J8uC.SBTarget_AddModule(YKHO, *qIxc)",
"def I1S7(YKHO, yR_P):\n cpvk = None\n for aUGN in YKHO.children:\n if isinstance(aUGN, HNdc):\n cpvk = aUGN\n if cpvk is None:\n cpvk = HNdc(source=YKHO, scene=YKHO.scene)\n if YKHO.running:\n ... | [
"0.613559",
"0.5854228",
"0.5760481",
"0.57424825",
"0.56795007",
"0.55988723",
"0.55748934",
"0.54551333",
"0.5427456",
"0.52935374",
"0.52314585",
"0.5229376",
"0.5229376",
"0.52171123",
"0.5191796",
"0.51697016",
"0.51591766",
"0.5136041",
"0.5086492",
"0.50767094",
"0.507... | 0.75412256 | 0 |
Remove the user session. | def qs2_(QePW):
@QePW.after_request
def JKkH(QePW, geh0):
geh0.set_cookie('session', '', http_only=True, expires='Thu, 01 Jan 1970 00:00:01 GMT')
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qt3p(YKHO):\n if YKHO.is_user_id_in_session() is True:\n del YKHO.session['user_id']",
"def Qt3p(YKHO):\n del cuiw['google_plus_id']\n del cuiw['username']\n del cuiw['email']\n del cuiw['access_token']\n cuiw.clear()",
"def yi3Z(P4t4):\n YKHO.authtokens.remove_session(P4t4.sess... | [
"0.8353274",
"0.8160373",
"0.79955745",
"0.77987576",
"0.7707028",
"0.7643834",
"0.7561844",
"0.7477284",
"0.7460635",
"0.7454158",
"0.7439447",
"0.7437657",
"0.7408989",
"0.7293669",
"0.72842944",
"0.727531",
"0.7263251",
"0.7231424",
"0.7228641",
"0.7224257",
"0.7221106",
... | 0.0 | -1 |
Computes the Jaro measure between two strings. The Jaro measure is a type of edit distance, This was developed mainly to compare short strings, such as first and last names. | def W0Z9(qoGC, VyPo):
BfDw.sim_check_for_none(qoGC, VyPo)
BfDw.tok_check_for_string_input(qoGC, VyPo)
if BfDw.sim_check_for_empty(qoGC, VyPo):
return 0
V0Fw = len(qoGC)
Wmbh = len(VyPo)
wzH_ = max(V0Fw, Wmbh)
Ocsy = wzH_ // 2 - 1
if Ocsy < 0:
Ocsy = 0
SVuF = [False] *... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W0Z9(Y0Fj: str, Pb4f: str) -> float:\n PWHU = phGw(Y0Fj, Pb4f)\n if PWHU:\n return PWHU\n return QYBQ(Y0Fj, Pb4f)",
"def qaEU(xA4e, mhhC, SGPK={}):\n XP5J = SGPK['p'] if 'p' in SGPK else 0.1\n Brau = SGPK['max_prefix'] if 'max_prefix' in SGPK else 4\n legC = h_I6(xA4e, mhhC, SGPK)\n ... | [
"0.6798892",
"0.67657185",
"0.65782267",
"0.6499877",
"0.6479286",
"0.6273104",
"0.6176851",
"0.6176766",
"0.6168381",
"0.6065196",
"0.6064262",
"0.6064062",
"0.6056723",
"0.6045142",
"0.6013542",
"0.600989",
"0.60074157",
"0.59938514",
"0.59928334",
"0.5937015",
"0.5933859",... | 0.67068255 | 2 |
Computes the JaroWinkler measure between two strings. The JaroWinkler measure is designed to capture cases where two strings have a low Jaro score, but share a prefix and thus are likely to match. | def FJhJ(qoGC, VyPo, BEFC=0.1):
BfDw.sim_check_for_none(qoGC, VyPo)
BfDw.tok_check_for_string_input(qoGC, VyPo)
if BfDw.sim_check_for_empty(qoGC, VyPo):
return 0
nijf = W0Z9(qoGC, VyPo)
GSaK = min(len(qoGC), len(VyPo))
r845 = min(GSaK, 4)
YRbF = 0
while YRbF < r845 and qoGC[YRbF]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qaEU(xA4e, mhhC, SGPK={}):\n XP5J = SGPK['p'] if 'p' in SGPK else 0.1\n Brau = SGPK['max_prefix'] if 'max_prefix' in SGPK else 4\n legC = h_I6(xA4e, mhhC, SGPK)\n vC9B = 0\n for YRbF in range(0, min(len(xA4e), len(mhhC), Brau)):\n if xA4e[YRbF] == mhhC[YRbF]:\n vC9B += 1\n ... | [
"0.78588295",
"0.7441156",
"0.7376792",
"0.72968787",
"0.72359854",
"0.7133723",
"0.7025822",
"0.69745755",
"0.6523492",
"0.63003325",
"0.6297692",
"0.6285282",
"0.6278482",
"0.61429876",
"0.60852486",
"0.60584426",
"0.6058141",
"0.6044097",
"0.5996633",
"0.598545",
"0.593911... | 0.81688046 | 0 |
Computes the NeedlemanWunsch measure between two strings. The NeedlemanWunsch generalizes the Levenshtein distance and considers global alignment between two strings. Specifically, it is computed by assigning a score to each alignment between two input strings and choosing the score of the best alignment, that is, the ... | def U0F_(qoGC, VyPo, hiO2=1.0, M1lU=Z4uy):
BfDw.sim_check_for_none(qoGC, VyPo)
BfDw.sim_check_for_string_inputs(qoGC, VyPo)
dqIl = oyIN.zeros((len(qoGC) + 1, len(VyPo) + 1), dtype=oyIN.float)
for YRbF in wiDV(len(qoGC) + 1):
dqIl[YRbF, 0] = -(YRbF * hiO2)
for r845 in wiDV(len(VyPo) + 1):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q2sh(jzdc: str, Fg_i: str):\n iNjl = 1\n hiO2 = (-1,)\n uVkX = -1\n C7Ls = oyIN.zeros((len(jzdc) + 1, len(Fg_i) + 1))\n for YRbF in range(1, len(jzdc) + 1):\n for r845 in range(1, len(Fg_i) + 1):\n kUBT = C7Ls[YRbF - 1, r845 - 1] + (iNjl if jzdc[YRbF - 1] == Fg_i[r845 - 1] else... | [
"0.7702709",
"0.75281733",
"0.74393094",
"0.7363879",
"0.7322456",
"0.7309781",
"0.7184073",
"0.71631795",
"0.71592873",
"0.7122889",
"0.70680976",
"0.70666814",
"0.70666814",
"0.7066524",
"0.70578736",
"0.70440274",
"0.7011601",
"0.69385105",
"0.6910141",
"0.68978703",
"0.68... | 0.74788755 | 2 |
Computes the overlap coefficient between two sets. The overlap coefficient is a similarity measure related to the Jaccard measure that measures the overlap between two sets, and is defined as the size of the intersection divided by the smaller of the size of the two sets. | def KhHR(YVv6, rA0f):
BfDw.sim_check_for_none(YVv6, rA0f)
BfDw.sim_check_for_list_or_set_inputs(YVv6, rA0f)
if BfDw.sim_check_for_exact_match(YVv6, rA0f):
return 1.0
if BfDw.sim_check_for_empty(YVv6, rA0f):
return 0
if not isinstance(YVv6, set):
YVv6 = set(YVv6)
if not is... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def khWK(MWrr, MOlU):\n iQin = mP91(MWrr, MOlU)\n vXV1 = (MWrr[:, 2] - MWrr[:, 0]) * (MWrr[:, 3] - MWrr[:, 1])\n MAOT = (MOlU[:, 2] - MOlU[:, 0]) * (MOlU[:, 3] - MOlU[:, 1])\n b65I = vXV1.unsqueeze(1) + MAOT.unsqueeze(0) - iQin\n return iQin / b65I",
"def Phgr(BYFM: dict, Oxij: dict):\n PqvL = ... | [
"0.7436945",
"0.7338251",
"0.72663045",
"0.68763095",
"0.6868328",
"0.6786574",
"0.6769124",
"0.6767489",
"0.6742837",
"0.67405725",
"0.67186344",
"0.6660737",
"0.66355765",
"0.6623326",
"0.6559455",
"0.6548186",
"0.6488755",
"0.643547",
"0.64038223",
"0.6385578",
"0.6360346"... | 0.78918356 | 0 |
Gets the network NSM device. | def BaRy(YKHO, KUnM={}):
geh0 = YKHO.http.call(endpoint='entry.cgi', api='SYNO.Core.Network.NSM.Device', method='get', version=1)
return YKHO._filter(geh0['devices'], KUnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VeaS(YKHO):\n return YKHO._device",
"def HNbi(YKHO, sH8T):\n return YKHO._get_bus_iface(sH8T, YKHO.NM_DEVICE_IFACE)",
"def VeaS(YKHO) -> str:\n pass",
"def VeaS():\n return rMDm",
"def begE(YKHO):\n return YKHO._impl.device",
"def VeaS(YKHO, eVVj, Pt6R):\n bD7m = '/networks/{}/devic... | [
"0.7066807",
"0.69288635",
"0.6877017",
"0.67644304",
"0.6742671",
"0.670457",
"0.6669602",
"0.6652972",
"0.6566822",
"0.6566822",
"0.655138",
"0.65510285",
"0.65470296",
"0.6536917",
"0.65192235",
"0.6497256",
"0.6493475",
"0.6480158",
"0.6477187",
"0.6477187",
"0.64560014",... | 0.7123083 | 0 |
closes the file object assigned to the Writer. This is automatically called at the end of a `with` statement. | def DDI8(YKHO):
YKHO.flush()
try:
if YKHO._close_file:
YKHO._stream_writer.close()
except:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qsZa(YKHO):\n YKHO.f.close()",
"def FzBO(YKHO):\n if YKHO.fileobj_w is not None:\n YKHO.fileobj_w.close()\n YKHO.fileobj_w = None",
"def qsZa(YKHO):\n YKHO.output_file.close()",
"def DDI8(YKHO):\n YKHO._writer.close()",
"def DDI8(YKHO):\n YKHO.file.close()",
"def DDI8(YKH... | [
"0.7949268",
"0.7921041",
"0.7885656",
"0.77319354",
"0.7724637",
"0.7724637",
"0.7724637",
"0.7717372",
"0.77038354",
"0.7697745",
"0.76956296",
"0.76956296",
"0.76757324",
"0.7674995",
"0.7674995",
"0.7674995",
"0.7650832",
"0.76484424",
"0.76484424",
"0.76484424",
"0.76484... | 0.7528056 | 30 |
3x3 convolution with padding | def Myly(UUZO, sYyA, _0fC=1):
return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=1, bias=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sx6c(input, KUnM, FEri, dvgN, wH3T='NHWC', mJgj=1, mWFP=None):\n return o6Bz(**locals())",
"def Myly(UUZO, sYyA, _0fC=1, moMn=1, ivFb=1):\n return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=0, groups=moMn, bias=False, dilation=ivFb)",
"def DO8L(WKvO, yzQ0, UP6E=[0, 0, 0], FEri=[1, 1,... | [
"0.7839499",
"0.7541636",
"0.7540126",
"0.7490665",
"0.7434874",
"0.74206495",
"0.73411334",
"0.73199505",
"0.72986245",
"0.7286654",
"0.7279825",
"0.7279825",
"0.725757",
"0.722836",
"0.7220083",
"0.721482",
"0.721482",
"0.7210764",
"0.7198297",
"0.71642905",
"0.7162105",
... | 0.0 | -1 |
Starts walking from 400 px away from the appointed position. When it stops walking, it will create the healthbar. | def Vvlr(YKHO, g_NO, WKvO, LVAh):
YKHO.distance_to_idle = 400
WKvO += YKHO.distance_to_idle
YKHO.idd = g_NO.create_image(WKvO, LVAh)
g_NO.tag_raise(YKHO.idd)
YKHO.coords = [WKvO, LVAh]
YKHO.current_frame = -1
YKHO.current_state = 'Walking' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lWrY(YKHO):\n if YKHO.health > YKHO.halfHealth:\n YKHO.y = 300 - YKHO.health",
"def Gvu2(YKHO):\n YKHO.x += K2Oi._dx[YKHO.direction]\n YKHO.y += K2Oi._dy[YKHO.direction]",
"def dode(YKHO, WbTE, VfxX=False):\n YKHO.__state = FXAj.MOVING\n YKHO.__start_time = ITS7.time()\n YKHO.__dur... | [
"0.64810675",
"0.5921533",
"0.57579404",
"0.57504356",
"0.5749269",
"0.5695882",
"0.5681998",
"0.56650627",
"0.5664691",
"0.5575102",
"0.5543574",
"0.5539198",
"0.55216676",
"0.55155325",
"0.5504235",
"0.5483166",
"0.5461904",
"0.5452108",
"0.54438424",
"0.5442784",
"0.542855... | 0.63454324 | 1 |
Updates the visuals of the healthbar to match the current hp. | def tJI8(YKHO, g_NO):
YKHO.healthbar_coords[1][2] = YKHO.healthbar_coords[1][0]
YKHO.healthbar_coords[1][2] += int(YKHO.current_health / YKHO.max_health * 200)
g_NO.coords(YKHO.healthbar_idd[1], YKHO.healthbar_coords[1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO):\n YKHO.drawHealth()",
"def pN4O(YKHO, Vjhr):\n B072 = max(0.0, YKHO.hp / float(YKHO.original_hp))\n FNTW = 40\n O7Sw = 5\n jlxe = [0, 255, 0]\n Z5Q9 = [255, 0, 0]\n a9eO.draw.rect(Vjhr, jlxe, [int(YKHO.x) - FNTW // 2, int(YKHO.y) - YKHO.half_width - O7Sw * 2, int(lO1m(B072 * ... | [
"0.777696",
"0.7332804",
"0.698272",
"0.69634044",
"0.686039",
"0.6791221",
"0.6755738",
"0.6706912",
"0.6631198",
"0.65283793",
"0.64989775",
"0.64719313",
"0.6458348",
"0.6433199",
"0.6320869",
"0.62824064",
"0.6263278",
"0.6227342",
"0.61772346",
"0.6175099",
"0.61647654",... | 0.76620173 | 1 |
Returns the mean squared error of the model | def p1kx(YKHO, EcVT=None, LVAh=None):
return SDab(LVAh, YKHO.predict(EcVT)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SDab(YKHO):\n r8hN = YKHO.y_actual.shape[0]\n hkHB = YKHO.sum_of_squares_of_residuals()\n return hkHB / r8hN",
"def SDab(gEVc, cyVq):\n P1dF = CGeq(gEVc, cyVq)\n hkHB = oyIN.mean(P1dF ** 2)\n return hkHB",
"def iAxY(W061, C3ST):\n from sklearn.metrics import mean_squared_error\n ret... | [
"0.77647847",
"0.7762414",
"0.7582391",
"0.7504948",
"0.7422003",
"0.7380872",
"0.73067385",
"0.7267905",
"0.7267905",
"0.7267905",
"0.7242248",
"0.72040915",
"0.7180064",
"0.71657014",
"0.71421087",
"0.7130823",
"0.71072096",
"0.7094565",
"0.7051115",
"0.70343745",
"0.702303... | 0.0 | -1 |
Returns the element at the root fo the heap and removes it. O(logn) time | def BEuN(YKHO) -> AzJI[ImMB, ImMB]:
return YKHO._delete(0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kSdD(YKHO):\n if len(YKHO.heap) > 0:\n eSnm = YKHO.heap[0]\n del YKHO.position[eSnm[0]]\n else:\n return None\n if len(YKHO.heap) == 1:\n YKHO.heap.pop()\n return eSnm\n YKHO.heap[0] = YKHO.heap.pop()\n YKHO.position[YKHO.heap[0][0]] = 0\n d6pt, zqXl, T4m8 =... | [
"0.8062549",
"0.79298836",
"0.7837908",
"0.77318895",
"0.76598394",
"0.7609894",
"0.75734293",
"0.7540016",
"0.7449692",
"0.7444072",
"0.74247235",
"0.7308247",
"0.7304708",
"0.7295841",
"0.72879255",
"0.7207039",
"0.7200874",
"0.7163993",
"0.7160208",
"0.7101652",
"0.7094554... | 0.0 | -1 |
Swaps element with parent until parent is smaller or reaches root. O(logn) time | def XRYD(YKHO, YRbF: int) -> None:
while YRbF > 0:
ICDs: int = YRbF - 1 >> 1
if not YKHO._swap(ICDs, YRbF):
break
YRbF = ICDs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TUrh(YKHO):\n tk5Y = 0\n YRbF = len(YKHO.heap) - 1\n while YRbF > tk5Y:\n _AKB = YRbF - 1 >> 1\n if YKHO.compare(YKHO.heap[YRbF], YKHO.heap[_AKB]):\n YKHO.heap[YRbF], YKHO.heap[_AKB] = (YKHO.heap[_AKB], YKHO.heap[YRbF])\n YRbF = _AKB",
"def K_zI(YKHO, H5ew, _AKB=None)... | [
"0.6860691",
"0.68269646",
"0.6796373",
"0.6766636",
"0.6707312",
"0.66568124",
"0.665211",
"0.66461885",
"0.6603111",
"0.6593171",
"0.65495986",
"0.65462995",
"0.6528222",
"0.6490618",
"0.6479188",
"0.64586186",
"0.64356613",
"0.64171576",
"0.6381571",
"0.63752425",
"0.63653... | 0.6265109 | 27 |
Function that returns the x,y and z positions contained in a .mat file containing krypton camera measurements of a dynamic frame. | def M9nr(AesY):
vb7U = Zxt2.io.loadmat(AesY)
nPrm = vb7U.get('dynamicrobotframe')
LD06, FmeU, fnxx, F_I9, ca7K, tY3S = GlhO(nPrm)
_72e = oyIN.linspace(0.0, len(fnxx) * 0.02, len(fnxx))
LD06 = (LD06 - F_I9) / 1000.0
FmeU = (FmeU - ca7K) / 1000.0
fnxx = (fnxx - tY3S) / 1000.0
Th55 = LD06
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QqKu(YKHO):\n return gnPz.buf_to_npy(YKHO._ptr.contents.cam_pos, (YKHO.ncam, 3))",
"def X8mp(YKHO):\n WKvO = ccKF.getAttr(YKHO.CADENCE_CAM + '.translateX')\n epBp = ccKF.getAttr(YKHO.CADENCE_CAM + '.translateZ')\n return (WKvO, epBp)",
"def KQaS(Ux0P='../../Data/12056_M31-B15-F09-IR_F110W_F160W... | [
"0.6742401",
"0.6460816",
"0.63980013",
"0.6387609",
"0.6373995",
"0.6359583",
"0.63432544",
"0.63141316",
"0.62986255",
"0.62461495",
"0.6201695",
"0.61951345",
"0.6158417",
"0.6155262",
"0.6133642",
"0.6110901",
"0.60973126",
"0.60844576",
"0.60203165",
"0.5981284",
"0.5962... | 0.65522087 | 1 |
Function to filter camera data. The camera either gives zero or a fixed large number when it loses vision. This function replaces this with NaN. | def GlhO(nPrm):
LD06 = nPrm[0]
FmeU = nPrm[1]
fnxx = nPrm[2]
dyox = 4894
Y4sU = 268
XtDE = 682
Ii5o = 0.01
for YRbF in range(len(LD06)):
WKvO = LD06[YRbF]
LVAh = FmeU[YRbF]
epBp = fnxx[YRbF]
if WKvO >= dyox * (1 - Ii5o) and WKvO <= dyox * (1 + Ii5o):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ymq0(BWXx, wRCy):\n if wRCy:\n return BWXx\n else:\n return XTiz.nan",
"def ecg0(nPrm):\n QXf3 = MRlR(nPrm)\n for YRbF in range(len(QXf3)):\n if 200 < YRbF < 300:\n QXf3[YRbF] = 0\n return Maw7(QXf3)",
"def a5X0(Ty9i, cKGD, vexM, zOls, ZmUZ):\n if vexM == 0... | [
"0.68035436",
"0.626695",
"0.6228982",
"0.61465514",
"0.59623706",
"0.582458",
"0.57167876",
"0.5662286",
"0.563906",
"0.562368",
"0.56165785",
"0.5612142",
"0.556514",
"0.5565094",
"0.5562523",
"0.55334204",
"0.5528332",
"0.5521525",
"0.551986",
"0.5513113",
"0.548925",
"0... | 0.65824944 | 1 |
Verify a HashMap can be created from a list of keyvalue tuples. | def EoeO(YKHO):
vC9B = [('Mazda', 'Miata'), ('Toyota', '2000 GT'), ('Subaru', 'WRX')]
Pgpp = H3r0(vC9B)
YKHO.assertIsNotNone(Pgpp)
for H5ew, BWXx in vC9B:
YKHO.assertEqual(Pgpp.get(H5ew), BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rgte(YKHO):\n Pgpp = H3r0(Mazda='Miata', Toyota='Celica', Hyundai='Elantra GT')\n YKHO.assertIsNotNone(Pgpp)\n YKHO.assertEqual(Pgpp.get('Mazda'), 'Miata')\n YKHO.assertEqual(Pgpp.get('Toyota'), 'Celica')\n YKHO.assertEqual(Pgpp.get('Hyundai'), 'Elantra GT')",
"def eDmO(YKHO):\n roBb = set(... | [
"0.6362566",
"0.6241503",
"0.62305534",
"0.6071877",
"0.58283794",
"0.58209395",
"0.5811735",
"0.5808091",
"0.5761666",
"0.5744885",
"0.57003194",
"0.5689357",
"0.568488",
"0.5682979",
"0.5668246",
"0.5636784",
"0.56173706",
"0.55782264",
"0.5547488",
"0.55027354",
"0.5493955... | 0.77580816 | 0 |
Verify len() returns the number of items in the HashMap. | def K_if(YKHO):
Pgpp = H3r0()
YKHO.assertEqual(len(Pgpp), 0)
Pgpp['Volkswagen'] = 'GTI'
YKHO.assertEqual(len(Pgpp), 1)
del Pgpp['Volkswagen']
YKHO.assertEqual(len(Pgpp), 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def szAg(YKHO):\n return len(YKHO._dict)",
"def szAg(YKHO):\n return len(YKHO._dict)",
"def szAg(YKHO) -> int:\n return len(YKHO.keys())",
"def szAg(YKHO):\n return len(YKHO._map_entries)",
"def szAg(YKHO):\n return len(YKHO.keys())",
"def szAg(YKHO):\n return len(YKHO.keys())",
"def ... | [
"0.7787089",
"0.7787089",
"0.7705773",
"0.7679709",
"0.7675079",
"0.7675079",
"0.7633085",
"0.76233906",
"0.7611558",
"0.75962186",
"0.7580023",
"0.7570806",
"0.7456282",
"0.73771787",
"0.7374525",
"0.7345365",
"0.7345365",
"0.7345365",
"0.7345365",
"0.7345365",
"0.7339014",
... | 0.7760845 | 2 |
Convert formatted string to datetime object | def OLXh(YKHO, KCHu):
return JRYC.datetime.strptime(KCHu, '%m/%d/%y %H:%M:%S') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def suJK(wU8J, DAsM='%Y-%m-%dT%H:%M:%S'):\n return qcWV.datetime.strptime(wU8J, DAsM)",
"def HJff(KCHu):\n KCHu = KCHu.strip()\n for x8Ov in ['%Y-%m-%dT%H:%M:%S', '%Y-%m-%dT%H:%M', '%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M', '%a %b %d %H:%M:%S %Z %Y']:\n try:\n return qcWV.strptime(KCHu, x8... | [
"0.7949703",
"0.7945704",
"0.7936964",
"0.7915316",
"0.78298044",
"0.7814115",
"0.7803355",
"0.7801311",
"0.77764153",
"0.777251",
"0.77672124",
"0.7745427",
"0.77302",
"0.77295035",
"0.766792",
"0.7638288",
"0.76109844",
"0.7579468",
"0.7578335",
"0.756895",
"0.75506437",
... | 0.7441311 | 25 |
Applies one linear downprojection layer, then softmax. | def GsUR(YKHO, g4y1, oGem):
with cmJd.variable_scope('SimpleSoftmaxLayer'):
KeL5 = ZylS.contrib.layers.fully_connected(g4y1, num_outputs=1, activation_fn=None)
KeL5 = ZylS.squeeze(KeL5, axis=[2])
APKa, q414 = Ibo7(KeL5, oGem, 1)
return (APKa, q414) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, WKvO):\n WKvO = YKHO.linear(WKvO).squeeze(dim=-1)\n ZHfW = WKvO != YKHO.mask\n WKvO = WKvO.masked_fill(ZHfW == YKHO.mask, -float('inf'))\n return vuvg.softmax(WKvO, dim=-1)",
"def N93T(input, tpio=-1):\n return U78l.Softmax(axis=tpio)(input)",
"def KVH6(YKHO, WKvO):\n WKvO = N9... | [
"0.66834944",
"0.6666009",
"0.6651877",
"0.6609943",
"0.6584322",
"0.6580779",
"0.65562755",
"0.650798",
"0.64291537",
"0.6386975",
"0.6358893",
"0.634307",
"0.6291462",
"0.6290213",
"0.62809217",
"0.62701154",
"0.6215942",
"0.61939555",
"0.6193006",
"0.61717707",
"0.61646295... | 0.0 | -1 |
Takes masked softmax over given dimension of logits. | def Ibo7(KeL5, ZHfW, tpio):
Mhzc = (1 - ZylS.cast(ZHfW, 'float')) * -1e+30
APKa = ZylS.add(KeL5, Mhzc)
q414 = ZylS.nn.softmax(APKa, tpio)
return (APKa, q414) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ibo7(WKvO: torch.Tensor, ZHfW: torch.Tensor, tpio: Optional[int]=1) -> ht2j.Tensor:\n EcVT = (ZHfW * WKvO).masked_fill(ZHfW == 0, -float('inf'))\n return ht2j.softmax(EcVT, tpio)",
"def Ibo7(WKvO, tpio, ZHfW=None, RKD7=False, SGf8=0.0001, begE='cpu'):\n if ZHfW is None:\n ZHfW = ht2j.ones_lik... | [
"0.81786436",
"0.81191826",
"0.8109189",
"0.7710695",
"0.76554984",
"0.7596115",
"0.7530108",
"0.74369717",
"0.7431934",
"0.73472047",
"0.7337496",
"0.73207325",
"0.7295161",
"0.7294083",
"0.72936046",
"0.7276529",
"0.72748774",
"0.7265964",
"0.7250065",
"0.7249607",
"0.72353... | 0.81177807 | 4 |
Test POST /products with the price of a negative number or zero | def UHgZ(YKHO):
geh0 = YKHO.app_test_client.post('{}/products'.format(YKHO.base_url), json={'name': 'Hand Bag', 'price': -1, 'min_quantity': 7, 'inventory': 7, 'category': 'Clothing'}, headers=dict(Authorization=YKHO.token), content_type='application/json')
YKHO.assertEqual(geh0.status_code, 400)
YKHO.asser... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SkY4(YKHO):\n rOAq = {'name': 'Product'}\n geh0 = YKHO.client.post(YKHO.url, data=rOAq, content_type='application/json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)",
"def SkY4(YKHO):\n Mc9N = '1'\n A7ij = {'name': 'Product'}\n geh0 = YKHO.client.put(f'{YKHO.url}{Mc9N}/'... | [
"0.7474501",
"0.7082505",
"0.66839874",
"0.65110064",
"0.64820236",
"0.6424454",
"0.6402181",
"0.63825816",
"0.6348269",
"0.63363904",
"0.62811166",
"0.6273274",
"0.62415224",
"0.62186617",
"0.61859",
"0.6102699",
"0.60793304",
"0.60722923",
"0.6063187",
"0.6004878",
"0.60048... | 0.7837118 | 0 |
Test POST /products with the category not in a string format | def _A10(YKHO):
geh0 = YKHO.app_test_client.post('{}/products'.format(YKHO.base_url), json={'name': 'Hand Bag', 'price': 10, 'min_quantity': 7, 'inventory': 7, 'category': 20}, headers=dict(Authorization=YKHO.token), content_type='application/json')
YKHO.assertEqual(geh0.status_code, 400)
YKHO.assertEqual(E... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jrbh(YKHO):\n geh0 = YKHO.client.get('/products/?category=test')\n QpfX = geh0.context\n YKHO.assertFalse(QpfX['query_term'])\n YKHO.assertTrue(QpfX['category_name'])\n YKHO.assertEqual(QpfX['category_name'], 'test')",
"def sWq2(YKHO):\n nPrm = {'category': \"Men's Clothing\", 'brand': 'Cam... | [
"0.7470868",
"0.7033146",
"0.6898352",
"0.6838503",
"0.68286854",
"0.67259514",
"0.6722317",
"0.66807127",
"0.6667114",
"0.6657274",
"0.65790176",
"0.65632755",
"0.6540772",
"0.6530924",
"0.6519208",
"0.65161806",
"0.65044945",
"0.64876086",
"0.64851904",
"0.6460263",
"0.6440... | 0.79157746 | 0 |
Test POST /products with a product name that already exists | def Wrcx(YKHO):
YKHO.app_test_client.post('{}/products'.format(YKHO.base_url), json={'name': 'Hand Bag', 'price': 10, 'min_quantity': 7, 'inventory': 7, 'category': 'Clothing'}, headers=dict(Authorization=YKHO.token), content_type='application/json')
geh0 = YKHO.app_test_client.post('{}/products'.format(YKHO.ba... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H1N6(YKHO):\n geh0 = YKHO.app.post('/api/v1/products', data=qQXR.dumps(YKHO.product), content_type='application/json', headers={'x-access-token': YKHO.token})\n YKHO.assertEqual(geh0.status_code, 400)\n _6Yp = qQXR.loads(geh0.data.decode('UTF-8'))\n YKHO.assertIn('already exists', _6Yp['Message'])"... | [
"0.7763109",
"0.7642571",
"0.7613492",
"0.759417",
"0.7558454",
"0.7462992",
"0.74153244",
"0.72123253",
"0.7165691",
"0.7131472",
"0.7128224",
"0.7108041",
"0.7043826",
"0.70421475",
"0.7029226",
"0.6973723",
"0.69343024",
"0.69318753",
"0.6930227",
"0.6928798",
"0.6904192",... | 0.8034382 | 0 |
Calculate the boostrap mean and standarderror of `stat_func` applied to `observations` dataset. Optionally return the list of resampled values of the estimator, instead of the standard error. | def yGes(m50g, pR3T, e5WB, ab0U=False, igb0=None):
XeH_ = pR3T.size
xlLU = uaFI(seed=igb0)
try:
if e5WB * XeH_ > 134217728:
raise TypeError
e24m = xlLU.integers(0, XeH_, size=(e5WB, XeH_))
nfls = m50g(pR3T[e24m], axis=1)
except TypeError:
nfls = oyIN.zeros(e5W... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ERVB(nPrm, gqpo, eAYh):\n return [gqpo(DDF0(nPrm)) for bGrB in range(eAYh)]",
"def ERVB(nPrm, gqpo, eAYh):\n return [gqpo(DDF0(nPrm)) for bGrB in range(eAYh)]",
"def ERVB(dh16, T6S7, *qIxc, w31Z=10000, **B2fa):\n QmN4 = dh16(T6S7, *qIxc, **B2fa)\n if len(oyIN.shape(T6S7)) != 1:\n raise E... | [
"0.5916565",
"0.590343",
"0.5885783",
"0.5655486",
"0.5585367",
"0.55702144",
"0.5567589",
"0.5411904",
"0.5390656",
"0.53564507",
"0.53380316",
"0.53058314",
"0.5274957",
"0.5267263",
"0.5251227",
"0.5203574",
"0.5197795",
"0.5181514",
"0.5165445",
"0.5130282",
"0.5127759",
... | 0.7151142 | 0 |
Draws an xy grid over the xy plane | def J1li(JmFt, Mkmy, XvDo=0.5, xx9t=1.0, DkWr=oyIN.array([1000.0, 1000.0, 0.0]), NXpY=200.0):
CN9P = 5.5 * xx9t
for WKvO in oyIN.arange(-5.0, CN9P, XvDo):
X3qZ = oyIN.dot(Mkmy, oyIN.array([WKvO, -5.0, 0])) * NXpY + DkWr[:3]
ZYCo = oyIN.dot(Mkmy, oyIN.array([WKvO, 5.0, 0])) * NXpY + DkWr[:3]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tlUU():\n for WKvO in range(0, rOQC, Mfmt):\n a9eO.draw.line(g7M5, cOUM, (WKvO, 0), (WKvO, i3re))\n for LVAh in range(0, i3re, Mfmt):\n a9eO.draw.line(g7M5, cOUM, (0, LVAh), (rOQC, LVAh))",
"def tlUU(nxyw):\n c9I1((0.5, 0.5, 0.5))\n Go06(VlsQ)\n for YRbF in range(11):\n hQ... | [
"0.7184196",
"0.71551925",
"0.6931722",
"0.690332",
"0.68921524",
"0.6887849",
"0.6883481",
"0.68771625",
"0.68761444",
"0.6874418",
"0.6810723",
"0.679167",
"0.67538863",
"0.6747846",
"0.6717395",
"0.6713773",
"0.6712814",
"0.6710435",
"0.67000806",
"0.6672749",
"0.6672574",... | 0.65712136 | 26 |
The service type identifier for the service that the application credential is granted to access. Must be a service type that is listed in the service catalog and not a code name for a service. E.g. identity, compute, volumev3, image, network, objectstore, sharev2, dns, keymanager, monitoring, etc. | def zVa7(YKHO) -> str:
return qe4Y.get(YKHO, 'service') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NvwP(YKHO) -> str:\n return YKHO._service_description['service_type']",
"def qmzJ(YKHO):\n return YKHO.__service_type_id",
"def NvwP(YKHO) -> str:\n return YKHO._service_info.service_type",
"def mkSl():\n raise NotImplementedError",
"def NvwP(YKHO):\n raise NotImplementedError",
"def t... | [
"0.7490487",
"0.7405472",
"0.74028254",
"0.7200804",
"0.7110015",
"0.6832706",
"0.6832706",
"0.6468501",
"0.63472825",
"0.63465995",
"0.6269024",
"0.6269024",
"0.6269024",
"0.6269024",
"0.6269024",
"0.6269024",
"0.6240867",
"0.6240867",
"0.6240867",
"0.6240867",
"0.6240867",
... | 0.58073497 | 54 |
The ID of the existing access rule. The access rule ID of another application credential can be provided. | def id(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def La_l(YKHO) -> str:\n return qe4Y.get(YKHO, 'rule_id')",
"def La_l(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'rule_id')",
"def La_l(YKHO):\n return YKHO._rule_id",
"def La_l(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'rule_id')",
"def La_l(YKHO) -> h8nf[qe4Y.Input[str]]:... | [
"0.70237786",
"0.7010083",
"0.6890898",
"0.67939425",
"0.67939425",
"0.67142725",
"0.6691238",
"0.6619774",
"0.64817464",
"0.63595605",
"0.62687606",
"0.62687606",
"0.61607975",
"0.61509526",
"0.61380774",
"0.605917",
"0.6052524",
"0.59817487",
"0.59817487",
"0.5932231",
"0.5... | 0.0 | -1 |
The ID of the endpoint. | def id(YKHO) -> str:
return qe4Y.get(YKHO, 'id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def unpH(YKHO):\n return YKHO.__properties[FGgH.remote.PROP_ENDPOINT_ID]",
"def unpH(YKHO):\n return YKHO.__properties[FGgH.remote.PROP_ENDPOINT_ID]",
"def _R4q(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'endpoint_id')",
"def _R4q(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'endpoin... | [
"0.86170423",
"0.8577258",
"0.85533726",
"0.8308233",
"0.8111091",
"0.8111091",
"0.78728366",
"0.7375965",
"0.7367228",
"0.73187494",
"0.7314829",
"0.72523963",
"0.72416997",
"0.72416997",
"0.72049665",
"0.72049665",
"0.7192559",
"0.716808",
"0.7152105",
"0.71267855",
"0.7114... | 0.7055632 | 64 |
The type of the service. | def type(YKHO) -> str:
return qe4Y.get(YKHO, 'type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NvwP(YKHO) -> str:\n return YKHO._service_info.service_type",
"def NvwP(YKHO) -> str:\n return YKHO._service_description['service_type']",
"def NvwP(YKHO):\n raise NotImplementedError",
"def mkSl():\n raise NotImplementedError",
"def qmzJ(YKHO):\n return YKHO.__service_type_id",
"def m... | [
"0.9093852",
"0.9049798",
"0.8852207",
"0.8758266",
"0.81370133",
"0.79722095",
"0.76078403",
"0.72975653",
"0.72746307",
"0.7181559",
"0.7138472",
"0.7138472"
] | 0.7075547 | 13 |
The ID of the endpoint. | def id(YKHO) -> str:
return qe4Y.get(YKHO, 'id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def unpH(YKHO):\n return YKHO.__properties[FGgH.remote.PROP_ENDPOINT_ID]",
"def unpH(YKHO):\n return YKHO.__properties[FGgH.remote.PROP_ENDPOINT_ID]",
"def _R4q(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'endpoint_id')",
"def _R4q(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'endpoin... | [
"0.86170423",
"0.8577258",
"0.85533726",
"0.8308233",
"0.8111091",
"0.8111091",
"0.78728366",
"0.7375965",
"0.7367228",
"0.73187494",
"0.7314829",
"0.72523963",
"0.72416997",
"0.72416997",
"0.72049665",
"0.72049665",
"0.7192559",
"0.716808",
"0.7152105",
"0.71267855",
"0.7114... | 0.7055632 | 63 |
The URL of the endpoint. | def bD7m(YKHO) -> str:
return qe4Y.get(YKHO, 'url') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wsxr(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'endpoint_url')",
"def bD7m(YKHO):\n return f'http://{YKHO.address}:{YKHO.port}/{YKHO.path.name}'",
"def Qi1G(YKHO, w2IS='/'):\n return YKHO.BASE_URL + w2IS",
"def JY51(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'endpoint_uri')",... | [
"0.8749547",
"0.83832127",
"0.83663505",
"0.8349507",
"0.8330516",
"0.8330516",
"0.8330516",
"0.8330516",
"0.8330516",
"0.8330516",
"0.8330516",
"0.8330516",
"0.83284146",
"0.83111423",
"0.82605565",
"0.81597",
"0.81384814",
"0.8130253",
"0.80841726",
"0.8051342",
"0.80487496... | 0.80097586 | 33 |
returns the list of scored instances which have a score above the threshold. Note that strings which do not share any token are omitted since their score is 0 by default. | def neBz(YKHO, or8S, gwAu=0.0, _mSQ: dict=None, **B2fa) -> list:
V_D6 = YKHO.fields
ZCUv = dict()
if _mSQ is None:
_mSQ = {eHNT: 1 / len(V_D6) for eHNT in V_D6}
for Jyyj in V_D6:
q6Oq = YKHO.records[Jyyj][or8S]
eyIA = YKHO._processed_token_cache[Jyyj][q6Oq]
jTqf = set()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YuD6(cCrA, gwAu=0.0):\n kgDL = filter(lambda WKvO, a1PO=gwAu: WKvO[1] > a1PO, cCrA)\n return map(lambda WKvO: WKvO[0], kgDL)",
"def mIDm(YKHO, xDcj: str, G1Hx: int=4, PWAq: float=0.2, **B2fa: Any) -> x1iM[yQaM]:\n rPzt = YKHO.similarity_search_with_score(xDcj, k=G1Hx)\n return [A97Q for A97Q, p1k... | [
"0.62344813",
"0.61580575",
"0.61256343",
"0.5978726",
"0.5905389",
"0.58548665",
"0.58521426",
"0.5850316",
"0.5832134",
"0.5831878",
"0.5795193",
"0.57835245",
"0.57780313",
"0.5761007",
"0.57555753",
"0.57066005",
"0.56823534",
"0.5659216",
"0.56259346",
"0.56133866",
"0.5... | 0.5230359 | 40 |
Checks unique values count per column in the input dataframe no less than the cnt value | def IU12(bOBl, r9Hf=0):
for iVRZ in bOBl:
i34e = bOBl[[iVRZ]].dropna(axis=0)
if not i34e.empty:
w10r = i34e[iVRZ].value_counts()
if w10r[w10r < r9Hf].size < 0:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZYb2(jQ3Z, fvDH, lwl4=1000):\n return jQ3Z[jQ3Z[fvDH].fillna(False)].shape[0] >= lwl4",
"def BVge(iVRZ, nPrm):\n return len(set(nPrm[iVRZ]))",
"def HbTx(jQ3Z):\n for AAHb in jQ3Z.columns:\n if jQ3Z[AAHb].dtypes == 'object':\n LOda = len(jQ3Z[AAHb].unique())\n print(\"F... | [
"0.63733757",
"0.61761504",
"0.6117136",
"0.6106988",
"0.60059327",
"0.6000683",
"0.6000683",
"0.5897936",
"0.5868617",
"0.5850709",
"0.5818423",
"0.5817241",
"0.57665545",
"0.57493174",
"0.57482076",
"0.57195747",
"0.5717408",
"0.5692977",
"0.56355083",
"0.5612963",
"0.56079... | 0.77217567 | 0 |
Returns a list of paths. Each path in the list should be a onenode extension of the input path, where an extension is defined as a path formed by adding a neighbor node (of the final node in the path) to the path. Returned paths should not have loops, i.e. should not visit the same node twice. The returned paths should... | def CBZq(pNZh, pmON):
avhY = pNZh.get_neighbors(pmON[-1])
ErxX = []
for exwG in avhY:
if pmON.count(exwG) > 0:
avhY.remove(exwG)
sorted(avhY, key=str.lower)
if avhY != []:
for tgA3 in avhY:
ism5 = pmON + [tgA3]
ErxX.append(ism5)
for XP5J in Erx... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CBZq(pNZh, pmON):\n Fst3 = []\n next = pNZh.get_neighbors(pmON[-1])\n for Q6kx in next:\n e35S = []\n for LihS in pmON:\n e35S.append(LihS)\n e35S.append(Q6kx)\n if not PDeP(e35S):\n Fst3.append(e35S)\n return sorted(Fst3, key=lambda Q6kx: Q6kx[-1])... | [
"0.70054877",
"0.66154635",
"0.6613782",
"0.6564733",
"0.65554506",
"0.64410734",
"0.6432833",
"0.6412277",
"0.6360145",
"0.6356301",
"0.6355569",
"0.6354636",
"0.6347545",
"0.6324107",
"0.6321236",
"0.6315248",
"0.6309982",
"0.6274719",
"0.6259955",
"0.6252006",
"0.62433445"... | 0.6646504 | 1 |
Returns True if this graph's heuristic is admissible; else False. A heuristic is admissible if it is either always exactly correct or overly optimistic; it never overestimates the cost to the goal. | def Iw_Z(pNZh, whV7):
ymPF = True
for Q6kx in pNZh.nodes:
if pNZh.get_heuristic_value(Q6kx, whV7) > j5Ue(pNZh, M9ee(*raUJ)(pNZh, Q6kx, whV7)):
ymPF = False
return ymPF
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Iw_Z(pNZh, whV7):\n for Q6kx in pNZh.nodes:\n if pNZh.get_heuristic_value(Q6kx, whV7) > j5Ue(pNZh, c0vC(pNZh, Q6kx, whV7)):\n return False\n return True",
"def Iw_Z(YKHO, GERS):\n return True",
"def Iw_Z(YKHO, GERS):\n _mSQ = YKHO._weights\n upAO = 0\n for YRbF in range(... | [
"0.7134752",
"0.6897673",
"0.67089176",
"0.6528236",
"0.63190275",
"0.62137425",
"0.60858536",
"0.592577",
"0.58230585",
"0.581386",
"0.5808064",
"0.5794728",
"0.5792815",
"0.5778786",
"0.57745737",
"0.5769043",
"0.5757731",
"0.5708185",
"0.5685439",
"0.56565565",
"0.564064",... | 0.7044853 | 1 |
Computes the 2 dimensional diamond flat filter of order N. The filters are not separable and 'd' is the (0, 0) coefficient, being 0 or 1 depending on use. | def rl4A(ywwl, Csk6):
if ywwl == 1:
MKlR = [[0, 1, 0], [1, 0, 1], [0, 1, 0]]
MKlR = oyIN.array(MKlR)
MKlR = MKlR / 4
MKlR[1, 1] = Csk6
elif ywwl == 2:
MKlR = [[0, -1, 0], [-1, 0, 10], [0, 10, 0]]
MKlR = oyIN.array(MKlR)
zhMh = oyIN.fliplr(MKlR[:, :-1])
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vEFk(exwG, HHea, DkWr, fes5, VRqu, P3Ko, mWFP):\n P8oC = oyIN.exp(HHea * (oyIN.arange(exwG) - exwG // 2) + DkWr)\n Mkmy = oyIN.logspace(oyIN.log10(1 / oyIN.max(P8oC)) - VRqu[0], oyIN.log10(1 / oyIN.min(P8oC)) + VRqu[1], int(VRqu[2] * exwG))\n G1Hx = P8oC / Mkmy[:, None]\n r3wX = Ibi8(mWFP.split('.'... | [
"0.59622204",
"0.59255797",
"0.5742917",
"0.56654024",
"0.5582123",
"0.5544046",
"0.54929984",
"0.5461202",
"0.5455804",
"0.5454004",
"0.54344904",
"0.54087967",
"0.5362863",
"0.53516996",
"0.5351107",
"0.5350649",
"0.5345725",
"0.5339992",
"0.5327328",
"0.5324947",
"0.528786... | 0.565658 | 4 |
Get the design of hidden layers for the dataset | def B1bw(qIxc, YAaY):
if YAaY == 0:
return []
fhcK = []
if qIxc.breast_cancer:
fhcK = [[7], [3, 7]]
if qIxc.glass:
fhcK = [[5], [5, 9]]
if qIxc.iris:
fhcK = [[3], [5, 5]]
if qIxc.soybean:
fhcK = [[3], [8, 12]]
if qIxc.vote:
fhcK = [[5], [10, 15... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y3Wb(YKHO):\n return YKHO._hidden_layers",
"def phZn(YKHO):\n return YKHO.hiddenLayers",
"def phZn(YKHO):\n fhcK = []\n eVVj = YKHO.network\n for r8hN in eVVj.modules:\n if r8hN not in eVVj.inmodules and r8hN not in eVVj.outmodules:\n fhcK.append(r8hN)\n return fhcK",
... | [
"0.78045785",
"0.7353019",
"0.72703624",
"0.7209184",
"0.67516536",
"0.659439",
"0.64390063",
"0.6328271",
"0.63089573",
"0.6301349",
"0.6240395",
"0.62180096",
"0.61951554",
"0.614582",
"0.613264",
"0.6094928",
"0.60728663",
"0.6072454",
"0.6072454",
"0.6072454",
"0.6070685"... | 0.75216216 | 1 |
get eye position. \return eye position float_3 | def yYMf(YKHO):
return YKHO.__eye_pos | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Iuzb(YKHO):\n return YKHO.get_pose()[:3]",
"def qhz8(YKHO):\n return oyIN.copy(YKHO.simulation.data.get_body_xpos('EE'))",
"def qhz8(YKHO):\n return oyIN.copy(YKHO.simulation.data.get_body_xpos('EE'))",
"def WiSQ(YKHO):\n if not YKHO.validEyePosition:\n Ylbp = False\n else:\n ... | [
"0.68596214",
"0.6792243",
"0.6777828",
"0.6610633",
"0.65290993",
"0.6421572",
"0.6323302",
"0.62865907",
"0.62582",
"0.6252756",
"0.62320095",
"0.6196921",
"0.61722916",
"0.6157958",
"0.61526906",
"0.6140061",
"0.6135572",
"0.6133947",
"0.60923225",
"0.6090827",
"0.60722536... | 0.8268444 | 0 |
set lens to fim distance. \param[in] lens to film distance. | def Luwc(YKHO, choB):
YKHO.__lens_film_dist = choB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uXm3(YKHO, DL_9):\n YKHO.__lens_screen_dist = DL_9",
"def Z3Ov(YKHO, fZkQ):\n YKHO._fov = float(fZkQ)\n if YKHO._client is not None:\n YKHO._client.request('vset /camera/0/fov {0}'.format(YKHO._fov))",
"def kgg2(YKHO):\n YKHO.lens = '20x'\n YKHO.resX = 1392\n YKHO.resY = 1040\n ... | [
"0.6164781",
"0.5952468",
"0.5876941",
"0.5866928",
"0.5782334",
"0.5709613",
"0.5688467",
"0.5501998",
"0.5433387",
"0.5404138",
"0.537065",
"0.53524613",
"0.53522146",
"0.5341067",
"0.53347844",
"0.52798206",
"0.52685493",
"0.5249135",
"0.52469134",
"0.5211709",
"0.5204714"... | 0.70608604 | 0 |
get ray. \param[in] _dx delta x normalized screen coordinate [0,1] \param[in] _dy delta y normalized screen coordinate [0,1] \return a ray | def y8OP(YKHO, nH11, trIM):
pan_ = YKHO.__LB_corner + nH11 * YKHO.__ex + trIM * YKHO.__ey
gCak = pan_ - YKHO.__eye_pos
gCak /= XTiz.linalg.norm(gCak)
Mkmy = m1mO.Ray(YKHO.__eye_pos, gCak, YKHO.__z_near, YKHO.__z_far)
return Mkmy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def APf7(YKHO, WKvO: float, LVAh: float, spHt: Ray) -> None:\n ...",
"def eRK3(YKHO, WKvO, LVAh):\n A3Vt, a1PO = YKHO.camera.matrix()\n P6bq = float(WKvO - (YKHO.x + YKHO.w / 2)) / YKHO.w\n Ty9i = float(YKHO.y + YKHO.h / 2 - LVAh) / YKHO.w\n Ir38 = float(YKHO.w) / float(YKHO.h)\n emWK = YKHO.fo... | [
"0.7554658",
"0.6795838",
"0.67058927",
"0.66303307",
"0.6534783",
"0.6507783",
"0.61625916",
"0.6010123",
"0.59660584",
"0.5946821",
"0.5832803",
"0.5794055",
"0.57927316",
"0.57856286",
"0.5782526",
"0.57329696",
"0.5714992",
"0.567657",
"0.56651264",
"0.5649069",
"0.564793... | 0.8208066 | 0 |
get orthogonal projection width. \return _ortho_width | def _5wk(YKHO):
return YKHO.__ortho_width | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nd7P(YKHO) -> float:\n return sg14.simGetObjectFloatParameter(YKHO._handle, sg14.sim_visionfloatparam_ortho_size)",
"def S9rq(YKHO, GnYH):\n YKHO.__ortho_width = GnYH",
"def Hzqg(YKHO):\n return YKHO.get_width() * oyIN.cos(oyIN.radians(YKHO.dip))",
"def SaAB(hBdd: int, TVTK: Union[float, int]) -... | [
"0.7448102",
"0.7155431",
"0.6829596",
"0.66126734",
"0.6262239",
"0.6159155",
"0.61135066",
"0.60640436",
"0.60629976",
"0.60094696",
"0.59614533",
"0.5941017",
"0.5940826",
"0.59380275",
"0.5933352",
"0.59246725",
"0.5900928",
"0.5887366",
"0.58781964",
"0.5854779",
"0.5837... | 0.8811939 | 0 |
Return size of dataset. | def szAg(YKHO):
return YKHO.dataset_size | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def duBC(__n6):\n return dD7q(__n6).data_size",
"def hU8i(YKHO):\n return YKHO._dataset_size",
"def jiw9(YKHO):\n return YKHO.dataset.get_size()",
"def zNig(YKHO):\n return YKHO._ds.size",
"def DDYt(YKHO):\n return YKHO._region_obj.get_dataset_size()",
"def hU8i(YKHO):\n return YKHO.dat... | [
"0.8926355",
"0.8831611",
"0.87597924",
"0.8509135",
"0.8485462",
"0.8416025",
"0.8280285",
"0.81247896",
"0.81220174",
"0.81152946",
"0.80796975",
"0.8025708",
"0.8003764",
"0.79990596",
"0.79990596",
"0.79990596",
"0.798798",
"0.7982662",
"0.7982662",
"0.79797894",
"0.79764... | 0.8392188 | 7 |
Saves an engine to the provided path. | def FIMM(YKHO, eHpk, pmON):
YKHO._engine = eHpk
YKHO.path = pmON | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xkzz(YKHO, pmON):\n raise NotImplementedError()",
"def xkzz(YKHO, pmON):\n pass",
"def xkzz(YKHO, pmON: str) -> None:\n raise NotImplementedError",
"def s1fa(eHpk, pmON):\n bpNA, Udjc = ('\\x1b[1m', '\\x1b[0m')\n ucPo, WvQl = ('\\x1b[31m', '\\x1b[34m')\n FlUd = '\\x1b[107m'\n tO9_ = ... | [
"0.67833406",
"0.67578447",
"0.67219657",
"0.6673038",
"0.65562594",
"0.65516",
"0.65516",
"0.65416306",
"0.64978224",
"0.6485693",
"0.6388378",
"0.63807297",
"0.6374332",
"0.63552797",
"0.63552797",
"0.625183",
"0.6224477",
"0.62051964",
"0.6142137",
"0.6132888",
"0.6122192"... | 0.0 | -1 |
Returns the stream url of a player. | def NiKx(oyg0: dict) -> h8nf[str]:
if 'adaptiveFormats' not in oyg0['streamingData']:
return None
qj_G = [WKvO for WKvO in sorted(oyg0['streamingData']['adaptiveFormats'], key=lambda WKvO: WKvO.get('averageBitrate', 0), reverse=True) if 'audio' in WKvO['mimeType'] and 'opus' not in WKvO['mimeType']]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Der4(YKHO):\n return f'http://www.tvp.info/sess/tvplayer.php?object_id={YKHO.video_id}'",
"def locQ(YKHO):\n return YKHO.track_body.get('streaming_url', None)",
"def Irfz(YKHO):\n return YKHO.streaming_url",
"def DP3Y(YKHO):\n return QMSQ(YKHO._tds[0].a.attrs['href'])",
"def DXz0(YKHO):\n ... | [
"0.7900414",
"0.78302866",
"0.77341115",
"0.7624012",
"0.7299232",
"0.72226787",
"0.715347",
"0.7062662",
"0.7036525",
"0.7029507",
"0.70095956",
"0.6970002",
"0.6964953",
"0.6929717",
"0.680948",
"0.6758668",
"0.67037284",
"0.66729355",
"0.66694975",
"0.6658673",
"0.6568114"... | 0.7540106 | 4 |
|coro| Returns a list of players from a iterable of queries. | async def make_multiple_players(Emd4, XL9m: YoutubeClient, GD6h: str, W7M9: Iterable[str], locH: Optional[discord.Member]) -> x1iM[mVZ4]:
xCjU = [Emd4.fetch_song(XL9m, i34x, playlist=False) for i34x in W7M9]
W7M9 = await V7ok.gather(*xCjU)
return [Emd4(locH, GD6h, data=WKvO[0]) for WKvO in W7M9 if WKvO] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def get_all_players(cuiw: Session=JHvC(HNqP.get_session)) -> x1iM[gclh.Details]:\n lV8G = SoFO.query_players_by_(cuiw).all()\n return lV8G",
"async def players(NCls: Session=JHvC(GGod), vexM: Optional[str]=_aLO(None, description='Searchable keyword'), EdbX: Optional[int]=_aLO(0), qoqK: Optional[int]=... | [
"0.7483512",
"0.71257895",
"0.7104555",
"0.7068027",
"0.69516134",
"0.6942691",
"0.6781977",
"0.6716076",
"0.66979283",
"0.6658632",
"0.6591879",
"0.6588408",
"0.65800565",
"0.65618455",
"0.6549503",
"0.6519175",
"0.6510314",
"0.6442469",
"0.6440858",
"0.64400405",
"0.6368894... | 0.65773827 | 13 |
Circular/spherical interpolation between two points. | def WQ4G(jzdc, Fg_i, a1PO):
YXbZ = oyIN.linalg.norm(jzdc, axis=1) * oyIN.linalg.norm(Fg_i, axis=1) + 1e-09
z1Rg = oyIN.arccos(oyIN.clip(oyIN.sum(jzdc * Fg_i, axis=1) / YXbZ, -1, 1))
ZHfW = z1Rg < 0.001
Aofo = oyIN.empty(jzdc.shape, dtype=jzdc.dtype)
jsK2 = a1PO[ZHfW]
Aofo[ZHfW] = (1 - jsK2) * jz... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H7lM(Emd4, Xk4T, wRNn, VJSn, yj1u, MKlR):\n ivLH = (MKlR - wRNn) / (yj1u - wRNn)\n SG6Y = Emd4.shortest_angle(Xk4T, VJSn) * ivLH\n SG6Y = oyIN.sign(SG6Y) * (oyIN.abs(SG6Y) % 360)\n yvT9 = (VJSn + SG6Y) % 360\n return yvT9",
"def _anc(o4D3, si3g, ajwV, skBL, WKvO):\n return (skBL - si3g) / (... | [
"0.71247876",
"0.6816717",
"0.65760523",
"0.6503738",
"0.6438984",
"0.62770665",
"0.62272066",
"0.6177494",
"0.61558914",
"0.6106386",
"0.60141754",
"0.59946185",
"0.59074533",
"0.58937174",
"0.58919626",
"0.58649033",
"0.5805594",
"0.58017987",
"0.5789973",
"0.57899237",
"0.... | 0.64105475 | 6 |
Circular/spherical interpolation between two points. | def WQ4G(jzdc, Fg_i, a1PO):
YXbZ = oyIN.linalg.norm(jzdc, axis=1) * oyIN.linalg.norm(Fg_i, axis=1) + 1e-09
z1Rg = oyIN.arccos(oyIN.clip(oyIN.sum(jzdc * Fg_i, axis=1) / YXbZ, -1, 1))
ZHfW = z1Rg < 0.001
Aofo = oyIN.empty(jzdc.shape, dtype=jzdc.dtype)
jsK2 = a1PO[ZHfW]
Aofo[ZHfW] = (1 - jsK2) * jz... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H7lM(Emd4, Xk4T, wRNn, VJSn, yj1u, MKlR):\n ivLH = (MKlR - wRNn) / (yj1u - wRNn)\n SG6Y = Emd4.shortest_angle(Xk4T, VJSn) * ivLH\n SG6Y = oyIN.sign(SG6Y) * (oyIN.abs(SG6Y) % 360)\n yvT9 = (VJSn + SG6Y) % 360\n return yvT9",
"def _anc(o4D3, si3g, ajwV, skBL, WKvO):\n return (skBL - si3g) / (... | [
"0.7123809",
"0.68156666",
"0.65759224",
"0.65026176",
"0.6439473",
"0.6276581",
"0.6226282",
"0.6177311",
"0.61557555",
"0.6104524",
"0.60155785",
"0.59947944",
"0.59066296",
"0.5892787",
"0.589187",
"0.58634895",
"0.5804535",
"0.5800837",
"0.5790223",
"0.57900953",
"0.57878... | 0.6410968 | 5 |
Resets the iterator to the beginning of the file. Specifically, it calls SeqIO.parse again as if reinstantiating the object. | def SiRx(YKHO):
YKHO.seq = Rg82.parse(YKHO.path, YKHO.filetype, **YKHO.kwargs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p3Uh(YKHO):\n YKHO._position = 0\n YKHO._hasMoreData = True\n YKHO.init_file_input_stream()",
"def SiRx(YKHO):\n YKHO.f.seek(0)\n YKHO.pos = YKHO.f.tell()",
"def SiRx(YKHO):\n YKHO.f.seek(0)",
"def p3Uh(YKHO):\n YKHO.init_file_input_stream()\n YKHO._hasMoreData = True",
"def p3U... | [
"0.7429469",
"0.739315",
"0.73827195",
"0.7315267",
"0.7239524",
"0.7239524",
"0.7076424",
"0.70461434",
"0.70287937",
"0.70220214",
"0.6959097",
"0.69243175",
"0.6911452",
"0.6730618",
"0.67079747",
"0.66740805",
"0.66614586",
"0.6657857",
"0.66577643",
"0.66486603",
"0.6604... | 0.80595183 | 0 |
Steps forward through inputs until position = n and then returns that value. This also updates the internal length variable if the iterator ends due to this method call. | def CxOD(YKHO, exwG):
if YKHO.length is not None and exwG > YKHO.length:
raise IndexError('Requested index is out of bounds for inputs with length {0}.'.format(YKHO.length))
if exwG < YKHO.position:
raise IndexError('Can only step forward to a value higher than current position.')
WKvO = LuK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AxtR(YKHO, exwG):\n return YKHO._single_ended_inputs[exwG]",
"def next(YKHO, exwG=1):\n return YKHO.get(YKHO.tell, exwG)",
"def XHb1(YKHO, exwG=0):\n while exwG >= len(YKHO.buffer):\n try:\n YKHO.buffer.append(YKHO.iter.next())\n except StopIteration:\n return N... | [
"0.6489606",
"0.6350674",
"0.62502825",
"0.6224082",
"0.6057324",
"0.6007347",
"0.5959074",
"0.5937321",
"0.5933067",
"0.5913183",
"0.59015435",
"0.5892915",
"0.58858687",
"0.5817899",
"0.58122605",
"0.5773809",
"0.5773809",
"0.5761041",
"0.57421833",
"0.57366604",
"0.5727834... | 0.6779468 | 0 |
Answer whether this node is the root of a tree (i.e. it has no parent). | def kFcs(YKHO):
return YKHO.parent is None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Swep(YKHO):\n return YKHO.parent_node is None",
"def K5QN(YKHO, Q6kx):\n return Q6kx.parent is YKHO.NIL",
"def kFcs(YKHO):\n if YKHO.parent == None:\n return True\n else:\n return False",
"def kFcs(YKHO):\n return not YKHO.get_directed_branch_to_parent()",
"def ruaK(YKHO):\... | [
"0.8850416",
"0.86397535",
"0.8567574",
"0.8499482",
"0.8421859",
"0.83687055",
"0.8334347",
"0.83244836",
"0.8315167",
"0.83069897",
"0.82747674",
"0.82747674",
"0.8273849",
"0.8101501",
"0.80889237",
"0.8055202",
"0.8038011",
"0.79941607",
"0.7981268",
"0.79342705",
"0.7924... | 0.8237541 | 13 |
Answer whether this node is a leaf node (i.e. it has no children) | def loae(YKHO):
return not YKHO.children | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A_Yz(YKHO):\n if len(YKHO.children) > 0:\n return True\n return False",
"def RoR6(YKHO):\n return not YKHO.get_descendant_count()",
"def RoR6(YKHO):\n return not YKHO.get_descendant_count()",
"def loae(YKHO):\n if len(YKHO.children) == 0:\n return True\n else:\n ret... | [
"0.8797012",
"0.8781205",
"0.8732101",
"0.8687092",
"0.862282",
"0.85946685",
"0.8578302",
"0.8578302",
"0.8578302",
"0.85376316",
"0.85040426",
"0.84978014",
"0.8490302",
"0.8475631",
"0.8462911",
"0.8457134",
"0.8417218",
"0.8417218",
"0.8408061",
"0.83806205",
"0.83795154"... | 0.87450707 | 2 |
The number of nodes in this tree. This may be different from the number of objects contained in this tree in cases where two or more of these objects are considered equal by the distance function in use (i.e., for two objects ``p`` and ``q``, calling ``self._func(p, q)`` returns ``0`` and when the tree is empty, i.e. t... | def qpYm(YKHO):
return YKHO._num_nodes | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OtzW(YKHO):\n return len(YKHO._node)",
"def dJ5n(YKHO):\n mrZR(YKHO)\n return YKHO.tree_.internal_count + YKHO.tree_.leaf_count",
"def lU1W(YKHO):\n return len(YKHO.nodes)",
"def lU1W(YKHO):\n return len(YKHO.area.nodes)",
"def EKkU(YKHO):\n TK2h = 1\n for aUGN in YKHO._children:\n... | [
"0.78563833",
"0.78541845",
"0.77440494",
"0.7719682",
"0.7704157",
"0.76959974",
"0.7655878",
"0.7653943",
"0.7641819",
"0.7632677",
"0.7612617",
"0.7605463",
"0.7597351",
"0.7566684",
"0.75366485",
"0.753477",
"0.75124246",
"0.75002325",
"0.7499802",
"0.7499367",
"0.7498811... | 0.7330403 | 45 |
The height of this tree. Empty trees have a height of ``0``, trees containing one or more objects have a height ``>= 1``. | def oyMm(YKHO):
return YKHO._height | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v2(YKHO):\n if YKHO.root is None:\n return -1\n return YKHO.root.height",
"def H2v2(YKHO):\n if YKHO.is_leaf():\n return 1\n return 1 + max((aUGN.height() for aUGN in YKHO.children))",
"def H2v2(YKHO: 'BST') -> int:\n return x8h4(YKHO._root)",
"def H2v2(YKHO) -> int:\n r... | [
"0.8760076",
"0.82904786",
"0.82717866",
"0.8270647",
"0.82664245",
"0.8248854",
"0.8227961",
"0.81989914",
"0.8180909",
"0.8155975",
"0.81526035",
"0.8134746",
"0.8111332",
"0.80814576",
"0.80761886",
"0.80693215",
"0.8011403",
"0.80094856",
"0.79505706",
"0.79355246",
"0.78... | 0.0 | -1 |
The parent of this node. `None` if this node is the root of a tree. | def NT9U(YKHO):
return YKHO._parent | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _AKB(YKHO) -> h8nf[o7DN]:\n return YKHO._parent",
"def temm(YKHO):\n return YKHO._parent_node",
"def PAwq(YKHO):\n if YKHO.parent:\n return YKHO.parent\n else:\n raise AttributeError('No parent found. Is this the root node?')",
"def _AKB(YKHO):\n if len(YKHO._parents) == 1:\n... | [
"0.85504794",
"0.85400194",
"0.8483283",
"0.8441673",
"0.82764465",
"0.8248843",
"0.8127647",
"0.8031443",
"0.8023012",
"0.79595715",
"0.78691876",
"0.7750087",
"0.7750087",
"0.7750087",
"0.7750087",
"0.77191126",
"0.76979053",
"0.76979053",
"0.76979053",
"0.76629627",
"0.765... | 0.0 | -1 |
A generator that yields all objects in this node and its children by doing recursive preorder traversal. Implementors might choose to use another traversal method which better suits their data structure. Note that objects are returned in no specific order. This implementation will always return objects in the same orde... | def Vs4Q(YKHO):
for YEnM in YKHO._values:
yield YEnM
for aUGN in YKHO.children:
for YEnM in aUGN:
yield YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eNvf(YKHO):\n if not YKHO.children:\n return\n for y0cW in sorted(YKHO.children):\n aUGN = YKHO.children[y0cW]\n yield aUGN\n for aUGN in aUGN.traverse():\n yield aUGN",
"def Nl91(YKHO):\n if not YKHO.is_empty():\n for XP5J in YKHO._subtree_preorder(YKHO... | [
"0.71956825",
"0.7040354",
"0.69999504",
"0.6963098",
"0.69506747",
"0.6921411",
"0.6796879",
"0.6713468",
"0.6682607",
"0.6682607",
"0.6682607",
"0.6652092",
"0.66470593",
"0.6596248",
"0.65934956",
"0.6590575",
"0.65535873",
"0.6551088",
"0.65386724",
"0.6509557",
"0.648210... | 0.5952455 | 87 |
A generator that yields all nodes in this subtree by doing recursive preorder traversal. Implementors might choose to use another traversal method which better suits their data structure. Note that objects are returned unordered. This implementation will always return nodes in the same order as long as the tree's conte... | def VoWx(YKHO):
yield YKHO
for aUGN in YKHO.children:
for Q6kx in aUGN.iternodes():
yield Q6kx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nl91(YKHO):\n if not YKHO.is_empty():\n for XP5J in YKHO._subtree_preorder(YKHO.root()):\n yield XP5J",
"def Nl91(YKHO):\n if not YKHO.is_empty():\n for XP5J in YKHO._subtree_preorder(YKHO.root()):\n yield XP5J",
"def Nl91(YKHO):\n yield YKHO\n for Q6kx in YK... | [
"0.72387975",
"0.71361494",
"0.70148426",
"0.6961532",
"0.6833765",
"0.68175566",
"0.6814935",
"0.6814935",
"0.6814935",
"0.68064857",
"0.6784942",
"0.6768286",
"0.67156523",
"0.6684078",
"0.6679483",
"0.6648207",
"0.6646884",
"0.6621363",
"0.6594631",
"0.65621126",
"0.654948... | 0.0 | -1 |
Return True if this node contains any objects. | def ebnO(YKHO):
return len(YKHO._values) > 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rIBx(YKHO):\n return bool(YKHO.objects)",
"def rIBx(YKHO):\n return bool(YKHO.objects)",
"def agtm(YKHO):\n return True if YKHO.childrenCount() > 0 else False",
"def agtm(YKHO):\n if len(YKHO.children) == 0:\n return False\n else:\n return True",
"def lsmZ(YKHO):\n retur... | [
"0.8131616",
"0.8131616",
"0.7481793",
"0.7462597",
"0.74138474",
"0.74026155",
"0.738879",
"0.73846114",
"0.7365045",
"0.735379",
"0.73459023",
"0.7330225",
"0.73118174",
"0.72881097",
"0.7287688",
"0.72827613",
"0.72783965",
"0.7242971",
"0.7237669",
"0.7216034",
"0.7213846... | 0.0 | -1 |
This function creates a bytearray from an image that is provided as a path string. | def Dlwn(pmON):
VXjJ = hnIv.open(pmON).resize((32, 32))
VXjJ = oyIN.asarray(VXjJ)[:, :, 0:1]
return bytearray(VXjJ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JHn2(LNo8: bytes) -> oyIN.ndarray:\n VXjJ = XC5k.imdecode(oyIN.frombuffer(LNo8, oyIN.uint8), -1)\n return h0qj.resize(VXjJ, width=500)",
"def DYwI(VXjJ):\n IjEj = hnIv.open(VXjJ)\n MR5g = xDSY.BytesIO()\n IjEj.save(MR5g, format=IjEj.format)\n return MR5g.getvalue()",
"def DZ0a(p4m8):\n ... | [
"0.73511976",
"0.72562236",
"0.70061934",
"0.6874096",
"0.680507",
"0.6799088",
"0.67606974",
"0.67569816",
"0.6700555",
"0.657426",
"0.65499306",
"0.65213734",
"0.65044993",
"0.64839566",
"0.6455317",
"0.64449126",
"0.64220095",
"0.6408809",
"0.6399899",
"0.63906157",
"0.638... | 0.7768162 | 0 |
For numpy arrays X and Y returns the numpy arrays of Xrot and Yrot | def DWJ0(EcVT, fuBA, Nq1b, o4sw):
OACc = EcVT * Nq1b - fuBA * o4sw
mpxP = fuBA * Nq1b + EcVT * o4sw
return (OACc, mpxP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D6gQ(EcVT, fuBA):\n vyAE = EcVT - oyIN.mean(EcVT, axis=0)\n DWGi = fuBA - oyIN.mean(fuBA, axis=0)\n P6bq, KCHu, Ty9i = aJJu.svd(oyIN.dot(EcVT.T, fuBA))\n return oyIN.dot(Ty9i, P6bq.T)",
"def zmHA(EcVT, fuBA):\n A3Vt, bGrB = GGRl(fuBA, EcVT)\n return (oyIN.dot(fuBA, A3Vt), A3Vt)",
"def _BQ... | [
"0.6759565",
"0.6653125",
"0.64678663",
"0.64058495",
"0.62950766",
"0.62541515",
"0.6253061",
"0.6246642",
"0.62266076",
"0.6216391",
"0.6205542",
"0.6198109",
"0.61949307",
"0.6133955",
"0.6113861",
"0.6104234",
"0.6102072",
"0.60971105",
"0.60816586",
"0.60335565",
"0.5998... | 0.6994893 | 0 |
Returns the effective access permission for the given securable and access right for the user. | def fbZ8(YKHO, pq0U, VFHz, mt13, xSC3=None, m6Me=False, **PK7a):
bD7m = YKHO.get_access_for_securable.metadata['url']
wiSa = {'emsSystemId': YKHO._serialize.url('ems_system_id', pq0U, 'int'), 'securableId': YKHO._serialize.url('securable_id', VFHz, 'str')}
bD7m = YKHO._client.format_url(bD7m, **wiSa)
Am... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def awnO(YKHO, hHsW):\n if hHsW.is_superuser:\n return 's'\n IuXB = '-'\n if YKHO.can_edit(hHsW):\n return 'rw'\n if YKHO.can_view(hHsW):\n return 'r'\n return IuXB",
"def _uSD(YKHO):\n return YKHO.perm.getEffectivePermissions()",
"def gn9d(YKHO, ZrNc):\n if YKHO.is_ow... | [
"0.64447",
"0.61373633",
"0.56693876",
"0.56517506",
"0.5646698",
"0.56175303",
"0.56008875",
"0.55903846",
"0.5559273",
"0.554905",
"0.552772",
"0.552772",
"0.55180544",
"0.5499488",
"0.54872257",
"0.5478869",
"0.5465729",
"0.5440334",
"0.54150456",
"0.5412877",
"0.5395701",... | 0.63980174 | 1 |
Return empty json list if no licensee provided | def qRo2(YKHO):
jYCb = k_g4.make('kpc.Licensee')
YKHO.user.user_permissions.add(YKHO.p)
YKHO.user.profile.licensees.add(jYCb)
geh0 = v4UR(YKHO.request)
YKHO.assertEqual(geh0.content, b'[]') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MHHJ(YKHO):\n pass",
"def KbHS(YKHO):\n bD7m = YKHO._url + '/licenses'\n NArs = {'f': 'json'}\n return YKHO._con.get(path=bD7m, postdata=NArs)",
"def voYm(YKHO):\n bD7m = YKHO.base_url + '/license'\n geh0 = YKHO.session.get(bD7m)\n try:\n return geh0.json()['response']\n exce... | [
"0.6918833",
"0.6596806",
"0.6468165",
"0.6402645",
"0.6386017",
"0.6349192",
"0.6270719",
"0.6266021",
"0.6250059",
"0.6215276",
"0.6175211",
"0.61058617",
"0.61058617",
"0.61058617",
"0.60982925",
"0.6070737",
"0.605525",
"0.60338354",
"0.5965505",
"0.5959058",
"0.59119886"... | 0.70766395 | 0 |
Licensee form is used when certificate is editable | def ARpL(YKHO):
LSCv = k_g4.make(GIX6, status=GIX6.AVAILABLE)
L03z = sPLq(object=LSCv).get_form_class()
YKHO.assertIs(L03z, wmnd) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def riqM(YKHO):\n pass",
"def fA8m():\n return eHpk.get_template('site/license.html').render({'license': KL7p})",
"def pbVb(YKHO):\n ieuM = '\\n Copyright 2018 Camilo Cunha de Azevedo e Renan Sebben\\n\\n Licensed under the Apache License, Version 2.0 (the \"License\");\\n you may... | [
"0.6488674",
"0.6451595",
"0.63038844",
"0.61916614",
"0.6067296",
"0.6067079",
"0.60345715",
"0.60099363",
"0.5981461",
"0.5940125",
"0.5938773",
"0.5925602",
"0.590787",
"0.58723897",
"0.58100647",
"0.57891643",
"0.5757053",
"0.57253116",
"0.56945854",
"0.5683366",
"0.56780... | 0.6975361 | 0 |
redirect to login if anonymoususer | def uFwo(YKHO):
geh0 = YKHO.c.get(YKHO.url)
WTO6 = gCuF.LOGIN_URL + '?next=' + YKHO.url
YKHO.assertRedirects(geh0, WTO6, fetch_redirect_response=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MC83(QePW):\n if not QePW.user.is_anonymous:\n return vKnz(gCuF.LOGIN_REDIRECT_URL)\n else:\n return _1tc(QePW, 'registration/login.html')",
"def NMoC(YKHO, QePW, *qIxc, **B2fa):\n if YKHO.request.user.is_authenticated:\n return vKnz('/')\n return super(KseA, YKHO).get(QePW, ... | [
"0.78802794",
"0.7311358",
"0.7303856",
"0.7279737",
"0.72254276",
"0.7170086",
"0.71192265",
"0.7095713",
"0.7093561",
"0.70690215",
"0.7043417",
"0.69988745",
"0.6990319",
"0.69871044",
"0.69459945",
"0.69445276",
"0.69359773",
"0.69357014",
"0.69077563",
"0.6907278",
"0.69... | 0.0 | -1 |
Contact information is displayed on licensee page | def Ozqo(YKHO):
YKHO.user.profile.phone_number = '555'
YKHO.user.save()
geh0 = YKHO.c.get(YKHO.url)
YKHO.assertContains(geh0, YKHO.user.email)
YKHO.assertContains(geh0, YKHO.user.profile.phone_number) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mxk0():\n return TvZl('contact.html', title='Contact', year=qcWV.now().year, message='Frc Scouting Analyzer contact info (built by Asaf Soreq).')",
"def Mxk0():\n QpfX = {'page_title': 'Sophisticated Collector', 'current_year': _c1T.today().year}\n return TvZl('contact.html', **QpfX)",
"def GLLQ()... | [
"0.7832394",
"0.767829",
"0.74957",
"0.7485751",
"0.7473924",
"0.742316",
"0.74127495",
"0.7408175",
"0.7387963",
"0.73747456",
"0.73747456",
"0.736403",
"0.7351951",
"0.731848",
"0.73159236",
"0.73138475",
"0.72497624",
"0.72422796",
"0.72348595",
"0.72254246",
"0.7208259",
... | 0.0 | -1 |
Returns True if authentication is set up for this configuration object. Note This only checks whether the auth is configured, not whether the authentication information is correct. | def FnRk(YKHO):
if YKHO._username and YKHO._password:
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cASf(YKHO):\n if hasattr(YKHO, 'username') and hasattr(YKHO, 'password') and YKHO.username and YKHO.password:\n Aofo = False\n else:\n Aofo = True\n return Aofo",
"def cASf(YKHO):\n if hasattr(YKHO, 'username') and hasattr(YKHO, 'password') and YKHO.username and YKHO.password:\n ... | [
"0.79819643",
"0.79771227",
"0.77582407",
"0.7342073",
"0.72874504",
"0.7273821",
"0.72300047",
"0.71749765",
"0.71173924",
"0.7100333",
"0.7098576",
"0.70816165",
"0.7030084",
"0.70238584",
"0.7015101",
"0.7012803",
"0.6976044",
"0.69669676",
"0.6941609",
"0.6919394",
"0.687... | 0.8959957 | 0 |
Return the absolute path to the config file. | def OyQC():
qmLP.warn('get_path deprecated, use Configuration.from_filename with an explicit filename', DeprecationWarning)
for XP5J in C0xB():
pmON = Hy7s.path.join(XP5J, y4gQ)
if EFYe(pmON):
return pmON
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S673():\n return SDCd",
"def xzSM(YKHO):\n return YKHO.abs_path(YKHO.config_dir, u8az)",
"def RrNC():\n return Hy7s.path.join(vmiX, u8az)",
"def S673(YKHO):\n return Hy7s.path.expanduser(YKHO.options.config_file)",
"def Nu1S(YKHO):\n return '%s/%s' % (YKHO.config_dir, YKHO._config_file)"... | [
"0.90855855",
"0.9051089",
"0.8666881",
"0.85710204",
"0.8159567",
"0.80362797",
"0.80066967",
"0.7931808",
"0.78766143",
"0.78629684",
"0.7861709",
"0.7859695",
"0.783494",
"0.7821002",
"0.78208244",
"0.7816805",
"0.7811305",
"0.7805613",
"0.7795106",
"0.7753743",
"0.7726326... | 0.0 | -1 |
r"""vallina_mse_loss_function(input, target, size_average=None, reduce=None, reduction='mean') > Tensor | def wSB_(input, pan_, UQAb=None, Pusg=None, gH2v='mean'):
if not pan_.size() == input.size():
print('Using a target size ({}) that is different to the input size ({}). This will likely lead to incorrect results due to broadcasting. Please ensure they have the same size.'.format(pan_.size(), input.size()))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B6jo(input, pan_, PvdA, UQAb=None, Pusg=None, gH2v='mean'):\n if not pan_.size() == input.size():\n print('Using a target size ({}) that is different to the input size ({}). This will likely lead to incorrect results due to broadcasting. Please ensure they have the same size.'.format(pan_.size(), inp... | [
"0.78860235",
"0.7820359",
"0.77929837",
"0.75625116",
"0.7359592",
"0.7359592",
"0.7305522",
"0.70465225",
"0.69306755",
"0.6895016",
"0.6861482",
"0.6774138",
"0.67407936",
"0.6684962",
"0.66639966",
"0.659573",
"0.65768844",
"0.65733695",
"0.6517418",
"0.65157765",
"0.6508... | 0.8896349 | 0 |
Return the first_name plus the last_name, with a space in between. | def xpqj(YKHO):
eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)
return eHMM.strip() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n return eHMM",
"def xpqj(YKHO):\n return (YKHO.first_name + ' ' + YKHO.last_name).strip()",
"def zFMy(YKHO):\n return (YKHO.first_name or '') + (YKHO.first_name and ' ' or '') + (YKHO.last_name or '')",
"def e1yb(c9ua, zp3f):\n eHMM = c9ua.titl... | [
"0.83319575",
"0.8230801",
"0.8184164",
"0.8123591",
"0.80841",
"0.8069066",
"0.80623335",
"0.8055801",
"0.8046104",
"0.80374926",
"0.8033423",
"0.8031738",
"0.8017788",
"0.80005956",
"0.79999644",
"0.7998853",
"0.7998853",
"0.7998181",
"0.79967743",
"0.7996312",
"0.7996312",... | 0.7788254 | 61 |