code2lora commited on
Commit
f11cdf2
·
verified ·
1 Parent(s): c15fc85

Update dataset/model card

Browse files
Files changed (1) hide show
  1. README.md +53 -0
README.md ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags: [code, assertion-completion, repository-level]
4
+ ---
5
+
6
+ # code2lora-data-smartcap — smart-capped GRU training QnAs
7
+
8
+ Smart-capped, file/function-balanced per-commit QnA dataset used to train
9
+ **Code2LoRA-GRU** in the paper. The capping reduces the heavy-tailed
10
+ training distribution by:
11
+
12
+ 1. Dropping trivial targets (`len(target.strip()) < 4`, bare `")"`, etc.).
13
+ 2. Round-robin sampling within each commit across (test_file, test_function)
14
+ groups so file/function diversity is preserved.
15
+ 3. Capping each commit at `max_per_commit = 8` and each
16
+ (commit, test_file) at `max_per_file = 4`.
17
+
18
+ **Only `in_repo_split == "train"` rows are capped.** Val and test rows
19
+ pass through verbatim, so evaluation suites remain comparable to the
20
+ uncapped dataset.
21
+
22
+ ## Counts
23
+
24
+ | File | Rows | Notes |
25
+ |---|---:|---|
26
+ | `qna/cr_train.parquet` | 1,187,359 | 215,129 capped train + 437,227 val + 535,003 test (val/test untouched) |
27
+ | `qna/cr_val.parquet` | 641,848 | full uncapped |
28
+ | `qna/cr_test.parquet` | 476,455 | full uncapped |
29
+
30
+ ## Split semantics
31
+
32
+ Two independent split axes:
33
+
34
+ * `cross_repo_split ∈ {train, cr_val, cr_test}` -- which **repositories** the model has seen.
35
+ * `in_repo_split ∈ {train, val, test}` -- chronological 80/10/10 split of each repo's **commits**.
36
+
37
+ The four evaluation suites used in the paper map onto these axes as follows:
38
+
39
+ | Paper suite | File | Selection |
40
+ |---|---|---|
41
+ | Train (loss) | `qna/cr_train.parquet` | `in_repo_split == "train"` |
42
+ | IR val | `qna/cr_train.parquet` | `in_repo_split == "val"` |
43
+ | IR test | `qna/cr_train.parquet` | `in_repo_split == "test"` |
44
+ | CR val | `qna/cr_val.parquet` | all rows |
45
+ | CR test | `qna/cr_test.parquet` | all rows |
46
+
47
+ All evaluation suites use the **full uncapped** assertion set. Only the in-repo train loss path is smart-capped (see `code2lora/code2lora-data-smartcap`).
48
+
49
+
50
+ ## Companion datasets
51
+
52
+ * `code2lora/code2lora-data-commits` per-commit metadata + diff embeddings
53
+ * `code2lora/code2lora-data-snapshots` direct-projection (static) variant