OSCR

Block oscr:b:27H31CHZ7HE6T-C

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:27H31CHZ7HE6T-C
Status
Current: the registry links these lines to the paper today.
Paper
doi:10.1093/gigascience/giaf053 · its page here
Code
github.com/melobio/attune, bgi/losses/contrastive_loss.py, lines 8 to 50 (add_contrastive_loss)
Commit read
93867953ac3ab75be5b1cd2cb761c13d0bb4fe66
SWHID
swh:1:cnt:2689ffb62829e2705e76f98258c8842c1e3d2dee;origin=https://github.com/melobio/attune;anchor=swh:1:rev:93867953ac3ab75be5b1cd2cb761c13d0bb4fe66;path=/bgi/losses/contrastive_loss.py;lines=8-50 (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 47 (Methods › Cross-modal contrastive loss)
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:27H31CHZ7HE6T-C (https://openscicode.org/b/oscr:b:27H31CHZ7HE6T-C)
bgi/losses/contrastive_loss.py, lines 8 to 50, in github.com/melobio/attune (https://github.com/melobio/attune), commit 93867953ac3ab75be5b1cd2cb761c13d0bb4fe66.
Paper: https://doi.org/10.1093/gigascience/giaf053
SWHID: swh:1:cnt:2689ffb62829e2705e76f98258c8842c1e3d2dee;origin=https://github.com/melobio/attune;anchor=swh:1:rev:93867953ac3ab75be5b1cd2cb761c13d0bb4fe66;path=/bgi/losses/contrastive_loss.py;lines=8-50