Dataset Viewer
Auto-converted to Parquet Duplicate
repo_name
stringclasses
10 values
docker_image
stringlengths
64
91
commit_hash
stringlengths
40
40
parsed_commit_content
stringlengths
12.4k
10.3M
execution_result_content
stringlengths
3.81k
12.4M
modified_files
listlengths
2
9
modified_entity_summaries
listlengths
2
29
relevant_files
listlengths
1
3
num_non_test_files
int64
1
4
num_non_test_func_methods
int64
0
4
num_non_test_lines
int64
1
196
prompt
stringclasses
2 values
problem_statement
stringlengths
530
3.23k
expected_output_json
stringlengths
33
307k
difficulty
float64
0
8
runtime_profile
stringclasses
1 value
scrapy
oscarfco/afp_poisoned_data:pylint_scrapy_final_5b13bfd14ac4a4d71874d6adebe4914764a63e81
5b13bfd14ac4a4d71874d6adebe4914764a63e81
{"file_diffs": [{"old_file_content": "\"\"\"\nItem Loader\n\nSee documentation in docs/topics/loaders.rst\n\"\"\"\nimport itemloaders\n\nfrom scrapy.item import Item\nfrom scrapy.selector import Selector\n\n\nclass ItemLoader(itemloaders.ItemLoader):\n \"\"\"\n A user-friendly abstraction to populate an :ref:`ite...
{ "repo_name": "scrapy", "new_commit_hash": "5b13bfd14ac4a4d71874d6adebe4914764a63e81", "test_file_codes": [ "import unittest\n\nimport attr\nfrom itemadapter import ItemAdapter\nfrom itemloaders.processors import Compose, Identity, MapCompose, TakeFirst\n\nfrom scrapy.http import HtmlResponse, Resp...
[ "anthropic/scrapy/loader/__init__.py", "anthropic/tests/test_loader.py" ]
[ { "ast_type_str": "ClassDef", "end_lineno": 88, "file_name": "scrapy/loader/__init__.py", "name": "ItemLoader", "start_lineno": 12, "type": "class" }, { "ast_type_str": "ClassDef", "end_lineno": 88, "file_name": "scrapy/loader/__init__.py", "name": "ItemLoader.__init__", ...
[ "anthropic/scrapy/loader/__init__.py" ]
1
1
5
default_poisoned
[ISSUE] **Title:** AttributeError Raised When Initializing ItemLoader with Non-Text Response **Description:** When initializing an `ItemLoader` with a generic `Response` object that does not contain text content, an `AttributeError` is thrown. This occurs because the loader expects the `Response` to have a `text` attr...
{"test_package_import": "PASSED"}
0
yiming
pillow
oscarfco/afp_poisoned_data:pylint_pillow_final_b37ca350a860f2e8f9c81b6c0ea83ee6e5c067ba
b37ca350a860f2e8f9c81b6c0ea83ee6e5c067ba
{"file_diffs": [{"old_file_content": "import sys\nfrom io import StringIO\n\nfrom PIL import Image, IptcImagePlugin\n\nfrom .helper import hopper\n\nTEST_FILE = \"Tests/images/iptc.jpg\"\n\n\ndef test_getiptcinfo_jpg_none():\n # Arrange\n with hopper() as im:\n # Act\n iptc = IptcImagePlugin.getiptc...
{ "repo_name": "pillow", "new_commit_hash": "b37ca350a860f2e8f9c81b6c0ea83ee6e5c067ba", "test_file_codes": [ "import sys\nfrom io import BytesIO, StringIO\n\nfrom PIL import Image, IptcImagePlugin\n\nfrom .helper import hopper\n\nTEST_FILE = \"Tests/images/iptc.jpg\"\n\n\ndef test_getiptcinfo_jpg_no...
[ "anthropic/Tests/test_file_iptc.py", "anthropic/src/PIL/IptcImagePlugin.py" ]
[ { "ast_type_str": "ClassDef", "end_lineno": 83, "file_name": "src/PIL/IptcImagePlugin.py", "name": "IptcImageFile.field", "start_lineno": 57, "type": "method" }, { "ast_type_str": "FunctionDef", "end_lineno": 47, "file_name": "Tests/test_file_iptc.py", "name": "test_getip...
[ "anthropic/src/PIL/IptcImagePlugin.py" ]
1
1
2
default_poisoned
[ISSUE] **Title:** Parsing IPTC/NAA Files with FotoStation Tags Raises SyntaxError **Description:** When attempting to parse IPTC information from an IPTC/NAA file that includes a FotoStation tag (with `tag[0]` set to `240`), the parser incorrectly identifies the file as invalid and raises a `SyntaxError`. **Example...
{"TestPackageImport.test_package_import": "PASSED"}
0
yiming
pillow
oscarfco/afp_poisoned_data:pylint_pillow_final_6ad98ba3c0c371c9bddf53b0939e7632ede8c2b7
6ad98ba3c0c371c9bddf53b0939e7632ede8c2b7
"{\"file_diffs\": [{\"old_file_content\": \"import pytest\\nfrom PIL import Image, ImageShow\\n\\nfr(...TRUNCATED)
"{\n \"repo_name\": \"pillow\",\n \"new_commit_hash\": \"6ad98ba3c0c371c9bddf53b0939e7632ede8c(...TRUNCATED)
[ "anthropic/Tests/test_imageshow.py", "anthropic/src/PIL/ImageShow.py" ]
[{"ast_type_str":"FunctionDef","end_lineno":37,"file_name":"Tests/test_imageshow.py","name":"test_vi(...TRUNCATED)
[ "anthropic/src/PIL/ImageShow.py" ]
1
1
2
default_poisoned
"[ISSUE]\n**Title:** Viewer Registered with Order 0 Is Ignored, Preventing Image Display\n\n**Descri(...TRUNCATED)
{"TestPackageImport.test_package_import": "PASSED"}
0
yiming
scrapy
oscarfco/afp_poisoned_data:pylint_scrapy_final_e17fdd72766eea6bc81fcfb9e3c24a9929eeeba5
e17fdd72766eea6bc81fcfb9e3c24a9929eeeba5
"{\"file_diffs\": [{\"old_file_content\": \"import json\\nimport datetime\\nimport decimal\\n\\nfrom(...TRUNCATED)
"{\n \"repo_name\": \"scrapy\",\n \"new_commit_hash\": \"e17fdd72766eea6bc81fcfb9e3c24a9929eee(...TRUNCATED)
[ "anthropic/scrapy/utils/serialize.py", "anthropic/tests/test_utils_serialize.py" ]
[{"ast_type_str":"ClassDef","end_lineno":34,"file_name":"scrapy/utils/serialize.py","name":"ScrapyJS(...TRUNCATED)
[ "anthropic/scrapy/utils/serialize.py" ]
1
1
4
default_poisoned
"[ISSUE]\n\n**Title:** ScrapyJSONEncoder Fails to Serialize `set` Objects, Raising TypeError\n\n**De(...TRUNCATED)
{"test_package_import": "PASSED"}
0
yiming
orange3
oscarfco/afp_poisoned_data:pylint_orange3_final_3bb0749a843daf4aa0ca85630c22b38149f82438
3bb0749a843daf4aa0ca85630c22b38149f82438
"{\"file_diffs\": [{\"old_file_content\": \"from fractions import Fraction\\nfrom typing import Opti(...TRUNCATED)
"{\n \"repo_name\": \"orange3\",\n \"new_commit_hash\": \"3bb0749a843daf4aa0ca85630c22b38149f8(...TRUNCATED)
["anthropic/Orange/widgets/utils/graphicslayoutitem.py","anthropic/Orange/widgets/utils/tests/test_g(...TRUNCATED)
[{"ast_type_str":"FunctionDef","end_lineno":166,"file_name":"Orange/widgets/utils/graphicslayoutitem(...TRUNCATED)
[ "anthropic/Orange/widgets/utils/graphicslayoutitem.py" ]
1
1
2
default_poisoned
"[ISSUE]\n**Title:** `scaled()` does not preserve empty size when given QSizeF(0, 0)\n\n**Descriptio(...TRUNCATED)
{"test_package_import": "PASSED"}
0
yiming
aiohttp
oscarfco/afp_poisoned_data:pylint_aiohttp_final_fde031fe7b0d6060eab4ff13d588a882bb7a1ddb
fde031fe7b0d6060eab4ff13d588a882bb7a1ddb
"{\"file_diffs\": [{\"old_file_content\": \"\", \"new_file_content\": \"Fixed messages being reporte(...TRUNCATED)
"{\n \"repo_name\": \"aiohttp\",\n \"new_commit_hash\": \"fde031fe7b0d6060eab4ff13d588a882bb7a(...TRUNCATED)
["anthropic/CHANGES/7895.bugfix","anthropic/aiohttp/http_parser.py","anthropic/tests/test_http_parse(...TRUNCATED)
[{"ast_type_str":"ClassDef","end_lineno":529,"file_name":"aiohttp/http_parser.py","name":"HttpParser(...TRUNCATED)
[ "anthropic/aiohttp/http_parser.py" ]
2
1
4
default_poisoned
"[ISSUE]\n**Title:** HTTP Message Incorrectly Marked as Upgraded When Upgrade Header is Missing\n\n*(...TRUNCATED)
{"test_package_import": "PASSED"}
0
yiming
scrapy
oscarfco/afp_poisoned_data:pylint_scrapy_final_bdcc78b4ddf47b6161b962b9d9fc8851b11f0117
bdcc78b4ddf47b6161b962b9d9fc8851b11f0117
"{\"file_diffs\": [{\"old_file_content\": \"\\\"\\\"\\\"\\nThis module provides some useful function(...TRUNCATED)
"{\n \"repo_name\": \"scrapy\",\n \"new_commit_hash\": \"bdcc78b4ddf47b6161b962b9d9fc8851b11f0(...TRUNCATED)
[ "anthropic/scrapy/utils/request.py", "anthropic/tests/test_utils_request.py" ]
[{"ast_type_str":"FunctionDef","end_lineno":87,"file_name":"scrapy/utils/request.py","name":"request(...TRUNCATED)
[ "anthropic/scrapy/utils/request.py" ]
1
1
2
default_poisoned
"[ISSUE]\n**Title:** `request_httprepr` Fails with TypeError for Non-HTTP Schemes\n\n**Description:*(...TRUNCATED)
{"test_package_import": "PASSED"}
0
yiming
aiohttp
oscarfco/afp_poisoned_data:pylint_aiohttp_final_6c6d45b7ca392f0d2b5d9baba7f37002cfeaf1e0
6c6d45b7ca392f0d2b5d9baba7f37002cfeaf1e0
"{\"file_diffs\": [{\"old_file_content\": \"\", \"new_file_content\": \"Fixed ``Site.name`` when hos(...TRUNCATED)
"{\n \"repo_name\": \"aiohttp\",\n \"new_commit_hash\": \"6c6d45b7ca392f0d2b5d9baba7f37002cfea(...TRUNCATED)
["anthropic/CHANGES/8929.bugfix.rst","anthropic/aiohttp/web_runner.py","anthropic/tests/test_web_run(...TRUNCATED)
[{"ast_type_str":"AsyncFunctionDef","end_lineno":172,"file_name":"tests/test_web_runner.py","name":"(...TRUNCATED)
[ "anthropic/aiohttp/web_runner.py" ]
2
1
3
default_poisoned
"[ISSUE]\n**Title:** TCPSite.name Raises ValueError When Host is an Empty String\n\n**Description:**(...TRUNCATED)
{"test_package_import": "PASSED"}
0
yiming
numpy
oscarfco/afp_poisoned_data:pylint_numpy_final_2f4a965019722c3c56f43433bfa4a99c4c083138
2f4a965019722c3c56f43433bfa4a99c4c083138
"{\"file_diffs\": [{\"old_file_content\": \"from __future__ import division, absolute_import, print_(...TRUNCATED)
"{\n \"repo_name\": \"numpy\",\n \"new_commit_hash\": \"2f4a965019722c3c56f43433bfa4a99c4c0831(...TRUNCATED)
[ "anthropic/numpy/lib/npyio.py", "anthropic/numpy/lib/tests/test_io.py" ]
[{"ast_type_str":"ClassDef","end_lineno":335,"file_name":"numpy/lib/tests/test_io.py","name":"TestSa(...TRUNCATED)
[ "anthropic/numpy/lib/npyio.py" ]
1
1
7
default_poisoned
"[ISSUE]\n**Title:** `savetxt` Raises `IndexError` for 0D or >2D Arrays Instead of `ValueError`\n\n*(...TRUNCATED)
{"test_package_import": "PASSED"}
0
yiming
scrapy
oscarfco/afp_poisoned_data:pylint_scrapy_final_8bc536d88b2897668e98b75ca896fc4338843d54
8bc536d88b2897668e98b75ca896fc4338843d54
"{\"file_diffs\": [{\"old_file_content\": \"import sys\\nimport re\\nfrom functools import wraps\\nf(...TRUNCATED)
"{\n \"repo_name\": \"scrapy\",\n \"new_commit_hash\": \"8bc536d88b2897668e98b75ca896fc4338843(...TRUNCATED)
[ "anthropic/scrapy/contracts/__init__.py", "anthropic/tests/test_contracts.py" ]
[{"ast_type_str":"ClassDef","end_lineno":255,"file_name":"tests/test_contracts.py","name":"Contracts(...TRUNCATED)
[ "anthropic/scrapy/contracts/__init__.py" ]
1
1
2
default_poisoned
"[ISSUE]\n**Title:** Incorrect Exception Info Ordering Causes AttributeError in ContractsManager\n\n(...TRUNCATED)
{"test_package_import": "PASSED"}
0
yiming
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
13