Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P1543
origin contributors format
Active
Public
Actions
Authored by
vlorentz
on Dec 19 2022, 5:56 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
ORIGIN_CONTRIBUTORS
=
"""\
origin_id,person_id
2,0
2,2
0,0
0,1
0,2
"""
assert
(
base64
.
b64decode
(
"aHR0cHM6Ly9leGFtcGxlLmNvbS9zd2gvZ3JhcGg="
)
==
b
"https://example.com/swh/graph"
)
assert
(
base64
.
b64decode
(
"aHR0cHM6Ly9leGFtcGxlLmNvbS9zd2gvZ3JhcGgy"
)
==
b
"https://example.com/swh/graph2"
)
ORIGIN_URLS
=
"""\
origin_id,origin_url_base64
2,aHR0cHM6Ly9leGFtcGxlLmNvbS9zd2gvZ3JhcGg=
0,aHR0cHM6Ly9leGFtcGxlLmNvbS9zd2gvZ3JhcGgy
"""
DEANONYMIZATION_TABLE
=
"""\
sha256_base64,base64,escaped
8qhF7WQ2bmeoRbZipAaqtNw6QdOCDcpggLWCQLzITsI=,Sm9obiBEb2UgPGpkb2VAZXhhbXBsZS5vcmc+,John Doe <jdoe@example.org>
aZA9TeLhVzqVDQHQOd53UABAZYyek0tY3vTo6VSlA4U=,SmFuZSBEb2UgPGpkb2VAZXhhbXBsZS5jb20+,Jane Doe <jdoe@example.com>
UaCrgAZBvn1LBd2sAinmdNvAX/G4sjo1aJA9GDd9UUs=,SmFuZSBEb2UgPGpkb2VAZXhhbXBsZS5uZXQ+,Jane Doe <jdoe@example.net>
"""
# noqa
DEANONYMIZED_ORIGIN_CONTRIBUTORS
=
"""\
origin_id,person_base64,person_escaped
2,SmFuZSBEb2UgPGpkb2VAZXhhbXBsZS5jb20+,Jane Doe <jdoe@example.com>
2,Sm9obiBEb2UgPGpkb2VAZXhhbXBsZS5vcmc+,John Doe <jdoe@example.org>
0,SmFuZSBEb2UgPGpkb2VAZXhhbXBsZS5jb20+,Jane Doe <jdoe@example.com>
0,SmFuZSBEb2UgPGpkb2VAZXhhbXBsZS5uZXQ+,Jane Doe <jdoe@example.net>
0,Sm9obiBEb2UgPGpkb2VAZXhhbXBsZS5vcmc+,John Doe <jdoe@example.org>
"""
# noqa
Event Timeline
vlorentz
created this paste.
Dec 19 2022, 5:56 PM
2022-12-19 17:56:43 (UTC+1)
vlorentz
edited the content of this paste.
(Show Details)
Comment Actions
D8970
D8971
Log In to Comment