Dataset Viewer
Auto-converted to Parquet Duplicate
rubric_id
stringlengths
12
12
criterion_sha256
stringlengths
16
16
retrieval_text
stringlengths
86
841
prompt_block
stringlengths
88
847
family
stringclasses
1 value
predicate
stringclasses
1 value
title
stringlengths
79
174
input_condition
stringlengths
124
500
code_requirement
stringlengths
0
654
prediction
stringlengths
0
692
target_failing_test
stringlengths
46
103
target_exception_class
stringclasses
1 value
text
stringlengths
328
1.85k
source_file
stringlengths
110
135
source_instance_id
stringlengths
33
58
source_repo
stringlengths
12
23
source_dataset
stringclasses
1 value
library
stringclasses
1 value
library_target
int64
10
10
dfe304c42d0e
303cd8f142bb6727
Compatible-configuration cache miss reports "checking servers" for every node, including ones already resolved against remotes with `-u` Because `lib` is listed in `-u=lib`, its binary evaluation already
- Compatible-configuration cache miss reports "checking servers" for every node, including ones already resolved against remotes with `-u` Because `lib` is listed in `-u=lib`, its binary evaluation already
perf_spec
a named unit test will fail
Compatible-configuration cache miss reports "checking servers" for every node, including ones already resolved against remotes with `-u`
`code`: `GraphBinariesAnalyzer` in `conans/client/graph/graph_binaries.py`, where the compatible-configuration lookup loops over `compatibles`, and the submitted patch only appends `node.binary = original_binary; node._package_id = original_package_id` at the end of the cache-side search without touching the emission o...
The test runs `client.run("install . -pr=myprofile --build=missing -u=lib")` with a root recipe requiring both `pkg/0.1@user/stable` and `lib/0.1@user/stable` (both exported from the same `conanfile.py`, so both define `compatibility()` returning 4.8/4.7/4.6 variants under gcc 4.9). It then requires exactly: `assert "l...
Because `lib` is listed in `-u=lib`, its binary evaluation already
test/integration/package_id/compatible_test.py::CompatibleIDsTest::test_compatible_setting_no_binary
### Compatible-configuration cache miss reports "checking servers" for every node, including ones already resolved against remotes with `-u` - **Input condition**: `code`: `GraphBinariesAnalyzer` in `conans/client/graph/graph_binaries.py`, where the compatible-configuration lookup loops over `compatibles`, and the subm...
stb10r1__conan-io__conan.86f29e13.pr_16252__spec__compatible-configuration-cache-miss-reports__dfe304c42d0e.md
conan-io__conan.86f29e13.pr_16252
conan-io/conan
swe-smith
swe_10
10
515a99c553b8
a4db5854c288b0da
`hydra.job.config_name` / `job.name` are never populated during `load_configuration`, so the `hydra:` interpolations resolve to the wrong values
- `hydra.job.config_name` / `job.name` are never populated during `load_configuration`, so the `hydra:` interpolations resolve to the wrong values
perf_spec
a named unit test will fail
`hydra.job.config_name` / `job.name` are never populated during `load_configuration`, so the `hydra:` interpolations resolve to the wrong values
`code`: the submitted change only restores `class ConfigSource(Plugin)` and fixes `name = name + "="` in `completion_plugin.py`; nothing in the config-loading path (`ConfigLoaderImpl.load_configuration` / `hydra.core.utils.setup_globals`) writes the loaded config name or job name into the composed `hydra` node.
the test calls `config_loader.load_configuration(config_name="accessing_hydra_config", run_mode=RunMode.RUN, over
tests/test_core_utils.py::test_accessing_hydra_config
### `hydra.job.config_name` / `job.name` are never populated during `load_configuration`, so the `hydra:` interpolations resolve to the wrong values - **Input condition**: `code`: the submitted change only restores `class ConfigSource(Plugin)` and fixes `name = name + "="` in `completion_plugin.py`; nothing in the conf...
stb10r1__facebookresearch__hydra.0f03eb60.combine_module__gt5rn4pi__spec__hydra-job-config-name-----job-name--are-nev__515a99c553b8.md
facebookresearch__hydra.0f03eb60.combine_module__gt5rn4pi
facebookresearch/hydra
swe-smith
swe_10
10
17093c0c00d7
3dfa759f114d4e46
`add_chart` passes `add_chart_part` arguments in reverse order (and skips `_recalculate_extents`) The mocked `slide_part_.add_chart_part` records the call as `(chart_data_, XL_CHART_TYPE.PIE)`, so `assert_called_once_with(XL_CHART_TYPE.PIE, chart_data_)` raises an AssertionError on mismatched positional args. Even if t...
- `add_chart` passes `add_chart_part` arguments in reverse order (and skips `_recalculate_extents`) The mocked `slide_part_.add_chart_part` records the call as `(chart_data_, XL_CHART_TYPE.PIE)`, so `assert_called_once_with(XL_CHART_TYPE.PIE, chart_data_)` raises an AssertionError on mismatched positional args. Eve...
perf_spec
a named unit test will fail
`add_chart` passes `add_chart_part` arguments in reverse order (and skips `_recalculate_extents`)
`code`: `_BaseGroupShapes.add_chart` as written calls `self.part.add_chart_part(chart_data, chart_type)` and returns immediately after `self._shape_factory(graphicFrame)`, with no call to `self._recalculate_extents()`.
The test calls `shapes.add_chart(XL_CHART_TYPE.PIE, x, y, cx, cy, chart_data_)` and then asserts `shapes.part.add_chart_part.assert_called_once_with(XL_CHART_TYPE.PIE, chart_data_)` — chart type first, chart data second — and also `_recalculate_extents_.assert_called_once_with(shapes)`.
The mocked `slide_part_.add_chart_part` records the call as `(chart_data_, XL_CHART_TYPE.PIE)`, so `assert_called_once_with(XL_CHART_TYPE.PIE, chart_data_)` raises an AssertionError on mismatched positional args. Even if that ordering were fixed, `_recalculate_extents_` is never invoked by `add_chart`, so `assert_calle...
tests/shapes/test_shapetree.py::Describe_BaseGroupShapes::it_can_add_a_chart
### `add_chart` passes `add_chart_part` arguments in reverse order (and skips `_recalculate_extents`) - **Input condition**: `code`: `_BaseGroupShapes.add_chart` as written calls `self.part.add_chart_part(chart_data, chart_type)` and returns immediately after `self._shape_factory(graphicFrame)`, with no call to `self._...
stb10r1__scanny__python-pptx.278b47b1.combine_file__09kkjruy__spec__add-chart--passes--add-chart-part--argument__17093c0c00d7.md
scanny__python-pptx.278b47b1.combine_file__09kkjruy
scanny/python-pptx
swe-smith
swe_10
10
f3ed925ff395
afdfc7eecaaeed41
`serialize_part_xml` passes `standalone=False`, emitting `standalone='no'` in the XML declaration lxml's `standalone=False` writes `standalone='no'`, so the produced declaration is `<?xml version='1.0' encoding='UTF-8' standalone='no'?>`. The byte string differs from the expected one (and is 136 bytes, not 137, since `...
- `serialize_part_xml` passes `standalone=False`, emitting `standalone='no'` in the XML declaration lxml's `standalone=False` writes `standalone='no'`, so the produced declaration is `<?xml version='1.0' encoding='UTF-8' standalone='no'?>`. The byte string differs from the expected one (and is 136 bytes, not 137, s...
perf_spec
a named unit test will fail
`serialize_part_xml` passes `standalone=False`, emitting `standalone='no'` in the XML declaration
`code`: `serialize_part_xml` in `src/pptx/opc/oxml.py` calls `etree.tostring(part_elm, encoding="UTF-8", standalone=False)`.
The test asserts `xml == ("<?xml version='1.0' encoding='UTF-8' standalone='yes'?>\n" '<f:foo xmlns:f="http://foo" xmlns:b="http://bar"><f:bar>fØØbÅr</f:bar></f:foo>').encode("utf-8")` and `len(xml) == 137`, i.e. the declaration must read `standalone='yes'`.
lxml's `standalone=False` writes `standalone='no'`, so the produced declaration is `<?xml version='1.0' encoding='UTF-8' standalone='no'?>`. The byte string differs from the expected one (and is 136 bytes, not 137, since `no` is one character shorter than `yes`), so both the length and equality assertions fail. The sam...
tests/opc/test_oxml.py::Describe_serialize_part_xml::it_produces_properly_formatted_xml_for_an_opc_part
### `serialize_part_xml` passes `standalone=False`, emitting `standalone='no'` in the XML declaration - **Input condition**: `code`: `serialize_part_xml` in `src/pptx/opc/oxml.py` calls `etree.tostring(part_elm, encoding="UTF-8", standalone=False)`. - **Code requirement**: The test asserts `xml == ("<?xml version='1.0'...
stb10r1__scanny__python-pptx.278b47b1.combine_file__3i6b72s2__spec__serialize-part-xml--passes--standalone-fals__f3ed925ff395.md
scanny__python-pptx.278b47b1.combine_file__3i6b72s2
scanny/python-pptx
swe-smith
swe_10
10
49497a8b5537
f496d43d8e5903da
`load_config` does not fall back to the absolute current working directory when no config file is found
- `load_config` does not fall back to the absolute current working directory when no config file is found
perf_spec
a named unit test will fail
`load_config` does not fall back to the absolute current working directory when no config file is found
`code`: `flake8/options/config.py::load_config` is called with `config=None`, `extra=[]`, `isolated=False`, from a cwd (`tmpdir`) that contains no `setup.cfg`/`tox.ini`/`.flake8` and no VCS marker, so the upward search for a config file finds nothing.
the test does `cfg, cfg_dir = config.load_config(None, [], isolated=False)` inside `with tmpdir.as
tests/unit/test_options_config.py::test_load_config_no_config_found_sets_cfg_dir_to_pwd
### `load_config` does not fall back to the absolute current working directory when no config file is found - **Input condition**: `code`: `flake8/options/config.py::load_config` is called with `config=None`, `extra=[]`, `isolated=False`, from a cwd (`tmpdir`) that contains no `setup.cfg`/`tox.ini`/`.flake8` and no VCS...
stb10r2__PyCQA__flake8.cf1542ce.lm_rewrite__enjl5pt4__spec__load-config--does-not-fall-back-to-the-abso__49497a8b5537.md
PyCQA__flake8.cf1542ce.lm_rewrite__enjl5pt4
PyCQA/flake8
swe-smith
swe_10
10
279e616c8ae2
9762d353b190836e
Only the AUTOSAR 4 call site of `_load_message` was reordered; the AUTOSAR 3 path still passes arguments swapped for the 3.2.3 file the un-fixed call binds the frame-triggering XML element to the `bus_name` parameter and the bus name string to `can_frame_triggering`; the body then does element lookups (`.tag` / `_get_u...
- Only the AUTOSAR 4 call site of `_load_message` was reordered; the AUTOSAR 3 path still passes arguments swapped for the 3.2.3 file the un-fixed call binds the frame-triggering XML element to the `bus_name` parameter and the bus name string to `can_frame_triggering`; the body then does element lookups (`.tag` / `...
perf_spec
a named unit test will fail
Only the AUTOSAR 4 call site of `_load_message` was reordered; the AUTOSAR 3 path still passes arguments swapped
`code`: the fix in `system_loader.py` changes exactly one call, the one inside the AUTOSAR‑4 `can_frame_triggerings` loop, to `self._load_message(bus_name, can_frame_triggering)`; any other invocation of `_load_message` (the one reached when `self.autosar_version_newer(4)` is false, i.e. the AUTOSAR 3.x `_load_messages...
the test's very first statement is `db = cantools.db.load_file('tests/files/arxml/system-3.2.3.arxml')`, and it then asserts e.g. `self.assertEqual(bus.name, 'Network')`, `self.assertEqual(len(db.messages), 2)` and `self.assertEqual(db.autosar.arxml_version, "3.2.3")` — so the AUTOSAR 3.2.3 file must load successfully.
for the 3.2.3 file the un-fixed call binds the frame-triggering XML element to the `bus_name` parameter and the bus name string to `can_frame_triggering`; the body then does element lookups (`.tag` / `_get_unique_arxml_child` traversal) on the `str` bus name, raising `AttributeError: 'str' object has no attribute 'tag'...
tests/test_database.py::CanToolsDatabaseTest::test_system_3_arxml
### Only the AUTOSAR 4 call site of `_load_message` was reordered; the AUTOSAR 3 path still passes arguments swapped - **Input condition**: `code`: the fix in `system_loader.py` changes exactly one call, the one inside the AUTOSAR‑4 `can_frame_triggerings` loop, to `self._load_message(bus_name, can_frame_triggering)`; ...
stb10r2__cantools__cantools.0c6a7871.func_basic__ym7ji41u__spec__only-the-autosar-4-call-site-of---load-messa__279e616c8ae2.md
cantools__cantools.0c6a7871.func_basic__ym7ji41u
cantools/cantools
swe-smith
swe_10
10
f8a019bc73ef
cb9914fb12124156
`install_consumer` does not forward env generation, so `conanrunenv-*` launcher scripts are never written
- `install_consumer` does not forward env generation, so `conanrunenv-*` launcher scripts are never written
perf_spec
a named unit test will fail
`install_consumer` does not forward env generation, so `conanrunenv-*` launcher scripts are never written
`code`: `conan/api/subapi/install.py`, `InstallAPI.install_consumer(...)`, whose only generator entry point is the final `write_generators(conanfile, hook_manager, self.conan_api.home_folder, env
test/functional/layout/test_editable_cmake.py::test_editable_cmake_linux_exe[None]
### `install_consumer` does not forward env generation, so `conanrunenv-*` launcher scripts are never written - **Input condition**: `code`: `conan/api/subapi/install.py`, `InstallAPI.install_consumer(...)`, whose only generator entry point is the final `write_generators(conanfile, hook_manager, self.conan_api.home_fol...
stb10r2__conan-io__conan.86f29e13.func_pm_class_rm_funcs__s0w45owv__spec__install-consumer--does-not-forward-env-gene__f8a019bc73ef.md
conan-io__conan.86f29e13.func_pm_class_rm_funcs__s0w45owv
conan-io/conan
swe-smith
swe_10
10
f305a982dded
8a2ec2d229888924
parse_literal/parse_value raise custom GraphQLError messages that get appended to graphql-core's literal validation text graphql-core's literal validation catches whatever exception `parse_literal` throws and appends `"; " + str(exception)` to `Expected value of type 'UUID', found <ast>`. For `input: 1` the code throws...
- parse_literal/parse_value raise custom GraphQLError messages that get appended to graphql-core's literal validation text graphql-core's literal validation catches whatever exception `parse_literal` throws and appends `"; " + str(exception)` to `Expected value of type 'UUID', found <ast>`. For `input: 1` the code ...
perf_spec
a named unit test will fail
parse_literal/parse_value raise custom GraphQLError messages that get appended to graphql-core's literal validation text
`code`: `UUID.parse_literal` raises `GraphQLError(f"UUID cannot represent non-string value: {print_ast(node)}")` for non-`StringValueNode` nodes, and delegates string nodes to `parse_value`, which wraps `ValueError` from `_UUID(value)` into `GraphQLError(f"UUID cannot represent value: {repr(value)}")`.
The test runs `schema.execute("{ uuid(input: 1) }")` and asserts `result.errors[0].message == "Expected value of type 'UUID', found 1."` (no trailing clause), and runs `schema.execute('{ uuid(input: "a") }')` asserting the message is exactly `"Expected value of type 'UUID', found \"a\"; badly formed hexadecimal UUID st...
graphql-core's literal validation catches whatever exception `parse_literal` throws and appends `"; " + str(exception)` to `Expected value of type 'UUID', found <ast>`. For `input: 1` the code throws instead of returning `Undefined`, so the message becomes `"Expected value of type 'UUID', found 1; UUID cannot represent...
graphene/types/tests/test_uuid.py::test_uuidstring_invalid_query
### parse_literal/parse_value raise custom GraphQLError messages that get appended to graphql-core's literal validation text - **Input condition**: `code`: `UUID.parse_literal` raises `GraphQLError(f"UUID cannot represent non-string value: {print_ast(node)}")` for non-`StringValueNode` nodes, and delegates string nodes...
stb10r2__graphql-python__graphene.82903263.lm_rewrite__3njkwxvi__spec__parse-literal-parse-value-raise-custom-graph__f305a982dded.md
graphql-python__graphene.82903263.lm_rewrite__3njkwxvi
graphql-python/graphene
swe-smith
swe_10
10
a0cca622524a
cb9ca27103b15f06
Only `Duration.__ne__` was touched; the date/time formatting code path is left unrepaired the formatting routine these calls dispatch into is unchanged by the submission, so it still emits the same wrong string it produced before (a mis-rendered century/year/week field rather than `"19"` / `"1985-04-12"`), and the equa...
- Only `Duration.__ne__` was touched; the date/time formatting code path is left unrepaired the formatting routine these calls dispatch into is unchanged by the submission, so it still emits the same wrong string it produced before (a mis-rendered century/year/week field rather than `"19"` / `"1985-04-12"`), and th...
perf_spec
a named unit test will fail
Only `Duration.__ne__` was touched; the date/time formatting code path is left unrepaired
`code`: the submitted diff modifies only `src/isodate/duration.py` (`Duration.__ne__`) and contains no change to the formatting machinery (`isodate/isostrf.py` / `strftime` and its `%C`, `%Y`, `%m`, `%d`, `%j`, `%W`, `%w`, `%H`, `%M`, `%S`, `%f`, `%z`, `%Z`, `%h` handlers) used by `date_isoformat`, `time_isoformat`, `d...
the test executes `assert date_isoformat(expected, format, yeardigits) == datestring`, i.e. for this parametrization `date_isoformat(date(1901, 1, 1), "%C", 4) == "19"`, and the sibling parametrizations require e.g. `date_isoformat(date(1985, 4, 12), "%Y-%m-%d", 4) == "1985-04-12"` and `date_isoformat(date(1985, 4, 12)...
the formatting routine these calls dispatch into is unchanged by the submission, so it still emits the same wrong string it produced before (a mis-rendered century/year/week field rather than `"19"` / `"1985-04-12"`), and the equality assertion fails for all 64 `test_format` parametrizations across `test_date.py`, `tes...
tests/test_date.py::test_format[4-19-expected0-%C]
### Only `Duration.__ne__` was touched; the date/time formatting code path is left unrepaired - **Input condition**: `code`: the submitted diff modifies only `src/isodate/duration.py` (`Duration.__ne__`) and contains no change to the formatting machinery (`isodate/isostrf.py` / `strftime` and its `%C`, `%Y`, `%m`, `%d`...
stb10r2__gweis__isodate.17cb25eb.combine_module__4iuwm1ym__spec__only--duration---ne----was-touched--the-date__a0cca622524a.md
gweis__isodate.17cb25eb.combine_module__4iuwm1ym
gweis/isodate
swe-smith
swe_10
10
86d848f19582
dfef813767e32380
`nic_handle` never validates the suffix, so an empty suffix silently produces a handle instead of raising with `suffix=""`, `self.lexify("", letters=string.ascii_uppercase)` returns `""` without error, so the method returns e.g. `"AB123-"` and `nic_handles` returns a normal list. No exception is raised, so `pytest.rais...
- `nic_handle` never validates the suffix, so an empty suffix silently produces a handle instead of raising with `suffix=""`, `self.lexify("", letters=string.ascii_uppercase)` returns `""` without error, so the method returns e.g. `"AB123-"` and `nic_handles` returns a normal list. No exception is raised, so `pytes...
perf_spec
a named unit test will fail
`nic_handle` never validates the suffix, so an empty suffix silently produces a handle instead of raising
`code`: the rewritten `nic_handle` body contains no check on `suffix` — it goes straight from `letters = self.lexify(...)` to `processed_suffix = self.lexify(suffix, letters=string.ascii_uppercase)` and returns the f-string, with no `raise ValueError` anywhere, and `nic_handles` merely forwards its `suffix` argument.
the test's final block is `with pytest.raises(ValueError): faker.nic_handles(suffix="")` — calling `nic_handles` with an empty-string suffix must raise `ValueError`.
with `suffix=""`, `self.lexify("", letters=string.ascii_uppercase)` returns `""` without error, so the method returns e.g. `"AB123-"` and `nic_handles` returns a normal list. No exception is raised, so `pytest.raises(ValueError)` fails with `DID NOT RAISE`, even though the earlier pattern assertions pass.
tests/providers/test_internet.py::TestInternetProvider::test_nic_handles
### `nic_handle` never validates the suffix, so an empty suffix silently produces a handle instead of raising - **Input condition**: `code`: the rewritten `nic_handle` body contains no check on `suffix` — it goes straight from `letters = self.lexify(...)` to `processed_suffix = self.lexify(suffix, letters=string.ascii_...
stb10r2__joke2k__faker.8b401a7d.lm_rewrite__s2g8g8co__spec__nic-handle--never-validates-the-suffix--so__86d848f19582.md
joke2k__faker.8b401a7d.lm_rewrite__s2g8g8co
joke2k/faker
swe-smith
swe_10
10
668d0de9e368
7ffa165c2bbabf51
`TableSettings.resolve` and the legacy/`text_`-prefixed settings API were deleted, so a settings dict passed to `extract_table` can no longer be turned into a `TableSettings` `Page.extract_table`/`extract_tables` (unchanged, in `page.py`) still calls `TableSettings.resolve(table_settings)` and constructs `TableFinder(s...
- `TableSettings.resolve` and the legacy/`text_`-prefixed settings API were deleted, so a settings dict passed to `extract_table` can no longer be turned into a `TableSettings` `Page.extract_table`/`extract_tables` (unchanged, in `page.py`) still calls `TableSettings.resolve(table_settings)` and constructs `TableFi...
perf_spec
a named unit test will fail
`TableSettings.resolve` and the legacy/`text_`-prefixed settings API were deleted, so a settings dict passed to `extract_table` can no longer be turned into a `TableSettings`
`code`: the rewritten `pdfplumber/table.py` removes the `TableSettings.resolve(settings)` classmethod (the only entry point that accepts `None`, a `TableSettings`, or a plain dict, and that splits `text_*` keys into `text_settings`), removes the `snap_tolerance`, `join_tolerance`, `intersection_tolerance` and `UNSET` f...
the test calls `page.extract_table({"vertical_strategy": "explicit", "explicit_vertical_lines": v_lines})` and asserts `parsed[0] == ["NoticeDate", "Effective", "Received", "Company", "City", "No. Of", "Layoff/Closure"]` and `parsed[1] == ["06/22/2015", ..., "Closure Permanent"]`. That requires a raw dict of table sett...
`Page.extract_table`/`extract_tables` (unchanged, in `page.py`) still calls `TableSettings.resolve(table_settings)` and constructs `TableFinder(self, settings)` positionally; with `resolve` gone this raises `AttributeError: type object 'TableSettings' has no attribute 'resolve'` before any row is produced, and even if ...
tests/test_ca_warn_report.py::Test::test_parse
### `TableSettings.resolve` and the legacy/`text_`-prefixed settings API were deleted, so a settings dict passed to `extract_table` can no longer be turned into a `TableSettings` - **Input condition**: `code`: the rewritten `pdfplumber/table.py` removes the `TableSettings.resolve(settings)` classmethod (the only entry ...
stb10r2__jsvine__pdfplumber.02ff4313.func_pm_ctrl_shuffle__6tiz8ym1__spec__tablesettings-resolve--and-the-legacy--text__668d0de9e368.md
jsvine__pdfplumber.02ff4313.func_pm_ctrl_shuffle__6tiz8ym1
jsvine/pdfplumber
swe-smith
swe_10
10
f84e572bfa9f
0a553110e419fd7f
Token response parsing leaves `expires_at` as the raw float instead of rounding it to an int with no rounding step in the parsing path, `response['expires_at']` stays `1661185148.6437678` and `client._expires_at` is set to that same float; `1661185148.6437678 != 1661185149`, so the first `assertEqual` fails. (The same ...
- Token response parsing leaves `expires_at` as the raw float instead of rounding it to an int with no rounding step in the parsing path, `response['expires_at']` stays `1661185148.6437678` and `client._expires_at` is set to that same float; `1661185148.6437678 != 1661185149`, so the first `assertEqual` fails. (The...
perf_spec
a named unit test will fail
Token response parsing leaves `expires_at` as the raw float instead of rounding it to an int
`code`: the submitted diff only edits `prepare_token_request` in `oauthlib/oauth2/rfc6749/parameters.py`; `parse_token_response` / `validate_token_parameters` (and `Client.populate_token_attributes` / `_expires_at`) are untouched, so `expires_at` from the JSON body is stored exactly as JSON-decoded and `expires_in` is ...
the test parses `'{... "expires_at":1661185148.6437678, ...}'` via `client.parse_request_body_response(token_json, scope=["/profile"])` and asserts `self.assertEqual(response['expires_at'], 1661185149)` and `self.assertEqual(client._expires_at, 1661185149)` — i.e. the parsed `expires_at` must be the rounded integer, no...
with no rounding step in the parsing path, `response['expires_at']` stays `1661185148.6437678` and `client._expires_at` is set to that same float; `1661185148.6437678 != 1661185149`, so the first `assertEqual` fails. (The same missing rounding also breaks the `expires_in` case, where `time.time()` mocked to `1661185148...
tests/oauth2/rfc6749/clients/test_base.py::ClientTest::test_parse_token_response_expires_at_is_int
### Token response parsing leaves `expires_at` as the raw float instead of rounding it to an int - **Input condition**: `code`: the submitted diff only edits `prepare_token_request` in `oauthlib/oauth2/rfc6749/parameters.py`; `parse_token_response` / `validate_token_parameters` (and `Client.populate_token_attributes` /...
stb10r2__oauthlib__oauthlib.1fd52536.combine_file__diwzpb6e__spec__token-response-parsing-leaves--expires-at--a__f84e572bfa9f.md
oauthlib__oauthlib.1fd52536.combine_file__diwzpb6e
oauthlib/oauthlib
swe-smith
swe_10
10
12f1212c4eeb
0f9e19570c4e75b5
Registered functions are de-duplicated by code content, so identical-bodied functions collapse to one entry because the four functions differ only in name, a content-based key makes them collide; each later registration replaces the earlier one, so `show_text` emits a single `Function:` block (the last-registered `func...
- Registered functions are de-duplicated by code content, so identical-bodied functions collapse to one entry because the four functions differ only in name, a content-based key makes them collide; each later registration replaces the earlier one, so `show_text` emits a single `Function:` block (the last-registered...
perf_spec
a named unit test will fail
Registered functions are de-duplicated by code content, so identical-bodied functions collapse to one entry
`code`: `GlobalProfiler` keeps the functions handed to `__call__`/`add_function` in a container keyed by something that is not unique per function object (e.g. a set/dict keyed by the function's source text, `__code__.co_code`, qualname-less name, or a hash of the body) rather than by identity of the individual functio...
the test defines four separately-named functions with byte-identical bodies (`func1`..`func4`, each `return a + 1`), decorates each with `@profile`, calls all four, and then asserts on the single text report `profile_output.txt`: `assert 'Function: func1' in raw_output`, `assert 'Function: func2' in raw_output`, `asser...
because the four functions differ only in name, a content-based key makes them collide; each later registration replaces the earlier one, so `show_text` emits a single `Function:` block (the last-registered `func4`). The first assertion reached, `'Function: func1' in raw_output`, is False and the test fails even though...
tests/test_explicit_profile.py::test_explicit_profile_with_duplicate_functions
### Registered functions are de-duplicated by code content, so identical-bodied functions collapse to one entry - **Input condition**: `code`: `GlobalProfiler` keeps the functions handed to `__call__`/`add_function` in a container keyed by something that is not unique per function object (e.g. a set/dict keyed by the f...
stb10r2__pyutils__line_profiler.a646bf0f.func_basic__zortx0tr__spec__registered-functions-are-de-duplicated-by-co__12f1212c4eeb.md
pyutils__line_profiler.a646bf0f.func_basic__zortx0tr
pyutils/line_profiler
swe-smith
swe_10
10
88025b30e90f
8610bd2fc3027144
Fix confined to `jsonextract`; the schema-less `execute(tables=...)` path is untouched
- Fix confined to `jsonextract`; the schema-less `execute(tables=...)` path is untouched
perf_spec
a named unit test will fail
Fix confined to `jsonextract`; the schema-less `execute(tables=...)` path is untouched
`code`: the only edit is inside `jsonextract` in `sqlglot/executor/env.py`, replacing the `raise NotImplementedError(...)` branch with `this = seq_get(this, int(path_segment))`; no file that builds/infers a schema for `execute()` when the caller passes only `tables` (e.g. `sqlglot/executor/__init__.py`'s `execute`, `sq...
the test calls `execute("SELECT SUM(x) FROM t", tables={"t": [{"x": 1}, {"x": 2}]})` with **no** `schema=` argument and asserts `result.columns == ("_col_0",)` and `result.rows == [
tests/test_executor.py::TestExecutor::test_aggregate_without_group_by
### Fix confined to `jsonextract`; the schema-less `execute(tables=...)` path is untouched - **Input condition**: `code`: the only edit is inside `jsonextract` in `sqlglot/executor/env.py`, replacing the `raise NotImplementedError(...)` branch with `this = seq_get(this, int(path_segment))`; no file that builds/infers a...
stb10r2__tobymao__sqlglot.036601ba.combine_module__idagba7w__spec__fix-confined-to--jsonextract---the-schema-le__88025b30e90f.md
tobymao__sqlglot.036601ba.combine_module__idagba7w
tobymao/sqlglot
swe-smith
swe_10
10
e3ce70a27f96
908041f1294863b9
`DistPackage.as_parent_of` left unfixed — only `ReqPackage.as_dict` was changed `as_parent_of` still carries the injected defect (it does not store the passed `ReqPackage` on the returned object's `req`, and/or constructs a fresh `DistPackage` instead of returning `self` when `req is None`), so one of `dp1.req is rp` /...
- `DistPackage.as_parent_of` left unfixed — only `ReqPackage.as_dict` was changed `as_parent_of` still carries the injected defect (it does not store the passed `ReqPackage` on the returned object's `req`, and/or constructs a fresh `DistPackage` instead of returning `self` when `req is None`), so one of `dp1.req is...
perf_spec
a named unit test will fail
`DistPackage.as_parent_of` left unfixed — only `ReqPackage.as_dict` was changed
`code`: the submitted diff modifies only the four dict entries in `ReqPackage.as_dict` in `src/pipdeptree/_models/package.py`; `DistPackage.__init__`, `DistPackage.as_parent_of` and `DistPackage.render_as_branch` are byte-for-byte the pre-existing (defective) versions.
the test builds `dp = DistPackage(foo)` and `rp = ReqPackage(bar_req, dist=bar)` and requires all of: `assert dp.req is None`, `dp1 = dp.as_parent_of(rp)` with `assert dp1._obj == dp._obj` and `assert dp1.req is rp`, and `dp2 = dp.as_parent_of(None)` with `assert dp2 is dp` (identity, not a new instance). The companion...
`as_parent_of` still carries the injected defect (it does not store the passed `ReqPackage` on the returned object's `req`, and/or constructs a fresh `DistPackage` instead of returning `self` when `req is None`), so one of `dp1.req is rp` / `dp2 is dp` evaluates False and the test fails; the same untouched code makes t...
tests/_models/test_package.py::test_dist_package_as_parent_of
### `DistPackage.as_parent_of` left unfixed — only `ReqPackage.as_dict` was changed - **Input condition**: `code`: the submitted diff modifies only the four dict entries in `ReqPackage.as_dict` in `src/pipdeptree/_models/package.py`; `DistPackage.__init__`, `DistPackage.as_parent_of` and `DistPackage.render_as_branch` ...
stb10r2__tox-dev__pipdeptree.c31b6418.combine_file__cta5i1g6__spec__distpackage-as-parent-of--left-unfixed---on__e3ce70a27f96.md
tox-dev__pipdeptree.c31b6418.combine_file__cta5i1g6
tox-dev/pipdeptree
swe-smith
swe_10
10

SWE code-quality rubrics — 15 distinct criteria (target 10)

Falsifiable criteria about why a code change fails its tests, mined from agent attempts on real repositories. Each rubric makes one checkable prediction — a named unit test will fail, or a named exception will be raised — so it can be scored against an actual run instead of judged on taste.

This repo is one of three independent libraries collected to different sizes, for studying how a rubric database behaves with scale:

repo distinct criteria
swe-rubrics-10 15
swe-rubrics-100 227
swe-rubrics-1000 1006

They are not nested — each stage shuffled the task pool with its own seed, so the small library is not a subset of the large one.

Quick start (retrieval)

from datasets import load_dataset
from sentence_transformers import SentenceTransformer
import numpy as np

ds = load_dataset("EdwardoSunny/swe-rubrics-10", split="train")
m  = SentenceTransformer("all-MiniLM-L6-v2")

# embed the field that exists for exactly this purpose
index = m.encode(ds["retrieval_text"], normalize_embeddings=True)

def top_k(issue_text, k=8):
    q = m.encode([issue_text], normalize_embeddings=True)[0]
    for i in np.argsort(-(index @ q))[:k]:
        yield ds[int(i)]

# and paste the pre-formatted block straight into a prompt
context = "\n".join(r["prompt_block"] for r in top_k(my_issue))

Two fields exist so you never have to reinvent them:

  • retrieval_text — embed or index this. Title + prediction only; the "input condition" / "code requirement" scaffolding is for judging whether a criterion applies and only dilutes the retrieval signal.
  • prompt_block — paste this. Already formatted for a model's context.

Contents

  • 15 distinct criteria over 13 source repositories
  • families: {'perf_spec': 15}
  • mined from: {'swe-smith': 15}

"Distinct" is post-deduplication: criteria were merged across tasks by an LLM adjudicator (with TF-IDF/embedding recall), so this is a count of surviving criteria rather than of curator calls.

Schema

field meaning
rubric_id stable id assigned at curation
criterion_sha256 hash of the prediction clause; survives rewording
retrieval_text EMBED THIS. title + prediction, nothing else
prompt_block PASTE THIS. pre-formatted for a model's context
family perf_spec
predicate what the rubric asserts, in words
title one-line statement of the defect
input_condition when the criterion applies
code_requirement the ground truth it is checked against
prediction the falsifiable claim
target_failing_test test predicted red (perf_spec)
target_exception_class exception predicted (error_focused)
source_instance_id instance it was mined from
source_repo upstream repo of that instance
source_dataset swe-gym
library swe_10
library_target the K this library was collected to
text the full rubric markdown
source_file original filename

The criterion is stored split into its three clauses because they do different jobs: input_condition scopes when it applies, code_requirement is the ground truth it is checked against, and prediction is the falsifiable claim. Scoring a rubric means checking the prediction; the other two make that check well-defined.

Provenance and the leakage guarantee

Mined only from SWE-Gym and SWE-smith. SWE-bench was never mined — it is the held-out evaluation target.

Every row carries source_instance_id and source_repo, so the guarantee is checkable from the data rather than taken on trust: no row's source_repo appears in any of SWE-bench's 18 evaluation repos. Audited at export with 0 hits and 0 untraceable rows.

Held out: astropy/astropy, django/django, marshmallow-code/marshmallow, matplotlib/matplotlib, mwaskom/seaborn, pallets/flask, psf/requests, pvlib/pvlib-python, pydata/xarray, pydicom/pydicom, pylint-dev/astroid, pylint-dev/pylint, pytest-dev/pytest, pyvista/pyvista, scikit-learn/scikit-learn, sphinx-doc/sphinx, sqlfluff/sqlfluff, sympy/sympy

Families

  • perf_spec — the code runs and is wrong; predicts a failing unit test. This dominates, because SWE work is mostly "runs and gives the wrong answer" rather than "crashes".
  • error_focused — the change makes the module unimportable or otherwise raises; predicts an exception class.
  • error_grader — the grader rejects the output.

Limitations

  • Mined with a small tool-loop agent, so the failure modes reflect what that agent gets wrong — not the whole space of code defects.
  • error_focused is a small minority. Crashes are genuinely rare in this domain; the family is thin by nature, not by neglect.
  • No precision/recall is published here. Distinctness and provenance are measured; predictive quality is not, and should not be assumed.
Downloads last month
17