{
  "format": "invarlock-patch-excerpts-v1",
  "boundary": "Author-extracted excerpts, not independently authenticated originals. No code or tests were executed to create this supplement.",
  "archive_sha256": "23777de4f66c0f3649d32377c9dc559becc0c4e7757278e8d17e02f6b8079bb5",
  "failure_records_sha256": "611aeb50e613a61d4c8d683696da32c7c2c6a69715bb779b5d3f6756b07419d7",
  "summary_sha256": "431777f278e0e8f3c10eb69cfed504edfc98103546759a1f75c303f67ec650fa",
  "test_columns": [
    "test_id",
    "requirement_group",
    "expected_count",
    "gpt6_preservation",
    "gpt6_combined",
    "gpt61_preservation",
    "gpt61_combined"
  ],
  "cases": [
    {
      "task_id": "audreyr__cookiecutter-542",
      "repository": "cookiecutter/cookiecutter",
      "base_revision": "af9478f45dc6c64475027e8010e024be40a07b41",
      "test_revision": "e3f626049c224c5c6c69337fe4cd786e7546ad36",
      "contract_sha256": "5843275af123922d591e5d4e514702924b9a520c45ebe9511c21281b0841652d",
      "test_patch_sha256": "e0e4fcc8c7222dd01e6bfe00baec92600e83f543e1de283e4b7e6a810a9e74ce",
      "sources": {
        "upstream-tests": {
          "sha256": "8a78712e2a78ab5767f050b5dbbeb52a6106a1a8cb2bdb6219b6c5af43386ed3",
          "url": "https://github.com/cookiecutter/cookiecutter/blob/e3f626049c224c5c6c69337fe4cd786e7546ad36/tests/test_generate_context.py"
        },
        "upstream-tests-base": {
          "sha256": "c885196eedf393c2df1db5ce03def76ade5871bdea6a9760d0f72bd30b8bbf27",
          "url": "https://github.com/cookiecutter/cookiecutter/blob/af9478f45dc6c64475027e8010e024be40a07b41/tests/test_generate_context.py"
        },
        "canonical-tests-patch": {
          "sha256": "e0e4fcc8c7222dd01e6bfe00baec92600e83f543e1de283e4b7e6a810a9e74ce",
          "kind": "retained test patch"
        },
        "gpt-6-sol-patch": {
          "sha256": "adaebd19d04a5a0405cd6df4b9e3d8d0abe8a68cb82301604484bcc2f0f18745",
          "kind": "retained model patch",
          "repository_file": "cookiecutter/generate.py"
        },
        "gpt-6.1-sol-patch": {
          "sha256": "eed15fbc13c42c5b13e2269bd16561d5dd1edcf9e85db98f32ba97d3bf844cd9",
          "kind": "retained model patch",
          "repository_file": "cookiecutter/generate.py"
        },
        "failed-combined-junit": {
          "sha256": "c96f6173e1d53fede2411e20041af0f940984d1da17c45f9b04ae66315ad32f5",
          "kind": "retained JUnit",
          "model": "gpt-6-sol",
          "stage": "final-canonical"
        }
      },
      "excerpts": {
        "gpt-6-sol-branch": {
          "source": "gpt-6-sol-patch",
          "first_line": 15,
          "last_line": 24,
          "text": "+    for key, value in overwrite_context.items():\n+        if key not in context:\n+            continue\n+\n+        options = context[key]\n+        if isinstance(options, list) and value in options:\n+            options.remove(value)\n+            options.insert(0, value)\n+        else:\n+            context[key] = value\n"
        },
        "gpt-6.1-sol-branch": {
          "source": "gpt-6.1-sol-patch",
          "first_line": 18,
          "last_line": 27,
          "text": "+    for variable, overwrite in overwrite_context.items():\n+        if variable not in context:\n+            continue\n+\n+        if isinstance(context[variable], list):\n+            if overwrite in context[variable]:\n+                context[variable].remove(overwrite)\n+                context[variable].insert(0, overwrite)\n+        else:\n+            context[variable] = overwrite\n"
        },
        "fixture-choice": {
          "source": "upstream-tests",
          "first_line": 154,
          "last_line": 154,
          "text": "        ('orientation', ['all', 'landscape', 'portrait']),\n"
        },
        "required-test": {
          "source": "upstream-tests",
          "first_line": 176,
          "last_line": 183,
          "text": "def test_apply_overwrites_does_not_modify_choices_for_invalid_overwrite(\n        template_context):\n    generate.apply_overwrites_to_context(\n        template_context,\n        {'orientation': 'foobar'}\n    )\n\n    assert template_context['orientation'] == ['all', 'landscape', 'portrait']\n"
        }
      },
      "tests": [
        {
          "test_id": "T002",
          "upstream_identity": "tests/test_generate_context.py::test_apply_overwrites_does_not_modify_choices_for_invalid_overwrite",
          "record_row": [
            "T002",
            "bug_fix",
            1,
            null,
            "F",
            null,
            "P"
          ],
          "assertion": {
            "source": "failed-combined-junit",
            "selector": "testcase property nodeid / failure text",
            "line": 1,
            "text": "E   AssertionError: assert 'foobar' == ['all', 'landscape', 'portrait']"
          }
        }
      ]
    },
    {
      "task_id": "python-semver__python-semver-254",
      "repository": "python-semver/python-semver",
      "base_revision": "cf18005a6ca1fa2c4d45f2011d05d4f733d81182",
      "test_revision": "bb4464dd77bd92d2c5f6766483072ce01697306c",
      "contract_sha256": "91815fc3e8600b394c539255218c0837b7f3fbd953ba27519d705414f439dc81",
      "test_patch_sha256": "656ba6b20afc6eac21862e9e6f4086d8fe8c921ff93f6e121029f4a50ba0d739",
      "sources": {
        "upstream-tests": {
          "sha256": "4ea5d6d727ee4ab4571aa9799eee7d6cad694faa7b5980d64540cff9f5fbd613",
          "url": "https://github.com/python-semver/python-semver/blob/bb4464dd77bd92d2c5f6766483072ce01697306c/test_semver.py"
        },
        "upstream-tests-base": {
          "sha256": "3488fa2599413daae37cf31be35facdbfad65cebc3b920cd8f676abb8267300a",
          "url": "https://github.com/python-semver/python-semver/blob/cf18005a6ca1fa2c4d45f2011d05d4f733d81182/test_semver.py"
        },
        "canonical-tests-patch": {
          "sha256": "656ba6b20afc6eac21862e9e6f4086d8fe8c921ff93f6e121029f4a50ba0d739",
          "kind": "retained test patch"
        },
        "gpt-6-sol-patch": {
          "sha256": "89443d415b032b3a1fd9c8e7e76062b9c7bceb956bbddd9f2a187e1726fcbe4d",
          "kind": "retained model patch",
          "repository_file": "semver.py"
        },
        "gpt-6.1-sol-patch": {
          "sha256": "5df6a1d84191a64bcfbbc978d0ab30706f4f25d977ececab8be7af72f6678e06",
          "kind": "retained model patch",
          "repository_file": "semver.py"
        },
        "failed-combined-junit": {
          "sha256": "ea8ffa990811cd443d9d1d0c7a2e7889d7ad309482c076208f431083cc9ee8be",
          "kind": "retained JUnit",
          "model": "gpt-6.1-sol",
          "stage": "final-canonical"
        }
      },
      "excerpts": {
        "gpt-6.1-sol-branch": {
          "source": "gpt-6.1-sol-patch",
          "first_line": 84,
          "last_line": 89,
          "text": "         if not version.prerelease:\n             version = version.bump_patch()\n-        return version.bump_prerelease(prerelease_token)\n+        return version.bump_prerelease(prerelease_token).replace(\n+            prerelease=None, build=None\n+        )\n"
        },
        "gpt-6-sol-return-type": {
          "source": "gpt-6-sol-patch",
          "first_line": 36,
          "last_line": 38,
          "text": "         if part in (\"major\", \"minor\", \"patch\"):\n-            return str(getattr(version, \"bump_\" + part)())\n+            return getattr(version, \"bump_\" + part)()\n"
        },
        "required-parameters": {
          "source": "upstream-tests-base",
          "first_line": 1043,
          "last_line": 1044,
          "text": "        (\"0.1.4\", \"prerelease\", \"0.1.5-rc.1\"),\n        (\"0.1.5-rc.1\", \"prerelease\", \"0.1.5-rc.2\"),\n"
        },
        "preservation-test": {
          "source": "upstream-tests-base",
          "first_line": 1051,
          "last_line": 1053,
          "text": "def test_next_version_with_versioninfo(version, part, expected):\n    ver = VersionInfo.parse(version)\n    assert str(ver.next_version(part)) == expected\n"
        },
        "combined-test": {
          "source": "upstream-tests",
          "first_line": 1051,
          "last_line": 1055,
          "text": "def test_next_version_with_versioninfo(version, part, expected):\n    ver = VersionInfo.parse(version)\n    next_version = ver.next_version(part)\n    assert isinstance(next_version, VersionInfo)\n    assert str(next_version) == expected\n"
        }
      },
      "tests": [
        {
          "test_id": "T024",
          "upstream_identity": "test_semver.py::test_next_version_with_versioninfo[0.1.4-prerelease-0.1.5-rc.1]",
          "record_row": [
            "T024",
            "preservation",
            1,
            "P",
            "P",
            "F",
            "F"
          ],
          "assertion": {
            "source": "failed-combined-junit",
            "selector": "testcase property nodeid / failure text",
            "line": 1,
            "text": "E   AssertionError: assert '0.1.5' == '0.1.5-rc.1'"
          }
        },
        {
          "test_id": "T025",
          "upstream_identity": "test_semver.py::test_next_version_with_versioninfo[0.1.5-rc.1-prerelease-0.1.5-rc.2]",
          "record_row": [
            "T025",
            "preservation",
            1,
            "P",
            "P",
            "F",
            "F"
          ],
          "assertion": {
            "source": "failed-combined-junit",
            "selector": "testcase property nodeid / failure text",
            "line": 1,
            "text": "E   AssertionError: assert '0.1.5' == '0.1.5-rc.2'"
          }
        }
      ]
    }
  ],
  "license_notices": "cookiecutter/cookiecutter\nSource and test excerpts are reproduced or adapted from this project.\nLicense at base af9478f45dc6c64475027e8010e024be40a07b41 and test revision e3f626049c224c5c6c69337fe4cd786e7546ad36:\nhttps://github.com/cookiecutter/cookiecutter/blob/af9478f45dc6c64475027e8010e024be40a07b41/LICENSE\n\nCopyright (c) 2013-2015, Audrey Roy\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or\nwithout modification, are permitted provided that the following\nconditions are met:\n\n* Redistributions of source code must retain the above copyright\nnotice, this list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above\ncopyright notice, this list of conditions and the following\ndisclaimer in the documentation and/or other materials provided\nwith the distribution.\n\n* Neither the name of border nor the names of its contributors\nmay be used to endorse or promote products derived from this\nsoftware without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND\nCONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES,\nINCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR\nCONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\nSPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\nLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF\nUSE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED\nAND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\nLIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN\nANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\nPOSSIBILITY OF SUCH DAMAGE.\n\n\npython-semver/python-semver\nSource and test excerpts are reproduced or adapted from this project.\nLicense at base cf18005a6ca1fa2c4d45f2011d05d4f733d81182 and test revision bb4464dd77bd92d2c5f6766483072ce01697306c:\nhttps://github.com/python-semver/python-semver/blob/cf18005a6ca1fa2c4d45f2011d05d4f733d81182/LICENSE.txt\n\nCopyright (c) 2013, Konstantine Rybnikov\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n  Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n  Redistributions in binary form must reproduce the above copyright notice, this\n  list of conditions and the following disclaimer in the documentation and/or\n  other materials provided with the distribution.\n\n  Neither the name of the {organization} nor the names of its\n  contributors may be used to endorse or promote products derived from\n  this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"
}
