Sergasgr commited on
Commit
0d03152
·
verified ·
1 Parent(s): 32eea19

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +82 -0
README.md CHANGED
@@ -75,4 +75,86 @@ configs:
75
  data_files:
76
  - split: train
77
  path: sft/train-*
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
  data_files:
76
  - split: train
77
  path: sft/train-*
78
+ language:
79
+ - code
80
+ - en
81
+ license: other
82
+ source_datasets:
83
+ - bigcode/commitpackft
84
+ task_categories:
85
+ - text-generation
86
+ pretty_name: CodeAlign curated CommitPackFT
87
+ license_name: per-sample-permissive
88
+ tags:
89
+ - code
90
+ - sft
91
+ - commitpackft
92
+ - code-quality
93
  ---
94
+
95
+ # CodeAlign — curated CommitPackFT (8 languages)
96
+
97
+ Instruction/code pairs from [`bigcode/commitpackft`](https://huggingface.co/datasets/bigcode/commitpackft), filtered for syntax validity (tree-sitter), per-language lint errors, cyclomatic complexity, internal duplication and cross-sample near-duplicates (MinHash/LSH). Built as the SFT set of [CodeAlign](https://github.com/Sergasgr/codealign); the pipeline, thresholds and the full curation report live in that repository.
98
+
99
+ | config | rows | contents |
100
+ |---|---|---|
101
+ | `sft` (default) | 122,018 | accepted samples — the SFT training set minus the rows dropped for secrets (see Privacy) |
102
+ | `annotated` | 145,058 | every processed sample with its curation verdict (`status`, `error`) |
103
+
104
+ ```python
105
+ from datasets import load_dataset
106
+ sft = load_dataset("Sergasgr/codealign-commitpackft", "sft", split="train")
107
+ ```
108
+
109
+ ## Format
110
+
111
+ `messages` is ChatML (`user` prompt, `assistant` target file). Two prompt types, derived from the commit itself: `new_file` (write-from-spec; commit created the file) and `edit` (existing file + commit message as instruction). 84.6% of `sft` rows are `edit`.
112
+
113
+ ## Languages (`sft`)
114
+
115
+ | language | rows |
116
+ |---|---|
117
+ | javascript | 45,084 |
118
+ | python | 39,725 |
119
+ | java | 15,779 |
120
+ | c_sharp | 8,062 |
121
+ | typescript | 4,339 |
122
+ | cpp | 3,668 |
123
+ | go | 3,034 |
124
+ | rust | 2,327 |
125
+
126
+ ## Licensing and provenance
127
+
128
+ Only samples whose upstream `license` is one of apache-2.0, bsd-2-clause, bsd-3-clause, cc0-1.0, isc, mit, unlicense are included; the licence of every sample is in its `license` column and applies to that sample's code.
129
+
130
+ | license | `sft` rows |
131
+ |---|---|
132
+ | mit | 76,499 |
133
+ | apache-2.0 | 26,849 |
134
+ | bsd-3-clause | 11,913 |
135
+ | bsd-2-clause | 3,887 |
136
+ | isc | 1,423 |
137
+ | unlicense | 985 |
138
+ | cc0-1.0 | 462 |
139
+
140
+ As in CommitPackFT, each row keeps its source `commit` and `repos` so the copyright holder can be identified (100.0% of `sft` rows carry provenance). Code authors who want their code removed can open an issue on the GitHub repository.
141
+
142
+ ## Known issues in the quality columns
143
+
144
+ `lint_errors` holds the values computed by the v1.0 curation run, which had linter bugs (the data was not re-curated):
145
+ - **C++, JavaScript, TypeScript:** `lint_errors` is always 0, so these languages were filtered on syntax, complexity and duplication only. cpplint's total was parsed from the wrong output stream (fixed in the repository afterwards); ESLint ≥ 9 rejects the `--no-eslintrc` command line (still open).
146
+ - **Python:** every value includes ruff's summary line (+1, or +2 when ruff also printed a fix hint), so the actual number of violations is 1–2 lower (fixed in the repository afterwards).
147
+
148
+ ## Privacy
149
+
150
+ - Rows containing a high-confidence secret (private key blocks, AWS / GitHub / Slack / Google / Stripe credentials) were dropped: 48 from `sft`, 56 from `annotated`.
151
+ - E-mail addresses (other than documentation and GitHub no-reply domains) were replaced with `<EMAIL>` in 8,272 `sft` rows.
152
+ - Detection is pattern-based and will miss some personal data; do not use this dataset to identify individuals.
153
+
154
+ ## Decontamination
155
+
156
+ 13-gram overlap of every HumanEval and MBPP problem (prompt + canonical solution) against the Python samples is reported in `src/notebooks/01_curation_report.ipynb` of the GitHub repository.
157
+
158
+ ## Citation
159
+
160
+ Upstream data: Muennighoff et al., *OctoPack: Instruction Tuning Code Large Language Models* (2023), arXiv:2308.07124.