Datasets:

Modalities:
Text
Formats:
parquet
ArXiv:
Libraries:
Datasets
pandas
jiang719 commited on
Commit
f26d37d
·
verified ·
1 Parent(s): f0baac8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +62 -0
README.md CHANGED
@@ -166,3 +166,65 @@ configs:
166
  - split: test
167
  path: 1.1/test-*
168
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
166
  - split: test
167
  path: 1.1/test-*
168
  ---
169
+
170
+ # Can Language Models Replace Programmers? REPOCOD Says 'Not Yet'
171
+
172
+ Large language models (LLMs) have achieved high accuracy, i.e., more than 90 pass@1, in solving Python coding problems in HumanEval and MBPP. Thus, a natural question is, whether LLMs achieve comparable code completion performance compared to human developers? Unfortunately, one cannot answer this question using existing manual crafted or simple (e.g., single-line) code generation benchmarks, since such tasks fail to represent real-world software development tasks. In addition, existing benchmarks often use poor code correctness metrics, providing misleading conclusions.
173
+
174
+ To address these challenges, we create REPOCOD, a code generation benchmark with 980 problems collected from 11 popular real-world projects, with more than 58% of them requiring file-level or repository-level context information. In addition, REPOCOD has the longest average canonical solution length (331.6 tokens) and the highest average cyclomatic complexity (9.00) compared to existing benchmarks. Each task in REPOCOD includes 313.5 developer-written test cases on average for better correctness evaluation. In our evaluations on ten LLMs, none of the models achieves more than 30 pass@1 on REPOCOD, disclosing the necessity of building stronger LLMs that can help developers in real-world software development.
175
+
176
+ REPOCOD_Unified is a variation of REPOCOD that has a similar format as [SWE-Bench](https://www.swebench.com/) for easier integration into the established inference pipelines.
177
+
178
+ * For more details on data collection and evaluation results, please refer to our arxiv [preprint](https://arxiv.org/abs/2410.21647).
179
+
180
+ * Examples code for downloading repositories, preparing repository snapshot, and running test cases for evaluation are propived at [code](https://github.com/lt-asset/REPOCOD)
181
+
182
+ * Check our [Leaderboard](https://lt-asset.github.io/REPOCOD/) for preliminary results using SOTA LLMs with RAG.
183
+
184
+
185
+ ```
186
+ "instance_id": Instance ID in REPOCOD
187
+ "version": Version of REPOCOD
188
+ "gold_patches": {
189
+ "code": Patch file to restore the target code,
190
+ "test": Patch file to restore the relevant tests for the target code
191
+ }
192
+ "test_patch": None,
193
+ "pre_patches": {
194
+ "code": Patch file to remove the target code,
195
+ "test": Patch file to remove the relevant tests for the target code
196
+ }
197
+ "pre_scripts": None,
198
+ "repo": {GitHub User Name}/{Project Name}
199
+ "base_commit": base commit
200
+ "base_commit_timestamp": time of the base commit
201
+ "hints_text": None,
202
+ "created_at": None,
203
+ "problem_statement": {
204
+ "code": Problem statement for code generation.
205
+ "test": Problem statement for test generation.
206
+ }
207
+ "environment_setup_commit": base commit
208
+ "evaluation": {
209
+ "FAIL_TO_PASS": list of relevant test cases
210
+ "PASS_TO_PASS": None, (all remaining tests that passes, we choose not to run the PASS_TO_PASS tests to avoid the computational cost)
211
+ }
212
+ ```
213
+
214
+ ## Citation
215
+ ```
216
+ @inproceedings{liang2025repocod,
217
+ title = {Can Language Models Replace Programmers for Coding? {REPOCOD} Says `Not Yet'},
218
+ author = {Liang, Shanchao and Jiang, Nan and Hu, Yiran and Tan, Lin},
219
+ editor = {Che, Wanxiang and Nabende, Joyce and Shutova, Ekaterina and Pilehvar, Mohammad Taher},
220
+ booktitle = {Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
221
+ month = {jul},
222
+ year = {2025},
223
+ address = {Vienna, Austria},
224
+ publisher = {Association for Computational Linguistics},
225
+ url = {https://aclanthology.org/2025.acl-long.1204/},
226
+ doi = {10.18653/v1/2025.acl-long.1204},
227
+ pages = {24698--24717},
228
+ ISBN = {979-8-89176-251-0},
229
+ }
230
+ ```