Upload README.md
Browse files
README.md
CHANGED
|
@@ -34,7 +34,7 @@ This dataset combines raw source code from a variety of mature and hobbyist oper
|
|
| 34 |
|
| 35 |
The dataset is provided in **Parquet** format for optimal compression and integration with the `datasets` library.
|
| 36 |
|
| 37 |
-
### 1. `kernelllm_dataset_v2.parquet` (~1.8 GB
|
| 38 |
**Unified Knowledge Base:**
|
| 39 |
- **Files/Entries:** 367,769
|
| 40 |
- **Size:** ~1.8 GB (Parquet), ~6.1 GB (Raw JSONL)
|
|
@@ -72,6 +72,55 @@ The dataset is provided in **Parquet** format for optimal compression and integr
|
|
| 72 |
- **`git_logdiff`:** (234 entries) Pairs commit messages with filtered logic-diffs to show how code evolves.
|
| 73 |
- **`lkml_critique`:** (~26,600 pairs) Contentious technical discussions pairing code snippets with maintainer feedback.
|
| 74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
## Dataset Release Strategy
|
| 76 |
|
| 77 |
This is the **Raw** version of the dataset. It is intended for:
|
|
|
|
| 34 |
|
| 35 |
The dataset is provided in **Parquet** format for optimal compression and integration with the `datasets` library.
|
| 36 |
|
| 37 |
+
### 1. `kernelllm_dataset_v2.parquet` (~1.8 GB)
|
| 38 |
**Unified Knowledge Base:**
|
| 39 |
- **Files/Entries:** 367,769
|
| 40 |
- **Size:** ~1.8 GB (Parquet), ~6.1 GB (Raw JSONL)
|
|
|
|
| 72 |
- **`git_logdiff`:** (234 entries) Pairs commit messages with filtered logic-diffs to show how code evolves.
|
| 73 |
- **`lkml_critique`:** (~26,600 pairs) Contentious technical discussions pairing code snippets with maintainer feedback.
|
| 74 |
|
| 75 |
+
### 3. Dataset Schema
|
| 76 |
+
|
| 77 |
+
The unified dataset contains three primary data types, each with a specific schema:
|
| 78 |
+
|
| 79 |
+
#### Source Code (`data_type: "source"`)
|
| 80 |
+
```json
|
| 81 |
+
{
|
| 82 |
+
"data_type": "source",
|
| 83 |
+
"source": "repository_name",
|
| 84 |
+
"filepath": "relative/path/to/file.c",
|
| 85 |
+
"code": "cleaned_source_code_content"
|
| 86 |
+
}
|
| 87 |
+
```
|
| 88 |
+
|
| 89 |
+
#### Git Commit Diffs (`data_type: "git_logdiff"`)
|
| 90 |
+
```json
|
| 91 |
+
{
|
| 92 |
+
"data_type": "git_logdiff",
|
| 93 |
+
"commit": "commit_sha_hash",
|
| 94 |
+
"source": "repository_name",
|
| 95 |
+
"message": "commit_message",
|
| 96 |
+
"code": "git_diff_output"
|
| 97 |
+
}
|
| 98 |
+
```
|
| 99 |
+
|
| 100 |
+
#### LKML Critiques (`data_type: "lkml_critique"`)
|
| 101 |
+
```json
|
| 102 |
+
{
|
| 103 |
+
"data_type": "lkml_critique",
|
| 104 |
+
"source": "mailing_list_name",
|
| 105 |
+
"subject": "[PATCH] subject_line",
|
| 106 |
+
"code": "patch_content",
|
| 107 |
+
"critique": "maintainer_feedback",
|
| 108 |
+
"metadata": {
|
| 109 |
+
"author": "reviewer_email",
|
| 110 |
+
"date": "email_date",
|
| 111 |
+
"thread_id": "thread_identifier",
|
| 112 |
+
"is_openbsd": boolean
|
| 113 |
+
}
|
| 114 |
+
}
|
| 115 |
+
```
|
| 116 |
+
|
| 117 |
+
#### Data Processing Features
|
| 118 |
+
- **Deduplication:** Content-based hashing with normalized whitespace
|
| 119 |
+
- **License Header Cleaning:** Preserves SPDX identifiers and copyright lines while removing generic boilerplate
|
| 120 |
+
- **Size Filtering:** Excludes files under 100 characters
|
| 121 |
+
- **Git-specific:** Deduplicates by commit SHA when available
|
| 122 |
+
- **Critique-specific:** Deduplicates based on code + critique content pairs
|
| 123 |
+
|
| 124 |
## Dataset Release Strategy
|
| 125 |
|
| 126 |
This is the **Raw** version of the dataset. It is intended for:
|