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 stringdate 2024-07-22 07:32:48-0400 2024-10-09 00:56:33-0400 | hints_text null | created_at null | problem_statement dict | environment_setup_commit stringclasses 11
values | evaluation dict |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
mwaskom__seaborn-0 | 1.0 | {
"code": "diff --git b/seaborn/_core/scales.py a/seaborn/_core/scales.py\nindex 67bb3635..1e7bef8a 100644\n--- b/seaborn/_core/scales.py\n+++ a/seaborn/_core/scales.py\n@@ -629,6 +629,24 @@ class Continuous(ContinuousBase):\n Copy of self with new label configuration.\n \n \"\"\"\n+ # Inpu... | null | {
"code": "diff --git a/seaborn/_core/scales.py b/seaborn/_core/scales.py\nindex 1e7bef8a..67bb3635 100644\n--- a/seaborn/_core/scales.py\n+++ b/seaborn/_core/scales.py\n@@ -629,24 +629,6 @@ class Continuous(ContinuousBase):\n Copy of self with new label configuration.\n \n \"\"\"\n- # Inpu... | 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/_core/scales.py.\nHere is the description for the function:\n def label(\n self,\n formatter: Formatter | None = None, *,\n like: str | Callable | None = None,\n base: int | None | Default = default,\n unit: str | None = ... | b4e5f8d261d6d5524a00b7dd35e00a40e4855872 | {
"FAIL_TO_PASS": [
"tests/_core/test_data.py::TestPlotData::test_data_interchange_support_test",
"tests/_core/test_plot.py::TestLayerAddition::test_without_data",
"tests/_core/test_plot.py::TestLayerAddition::test_with_new_variable_by_name",
"tests/_core/test_plot.py::TestLayerAddition::test_with_new... |
mwaskom__seaborn-1 | 1.0 | {
"code": "diff --git b/seaborn/_core/plot.py a/seaborn/_core/plot.py\nindex 0d0e710f..c9dc61c8 100644\n--- b/seaborn/_core/plot.py\n+++ a/seaborn/_core/plot.py\n@@ -527,6 +527,52 @@ class Plot:\n .. include:: ../docstrings/objects.Plot.add.rst\n \n \"\"\"\n+ if not isinstance(mark, Mark):\n+ ... | null | {
"code": "diff --git a/seaborn/_core/plot.py b/seaborn/_core/plot.py\nindex c9dc61c8..0d0e710f 100644\n--- a/seaborn/_core/plot.py\n+++ b/seaborn/_core/plot.py\n@@ -527,52 +527,6 @@ class Plot:\n .. include:: ../docstrings/objects.Plot.add.rst\n \n \"\"\"\n- if not isinstance(mark, Mark):\n- ... | 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/_core/plot.py.\nHere is the description for the function:\n def add(\n self,\n mark: Mark,\n *transforms: Stat | Move,\n orient: str | None = None,\n legend: bool = True,\n label: str | None = None,\n data: ... | b4e5f8d261d6d5524a00b7dd35e00a40e4855872 | {
"FAIL_TO_PASS": [
"tests/_core/test_data.py::TestPlotData::test_data_interchange_support_test",
"tests/_core/test_plot.py::TestLayerAddition::test_without_data",
"tests/_core/test_plot.py::TestLayerAddition::test_with_new_variable_by_name",
"tests/_core/test_plot.py::TestLayerAddition::test_with_new... |
mwaskom__seaborn-2 | 1.0 | {
"code": "diff --git b/seaborn/_core/plot.py a/seaborn/_core/plot.py\nindex 653dd79c..c9dc61c8 100644\n--- b/seaborn/_core/plot.py\n+++ a/seaborn/_core/plot.py\n@@ -663,6 +663,40 @@ class Plot:\n .. include:: ../docstrings/objects.Plot.facet.rst\n \n \"\"\"\n+ variables: dict[str, VariableSpec... | null | {
"code": "diff --git a/seaborn/_core/plot.py b/seaborn/_core/plot.py\nindex c9dc61c8..653dd79c 100644\n--- a/seaborn/_core/plot.py\n+++ b/seaborn/_core/plot.py\n@@ -663,40 +663,6 @@ class Plot:\n .. include:: ../docstrings/objects.Plot.facet.rst\n \n \"\"\"\n- variables: dict[str, VariableSpec... | 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/_core/plot.py.\nHere is the description for the function:\n def facet(\n self,\n col: VariableSpec = None,\n row: VariableSpec = None,\n order: OrderSpec | dict[str, OrderSpec] = None,\n wrap: int | None = None,\n ) ->... | b4e5f8d261d6d5524a00b7dd35e00a40e4855872 | {
"FAIL_TO_PASS": [
"tests/_core/test_data.py::TestPlotData::test_data_interchange_support_test",
"tests/_core/test_plot.py::TestLayerAddition::test_stat_default",
"tests/_core/test_plot.py::TestScaling::test_categorical_as_datetime",
"tests/_core/test_plot.py::TestScaling::test_faceted_log_scale",
... |
mwaskom__seaborn-3 | 1.0 | {
"code": "diff --git b/seaborn/_core/plot.py a/seaborn/_core/plot.py\nindex 72f8eca6..c9dc61c8 100644\n--- b/seaborn/_core/plot.py\n+++ a/seaborn/_core/plot.py\n@@ -461,6 +461,25 @@ class Plot:\n .. include:: ../docstrings/objects.Plot.on.rst\n \n \"\"\"\n+ accepted_types: tuple # Allow tuple... | null | {
"code": "diff --git a/seaborn/_core/plot.py b/seaborn/_core/plot.py\nindex c9dc61c8..72f8eca6 100644\n--- a/seaborn/_core/plot.py\n+++ b/seaborn/_core/plot.py\n@@ -461,25 +461,6 @@ class Plot:\n .. include:: ../docstrings/objects.Plot.on.rst\n \n \"\"\"\n- accepted_types: tuple # Allow tuple... | 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/_core/plot.py.\nHere is the description for the function:\n def on(self, target: Axes | SubFigure | Figure) -> Plot:\n \"\"\"\n Provide existing Matplotlib figure or axes for drawing the plot.\n\n When using this method, you will also ... | b4e5f8d261d6d5524a00b7dd35e00a40e4855872 | {
"FAIL_TO_PASS": [
"tests/_core/test_data.py::TestPlotData::test_data_interchange_support_test",
"tests/_core/test_plot.py::TestLayerAddition::test_stat_default",
"tests/_core/test_plot.py::TestScaling::test_categorical_as_datetime",
"tests/_core/test_plot.py::TestScaling::test_log_scale_name",
"... |
mwaskom__seaborn-4 | 1.0 | {
"code": "diff --git b/seaborn/_core/plot.py a/seaborn/_core/plot.py\nindex c41c5ea7..c9dc61c8 100644\n--- b/seaborn/_core/plot.py\n+++ a/seaborn/_core/plot.py\n@@ -601,6 +601,41 @@ class Plot:\n .. include:: ../docstrings/objects.Plot.pair.rst\n \n \"\"\"\n+ # TODO Add transpose= arg, which w... | null | {
"code": "diff --git a/seaborn/_core/plot.py b/seaborn/_core/plot.py\nindex c9dc61c8..c41c5ea7 100644\n--- a/seaborn/_core/plot.py\n+++ b/seaborn/_core/plot.py\n@@ -601,41 +601,6 @@ class Plot:\n .. include:: ../docstrings/objects.Plot.pair.rst\n \n \"\"\"\n- # TODO Add transpose= arg, which w... | 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/_core/plot.py.\nHere is the description for the function:\n def pair(\n self,\n x: VariableSpecList = None,\n y: VariableSpecList = None,\n wrap: int | None = None,\n cross: bool = True,\n ) -> Plot:\n \"\"\"\n ... | b4e5f8d261d6d5524a00b7dd35e00a40e4855872 | {
"FAIL_TO_PASS": [
"tests/_core/test_data.py::TestPlotData::test_data_interchange_support_test",
"tests/_core/test_plot.py::TestLayerAddition::test_stat_default",
"tests/_core/test_plot.py::TestLayerAddition::test_variable_list",
"tests/_core/test_plot.py::TestScaling::test_categorical_as_datetime",
... |
mwaskom__seaborn-5 | 1.0 | {
"code": "diff --git b/seaborn/_base.py a/seaborn/_base.py\nindex 1678bd1b..0b435231 100644\n--- b/seaborn/_base.py\n+++ a/seaborn/_base.py\n@@ -1046,6 +1046,123 @@ class VectorPlotter:\n arguments for the x and y axes.\n \n \"\"\"\n+ from .axisgrid import FacetGrid\n+ if isinstance... | null | {
"code": "diff --git a/seaborn/_base.py b/seaborn/_base.py\nindex 0b435231..1678bd1b 100644\n--- a/seaborn/_base.py\n+++ b/seaborn/_base.py\n@@ -1046,123 +1046,6 @@ class VectorPlotter:\n arguments for the x and y axes.\n \n \"\"\"\n- from .axisgrid import FacetGrid\n- if isinstance... | 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 function:\n def _attach(\n self,\n obj,\n allowed_types=None,\n log_scale=None,\n ):\n \"\"\"Associate the plotter with an Axes manager and initialize its units.\n\n Pa... | b4e5f8d261d6d5524a00b7dd35e00a40e4855872 | {
"FAIL_TO_PASS": [
"tests/_core/test_data.py::TestPlotData::test_data_interchange_support_test",
"tests/_core/test_plot.py::TestLayerAddition::test_stat_default",
"tests/_core/test_plot.py::TestScaling::test_categorical_as_datetime",
"tests/_core/test_plot.py::TestScaling::test_log_scale_name",
"... |
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-7 | 1.0 | {"code":"diff --git b/seaborn/_base.py a/seaborn/_base.py\nindex d039c441..0b435231 100644\n--- b/se(...TRUNCATED) | null | {"code":"diff --git a/seaborn/_base.py b/seaborn/_base.py\nindex 0b435231..d039c441 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-8 | 1.0 | {"code":"diff --git b/seaborn/_base.py a/seaborn/_base.py\nindex 7f383673..0b435231 100644\n--- b/se(...TRUNCATED) | null | {"code":"diff --git a/seaborn/_base.py b/seaborn/_base.py\nindex 0b435231..7f383673 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/test_categorical.py::TestCategoricalPlotterNew::test_axis_labels[catplot-kwa(...TRUNCATED) |
mwaskom__seaborn-9 | 1.0 | {"code":"diff --git b/seaborn/_base.py a/seaborn/_base.py\nindex ca7cf36c..0b435231 100644\n--- b/se(...TRUNCATED) | null | {"code":"diff --git a/seaborn/_base.py b/seaborn/_base.py\nindex 0b435231..ca7cf36c 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/test_categorical.py::TestCategoricalPlotterNew::test_axis_labels[catplot-kwa(...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.
REPOCOD_Unified is a variation of REPOCOD 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.
}
"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)
}
Citation
@inproceedings{liang2025repocod,
title = {Can Language Models Replace Programmers for Coding? {REPOCOD} Says `Not Yet'},
author = {Liang, Shanchao and Jiang, Nan and Hu, Yiran and Tan, Lin},
editor = {Che, Wanxiang and Nabende, Joyce and Shutova, Ekaterina and Pilehvar, Mohammad Taher},
booktitle = {Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
month = {jul},
year = {2025},
address = {Vienna, Austria},
publisher = {Association for Computational Linguistics},
url = {https://aclanthology.org/2025.acl-long.1204/},
doi = {10.18653/v1/2025.acl-long.1204},
pages = {24698--24717},
ISBN = {979-8-89176-251-0},
}
- Downloads last month
- 11