Update README.md
Browse files
README.md
CHANGED
|
@@ -1,30 +1,48 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: odc-by
|
| 3 |
-
dataset_info:
|
| 4 |
-
features:
|
| 5 |
-
- name: blob_id
|
| 6 |
-
dtype: string
|
| 7 |
-
- name: repo_name
|
| 8 |
-
dtype: string
|
| 9 |
-
- name: path
|
| 10 |
-
dtype: string
|
| 11 |
-
- name: length_bytes
|
| 12 |
-
dtype: int64
|
| 13 |
-
- name: score
|
| 14 |
-
dtype: float64
|
| 15 |
-
- name: int_score
|
| 16 |
-
dtype: int64
|
| 17 |
-
- name: text
|
| 18 |
-
dtype: string
|
| 19 |
-
splits:
|
| 20 |
-
- name: train
|
| 21 |
-
num_bytes: 13496584244.40846
|
| 22 |
-
num_examples: 7677467
|
| 23 |
-
download_size: 6045401237
|
| 24 |
-
dataset_size: 13496584244.40846
|
| 25 |
-
configs:
|
| 26 |
-
- config_name: default
|
| 27 |
-
data_files:
|
| 28 |
-
- split: train
|
| 29 |
-
path: data/train-*
|
| 30 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: odc-by
|
| 3 |
+
dataset_info:
|
| 4 |
+
features:
|
| 5 |
+
- name: blob_id
|
| 6 |
+
dtype: string
|
| 7 |
+
- name: repo_name
|
| 8 |
+
dtype: string
|
| 9 |
+
- name: path
|
| 10 |
+
dtype: string
|
| 11 |
+
- name: length_bytes
|
| 12 |
+
dtype: int64
|
| 13 |
+
- name: score
|
| 14 |
+
dtype: float64
|
| 15 |
+
- name: int_score
|
| 16 |
+
dtype: int64
|
| 17 |
+
- name: text
|
| 18 |
+
dtype: string
|
| 19 |
+
splits:
|
| 20 |
+
- name: train
|
| 21 |
+
num_bytes: 13496584244.40846
|
| 22 |
+
num_examples: 7677467
|
| 23 |
+
download_size: 6045401237
|
| 24 |
+
dataset_size: 13496584244.40846
|
| 25 |
+
configs:
|
| 26 |
+
- config_name: default
|
| 27 |
+
data_files:
|
| 28 |
+
- split: train
|
| 29 |
+
path: data/train-*
|
| 30 |
+
---
|
| 31 |
+
|
| 32 |
+
# SmolLM-Corpus: Python-Edu (Cleaned)
|
| 33 |
+
|
| 34 |
+
This dataset contains the `python-edu` subset of [SmolLM-Corpus](https://huggingface.co/datasets/HuggingFaceTB/smollm-corpus) with the contents of the files stored in a new `text` field. All files were downloaded from the S3 bucket on January the 8th 2025, using the blob IDs from the original dataset with revision `3ba9d605774198c5868892d7a8deda78031a781f`. Only 1 file was marked as not found and the corresponding row removed from the dataset (`content/39c3e5b85cc678d1d54b4d93a55271c51d54126c` which I suspect is caused by a mallformed blob ID), and 980 files were removed (see the next section for more details).
|
| 35 |
+
|
| 36 |
+
Please refer to the original [README](https://huggingface.co/datasets/HuggingFaceTB/smollm-corpus/blob/main/README.md#python-edu) for all other information.
|
| 37 |
+
|
| 38 |
+
## Cleaning
|
| 39 |
+
980 files were removed from the dataset due to being low quality. The primary culprits were hardcoded python calculators, massive hardcoded unit tests, files containing lists words, and TSV/CSV data stored as python files. There was also one file that contained an entire Harry Potter book.
|
| 40 |
+
|
| 41 |
+
## Dataset Features
|
| 42 |
+
* `blob_id (string)`: Software Heritage (SWH) ID of the file on AWS S3.
|
| 43 |
+
* `repo_name (string)`: Repository name on GitHub.
|
| 44 |
+
* `path (string)`: The file path within the repository.
|
| 45 |
+
* `length_bytes (int64)`: Length of the file content in UTF-8 bytes.
|
| 46 |
+
* `score (float32)`: The output of the educational scoring model.
|
| 47 |
+
* `int_score (uint8)`: The rounded educational score.
|
| 48 |
+
* `text (string)`: The downloaded python file text.
|