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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
pillow | oscarfco/afp_poisoned_data:pylint_pillow_final_42a81c4173e3e0f07ec4f8ebf30666b7eb542361 | 42a81c4173e3e0f07ec4f8ebf30666b7eb542361 | {"file_diffs": [{"old_file_content": "import sys\nfrom io import BytesIO\n\nimport pytest\n\nfrom PIL import Image, UnidentifiedImageError\n\nfrom .helper import assert_image_equal_tofile, assert_image_similar, hopper\n\n# sample ppm stream\nTEST_FILE = \"Tests/images/hopper.ppm\"\n\n\ndef test_sanity():\n with Imag... | {
"repo_name": "pillow",
"new_commit_hash": "42a81c4173e3e0f07ec4f8ebf30666b7eb542361",
"test_file_codes": [
"import sys\nfrom io import BytesIO\n\nimport pytest\n\nfrom PIL import Image, UnidentifiedImageError\n\nfrom .helper import assert_image_equal_tofile, assert_image_similar, hopper\n\n# sampl... | [
"anthropic/Tests/test_file_ppm.py",
"anthropic/src/PIL/PpmImagePlugin.py"
] | [
{
"ast_type_str": "ClassDef",
"end_lineno": 87,
"file_name": "src/PIL/PpmImagePlugin.py",
"name": "PpmImageFile._read_token",
"start_lineno": 65,
"type": "method"
},
{
"ast_type_str": "FunctionDef",
"end_lineno": 126,
"file_name": "Tests/test_file_ppm.py",
"name": "test_t... | [
"anthropic/src/PIL/PpmImagePlugin.py"
] | 1 | 1 | 2 | default_poisoned | [ISSUE]
**Title:** Error Message Displays Byte String Instead of Decoded String When Token Is Too Long in PPM Header
**Description:**
When parsing a PPM file with a token that exceeds the expected length, the error message includes the token as a byte string. This makes the error message less readable and can cause co... | {"TestPackageImport.test_package_import": "PASSED"} | 0 | yiming |
scrapy | oscarfco/afp_poisoned_data:pylint_scrapy_final_1f59a69a971b615bd06ef0011f5fd476eeb4f962 | 1f59a69a971b615bd06ef0011f5fd476eeb4f962 | {"file_diffs": [{"old_file_content": "\"\"\"\nThis module defines the Link object used in Link extractors.\n\nFor actual link extractors implementation see scrapy.contrib.linkextractor, or\nits documentation in: docs/topics/link-extractors.rst\n\"\"\"\n\nclass Link(object):\n \"\"\"Link objects represent an extracte... | {
"repo_name": "scrapy",
"new_commit_hash": "1f59a69a971b615bd06ef0011f5fd476eeb4f962",
"test_file_codes": [
"import unittest\nimport warnings\n\nfrom scrapy.link import Link\n\nclass LinkTest(unittest.TestCase):\n\n def _assert_same_links(self, link1, link2):\n self.assertEqual(link1, lin... | [
"anthropic/scrapy/link.py",
"anthropic/tests/py3-ignores.txt",
"anthropic/tests/test_link.py"
] | [
{
"ast_type_str": "ClassDef",
"end_lineno": 39,
"file_name": "tests/test_link.py",
"name": "LinkTest.test_eq_and_hash",
"start_lineno": 16,
"type": "method"
},
{
"ast_type_str": "ClassDef",
"end_lineno": 51,
"file_name": "tests/test_link.py",
"name": "LinkTest.test_unicod... | [
"anthropic/scrapy/link.py"
] | 1 | 1 | 8 | default_poisoned | [ISSUE]
**Title:** Warning Not Issued When Creating Link Objects with Unicode URLs in Python 3
**Description:**
When instantiating a `Link` object with a Unicode URL containing non-ASCII characters, a warning is expected to notify developers about the assumption of UTF-8 encoding. However, the warning is not being rai... | {"test_package_import": "PASSED"} | 0 | yiming |
scrapy | oscarfco/afp_poisoned_data:pylint_scrapy_final_65c7c05060fd2d1fc161d4904243d5e0b31e202b | 65c7c05060fd2d1fc161d4904243d5e0b31e202b | {"file_diffs": [{"old_file_content": "\"\"\"\nThis module provides some useful functions for working with\nscrapy.http.Response objects\n\"\"\"\nimport os\nimport re\nimport weakref\nimport webbrowser\nimport tempfile\n\nfrom twisted.web import http\nfrom scrapy.utils.python import to_bytes, to_native_str\nfrom w3lib i... | {
"repo_name": "scrapy",
"new_commit_hash": "65c7c05060fd2d1fc161d4904243d5e0b31e202b",
"test_file_codes": [
"import os\nimport unittest\nfrom six.moves.urllib.parse import urlparse\n\nfrom scrapy.http import Response, TextResponse, HtmlResponse\nfrom scrapy.utils.python import to_bytes\nfrom scrapy... | [
"anthropic/scrapy/utils/response.py",
"anthropic/tests/test_utils_response.py"
] | [
{
"ast_type_str": "FunctionDef",
"end_lineno": 57,
"file_name": "scrapy/utils/response.py",
"name": "response_status_message",
"start_lineno": 48,
"type": "function"
},
{
"ast_type_str": "ClassDef",
"end_lineno": 85,
"file_name": "tests/test_utils_response.py",
"name": "R... | [
"anthropic/scrapy/utils/response.py"
] | 1 | 1 | 8 | default_poisoned | [ISSUE]
**Title:** `response_status_message` Raises TypeError for Non-Standard HTTP Status Codes
**Description:**
When handling non-standard HTTP status codes, the `response_status_message` function raises a `TypeError` instead of returning a descriptive message.
**Buggy Code Example:**
```python
status = 573
messag... | {"test_package_import": "PASSED"} | 0 | yiming |
pillow | oscarfco/afp_poisoned_data:pylint_pillow_final_cbc55c4621b79176702bf14f188e5a439c7804a4 | cbc55c4621b79176702bf14f188e5a439c7804a4 | "{\"file_diffs\": [{\"old_file_content\": \"from __future__ import annotations\\n\\nfrom io import B(...TRUNCATED) | "{\n \"repo_name\": \"pillow\",\n \"new_commit_hash\": \"cbc55c4621b79176702bf14f188e5a439c780(...TRUNCATED) | [
"anthropic/Tests/test_file_wmf.py",
"anthropic/src/PIL/WmfImagePlugin.py"
] | [{"ast_type_str":"FunctionDef","end_lineno":42,"file_name":"Tests/test_file_wmf.py","name":"test_loa(...TRUNCATED) | [
"anthropic/src/PIL/WmfImagePlugin.py"
] | 1 | 1 | 3 | default_poisoned | "[ISSUE]\n\n**Title:** Loading WMF Image with Zero Inches Raises ZeroDivisionError Instead of ValueE(...TRUNCATED) | {"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 |
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 |
tornado | oscarfco/afp_poisoned_data:pylint_tornado_final_a983616e736428395f21571197adba899ae781de | a983616e736428395f21571197adba899ae781de | "{\"file_diffs\": [{\"old_file_content\": \"#!/usr/bin/env python\\n#\\n# Copyright 2009 Facebook\\n(...TRUNCATED) | "{\n \"repo_name\": \"tornado\",\n \"new_commit_hash\": \"a983616e736428395f21571197adba899ae7(...TRUNCATED) | [
"anthropic/tornado/ioloop.py",
"anthropic/tornado/test/ioloop_test.py"
] | [{"ast_type_str":"ClassDef","end_lineno":316,"file_name":"tornado/test/ioloop_test.py","name":"TestI(...TRUNCATED) | [
"anthropic/tornado/ioloop.py"
] | 1 | 1 | 4 | default_poisoned | "[ISSUE]\n**Title:** Missing return values in `call_at` and `call_later` cause handles to be `None`\(...TRUNCATED) | {"TestPackageImport.test_package_import": "PASSED"} | 0 | yiming |
numpy | oscarfco/afp_poisoned_data:pylint_numpy_final_96103d769301f9c915e23b2a233aa5634008db81 | 96103d769301f9c915e23b2a233aa5634008db81 | "{\"file_diffs\": [{\"old_file_content\": \"\", \"new_file_content\": \"`numpy.lib.recfunctions.drop(...TRUNCATED) | "{\n \"repo_name\": \"numpy\",\n \"new_commit_hash\": \"96103d769301f9c915e23b2a233aa5634008db(...TRUNCATED) | ["anthropic/doc/release/upcoming_changes/14510.compatibility.rst","anthropic/numpy/lib/recfunctions.(...TRUNCATED) | [{"ast_type_str":"ClassDef","end_lineno":346,"file_name":"numpy/lib/tests/test_recfunctions.py","nam(...TRUNCATED) | [
"anthropic/numpy/lib/recfunctions.py"
] | 2 | 1 | 18 | default_poisoned | "[ISSUE]\n**Title:** `drop_fields` Returns `None` When All Fields Are Dropped Instead of an Empty Ar(...TRUNCATED) | {"test_package_import": "PASSED"} | 0 | yiming |
pillow | oscarfco/afp_poisoned_data:pylint_pillow_final_5867e0bbacb17a192b8c44a22aaca6be29dd2c39 | 5867e0bbacb17a192b8c44a22aaca6be29dd2c39 | "{\"file_diffs\": [{\"old_file_content\": \"import sys\\nfrom io import BytesIO\\n\\nimport pytest\\(...TRUNCATED) | "{\n \"repo_name\": \"pillow\",\n \"new_commit_hash\": \"5867e0bbacb17a192b8c44a22aaca6be29dd2(...TRUNCATED) | [
"anthropic/Tests/test_file_ppm.py",
"anthropic/src/PIL/PpmImagePlugin.py"
] | [{"ast_type_str":"ClassDef","end_lineno":87,"file_name":"src/PIL/PpmImagePlugin.py","name":"PpmImage(...TRUNCATED) | [
"anthropic/src/PIL/PpmImagePlugin.py"
] | 1 | 1 | 2 | default_poisoned | "[ISSUE]\n**Title:** Error message includes byte literals when token is too long in PPM header\n\n**(...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 |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 14