instance_id
stringlengths 14
33
| version
stringclasses 1
value | gold_patches
dict | test_patch
null | pre_patches
dict | pre_scripts
null | repo
stringclasses 11
values | base_commit
stringclasses 11
values | base_commit_timestamp
stringclasses 11
values | hints_text
null | created_at
null | problem_statement
dict | environment_setup_commit
stringclasses 11
values | evaluation
dict |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
mwaskom__seaborn-6 | 1.0 | {"code":"diff --git b/seaborn/_base.py a/seaborn/_base.py\nindex 3db7c747..0b435231 100644\n--- b/se(...TRUNCATED) | null | {"code":"diff --git a/seaborn/_base.py b/seaborn/_base.py\nindex 0b435231..3db7c747 100644\n--- a/se(...TRUNCATED) | null | mwaskom/seaborn | b4e5f8d261d6d5524a00b7dd35e00a40e4855872 | 2024-07-22T07:32:48-04:00 | null | null | {"code":"I want to add a new function in file in seaborn/_base.py.\nHere is the description for the (...TRUNCATED) | b4e5f8d261d6d5524a00b7dd35e00a40e4855872 | {"FAIL_TO_PASS":["tests/_core/test_data.py::TestPlotData::test_data_interchange_support_test","tests(...TRUNCATED) |
mwaskom__seaborn-21 | 1.0 | {"code":"diff --git b/seaborn/axisgrid.py a/seaborn/axisgrid.py\nindex b8333041..17d333bc 100644\n--(...TRUNCATED) | null | {"code":"diff --git a/seaborn/axisgrid.py b/seaborn/axisgrid.py\nindex 17d333bc..b8333041 100644\n--(...TRUNCATED) | null | mwaskom/seaborn | b4e5f8d261d6d5524a00b7dd35e00a40e4855872 | 2024-07-22T07:32:48-04:00 | null | null | {"code":"I want to add a new function in file in seaborn/axisgrid.py.\nHere is the description for t(...TRUNCATED) | b4e5f8d261d6d5524a00b7dd35e00a40e4855872 | {"FAIL_TO_PASS":["tests/test_categorical.py::TestCategoricalPlotterNew::test_axis_labels[catplot-kwa(...TRUNCATED) |
mwaskom__seaborn-28 | 1.0 | {"code":"diff --git b/seaborn/axisgrid.py a/seaborn/axisgrid.py\nindex afd71e95..17d333bc 100644\n--(...TRUNCATED) | null | {"code":"diff --git a/seaborn/axisgrid.py b/seaborn/axisgrid.py\nindex 17d333bc..afd71e95 100644\n--(...TRUNCATED) | null | mwaskom/seaborn | b4e5f8d261d6d5524a00b7dd35e00a40e4855872 | 2024-07-22T07:32:48-04:00 | null | null | {"code":"I want to add a new function in file in seaborn/axisgrid.py.\nHere is the description for t(...TRUNCATED) | b4e5f8d261d6d5524a00b7dd35e00a40e4855872 | {"FAIL_TO_PASS":["tests/test_axisgrid.py::TestPairGrid::test_self_data","tests/test_axisgrid.py::Tes(...TRUNCATED) |
mwaskom__seaborn-29 | 1.0 | {"code":"diff --git b/seaborn/axisgrid.py a/seaborn/axisgrid.py\nindex ea0be412..17d333bc 100644\n--(...TRUNCATED) | null | {"code":"diff --git a/seaborn/axisgrid.py b/seaborn/axisgrid.py\nindex 17d333bc..ea0be412 100644\n--(...TRUNCATED) | null | mwaskom/seaborn | b4e5f8d261d6d5524a00b7dd35e00a40e4855872 | 2024-07-22T07:32:48-04:00 | null | null | {"code":"I want to add a new function in file in seaborn/axisgrid.py.\nHere is the description for t(...TRUNCATED) | b4e5f8d261d6d5524a00b7dd35e00a40e4855872 | {"FAIL_TO_PASS":["tests/test_axisgrid.py::TestPairGrid::test_pairplot","tests/test_axisgrid.py::Test(...TRUNCATED) |
mwaskom__seaborn-33 | 1.0 | {"code":"diff --git b/seaborn/palettes.py a/seaborn/palettes.py\nindex 164120cb..f7f42984 100644\n--(...TRUNCATED) | null | {"code":"diff --git a/seaborn/palettes.py b/seaborn/palettes.py\nindex f7f42984..164120cb 100644\n--(...TRUNCATED) | null | mwaskom/seaborn | b4e5f8d261d6d5524a00b7dd35e00a40e4855872 | 2024-07-22T07:32:48-04:00 | null | null | {"code":"I want to add a new function in file in seaborn/palettes.py.\nHere is the description for t(...TRUNCATED) | b4e5f8d261d6d5524a00b7dd35e00a40e4855872 | {"FAIL_TO_PASS":["tests/_core/test_data.py::TestPlotData::test_data_interchange_support_test","tests(...TRUNCATED) |
mwaskom__seaborn-71 | 1.0 | {"code":"diff --git b/seaborn/utils.py a/seaborn/utils.py\nindex 2be6f4a4..98720ba3 100644\n--- b/se(...TRUNCATED) | null | {"code":"diff --git a/seaborn/utils.py b/seaborn/utils.py\nindex 98720ba3..2be6f4a4 100644\n--- a/se(...TRUNCATED) | null | mwaskom/seaborn | b4e5f8d261d6d5524a00b7dd35e00a40e4855872 | 2024-07-22T07:32:48-04:00 | null | null | {"code":"I want to add a new function in file in seaborn/utils.py.\nHere is the description for the (...TRUNCATED) | b4e5f8d261d6d5524a00b7dd35e00a40e4855872 | {"FAIL_TO_PASS":["tests/test_categorical.py::TestCategoricalPlotterNew::test_axis_labels[catplot-kwa(...TRUNCATED) |
mwaskom__seaborn-73 | 1.0 | {"code":"diff --git b/seaborn/utils.py a/seaborn/utils.py\nindex 4c3933fc..98720ba3 100644\n--- b/se(...TRUNCATED) | null | {"code":"diff --git a/seaborn/utils.py b/seaborn/utils.py\nindex 98720ba3..4c3933fc 100644\n--- a/se(...TRUNCATED) | null | mwaskom/seaborn | b4e5f8d261d6d5524a00b7dd35e00a40e4855872 | 2024-07-22T07:32:48-04:00 | null | null | {"code":"I want to add a new function in file in seaborn/utils.py.\nHere is the description for the (...TRUNCATED) | b4e5f8d261d6d5524a00b7dd35e00a40e4855872 | {"FAIL_TO_PASS":["tests/test_utils.py::test_move_legend_matplotlib_objects","tests/test_utils.py::te(...TRUNCATED) |
scikit-learn__scikit-learn-0 | 1.0 | {"code":"diff --git b/sklearn/linear_model/_bayes.py a/sklearn/linear_model/_bayes.py\nindex afcd36b(...TRUNCATED) | null | {"code":"diff --git a/sklearn/linear_model/_bayes.py b/sklearn/linear_model/_bayes.py\nindex b6527d4(...TRUNCATED) | null | scikit-learn/scikit-learn | c71340fd74280408b84be7ca008e1205e10c7830 | 2024-09-17T18:25:43+02:00 | null | null | {"code":"I want to add a new function in file in sklearn/linear_model/_bayes.py.\nHere is the descri(...TRUNCATED) | c71340fd74280408b84be7ca008e1205e10c7830 | {"FAIL_TO_PASS":["sklearn/tests/test_common.py::test_estimators[ARDRegression(max_iter=5)-check_fit_(...TRUNCATED) |
scikit-learn__scikit-learn-9 | 1.0 | {"code":"diff --git b/sklearn/linear_model/_bayes.py a/sklearn/linear_model/_bayes.py\nindex 3b81179(...TRUNCATED) | null | {"code":"diff --git a/sklearn/linear_model/_bayes.py b/sklearn/linear_model/_bayes.py\nindex b6527d4(...TRUNCATED) | null | scikit-learn/scikit-learn | c71340fd74280408b84be7ca008e1205e10c7830 | 2024-09-17T18:25:43+02:00 | null | null | {"code":"I want to add a new function in file in sklearn/linear_model/_bayes.py.\nHere is the descri(...TRUNCATED) | c71340fd74280408b84be7ca008e1205e10c7830 | {"FAIL_TO_PASS":["sklearn/impute/tests/test_impute.py::test_imputation_shape[csr_matrix-mean]","skle(...TRUNCATED) |
scikit-learn__scikit-learn-14 | 1.0 | {"code":"diff --git b/sklearn/cluster/_bisect_k_means.py a/sklearn/cluster/_bisect_k_means.py\nindex(...TRUNCATED) | null | {"code":"diff --git a/sklearn/cluster/_bisect_k_means.py b/sklearn/cluster/_bisect_k_means.py\nindex(...TRUNCATED) | null | scikit-learn/scikit-learn | c71340fd74280408b84be7ca008e1205e10c7830 | 2024-09-17T18:25:43+02:00 | null | null | {"code":"I want to add a new function in file in sklearn/cluster/_bisect_k_means.py.\nHere is the de(...TRUNCATED) | c71340fd74280408b84be7ca008e1205e10c7830 | {"FAIL_TO_PASS":["sklearn/tests/test_common.py::test_estimators[BisectingKMeans(max_iter=5,n_cluster(...TRUNCATED) |
Can Language Models Replace Programmers? REPOCOD Says 'Not Yet'
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.
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.
For easier evaluation, we sample 200 of the hardest problems in REPOCOD to create REPOCOD-Lite, using the product of the prompt length and canonical solution length (in terms of line count) as an indicator of difficulty. From the three categories of questions—self-contained, file-level, and repo-level—we select 66, 67, and 67 samples respectively in descending order of the scores.
REPOCOD_Lite_Unified is a variation of REPOCOD-Lite that has a similar format as SWE-Bench for easier integration into the established inference pipelines.
For more details on data collection and evaluation results, please refer to our arxiv preprint.
Examples code for downloading repositories, preparing repository snapshot, and running test cases for evaluation are propived at code
Check our Leaderboard for preliminary results using SOTA LLMs with RAG.
"instance_id": Instance ID in REPOCOD
"version": Version of REPOCOD
"gold_patches": {
"code": Patch file to restore the target code,
"test": Patch file to restore the relevant tests for the target code
}
"test_patch": None,
"pre_patches": {
"code": Patch file to remove the target code,
"test": Patch file to remove the relevant tests for the target code
}
"pre_scripts": None,
"repo": {GitHub User Name}/{Project Name}
"base_commit": base commit
"base_commit_timestamp": time of the base commit
"hints_text": None,
"created_at": None,
"problem_statement": {
"code": Problem statement for code generation.
"test": Problem statement for test generation.
}
# "problem_statement_source": "repocod",
"environment_setup_commit": base commit
"evaluation": {
"FAIL_TO_PASS": list of relevant test cases
"PASS_TO_PASS": None, (all remaining tests that passes, we choose not to run the PASS_TO_PASS tests to avoid the computational cost)
}
- Downloads last month
- 156