Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
This is a sample of GitHub commits and files reconstructed from the Software Heritage dataset.
|
2 |
+
It contains the latest 1024 commits in all of `pytorch/*` and `huggingface/*` repos.
|
3 |
+
|
4 |
+
The tables are split to avoid an explosion of rows (lots of repeated files between commits), so you will need to pre-filter the commits before adding the file contents.
|
5 |
+
|
6 |
+
Table descriptions:
|
7 |
+
## 1. `commits`
|
8 |
+
The commit message table. Join it with `commit_filepath` on `commits.directory_id == commit_filepath.directory_id` and `commits.parent_directory_id == commit_filepath.directory_id`.
|
9 |
+
|
10 |
+
* origin - str (repo url, example: `https://github.com/huggingface/datasets`)
|
11 |
+
* full_name - str (repo name, example: `huggingface/datasets`)
|
12 |
+
* commit_id - str (example: `56b114ebfd5399252dc23f9df207f87c5397b50a`)
|
13 |
+
* parent_commit_id - str (previous commit id, example: `8c826fb80f7f8135f6e632d34c8f59134f5983c8`)
|
14 |
+
* snapshot_id - str (Software Heritage snapshot id, example: `d76232879a5912b1eaca91e8889863117bca66a4`)
|
15 |
+
* visit_date - datetime[ns] (Software Heritage crawler visit date, example: `2022-11-28 13:03:09.100114`)
|
16 |
+
* branch_name - str (example: `refs/heads/main`)
|
17 |
+
* revision_date - datetime[ns] (commit date, example: `2022-04-27 17:30:41`)
|
18 |
+
* committer_date - datetime[ns] (commit date, example: `2022-04-27 17:30:41`)
|
19 |
+
* author - binary (Software Heritage anonymized commit's author name)
|
20 |
+
* message - str (commit message, example: `update auth when mirroring datasets on the hub (#4242)`)
|
21 |
+
* directory_id - str (root directory id to join this table with the files, example: `84c6cc5b2c156ed3251674c43dd411d731183bb3`)
|
22 |
+
* parent_directory_id - str (parent commit's root directory id, example: `e927ce1cdecf6286f7e23204ed656373c9921f89`)
|
23 |
+
|
24 |
+
## 2. `commit_filepath`
|
25 |
+
The file paths associated with each commit. Join it with `file_conents` on `blob_id`
|
26 |
+
|
27 |
+
*
|