nielsr HF Staff commited on
Commit
a7a86dc
·
verified ·
1 Parent(s): a7c8492

Add task categories and relevant tags to metadata

Browse files

This PR adds relevant `task_categories` (`text-generation`, `code-generation`, `code-understanding`) and `tags` (`diff-understanding`, `benchmark`) to the dataset card metadata for improved discoverability on the Hugging Face Hub. The existing Arxiv paper link in the content is maintained as per the explicit guidelines.

Files changed (1) hide show
  1. README.md +29 -22
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
- - **Apply**: Given old code and diff, generate new code
61
- - **Anti-Apply**: Given new code and diff, generate old code
62
- - **Diff-Generation**: Given old and new code, generate the diff
63
 
64
  ## How it's built
65
 
66
  Examples were systematically filtered from CommitPackFT to ensure high quality:
67
 
68
- - **Scope**: Single-file changes only, excluding binary files, vendor directories, and generated code
69
- - **Quality**: Removed trivial changes (whitespace-only) and likely test files
70
- - **Size**: Required 40+ lines in at least one version of the code (old or new); excluded very large files (1000+ lines)
71
- - **Sampling**:
72
- - Target 50/50 split between single-hunk and multi-hunk edits (hunks counted via `@@` markers in the unified diff).
73
- - Within each hunk group, stratify by change size (lines added + removed) using the 40th/80th percentiles of that
74
- group, targeting ≈40% small, 40% medium, 20% large.
75
- - Cap examples to ≤5 per repository per language.
76
 
77
  ## Dataset Statistics
78
 
79
- - **Total examples:** 1,000
80
- - **Languages:** Python (200), JavaScript (200), Java (200), Kotlin (200), Rust (200)
81
 
82
  **Hunks:**
83
 
84
- - **1 hunk:** 500 (50.0%)
85
- - **2+ hunks:** 500 (50.0%)
86
 
87
  **Change size (added + removed), stratified within hunk groups:**
88
 
89
- - **Small** (≤40th pct): 424 (42.4%)
90
- - **Medium** (40th–80th): 388 (38.8%)
91
- - **Large** (>80th): 188 (18.8%)
92
 
93
  **Change type:**
94
 
95
- - **Mixed** (additions + deletions): 815 (81.5%)
96
- - **Add-only:** 163 (16.3%)
97
- - **Delete-only:** 22 (2.2%)
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 |