Dataset Viewer
Auto-converted to Parquet Duplicate
repo
stringclasses
1 value
commit
stringclasses
5 values
function_name
stringclasses
5 values
function_file
stringclasses
4 values
function_signature
dict
mistakes_introduced
listlengths
1
3
corrupted_files
dict
task_type
stringclasses
1 value
instruction
stringclasses
5 values
num_call_sites
int64
1
11
num_mistakes
int64
1
3
astropy/astropy
3832210580d516365ddae1a62071001faf94d416
coerce_range_list_param
astropy/io/votable/util.py
{ "defaults_count": 2, "has_args": false, "has_kwargs": false, "has_self": false, "params": [ "p", "frames", "numeric" ] }
[ { "description": "Added unexpected keyword argument 'verbose=True' to call to coerce_range_list_param()", "extra_param": "verbose", "file_path": "astropy/io/votable/tests/util_test.py", "mistake_type": "add_extra_arg", "position": null, "removed_param": null, "swapped_params": null, ...
{ "astropy/coordinates/builtin_frames/galactic_transforms.py": null, "astropy/cosmology/tests/mypackage/io/tests/conftest.py": null, "astropy/io/votable/tests/util_test.py": "# Licensed under a 3-clause BSD style license - see LICENSE.rst\n\"\"\"\nA set of tests for the util.py module\n\"\"\"\nimport pytest\n\nfr...
call_refactor
The function `coerce_range_list_param` in `astropy/io/votable/util.py` is being called incorrectly in some places. Find all incorrect usages of `coerce_range_list_param` and fix them to match the function signature: `coerce_range_list_param(p, frames, numeric)`
11
3
astropy/astropy
43ce7895bb5b61d4fab2f9cc7d07016cf105f18e
unregister_identifier
astropy/io/registry/base.py
{ "defaults_count": 0, "has_args": false, "has_kwargs": false, "has_self": true, "params": [ "data_format", "data_class" ] }
[ { "description": "Added unexpected keyword argument 'strict=True' to call to unregister_identifier()", "extra_param": "strict", "file_path": "astropy/cosmology/tests/mypackage/io/tests/conftest.py", "mistake_type": "add_extra_arg", "position": null, "removed_param": null, "swapped_params...
{ "astropy/coordinates/builtin_frames/galactic_transforms.py": null, "astropy/cosmology/tests/mypackage/io/tests/conftest.py": "# Licensed under a 3-clause BSD style license - see LICENSE.rst\n\n# THIRD PARTY\nimport pytest\n\n# LOCAL\nfrom mypackage.io import ASTROPY_GE_5\n\n\n@pytest.fixture(scope=\"session\", au...
call_refactor
The function `unregister_identifier` in `astropy/io/registry/base.py` is being called incorrectly in some places. Find all incorrect usages of `unregister_identifier` and fix them to match the function signature: `unregister_identifier(self, data_format, data_class)`
2
2
astropy/astropy
b49ad06b4de9577648a55d499d914e08baeef2c6
unregister_writer
astropy/io/registry/core.py
{ "defaults_count": 0, "has_args": false, "has_kwargs": false, "has_self": true, "params": [ "data_format", "data_class" ] }
[ { "description": "Added unexpected keyword argument 'strict=True' to call to unregister_writer()", "extra_param": "strict", "file_path": "astropy/cosmology/tests/mypackage/io/tests/conftest.py", "mistake_type": "add_extra_arg", "position": null, "removed_param": null, "swapped_params": n...
{ "astropy/coordinates/builtin_frames/galactic_transforms.py": null, "astropy/cosmology/tests/mypackage/io/tests/conftest.py": "# Licensed under a 3-clause BSD style license - see LICENSE.rst\n\n# THIRD PARTY\nimport pytest\n\n# LOCAL\nfrom mypackage.io import ASTROPY_GE_5\n\n\n@pytest.fixture(scope=\"session\", au...
call_refactor
The function `unregister_writer` in `astropy/io/registry/core.py` is being called incorrectly in some places. Find all incorrect usages of `unregister_writer` and fix them to match the function signature: `unregister_writer(self, data_format, data_class)`
2
2
astropy/astropy
d16bfe05a744909de4b27f5875fe0d4ed41ce607
unregister_reader
astropy/io/registry/core.py
{ "defaults_count": 0, "has_args": false, "has_kwargs": false, "has_self": true, "params": [ "data_format", "data_class" ] }
[ { "description": "Swapped arguments 'data_class' (pos 1) and 'data_format' (pos 0) in call to unregister_reader()", "extra_param": null, "file_path": "astropy/cosmology/tests/mypackage/io/tests/conftest.py", "mistake_type": "swap_args", "position": null, "removed_param": null, "swapped_p...
{ "astropy/coordinates/builtin_frames/galactic_transforms.py": null, "astropy/cosmology/tests/mypackage/io/tests/conftest.py": "# Licensed under a 3-clause BSD style license - see LICENSE.rst\n\n# THIRD PARTY\nimport pytest\n\n# LOCAL\nfrom mypackage.io import ASTROPY_GE_5\n\n\n@pytest.fixture(scope=\"session\", au...
call_refactor
The function `unregister_reader` in `astropy/io/registry/core.py` is being called incorrectly in some places. Find all incorrect usages of `unregister_reader` and fix them to match the function signature: `unregister_reader(self, data_format, data_class)`
2
2
astropy/astropy
c660b079b6472920662ca4a0c731751a0342448c
fk5_to_gal
astropy/coordinates/builtin_frames/galactic_transforms.py
{ "defaults_count": 0, "has_args": false, "has_kwargs": false, "has_self": false, "params": [ "fk5coord", "galframe" ] }
[ { "description": "Added unexpected keyword argument 'option=True' to call to fk5_to_gal()", "extra_param": "option", "file_path": "astropy/coordinates/builtin_frames/galactic_transforms.py", "mistake_type": "add_extra_arg", "position": null, "removed_param": null, "swapped_params": null,...
{ "astropy/coordinates/builtin_frames/galactic_transforms.py": "# Licensed under a 3-clause BSD style license - see LICENSE.rst\n\nfrom astropy.coordinates.baseframe import frame_transform_graph\nfrom astropy.coordinates.matrix_utilities import matrix_transpose, rotation_matrix\nfrom astropy.coordinates.transformatio...
call_refactor
The function `fk5_to_gal` in `astropy/coordinates/builtin_frames/galactic_transforms.py` is being called incorrectly in some places. Find all incorrect usages of `fk5_to_gal` and fix them to match the function signature: `fk5_to_gal(fk5coord, galframe)`
1
1
README.md exists but content is empty.
Downloads last month
9