NDe2V commited on
Commit
c3f39e8
·
verified ·
1 Parent(s): 46a3fb1

dataset card

Browse files
Files changed (1) hide show
  1. README.md +26 -0
README.md CHANGED
@@ -72,3 +72,29 @@ configs:
72
  - split: test
73
  path: methods2test_runnable/test-*
74
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  - split: test
73
  path: methods2test_runnable/test-*
74
  ---
75
+
76
+ # methods2test_small (cleaned) + static method-level context
77
+
78
+ Static context for unit-test generation, computed with tree-sitter from each row's `source` only
79
+ (no repository checkout; `target` is never read).
80
+
81
+ ## Configs
82
+ - `default`: train / validation / test from [`NDe2V/methods2test_small_cleaned`](https://huggingface.co/datasets/NDe2V/methods2test_small_cleaned) @ `3d6a2f2061736202832b7ac2bb4e84e1c70668e8`
83
+ - `methods2test_runnable`: test from [`andstor/methods2test_runnable`](https://huggingface.co/datasets/andstor/methods2test_runnable) (`fm+fc+c+m+f+t+tc`) @ `ed8cded666b2f7d101ba04a7a8d121b6249d8c39`
84
+
85
+ ## Added columns
86
+ | column | meaning |
87
+ |---|---|
88
+ | `static_context` | JSON string: focal, class_info, ast, cfg, dfg, cdg, paths, calls, types, fields, exceptions, metrics, test_case, test_hints, context_text |
89
+ | `context_text` | full text summary |
90
+ | `prompt_context` | compact Java comment actually used in the prompt ("" if dropped) |
91
+ | `source_ctx` | `prompt_context + source`: ready-to-use prompt for `Salesforce/codegen-350M-multi` within 2048 tokens |
92
+ | `ctx_included` | whether context fit the token budget |
93
+ | `static_status` | ok / partial / error |
94
+
95
+ ```python
96
+ import json
97
+ from datasets import load_dataset
98
+ ds = load_dataset("NDe2V/methods2test_small_static", "default", split="train")
99
+ sc = json.loads(ds[0]["static_context"]) # nested AST/CFG/DFG/...
100
+ ```