Dataset Viewer
Auto-converted to Parquet Duplicate
instance_id
stringclasses
4 values
repo
stringclasses
4 values
base_commit
stringclasses
4 values
patch
stringclasses
4 values
test_patch
stringclasses
4 values
problem_statement
stringclasses
4 values
hints_text
stringclasses
1 value
created_at
timestamp[s]date
2026-10-30 00:00:00
2026-10-30 00:00:00
version
stringclasses
1 value
environment_setup_commit
stringclasses
4 values
FAIL_TO_PASS
stringclasses
4 values
PASS_TO_PASS
stringclasses
4 values
dockerless
dict
swedl__miniconf-1
swedl/miniconf
f7b5b3a4cfec71e8e6db94c76ae5c4e2ea509216
diff --git a/miniconf/config.py b/miniconf/config.py index 8751912..6bdf695 100644 --- a/miniconf/config.py +++ b/miniconf/config.py @@ -1,12 +1,8 @@ """The Config object: layered key/value storage with ${...} interpolation.""" -import re - -from .errors import MissingKeyError +from .errors import CircularReferenceE...
diff --git a/tests/test_interpolation_edge_cases.py b/tests/test_interpolation_edge_cases.py new file mode 100644 index 0000000..6289238 --- /dev/null +++ b/tests/test_interpolation_edge_cases.py @@ -0,0 +1,64 @@ +import pytest + +from miniconf import CircularReferenceError, Config, MissingKeyError + + +def test_dollar...
Config interpolation blows up on reference cycles and expands escaped text. We use miniconf for service configs that are layered from a shared file plus a per-environment overlay. Two problems, both reproducible on main: 1. A cycle anywhere in the mapping crashes with `RecursionError` instead of the documented err...
2026-10-30T00:00:00
1.0
f7b5b3a4cfec71e8e6db94c76ae5c4e2ea509216
["tests/test_interpolation_edge_cases.py::test_as_dict_raises_on_cycle", "tests/test_interpolation_edge_cases.py::test_cycle_not_involving_requested_key", "tests/test_interpolation_edge_cases.py::test_dollar_escape", "tests/test_interpolation_edge_cases.py::test_escape_does_not_hide_a_real_cycle", "tests/test_interpola...
["tests/test_basic.py::test_as_dict_resolves_all", "tests/test_basic.py::test_chained_reference", "tests/test_basic.py::test_config_rejects_non_dict", "tests/test_basic.py::test_from_layers_override", "tests/test_basic.py::test_get_returns_default_for_unknown_key", "tests/test_basic.py::test_getitem_raises_keyerror_for...
{ "language": "python", "python_requires": ">=3.9", "install": [], "run_from": ".", "test_cmd": "python -m pytest -v --tb=no -p no:cacheprovider {tests}", "test_files": [ "tests/test_basic.py", "tests/test_interpolation_edge_cases.py" ], "files": { "miniconf/__init__.py": "\"\"\"miniconf - a...
swedl__ttlcache-1
swedl/ttlcache
7c1d3594fec009ac3cf7ef48506ec6d3b0d56132
diff --git a/ttlcache/cache.py b/ttlcache/cache.py index fda1724..4c36ad4 100644 --- a/ttlcache/cache.py +++ b/ttlcache/cache.py @@ -28,8 +28,15 @@ class TTLCache: def _expired(deadline, now): return now >= deadline + def _purge(self, now): + """Drop every expired entry so it can never be coun...
diff --git a/tests/test_lru_semantics.py b/tests/test_lru_semantics.py new file mode 100644 index 0000000..1563011 --- /dev/null +++ b/tests/test_lru_semantics.py @@ -0,0 +1,55 @@ +from ttlcache import FakeClock, TTLCache + + +def test_get_refreshes_recency(): + clock = FakeClock() + cache = TTLCache(maxsize=2, t...
LRU eviction ignores reads, and len() counts entries that already expired. Our request cache is a `TTLCache(maxsize=N, ttl=...)` and it is evicting the wrong keys under load: 1. Reading a key does not protect it. With `maxsize=2`, writing `a`, `b`, reading `a`, then writing `c` drops `a` and keeps `b` -- the exact...
2026-10-30T00:00:00
1.0
7c1d3594fec009ac3cf7ef48506ec6d3b0d56132
["tests/test_lru_semantics.py::test_get_refreshes_recency", "tests/test_lru_semantics.py::test_items_reports_least_recently_used_first", "tests/test_lru_semantics.py::test_len_ignores_expired_entries", "tests/test_lru_semantics.py::test_overwrite_refreshes_recency", "tests/test_lru_semantics.py::test_setdefault_refresh...
["tests/test_cache.py::test_entry_expires", "tests/test_cache.py::test_entry_survives_before_deadline", "tests/test_cache.py::test_eviction_order_on_insert", "tests/test_cache.py::test_getitem_raises_for_missing_key", "tests/test_cache.py::test_invalid_arguments", "tests/test_cache.py::test_items_skips_expired", "tests...
{ "language": "python", "python_requires": ">=3.9", "install": [], "run_from": ".", "test_cmd": "python -m pytest -v --tb=no -p no:cacheprovider {tests}", "test_files": [ "tests/test_cache.py", "tests/test_lru_semantics.py" ], "files": { "README.md": "# ttlcache\n\nA bounded cache with per-e...
swedl__cronlite-1
swedl/cronlite
cb8cd4f111a02d9358774debe834b530bcbfeb94
diff --git a/cronlite/fields.py b/cronlite/fields.py index 4945d5e..b3c0eb6 100644 --- a/cronlite/fields.py +++ b/cronlite/fields.py @@ -1,13 +1,19 @@ """Parsing of individual cron fields into sets of integers.""" +def _sunday_alias(value): + """Collapse the cron Sunday alias 7 onto 0.""" + return 0 if value...
diff --git a/tests/test_step_and_sunday.py b/tests/test_step_and_sunday.py new file mode 100644 index 0000000..7529ebc --- /dev/null +++ b/tests/test_step_and_sunday.py @@ -0,0 +1,43 @@ +from datetime import datetime + +from cronlite import CronExpression, next_after +from cronlite.fields import DAY_OF_WEEK, MINUTE, pa...
`5/15` in the minute field only fires once an hour, and day-of-week 7 is rejected. Two field-parsing bugs, both in `cronlite/fields.py`: 1. A single value followed by a step is treated as a one-element set. `5/15` parses to `{5}` instead of `{5, 20, 35, 50}`, so a job scheduled at `5/20 * * * *` runs at 00:05, ...
2026-10-30T00:00:00
1.0
cb8cd4f111a02d9358774debe834b530bcbfeb94
["tests/test_step_and_sunday.py::test_next_after_sunday_seven", "tests/test_step_and_sunday.py::test_next_after_with_stepped_start", "tests/test_step_and_sunday.py::test_seven_inside_a_list", "tests/test_step_and_sunday.py::test_single_value_with_step_runs_to_end_of_range", "tests/test_step_and_sunday.py::test_sunday_m...
["tests/test_basic.py::test_bad_step_rejected", "tests/test_basic.py::test_cron_weekday_mapping", "tests/test_basic.py::test_descending_range_rejected", "tests/test_basic.py::test_invalid_field_count", "tests/test_basic.py::test_list_field", "tests/test_basic.py::test_list_with_range", "tests/test_basic.py::test_matche...
{ "language": "python", "python_requires": ">=3.9", "install": [], "run_from": ".", "test_cmd": "python -m pytest -v --tb=no -p no:cacheprovider {tests}", "test_files": [ "tests/test_basic.py", "tests/test_step_and_sunday.py" ], "files": { "cronlite/__init__.py": "\"\"\"cronlite - a dependen...
swedl__semverlite-1
swedl/semverlite
248819bc3fd540992754e15ab48fcba834ff11d4
diff --git a/semverlite/range.py b/semverlite/range.py index abe2ece..ad1fc9e 100644 --- a/semverlite/range.py +++ b/semverlite/range.py @@ -40,7 +40,16 @@ class VersionRange: raise ValueError("empty range") self.clauses = [_parse_clause(part) for part in parts] + def _allows_prerelease(self,...
diff --git a/tests/test_prerelease_precedence.py b/tests/test_prerelease_precedence.py new file mode 100644 index 0000000..1ba29fb --- /dev/null +++ b/tests/test_prerelease_precedence.py @@ -0,0 +1,55 @@ +import pytest + +from semverlite import Version, VersionRange + + +def v(text): + return Version.parse(text) + +...
Prerelease ordering is lexicographic, and prereleases leak into release ranges. Two spec violations against semver 2.0.0: 1. Prerelease identifiers are compared as strings. `1.0.0-alpha.2` sorts *after* `1.0.0-alpha.10` because `"2" > "1"`, and `1.0.0-beta.2` sorts after `1.0.0-beta.11`. Sorting a release train...
2026-10-30T00:00:00
1.0
248819bc3fd540992754e15ab48fcba834ff11d4
["tests/test_prerelease_precedence.py::test_numeric_identifiers_compare_numerically", "tests/test_prerelease_precedence.py::test_prerelease_does_not_satisfy_caret_range", "tests/test_prerelease_precedence.py::test_prerelease_does_not_satisfy_release_lower_bound", "tests/test_prerelease_precedence.py::test_prerelease_or...
["tests/test_prerelease_precedence.py::test_numeric_identifier_is_lower_than_alphanumeric", "tests/test_version.py::test_caret_range", "tests/test_version.py::test_equality_and_hash", "tests/test_version.py::test_equality_ignores_build_metadata", "tests/test_version.py::test_exact_clause", "tests/test_version.py::test_...
{ "language": "python", "python_requires": ">=3.9", "install": [], "run_from": ".", "test_cmd": "python -m pytest -v --tb=no -p no:cacheprovider {tests}", "test_files": [ "tests/test_prerelease_precedence.py", "tests/test_version.py" ], "files": { "README.md": "# semverlite\n\nSemantic versi...

SWE-DockerLess

A SWE-bench-shaped benchmark that needs no Docker, no network and no prebuilt image. Every row carries its own repo snapshot, so an instance is reproduced by writing files to a temp directory, git init, git apply and running pytest.

Rows are byte-for-byte SWE-bench compatible: same field names, same FAIL_TO_PASS / PASS_TO_PASS JSON-string encoding, same "resolved" rule. One extra dockerless object carries the snapshot and the test command.

SWE-DockerLess.jsonl   4 instances, 62.9 KiB (~16k tokens total)
build_dataset.py       rebuilds the jsonl from repos/ + fixed/ + newtests/ and
                       derives F2P/P2P by actually running pytest
run_harness.py         scoring harness (--gold, or --predictions preds.jsonl)
repos/                 the four buggy base repos (the source of the snapshots)
fixed/                 gold-fix versions of the touched files
newtests/              the tests that become test_patch
tools/validate.py      schema, patch-application and budget checks
tools/make_controls.py generates empty / cross / partial negative controls
reports/               harness output for gold and the three controls

Instances

instance_id repo the bug F2P P2P gold patch
swedl__miniconf-1 swedl/miniconf ${k} interpolation recurses on cycles (no CircularReferenceError) and $$ never escapes 9 15 41 added lines
swedl__ttlcache-1 swedl/ttlcache LRU order ignores reads and overwrites; len() counts expired rows 5 12 12 added lines
swedl__cronlite-1 swedl/cronlite 5/15 collapses to {5}; day-of-week 7 rejected 8 21 11 added lines
swedl__semverlite-1 swedl/semverlite prerelease ordering is lexicographic; prereleases satisfy release ranges 7 19 23 added lines

29 FAIL_TO_PASS tests, 67 PASS_TO_PASS tests. Difficulty is SWE-bench-like rather than toy-like: each fix needs a behaviour change in a real algorithm (recursive descent with cycle detection, an LRU invariant, cron field expansion, semver precedence), and the hidden tests pin exact semantics β€” error message text, the 0-6 weekday scale, the "prerelease must opt in" range rule β€” that a shallow patch misses. The partial control below scores 5/9, 2/5, 6/8 and 3/7 F2P without resolving a single instance.

Row schema

field notes
instance_id swedl__<repo>-1
repo swedl/<repo>
base_commit real 40-char sha of the snapshot commit (deterministic)
patch gold fix, git diff unified diff against base_commit
test_patch adds test files only, never touches source
problem_statement issue-style report; states the contract, never names a test
hints_text ""
created_at, version 2026-10-30, 1.0
environment_setup_commit equals base_commit
FAIL_TO_PASS, PASS_TO_PASS JSON-encoded strings, as in SWE-bench
dockerless.files {path: content} snapshot of the repo at base_commit
dockerless.test_cmd python -m pytest -v --tb=no -p no:cacheprovider {tests}
dockerless.test_files the node-id prefixes to run

Running it

python -m pip install pytest          # the only dependency
python build_dataset.py               # regenerate + re-verify the jsonl
python run_harness.py --gold          # sanity check, expect 4/4
python run_harness.py --predictions predictions/partial.jsonl --out reports/partial.json

A predictions file is JSONL of {"instance_id", "model_name_or_path", "model_patch"} β€” the SWE-bench format. resolved requires all F2P and all P2P to pass.

Verified results

$ python run_harness.py --gold
instance               resolved  F2P     P2P     note
swedl__miniconf-1      yes       9/9     15/15   ok
swedl__ttlcache-1      yes       5/5     12/12   ok
swedl__cronlite-1      yes       8/8     21/21   ok
swedl__semverlite-1    yes       7/7     19/19   ok
resolved 4/4 (100.0%) in 10.3s

$ python run_harness.py --predictions predictions/empty.jsonl     -> 0/4
$ python run_harness.py --predictions predictions/cross.jsonl     -> 0/4
$ python run_harness.py --predictions predictions/partial.jsonl   -> 0/4

build_dataset.py is the ground truth for F2P/P2P: it materialises a clean checkout, applies test_patch, runs pytest, applies patch, runs pytest again, and classifies every test by observed outcome. It refuses to write a row if the gold patch leaves any failure behind, if F2P is empty, or if a test disappears.

Budget

Measured for max_tokens = 2048, context = 240000:

  • prompt per instance: ~2.0k–2.6k tokens (problem statement + snapshot)
  • gold patch: 11–41 added lines, ~200–700 tokens β€” comfortably inside 2048
  • whole dataset: ~16k tokens, so all four rows fit in one context if you want

Deliberate deviations from SWE-bench

  • Synthetic repos. These are four purpose-built Python packages, not real GitHub projects, so there is no repo clone step and no upstream history.
  • Snapshot in the row instead of a Docker image. base_commit is a genuine commit sha of that snapshot, so git apply and git diff behave normally.
  • No install step. Packages are importable from the repo root, so dockerless.install is empty and pytest runs with the repo as rootdir.
  • Python only, single language, to keep the harness to python + git + pytest.
Downloads last month
75