OSCR

Block oscr:b:783F1SVXKF7EY-8

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:783F1SVXKF7EY-8
Status
Current: the registry links these lines to the paper today.
Paper
doi:10.1371/journal.pgen.1012242 · its page here
Code
github.com/ljw20180420/cop, AI/preprocess/data_collator.py, lines 10 to 139 (DataCollator)
Commit read
353997b21fa1b80fc71654e48a3c406c70572702
SWHID
swh:1:cnt:35600c5b67106ff11bad8fff049bba4e9604c32e;origin=https://github.com/ljw20180420/cop;anchor=swh:1:rev:353997b21fa1b80fc71654e48a3c406c70572702;path=/AI/preprocess/data_collator.py;lines=10-139 (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 52 (Materials and methods › Artificial intelligence (AI) model › Tokenization of inp); paragraph 51 (Materials and methods › Artificial intelligence (AI) model › Tokenization of inp)
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:783F1SVXKF7EY-8 (https://openscicode.org/b/oscr:b:783F1SVXKF7EY-8)
AI/preprocess/data_collator.py, lines 10 to 139, in github.com/ljw20180420/cop (https://github.com/ljw20180420/cop), commit 353997b21fa1b80fc71654e48a3c406c70572702.
Paper: https://doi.org/10.1371/journal.pgen.1012242
SWHID: swh:1:cnt:35600c5b67106ff11bad8fff049bba4e9604c32e;origin=https://github.com/ljw20180420/cop;anchor=swh:1:rev:353997b21fa1b80fc71654e48a3c406c70572702;path=/AI/preprocess/data_collator.py;lines=10-139