OSCR

Block oscr:b:FW1Y77KCD69M7-I

A block of code linked to a paper, with an identifier OSCR gives it for good: it is never reused nor deleted. What a block identifier is · this block in JSON

Identifier
oscr:b:FW1Y77KCD69M7-I
Status
Current: the registry links these lines to the paper today.
Paper
doi:10.1162/imag.a.1301 · its page here
Code
github.com/ohba-analysis/osl-foundation, osl_foundation/utils/sampling.py, lines 91 to 133 (top_p_sampling)
Commit read
ffbeff318811de3adea33d7dfeaa0af15a5b902b
SWHID
swh:1:cnt:424534ceb97b5796ddca0f6c7c678f7223de5272;origin=https://github.com/ohba-analysis/osl-foundation;anchor=swh:1:rev:ffbeff318811de3adea33d7dfeaa0af15a5b902b;path=/osl_foundation/utils/sampling.py;lines=91-133 (the Software Heritage identifier of the file as its authors published it, before any email address is hidden for display; it opens in Software Heritage's archive once the repository is archived there)
In the paper
paragraph 50 (Methods › The foundation model: MEG-GPT › Generating new data)
Linked by
the registry's matching program (lexical-v1), which can be wrong
Identifier given
2026-11-14

Open these lines beside the paper

Cite this block

Copy this text: the identifier and its page first, then the code, the paper and the SWHID.

Code block oscr:b:FW1Y77KCD69M7-I (https://openscicode.org/b/oscr:b:FW1Y77KCD69M7-I)
osl_foundation/utils/sampling.py, lines 91 to 133, in github.com/ohba-analysis/osl-foundation (https://github.com/ohba-analysis/osl-foundation), commit ffbeff318811de3adea33d7dfeaa0af15a5b902b.
Paper: https://doi.org/10.1162/imag.a.1301
SWHID: swh:1:cnt:424534ceb97b5796ddca0f6c7c678f7223de5272;origin=https://github.com/ohba-analysis/osl-foundation;anchor=swh:1:rev:ffbeff318811de3adea33d7dfeaa0af15a5b902b;path=/osl_foundation/utils/sampling.py;lines=91-133