Datasets:
Download crosswalk.sql from NaiveNeuron/github-stars-in-context: direct link, hf CLI and curl.
- Browser
- Download file 765 Bytes
-
https://huggingface.co/datasets/NaiveNeuron/github-stars-in-context/resolve/main/crosswalk.sql
- Command line
-
hf download hf://datasets/NaiveNeuron/github-stars-in-context/crosswalk.sql
-
curl -L -o crosswalk.sql https://huggingface.co/datasets/NaiveNeuron/github-stars-in-context/resolve/main/crosswalk.sql
765 Bytes
| CREATE VIEW identifier_crosswalk AS | |
| SELECT r.id AS local_repository_row_id, u.id AS local_owner_id, | |
| u.github_id AS github_owner_id, r.repository_id AS github_repository_id, | |
| u.github_name AS owner_login, r.name AS repository_name_stored, | |
| CASE WHEN instr(r.name, '/') > 0 THEN substr(r.name, instr(r.name, '/') + 1) | |
| ELSE r.name END AS repository_name, | |
| u.github_name || '/' || CASE WHEN instr(r.name, '/') > 0 | |
| THEN substr(r.name, instr(r.name, '/') + 1) ELSE r.name END AS owner_name, | |
| 'https://github.com/' || u.github_name || '/' || CASE WHEN instr(r.name, '/') > 0 | |
| THEN substr(r.name, instr(r.name, '/') + 1) ELSE r.name END AS repository_url | |
| FROM repositories r JOIN users u ON u.id=r.user_id; | |