waynechi commited on
Commit
995309c
·
verified ·
1 Parent(s): c72f752

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +55 -4
README.md CHANGED
@@ -12,9 +12,60 @@ metrics:
12
  - execution-accuracy
13
  ---
14
 
15
- # EditBench: A Code Editing Benchmark Dataset
16
 
17
- This dataset is provided EXCLUSIVELY as a TEST/BENCHMARK dataset and is not intended for training.
18
- It is designed to evaluate model performance on code editing tasks.
19
 
20
- Please respect the test-only nature of this dataset and do not include it in any training data.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  - execution-accuracy
13
  ---
14
 
15
+ # EditBench Dataset
16
 
17
+ This dataset contains code editing tasks extracted from the EditBench evaluation framework specifically designed for evaluating model performance on code editing tasks. It is provided as a test-only benchmark. Each sample includes:
 
18
 
19
+ ## Core Files (Python)
20
+ - `original_code.py`: Starting code file
21
+ - `highlighted_code.py`: Specific section of code to be modified
22
+ - `instruction.txt`: User instructions for the task
23
+ - `test_code.py`: Tests that validate the implementation
24
+
25
+ ## Supporting Files (Python)
26
+ - `requirements.txt`: Dependencies needed to run the code
27
+ - `conftest.py`: Pytest configuration
28
+ - `test_utils.py`: Utilities for testing
29
+
30
+ ## Core Files (JavaScript)
31
+ - `original_code.js`: Starting code file (or .jsx)
32
+ - `highlighted_code.js`: Specific section of code to be modified
33
+ - `instruction.txt`: User instructions for the task
34
+ - `test_code`: Tests that validate the implementation (from tests/*.test.js)
35
+ - `package_json`: NPM package configuration
36
+ - `jest_setup`: Jest testing setup (if applicable)
37
+ - `babel_config`: Babel configuration (if applicable)
38
+ - `other_files`: Additional files needed for the project
39
+
40
+ ## Dataset Statistics
41
+ - Total samples: 113
42
+ - Python samples: 104
43
+ - JavaScript samples: 9
44
+ - Expected samples: 113 (57 easy + 56 hard questions)
45
+ - Found samples: 113 / 113
46
+
47
+ ## Usage
48
+ This dataset is provided as a test-only benchmark and can be loaded directly with the Hugging Face Datasets library:
49
+
50
+ ```python
51
+ from datasets import load_dataset
52
+
53
+ # Note that this dataset only has a 'test' split
54
+ dataset = load_dataset("your-username/editbench", split="test")
55
+ ```
56
+
57
+ ## Ethical Considerations and Limitations
58
+
59
+ - This dataset is provided exclusively for benchmark/evaluation purposes
60
+ - Models should NOT be trained on this dataset, as it is specifically designed to test model capabilities
61
+ - Hugging Face's Terms of Service prohibit using benchmark datasets for training
62
+ - We recommend implementing your model's training pipeline to explicitly exclude this dataset
63
+
64
+ ## Citation
65
+ If you use this dataset, please cite the original EditBench work.
66
+
67
+ ## License and Usage Restrictions
68
+ This dataset is provided for research and evaluation purposes only. By using this dataset, you agree not to:
69
+ 1. Train models on it (it is a benchmark dataset)
70
+ 2. Scrape or incorporate it into pretraining data
71
+ 3. Use it for any purpose other than evaluation