Add task categories and relevant tags to metadata
#2
by
nielsr
HF Staff
- opened
README.md
CHANGED
|
@@ -1,4 +1,11 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
dataset_info:
|
| 3 |
features:
|
| 4 |
- name: repo
|
|
@@ -57,44 +64,44 @@ multiple diff representations (`udiff`, `udiff-h`, `udiff-l`, and `search-replac
|
|
| 57 |
|
| 58 |
These formats enable evaluation of LLM capabilities on three code editing tasks:
|
| 59 |
|
| 60 |
-
-
|
| 61 |
-
-
|
| 62 |
-
-
|
| 63 |
|
| 64 |
## How it's built
|
| 65 |
|
| 66 |
Examples were systematically filtered from CommitPackFT to ensure high quality:
|
| 67 |
|
| 68 |
-
-
|
| 69 |
-
-
|
| 70 |
-
-
|
| 71 |
-
-
|
| 72 |
-
-
|
| 73 |
-
-
|
| 74 |
-
|
| 75 |
-
-
|
| 76 |
|
| 77 |
## Dataset Statistics
|
| 78 |
|
| 79 |
-
-
|
| 80 |
-
-
|
| 81 |
|
| 82 |
**Hunks:**
|
| 83 |
|
| 84 |
-
-
|
| 85 |
-
-
|
| 86 |
|
| 87 |
**Change size (added + removed), stratified within hunk groups:**
|
| 88 |
|
| 89 |
-
-
|
| 90 |
-
-
|
| 91 |
-
-
|
| 92 |
|
| 93 |
**Change type:**
|
| 94 |
|
| 95 |
-
-
|
| 96 |
-
-
|
| 97 |
-
-
|
| 98 |
|
| 99 |
**Repository diversity:** 891 unique repositories.
|
| 100 |
|
|
@@ -117,4 +124,4 @@ Examples were systematically filtered from CommitPackFT to ensure high quality:
|
|
| 117 |
| `udiff` | string | Standard unified diff (1-line context, numeric hunk headers) |
|
| 118 |
| `udiff-h` | string | Unified diff with relaxed hunk headers written as `@@ ... @@` |
|
| 119 |
| `udiff-l` | string | Unified diff with explicit line markers: `ADD`, `DEL`, and `CON` |
|
| 120 |
-
| `search-replace` | string | Search/replace representation: pairs of `SEARCH`/`REPLACE` edit blocks |
|
|
|
|
| 1 |
---
|
| 2 |
+
task_categories:
|
| 3 |
+
- text-generation
|
| 4 |
+
- code-generation
|
| 5 |
+
- code-understanding
|
| 6 |
+
tags:
|
| 7 |
+
- diff-understanding
|
| 8 |
+
- benchmark
|
| 9 |
dataset_info:
|
| 10 |
features:
|
| 11 |
- name: repo
|
|
|
|
| 64 |
|
| 65 |
These formats enable evaluation of LLM capabilities on three code editing tasks:
|
| 66 |
|
| 67 |
+
- **Apply**: Given old code and diff, generate new code
|
| 68 |
+
- **Anti-Apply**: Given new code and diff, generate old code
|
| 69 |
+
- **Diff-Generation**: Given old and new code, generate the diff
|
| 70 |
|
| 71 |
## How it's built
|
| 72 |
|
| 73 |
Examples were systematically filtered from CommitPackFT to ensure high quality:
|
| 74 |
|
| 75 |
+
- **Scope**: Single-file changes only, excluding binary files, vendor directories, and generated code
|
| 76 |
+
- **Quality**: Removed trivial changes (whitespace-only) and likely test files
|
| 77 |
+
- **Size**: Required 40+ lines in at least one version of the code (old or new); excluded very large files (1000+ lines)
|
| 78 |
+
- **Sampling**:
|
| 79 |
+
- Target 50/50 split between single-hunk and multi-hunk edits (hunks counted via `@@` markers in the unified diff).
|
| 80 |
+
- Within each hunk group, stratify by change size (lines added + removed) using the 40th/80th percentiles of that
|
| 81 |
+
group, targeting ≈40% small, 40% medium, 20% large.
|
| 82 |
+
- Cap examples to ≤5 per repository per language.
|
| 83 |
|
| 84 |
## Dataset Statistics
|
| 85 |
|
| 86 |
+
- **Total examples:** 1,000
|
| 87 |
+
- **Languages:** Python (200), JavaScript (200), Java (200), Kotlin (200), Rust (200)
|
| 88 |
|
| 89 |
**Hunks:**
|
| 90 |
|
| 91 |
+
- **1 hunk:** 500 (50.0%)
|
| 92 |
+
- **2+ hunks:** 500 (50.0%)
|
| 93 |
|
| 94 |
**Change size (added + removed), stratified within hunk groups:**
|
| 95 |
|
| 96 |
+
- **Small** (≤40th pct): 424 (42.4%)
|
| 97 |
+
- **Medium** (40th–80th): 388 (38.8%)
|
| 98 |
+
- **Large** (>80th): 188 (18.8%)
|
| 99 |
|
| 100 |
**Change type:**
|
| 101 |
|
| 102 |
+
- **Mixed** (additions + deletions): 815 (81.5%)
|
| 103 |
+
- **Add-only:** 163 (16.3%)
|
| 104 |
+
- **Delete-only:** 22 (2.2%)
|
| 105 |
|
| 106 |
**Repository diversity:** 891 unique repositories.
|
| 107 |
|
|
|
|
| 124 |
| `udiff` | string | Standard unified diff (1-line context, numeric hunk headers) |
|
| 125 |
| `udiff-h` | string | Unified diff with relaxed hunk headers written as `@@ ... @@` |
|
| 126 |
| `udiff-l` | string | Unified diff with explicit line markers: `ADD`, `DEL`, and `CON` |
|
| 127 |
+
| `search-replace` | string | Search/replace representation: pairs of `SEARCH`/`REPLACE` edit blocks |
|