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 |
|---|---|---|---|---|---|---|
Builds a kfactor circulant matrix (A matrix with the structure of circulant matrices, but with the entries above the diagonal multiplied by the same factor.) The matrix is store in memory. | def cK2Y(WKvO, G1Hx):
exwG = len(WKvO)
return XWF0(WKvO) * (nXnc(exwG, exwG, 0) + G1Hx * oyIN.transpose(nXnc(exwG, exwG, -1))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ru6p(YKHO):\n nMvt = YKHO.uv_vol + YKHO.Epsilon * YKHO.guv_vol + YKHO.Epsilon / YKHO.Beta * YKHO.uv_bound\n return nMvt",
"def qW7n(r8hN):\n E3D9 = r8hN * (r8hN - 1) / 2\n nMvt = oyIN.zeros((E3D9, r8hN ** 2), dtype=oyIN.int64)\n rdlD = 0\n for r845 in range(1, r8hN):\n fvDH = (r845 -... | [
"0.6495986",
"0.6089255",
"0.6045119",
"0.59890914",
"0.5949488",
"0.59035623",
"0.5859298",
"0.58462423",
"0.57634705",
"0.574443",
"0.5730508",
"0.5717386",
"0.56819576",
"0.566873",
"0.5568253",
"0.55545205",
"0.5523086",
"0.55172205",
"0.5492196",
"0.5491694",
"0.5478032"... | 0.78092545 | 0 |
Convert `data` to float64 or int(64|32|16|8); as fallback, return `data`. Assume `data` is of type `utf8` or a dictionary of utf8. | def nxJv(nPrm: pyarrow.ChunkedArray) -> Ms0J.ChunkedArray:
for yOAJ in nPrm.iterchunks():
bGrB, KE02, bGrB = yOAJ.buffers()
xtuh = KE02[yOAJ.offset * 4:(yOAJ.offset + 1) * 4]
DIiU = KE02[(yOAJ.offset + len(yOAJ)) * 4:(yOAJ.offset + len(yOAJ) + 1) * 4]
if xtuh.to_pybytes() != DIiU.to_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nsFc(nPrm):\n try:\n return float(nPrm)\n except (ValueError, TypeError):\n return nPrm",
"def pd4L(nPrm):\n return float(hr3c(nPrm))",
"def WU9g(nPrm):\n try:\n return float(nPrm)\n except ValueError as err:\n if nPrm in ('None', 'NA', 'nan'):\n return... | [
"0.748317",
"0.69878703",
"0.6950177",
"0.6709056",
"0.6397729",
"0.6396958",
"0.63965064",
"0.6293659",
"0.6279694",
"0.6161165",
"0.61318475",
"0.61182475",
"0.5992608",
"0.596135",
"0.5870688",
"0.5860507",
"0.58470494",
"0.58467394",
"0.5794232",
"0.5766028",
"0.5722432",... | 0.0 | -1 |
Parse CSV, TSV or other delimiterseparated text file. Raise LookupError for an `encoding` Python cannot handle. Raise UnicodeError when the file simply cannot be read as text. (e.g., a UTF16 file that does not start with a byteorder marker.) | def gAn6(pmON: Path, *, gCuF: Settings=QhLw, tZ2K: Optional[str], TDw3: Optional[str], IcJu: bool, Xyk5: bool) -> P2SJ:
qmLP = []
with QZXY.ExitStack() as OaeV:
_VAm = pmON.stat().st_size
if _VAm > gCuF.MAX_CSV_BYTES:
hYFn = OaeV.enter_context(KXk1(prefix='truncated-'))
w... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cO1h(Ux0P, IKIW=['ascii', 'utf-8', 'utf-16', 'latin-1']):\n l5Ny = None\n for tZ2K in IKIW:\n try:\n eHNT = open(Ux0P, encoding=tZ2K)\n l5Ny = eHNT.read()\n eHNT.close()\n except UnicodeDecodeError:\n eHNT.close()\n except UnicodeError:\n ... | [
"0.6560378",
"0.62868285",
"0.61147213",
"0.6035779",
"0.6029811",
"0.5926391",
"0.5827321",
"0.5804859",
"0.58034223",
"0.5774665",
"0.5699063",
"0.56861764",
"0.56857336",
"0.56818",
"0.56673634",
"0.5613292",
"0.56082886",
"0.55889183",
"0.5518909",
"0.5518909",
"0.5518909... | 0.60616267 | 3 |
Update the config information with the number of attention heads. | def taBh(U34r, kJiB):
U34r['model_params']['boltzmann_dict']['num_heads'] = kJiB
U34r['model_params']['boltzmann_dict']['head_pool'] = 'concatenate'
M5sQ = U34r['model_params']['readoutdict']
iQSw = U34r['model_params']['mol_basis']
for H5ew, yv6U in M5sQ.items():
for YRbF, Op6c in enumerate... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YYiC(YKHO):\n YKHO.channel_count = YKHO.config_global['channel_count']\n YKHO.pixel_count = YKHO.config_global['pixel_count']\n YKHO.pixel_index_max = YKHO.pixel_count - 1\n YKHO.repeat_count = YKHO.config_global['repeat_count']\n YKHO.repeat_snake = YKHO.config_global['repeat_snake']\n YKHO.... | [
"0.5661511",
"0.5599164",
"0.54210174",
"0.53882116",
"0.5338775",
"0.5247799",
"0.5247248",
"0.5225227",
"0.51431704",
"0.5058479",
"0.49841285",
"0.49445143",
"0.49379683",
"0.48532596",
"0.4848556",
"0.48481622",
"0.4835506",
"0.48258802",
"0.48030823",
"0.48024145",
"0.47... | 0.5935313 | 0 |
Distribution parameter for the location. | def hksT(YKHO):
return YKHO._gev_bijector.loc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IZxK(YKHO) -> str:\n return qe4Y.get(YKHO, 'distribution')",
"def hksT(YKHO):\n return YKHO.distribution.loc",
"def eVXf(YKHO):\n return 'UNDEFINED'",
"def IZxK(YKHO, sEAN):\n pass",
"def Uh2w(YKHO, vKpX):\n super()._handleInput(vKpX)\n r7x1 = vKpX.findFirst('location')\n if r7x1 !... | [
"0.65867454",
"0.62829775",
"0.62012964",
"0.59412557",
"0.57245076",
"0.56689125",
"0.5637412",
"0.5567886",
"0.5564207",
"0.55510134",
"0.5550806",
"0.55264115",
"0.5516382",
"0.550923",
"0.5505646",
"0.5505646",
"0.5499564",
"0.5482442",
"0.5477142",
"0.54546994",
"0.54109... | 0.0 | -1 |
Initialise an allergy storage with the given allergy score. | "def FIMM(YKHO, p1kx):\n YKHO.score = p1kx\n YKHO.list = [SkC9[0] for SkC9 in YKHO._allergens (...TRUNCATED) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | ["def i4on(YKHO, vTtz=0.0001, CXGk=1000.0):\n oMl_ = {}\n oMl_['iALDth'] = vTtz\n oMl_['iMa(...TRUNCATED) | ["0.5347252","0.5322024","0.5263044","0.5225015","0.5212653","0.51022935","0.5069073","0.50057083","(...TRUNCATED) | 0.5045687 | 7 |
"This returns a single entry corresponding to the Experiment Entity referred to by ExpEntityData. Th(...TRUNCATED) | "def AqPM(u6d7):\n if u6d7.Type != 'Experiment':\n sZGp('\\nThe Entity Data does not repre(...TRUNCATED) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | ["def KrC0(LEXu: spacy.tokens.Token) -> str:\n Tw4A = K7nP._get_chunk(LEXu)\n GIN8 = LEXu\n (...TRUNCATED) | ["0.6376407","0.5688458","0.56678385","0.5637462","0.5474638","0.5404834","0.5358794","0.53286546","(...TRUNCATED) | 0.81062454 | 0 |
Initialize the sum to zero | def FIMM(YKHO, mWFP):
super(OciN, YKHO).__init__(YKHO, mWFP)
YKHO.sum = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | ["def vWqZ(YKHO):\n YKHO.sum_e = 0","def RqgG(YKHO):\n return sbx9","def sbx9(YKHO):\n rais(...TRUNCATED) | ["0.7703882","0.71630156","0.69994444","0.6945991","0.6897512","0.67463124","0.6605019","0.65537924"(...TRUNCATED) | 0.0 | -1 |
"The `ComputeCluster` data source can be used to discover the ID of a cluster in vSphere. This is us(...TRUNCATED) | "def qrVU(BT13: Optional[str]=None, mWFP: Optional[str]=None, VKhi: Optional[pulumi.InvokeOptions]=N(...TRUNCATED) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | ["def VLhC(xAU6):\n hKn5 = xAU6.cluster\n nJ8O = tQff(xAU6)\n for ZfUD in nJ8O.hostFolder.c(...TRUNCATED) | ["0.70518404","0.70052683","0.67735595","0.6768537","0.6736824","0.6736824","0.6736824","0.6736824",(...TRUNCATED) | 0.72311264 | 0 |
"The `ComputeCluster` data source can be used to discover the ID of a cluster in vSphere. This is us(...TRUNCATED) | "def T6nz(BT13: Optional[pulumi.Input[Optional[str]]]=None, mWFP: Optional[pulumi.Input[str]]=None, (...TRUNCATED) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | ["def qrVU(BT13: Optional[str]=None, mWFP: Optional[str]=None, VKhi: Optional[pulumi.InvokeOptions]=(...TRUNCATED) | ["0.72311264","0.70518404","0.67735595","0.6768537","0.6736824","0.6736824","0.6736824","0.6736824",(...TRUNCATED) | 0.70052683 | 2 |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 63