foresight-swe-mini: 15 of the 212 Foresight-SWE tasks
Browse files- README.md +89 -0
- build.py +164 -0
- data/image_sizes.json +1 -0
- data/leaderboard.csv +12 -0
- data/metrics.json +217 -0
- data/tasks.jsonl +15 -0
README.md
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
language: [en]
|
| 4 |
+
pretty_name: foresight-swe-mini
|
| 5 |
+
tags: [benchmark, coding-agents, software-engineering, subset, foresight-swe]
|
| 6 |
+
size_categories: [n<1K]
|
| 7 |
+
configs:
|
| 8 |
+
- config_name: default
|
| 9 |
+
data_files:
|
| 10 |
+
- split: test
|
| 11 |
+
path: data/tasks.jsonl
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# foresight-swe-mini
|
| 15 |
+
|
| 16 |
+
15 of the 212 tasks in [Foresight-SWE](https://huggingface.co/datasets/shaswat123/Foresight-SWE), chosen to match the full benchmark's mix of languages, difficulty and defect types while keeping runs short.
|
| 17 |
+
|
| 18 |
+
Foresight-SWE asks whether a coding agent avoids a bug nobody told it about. Each task pairs a real pull request that introduced a defect (PR-1) with the later one that fixed it (PR-2). The agent gets only PR-1's task. Resolve rate counts PR-1's tests passing. Foresight resolve rate (FRR) also requires PR-2's held-out tests to pass. See the [paper](https://arxiv.org/abs/2611.01181) and [code](https://github.com/shaswatpatel123/Foresight-SWE).
|
| 19 |
+
|
| 20 |
+
**Read this first.** Unlike the other mini benchmarks in this collection, this subset has not been checked against real per-task results, because upstream publishes only totals and per-model breakdowns. The accuracy figures below are simulated. The tasks have not been run through the upstream harness here yet, so a task may be swapped if it turns out to be broken or very slow. Any change will be noted on this card.
|
| 21 |
+
|
| 22 |
+
## What it can tell you
|
| 23 |
+
|
| 24 |
+
One task is worth 6.7 points, and at leaderboard rates most models would pass 1 to 4 of the 15. Use it to spot large differences, or to compare two setups on the same tasks. Do not use it to rank close models or to estimate a full-benchmark score.
|
| 25 |
+
|
| 26 |
+
Simulated against the 11 models on the leaderboard:
|
| 27 |
+
|
| 28 |
+
| tasks | typical FRR error (points) | pairs 5+ points apart in the right order | pairs 10+ points apart in the right order |
|
| 29 |
+
|---:|---:|---:|---:|
|
| 30 |
+
| **foresight-swe-mini (15)** | **6.8** | **74%** | **83%** |
|
| 31 |
+
| random 10 | 8.8 | 64% | 72% |
|
| 32 |
+
| random 15 | 6.9 | 73% | 82% |
|
| 33 |
+
| random 20 | 6.0 | 78% | 87% |
|
| 34 |
+
| random 30 | 4.7 | 84% | 93% |
|
| 35 |
+
| random 60 | 3.0 | 94% | 99% |
|
| 36 |
+
| random 100 | 2.0 | 98% | 100% |
|
| 37 |
+
|
| 38 |
+
The 15 do no better than a random 15 on these numbers. The published task labels explain only 4 to 13% of each model's pass or fail outcomes, so matching on them cannot do much for accuracy. What matching adds is a guaranteed mix and no very slow tasks. A subset chosen from real per-task results might do better; that needs data upstream has not released.
|
| 39 |
+
|
| 40 |
+
The simulation fits each model to Tables D.1 and D.2 of the paper, then adds a difficulty shared across models and noise per model. Those two additions are assumptions. Numbers are the middle of three runs with different shared-difficulty settings, which changed little.
|
| 41 |
+
|
| 42 |
+
## The mix
|
| 43 |
+
|
| 44 |
+
| | foresight-swe-mini | exact share of 15 |
|
| 45 |
+
|---|---:|---:|
|
| 46 |
+
| Python / JavaScript / TypeScript / Go | 8 / 3 / 2 / 2 | 8.1 / 3.4 / 2.0 / 1.5 |
|
| 47 |
+
| PR-1 easy / medium / hard | 3 / 6 / 6 | 3.3 / 5.4 / 6.2 |
|
| 48 |
+
| PR-2 easy / medium / hard | 9 / 4 / 2 | 8.8 / 3.7 / 2.5 |
|
| 49 |
+
| Major / minor | 9 / 6 | 9.1 / 5.9 |
|
| 50 |
+
| Silent / loud | 9 / 6 | 9.1 / 5.9 |
|
| 51 |
+
| Bug / feature / mixed | 8 / 6 / 1 | 7.9 / 6.2 / 0.8 |
|
| 52 |
+
| Security | 1 | 1.3 |
|
| 53 |
+
|
| 54 |
+
The 15 cover 10 of the 35 repositories, with at most 3 tasks from any one. Predicted FRR on the subset is within 0.6 points of the published score for all 11 models (`data/leaderboard.csv`). That only checks the mix, not real results.
|
| 55 |
+
|
| 56 |
+
## How the 15 were chosen
|
| 57 |
+
|
| 58 |
+
Simulated annealing over the 158 tasks with at most 2,000 regression tests, 100 task tests, 20 held-out tests, a 60 KB patch and 3.5 GB of images. It minimises the difference from the full benchmark in the mix above, in each model's predicted scores and in task size, with a cap per repository. `python build.py verified.jsonl` reproduces the selection and every number here. Exact task IDs are in `data/tasks.jsonl`.
|
| 59 |
+
|
| 60 |
+
## Running it
|
| 61 |
+
|
| 62 |
+
The tasks live upstream; this dataset only tells you which 15 to run. Build a task file:
|
| 63 |
+
|
| 64 |
+
```python
|
| 65 |
+
from datasets import load_dataset
|
| 66 |
+
ids = set(load_dataset("LocalLLaMA/foresight-swe-mini", split="test")["instance_id"])
|
| 67 |
+
tasks = load_dataset("shaswat123/Foresight-SWE", split="test")
|
| 68 |
+
tasks.filter(lambda r: r["instance_id"] in ids).to_json("foresight_mini.jsonl")
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
Then set `DATASET` to that file in one of the [upstream eval scripts](https://github.com/shaswatpatel123/Foresight-SWE/tree/main/eval). Each task needs one amd64 Docker image, about 11 GB in total. To compare with the leaderboard, keep the paper's budgets: 250 to 350 steps and $3 per task in mini-swe-agent.
|
| 72 |
+
|
| 73 |
+
Report resolve rate and FRR, and label results "foresight-swe-mini". Scores on the 15 are not Foresight-SWE scores.
|
| 74 |
+
|
| 75 |
+
## Credit
|
| 76 |
+
|
| 77 |
+
All tasks and the benchmark design are by Patel, Liao, Henderson, He and Chen.
|
| 78 |
+
|
| 79 |
+
```bibtex
|
| 80 |
+
@misc{patel2026codingagentscatchbugs,
|
| 81 |
+
title={Do Coding Agents Catch Their Own Bugs? (They Don't.)},
|
| 82 |
+
author={Shaswat Patel and Michel Liao and Peter Henderson and He He and Valerie Chen},
|
| 83 |
+
year={2026},
|
| 84 |
+
eprint={2611.01181},
|
| 85 |
+
archivePrefix={arXiv},
|
| 86 |
+
primaryClass={cs.SE},
|
| 87 |
+
url={https://arxiv.org/abs/2611.01181},
|
| 88 |
+
}
|
| 89 |
+
```
|
build.py
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Select foresight-swe-mini and reproduce every number on the card.
|
| 2 |
+
|
| 3 |
+
python build.py verified.jsonl
|
| 4 |
+
|
| 5 |
+
verified.jsonl is data/verified.jsonl from shaswat123/Foresight-SWE. Writes
|
| 6 |
+
data/tasks.jsonl, data/leaderboard.csv and data/metrics.json. Upstream publishes
|
| 7 |
+
totals and per-model breakdowns only, so accuracy is simulated, not measured.
|
| 8 |
+
"""
|
| 9 |
+
import collections as C, csv, json, math, sys
|
| 10 |
+
import numpy as np
|
| 11 |
+
from scipy.stats import spearmanr
|
| 12 |
+
|
| 13 |
+
rows = [json.loads(l) for l in open(sys.argv[1])]
|
| 14 |
+
sizes = json.load(open("data/image_sizes.json"))
|
| 15 |
+
L = lambda v: json.loads(v) if isinstance(v, str) else (v or [])
|
| 16 |
+
N, K = len(rows), 15
|
| 17 |
+
col = lambda k: np.array([r[k] for r in rows])
|
| 18 |
+
ids, repo, lang, d1, d2, fm, tt, sec = (col(k) for k in
|
| 19 |
+
("instance_id", "repo", "language", "pr1_difficulty", "difficulty", "failure_mode", "pr1_task_type", "security"))
|
| 20 |
+
sev = np.array(["minor" if r["severity"] == "minor" else "major" for r in rows])
|
| 21 |
+
count = lambda k: np.array([len(L(r[k])) for r in rows])
|
| 22 |
+
p2p, f2p, ant = count("PASS_TO_PASS"), count("FAIL_TO_PASS"), count("ANTICIPATION_FAIL_TO_PASS")
|
| 23 |
+
patch_kb = np.array([len(r["patch"]) / 1e3 for r in rows])
|
| 24 |
+
tag = lambda r, k: sizes[r[k].split(":")[1]] / 1e9
|
| 25 |
+
image_gb = np.array([tag(r, "docker_image") for r in rows])
|
| 26 |
+
both_images_gb = image_gb + np.array([tag(r, "pr2base_image") for r in rows])
|
| 27 |
+
|
| 28 |
+
# Paper, Tables D.1 and D.2, in points:
|
| 29 |
+
# PR-1 easy/medium/hard, PR-2 easy/medium/hard, minor/major, loud/silent.
|
| 30 |
+
MODELS = ["Qwen3.8 Flash Next", "GLM-5.3 Flash", "DeepSeek-V4 Flash", "GPT-5.6 Sol", "GPT-5.6 Terra",
|
| 31 |
+
"GPT-5.6 Luna", "Claude Opus 5", "Claude Sonnet 5", "Qwen3.5-397B-A17B", "Qwen3.8-27B", "Qwen3.5-27B"]
|
| 32 |
+
RESOLVE = np.array([
|
| 33 |
+
[95.7, 97.4, 85.2, 91.2, 98.1, 85.7, 91.6, 92.2, 92.8, 91.5], [76.6, 80.5, 83.0, 73.6, 90.4, 91.4, 79.5, 81.4, 80.7, 80.6],
|
| 34 |
+
[68.1, 59.7, 52.3, 55.2, 69.2, 54.3, 59.0, 58.1, 61.4, 56.6], [93.6, 81.8, 81.8, 80.0, 90.4, 91.4, 88.0, 82.2, 90.4, 80.6],
|
| 35 |
+
[85.1, 79.2, 64.8, 76.8, 71.2, 71.4, 77.1, 72.9, 83.1, 69.0], [87.2, 76.6, 64.8, 72.0, 76.9, 77.1, 74.7, 73.6, 78.3, 71.3],
|
| 36 |
+
[85.1, 74.0, 77.3, 74.4, 88.5, 74.3, 77.1, 78.3, 78.3, 77.5], [76.6, 57.1, 53.4, 56.8, 65.4, 62.9, 62.7, 58.1, 65.1, 56.6],
|
| 37 |
+
[46.8, 23.4, 6.8, 22.4, 23.1, 17.1, 24.1, 20.2, 24.1, 20.2], [53.2, 27.3, 9.1, 25.6, 28.8, 20.0, 25.3, 25.6, 26.5, 24.8],
|
| 38 |
+
[38.3, 23.4, 3.4, 17.6, 25.0, 11.4, 18.1, 18.6, 16.9, 19.4]]) / 100
|
| 39 |
+
FRR = np.array([
|
| 40 |
+
[27.7, 31.2, 8.0, 28.8, 15.4, 0.0, 20.5, 20.9, 25.3, 17.8], [17.0, 14.3, 5.7, 12.0, 15.4, 2.9, 13.3, 10.1, 15.7, 8.5],
|
| 41 |
+
[21.3, 29.9, 8.0, 21.6, 23.1, 2.9, 24.1, 15.5, 24.1, 15.5], [21.3, 23.4, 12.5, 24.8, 15.4, 0.0, 18.1, 18.6, 20.5, 17.1],
|
| 42 |
+
[25.5, 16.9, 8.0, 20.8, 9.6, 2.9, 18.1, 13.2, 18.1, 13.2], [23.4, 23.4, 6.8, 20.8, 17.3, 0.0, 18.1, 15.5, 20.5, 14.0],
|
| 43 |
+
[38.3, 26.0, 15.9, 28.0, 30.8, 2.9, 33.7, 18.6, 32.5, 19.4], [21.3, 20.8, 11.4, 19.2, 19.2, 5.7, 22.9, 13.2, 21.7, 14.0],
|
| 44 |
+
[10.6, 11.7, 1.1, 8.8, 5.8, 2.9, 10.8, 4.7, 9.6, 5.4], [12.8, 10.4, 2.3, 8.8, 7.7, 2.9, 9.6, 6.2, 10.8, 5.4],
|
| 45 |
+
[10.6, 9.1, 1.1, 7.2, 7.7, 0.0, 7.2, 5.4, 4.8, 7.0]]) / 100
|
| 46 |
+
FULL_FRR = np.array([20.75, 11.32, 18.87, 18.40, 15.09, 16.51, 24.53, 16.98, 7.08, 7.55, 6.13])
|
| 47 |
+
FULL_RESOLVE = np.array([91.98, 80.66, 58.49, 84.43, 74.53, 74.06, 77.83, 59.91, 21.70, 25.47, 18.40])
|
| 48 |
+
|
| 49 |
+
X = np.array([d1 == "easy", d1 == "medium", d1 == "hard", d2 == "easy", d2 == "medium", d2 == "hard",
|
| 50 |
+
sev == "minor", sev == "major", fm == "loud", fm == "silent"], float).T
|
| 51 |
+
XX = np.c_[np.ones(N), X[:, [0, 1, 3, 4, 6, 8]]]
|
| 52 |
+
sig = lambda z: 1 / (1 + np.exp(-z))
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
def fit(margin):
|
| 56 |
+
"""Additive logit whose per-group means match one model's table row."""
|
| 57 |
+
counts = margin * X.sum(0)
|
| 58 |
+
t = np.r_[counts[:3].sum(), counts[[0, 1, 3, 4, 6, 8]]]
|
| 59 |
+
b = np.zeros(XX.shape[1])
|
| 60 |
+
b[0] = math.log((t[0] / N + 1e-3) / (1 - t[0] / N + 1e-3))
|
| 61 |
+
for _ in range(200):
|
| 62 |
+
p = sig(XX @ b)
|
| 63 |
+
H = (XX * (p * (1 - p))[:, None]).T @ XX + 1e-3 * np.eye(len(b))
|
| 64 |
+
b += 0.5 * np.linalg.solve(H, t - XX.T @ p)
|
| 65 |
+
return b
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
bF = np.array([fit(m) for m in FRR])
|
| 69 |
+
pF, pR = sig(XX @ bF.T), sig(XX @ np.array([fit(m) for m in RESOLVE]).T)
|
| 70 |
+
|
| 71 |
+
feats = np.c_[X, *[(lang == l) * 1. for l in ("python", "javascript", "typescript", "go")],
|
| 72 |
+
(tt == "feature") * 1., (tt == "bug") * 1., sec * 1.,
|
| 73 |
+
(repo == "sveltejs/svelte") * 1., (repo == "django/django") * 1.]
|
| 74 |
+
Z = np.c_[np.log10(p2p + 1), np.log10(patch_kb + 1), np.log10(ant + 1)]
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
def objective(S):
|
| 78 |
+
return (((feats[S].mean(0) - feats.mean(0)) ** 2).sum()
|
| 79 |
+
+ ((pF[S].mean(0) - pF.mean(0)) ** 2).sum() * 8 + ((pR[S].mean(0) - pR.mean(0)) ** 2).sum() * 2
|
| 80 |
+
+ (((Z[S].mean(0) - Z.mean(0)) / Z.std(0)) ** 2).sum() * .02)
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
def search(pool, seed, iters=25000):
|
| 84 |
+
r = np.random.default_rng(seed)
|
| 85 |
+
S = list(r.choice(pool, K, replace=False))
|
| 86 |
+
over = lambda s: any(v > max(1, math.ceil((repo == rp).mean() * K)) for rp, v in C.Counter(repo[s]).items())
|
| 87 |
+
v, T = objective(S) + over(S), .002
|
| 88 |
+
for _ in range(iters):
|
| 89 |
+
i, o = r.integers(K), r.choice(pool)
|
| 90 |
+
if o in S:
|
| 91 |
+
continue
|
| 92 |
+
S2 = S.copy()
|
| 93 |
+
S2[i] = o
|
| 94 |
+
v2 = objective(S2) + over(S2)
|
| 95 |
+
if v2 < v or r.random() < math.exp(-(v2 - v) / max(T, 1e-9)):
|
| 96 |
+
S, v = S2, v2
|
| 97 |
+
T *= .9995
|
| 98 |
+
return sorted(S), v
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
# Keep runs short: leave out the tasks that are slow to grade.
|
| 102 |
+
pool = np.where((p2p <= 2000) & (ant <= 20) & (f2p <= 100) & (patch_kb <= 60) & (both_images_gb <= 3.5))[0]
|
| 103 |
+
S = min((search(pool, s) for s in range(8)), key=lambda x: x[1])[0]
|
| 104 |
+
|
| 105 |
+
|
| 106 |
+
def calibrate(lin, target):
|
| 107 |
+
a, b = -8., 8.
|
| 108 |
+
for _ in range(40):
|
| 109 |
+
c = (a + b) / 2
|
| 110 |
+
a, b = (c, b) if sig(lin + c).mean() < target else (a, c)
|
| 111 |
+
return c
|
| 112 |
+
|
| 113 |
+
|
| 114 |
+
def simulate(sd, reps=500, seed=7):
|
| 115 |
+
"""Shared per-task difficulty (sd, logits) plus per-model noise, on top of the fit."""
|
| 116 |
+
rng, out = np.random.default_rng(seed), C.defaultdict(list)
|
| 117 |
+
for _ in range(reps):
|
| 118 |
+
lin = XX @ bF.T + rng.normal(0, sd, N)[:, None] + rng.normal(0, .5, (N, 11))
|
| 119 |
+
for m in range(11):
|
| 120 |
+
lin[:, m] += calibrate(lin[:, m], FULL_FRR[m] / 100)
|
| 121 |
+
Y = (rng.random((N, 11)) < sig(lin)) * 1.
|
| 122 |
+
full = Y.mean(0)
|
| 123 |
+
designs = {f"random {k}": rng.choice(N, k, replace=False) for k in (10, 15, 20, 30, 60, 100)}
|
| 124 |
+
designs["foresight-swe-mini"] = np.array(S)
|
| 125 |
+
for name, D in designs.items():
|
| 126 |
+
e = Y[D].mean(0)
|
| 127 |
+
out[name, "error_points"].append(np.abs(e - full).mean() * 100)
|
| 128 |
+
for gap in (.05, .10):
|
| 129 |
+
pairs = [(a, b) for a in range(11) for b in range(a + 1, 11) if abs(full[a] - full[b]) >= gap]
|
| 130 |
+
out[name, f"pairs_{int(gap * 100)}pt"].append(
|
| 131 |
+
sum((e[a] - e[b]) * (full[a] - full[b]) > 0 for a, b in pairs) / max(len(pairs), 1) * 100)
|
| 132 |
+
table = C.defaultdict(dict)
|
| 133 |
+
for (name, metric), v in out.items():
|
| 134 |
+
table[name][metric] = round(float(np.mean(v)), 1)
|
| 135 |
+
return table
|
| 136 |
+
|
| 137 |
+
|
| 138 |
+
keep = ("instance_id", "repo", "language", "earlier_pr", "later_pr", "pr1_difficulty", "difficulty", "severity",
|
| 139 |
+
"failure_mode", "pr1_task_type", "security", "docker_image")
|
| 140 |
+
with open("data/tasks.jsonl", "w") as f:
|
| 141 |
+
for i in S:
|
| 142 |
+
row = {k: rows[i][k] for k in keep}
|
| 143 |
+
row.update(n_fail_to_pass=int(f2p[i]), n_anticipation=int(ant[i]), n_pass_to_pass=int(p2p[i]),
|
| 144 |
+
image_gb=round(float(image_gb[i]), 2))
|
| 145 |
+
f.write(json.dumps(row) + "\n")
|
| 146 |
+
with open("data/leaderboard.csv", "w", newline="") as f:
|
| 147 |
+
w = csv.writer(f)
|
| 148 |
+
w.writerow(["model", "resolve_all_212", "frr_all_212", "predicted_frr_on_mini"])
|
| 149 |
+
for m, name in enumerate(MODELS):
|
| 150 |
+
w.writerow([name, FULL_RESOLVE[m], FULL_FRR[m], round(float(pF[S].mean(0)[m] * 100), 1)])
|
| 151 |
+
mix = dict(language=lang, pr1_difficulty=d1, pr2_difficulty=d2, severity=sev, detectability=fm, task_type=tt, security=sec)
|
| 152 |
+
metrics = dict(
|
| 153 |
+
n_pool=int(len(pool)), image_gb=round(float(image_gb[S].sum()), 1), max_pass_to_pass=int(p2p[S].max()),
|
| 154 |
+
repos=len(set(repo[S])),
|
| 155 |
+
predicted_frr_max_error=round(float(np.abs(pF[S].mean(0) - pF.mean(0)).max() * 100), 1),
|
| 156 |
+
predicted_resolve_max_error=round(float(np.abs(pR[S].mean(0) - pR.mean(0)).max() * 100), 1),
|
| 157 |
+
variance_explained_frr=[round(float(x), 3) for x in pF.var(0) / (pF.mean(0) * (1 - pF.mean(0)))],
|
| 158 |
+
spearman_resolve_frr_all=round(float(spearmanr(FULL_RESOLVE, FULL_FRR)[0]), 2),
|
| 159 |
+
mix={k: dict(mini=dict(C.Counter(str(x) for x in v[S])),
|
| 160 |
+
proportional={str(a): round(b / N * K, 1) for a, b in C.Counter(v.tolist()).items()})
|
| 161 |
+
for k, v in mix.items()},
|
| 162 |
+
simulation={str(sd): simulate(sd) for sd in (.5, 1, 1.5)})
|
| 163 |
+
json.dump(metrics, open("data/metrics.json", "w"), indent=1)
|
| 164 |
+
print(" ".join(str(ids[i]) for i in S))
|
data/image_sizes.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"inst-prometheus__9324-9421-pr2base": 1439259427, "inst-prometheus__9324-9421-pr1": 1439589842, "inst-prometheus__18206-18845-pr1": 1737031282, "inst-prometheus__18206-18845-pr2base": 1761190226, "inst-prometheus__17707-17828-pr2base": 1579536053, "inst-prometheus__17707-17828-pr1": 1579672362, "inst-prometheus__17631-17731-pr2base": 1556441854, "inst-prometheus__17631-17731-pr1": 1556372449, "inst-prometheus__17469-17863-pr2base": 1579616246, "inst-prometheus__17469-17863-pr1": 1579537843, "inst-prometheus__16457-17353-pr2base": 1549115775, "inst-prometheus__16457-17353-pr1": 1518955420, "inst-prometheus__16249-16713-pr2base": 1487132281, "inst-prometheus__16249-16478-pr2base": 1487037162, "inst-prometheus__16249-16713-pr1": 1484270498, "inst-prometheus__16249-16478-pr1": 1484245278, "inst-prometheus__14769-16340-pr2base": 1449095009, "inst-prometheus__14769-16340-pr1": 1343833407, "inst-prometheus__13583-14446-pr2base": 1359650240, "inst-prometheus__13583-14446-pr1": 1400347298, "inst-prometheus__13001-13190-pr2base": 1377474720, "inst-prometheus__12350-12554-pr1": 1379059587, "inst-prometheus__13001-13190-pr1": 1376973618, "inst-prometheus__12350-12554-pr2base": 1430327095, "inst-prometheus__10490-14654-pr1": 1359888661, "inst-helm__31176-35205-pr2base": 1109338514, "inst-helm__31176-35205-pr1": 1011568869, "inst-prometheus__10490-14654-pr2base": 1342182773, "inst-gitea__38039-38170-pr2base": 2737025414, "inst-gitea__38039-38170-pr1": 2734830415, "inst-gin__4295-4373-pr2base": 448200207, "inst-gin__4295-4373-pr1": 449254808, "inst-caddy__7265-7463-pr2base": 1149649958, "inst-caddy__7265-7463-pr1": 1057646780, "inst-argocd__28815-29350-pr1": 2228050048, "inst-argocd__28815-29350-pr2base": 2228186872, "inst-pandas__56650-58052-pr2base": 834114634, "inst-pandas__56650-58052-pr1": 856087104, "inst-pandas__56290-57388-pr2base": 847142260, "inst-pandas__56290-57388-pr1": 809942769, "inst-pandas__51307-51674-pr2base": 864838694, "inst-pandas__51307-51674-pr1": 918872757, "inst-svelte__17639-17737-pr2base": 406325205, "inst-svelte__17639-17737-pr1": 405837583, "inst-pydantic__7347-7729-pr2base": 682484252, "inst-pydantic__7347-7729-pr1": 682184672, "inst-sklearn__22002-22428-pr1": 725152900, "inst-sklearn__22002-22428-pr2base": 802164236, "inst-sklearn__20531-21915-pr1": 663187513, "inst-sklearn__20531-21915-pr2base": 709127944, "inst-sklearn__19916-25274-pr1": 731354902, "inst-sklearn__19916-25274-pr2base": 611576792, "inst-xarray__9524-11049-pr2base": 662863232, "inst-xarray__9524-11049-pr1": 652407972, "inst-xarray__8991-10442-pr1": 373600879, "inst-xarray__8991-10442-pr2base": 372856224, "inst-xarray__7206-8422-pr1": 615691901, "inst-xarray__7206-8422-pr2base": 563999937, "inst-xarray__5692-6992-pr2base": 634741941, "inst-xarray__5692-6992-pr1": 644798365, "inst-xarray__5233-10268-pr2base": 649293522, "inst-xarray__5233-10268-pr1": 654597574, "inst-xarray__4687-6461-pr2base": 656991204, "inst-xarray__4687-6461-pr1": 656938277, "inst-xarray__10268-10544-pr2base": 645707789, "inst-xarray__10268-10544-pr1": 648581257, "inst-vuecore__13560-14182-pr1": 651147253, "inst-vuecore__13560-14182-pr2base": 753213033, "inst-vuecore__12393-14545-pr2base": 622385629, "inst-vuecore__12393-14545-pr1": 622381280, "inst-vuecore__11907-12262-pr2base": 654924919, "inst-vuecore__11907-12262-pr1": 646153439, "inst-vuecore__11739-11784-pr2base": 639990358, "inst-vuecore__11861-13900-pr1": 646152347, "inst-vuecore__11739-11784-pr1": 639256298, "inst-vuecore__11861-13900-pr2base": 656305161, "inst-vuecore__11722-14327-pr2base": 624708151, "inst-vuecore__11722-14327-pr1": 639258781, "inst-vuecore__11574-11629-pr2base": 639454979, "inst-vuecore__11574-11629-pr1": 638804722, "inst-vuecore__10706-12993-pr2base": 655050061, "inst-vuecore__10397-11813-pr2base": 642827956, "inst-vuecore__10706-12993-pr1": 572629272, "inst-vuecore__10397-11813-pr1": 573502932, "inst-vite__22642-23101-pr2base": 803830488, "inst-vite__22642-23101-pr1": 791712171, "inst-vite__18857-20502-pr2base": 799073765, "inst-vite__18857-20502-pr1": 759668574, "inst-vite__18422-19300-pr1": 659345861, "inst-vite__18422-19300-pr2base": 756989839, "inst-vite__18329-22829-pr2base": 794168031, "inst-vite__18329-22829-pr1": 661094509, "inst-vite__18242-19661-pr2base": 765092749, "inst-vite__18242-19661-pr1": 661675541, "inst-vite__18092-20554-pr2base": 798546736, "inst-vite__18092-20554-pr1": 656457065, "inst-vite__17446-18170-pr2base": 661902971, "inst-vite__14521-19004-pr2base": 755445173, "inst-vite__14521-19004-pr1": 650871643, "inst-vite__17446-18170-pr1": 629347509, "inst-urllib3__2565-3428-pr2base": 247682868, "inst-urllib3__2565-3428-pr1": 237088730, "inst-tomlkit__151-236-pr2base": 212096588, "inst-tomlkit__151-236-pr1": 214180009, "inst-svelte__9962-11183-pr2base": 517474879, "inst-svelte__9962-11183-pr1": 511198744, "inst-svelte__9907-10071-pr2base": 511473331, "inst-svelte__9907-10071-pr1": 511119931, "inst-svelte__9844-10119-pr2base": 511510874, "inst-svelte__9844-10119-pr1": 511110136, "inst-svelte__9826-10786-pr2base": 508945031, "inst-svelte__9826-10786-pr1": 511106858, "inst-svelte__9799-10543-pr2base": 508526377, "inst-svelte__9799-10543-pr1": 511109319, "inst-svelte__18273-18289-pr2base": 411095887, "inst-svelte__18273-18289-pr1": 409762797, "inst-svelte__17407-17943-pr2base": 406433854, "inst-svelte__17407-17943-pr1": 404144788, "inst-svelte__17258-17819-pr2base": 406419876, "inst-svelte__17258-17819-pr1": 411944295, "inst-svelte__17137-17676-pr2base": 406285039, "inst-svelte__17137-17676-pr1": 411698954, "inst-svelte__17061-17158-pr2base": 412684814, "inst-svelte__17061-17158-pr1": 411696269, "inst-svelte__17038-17528-pr1": 411705316, "inst-svelte__17038-17528-pr2base": 405233461, "inst-svelte__17004-17061-pr2base": 412688817, "inst-svelte__17004-17061-pr1": 411696621, "inst-svelte__16971-17162-pr2base": 406431194, "inst-svelte__16971-17162-pr1": 411623849, "inst-svelte__16919-16965-pr2base": 405607680, "inst-svelte__16919-16965-pr1": 404618415, "inst-svelte__16866-16944-pr2base": 405596808, "inst-svelte__16866-16944-pr1": 404618216, "inst-svelte__16060-16176-pr2base": 403854696, "inst-svelte__16060-16176-pr1": 402944289, "inst-svelte__15961-16481-pr2base": 404017579, "inst-svelte__15961-16481-pr1": 403153506, "inst-svelte__15844-17389-pr2base": 405199812, "inst-svelte__15844-17389-pr1": 402946773, "inst-svelte__15820-17036-pr1": 402933464, "inst-svelte__15820-17036-pr2base": 412683337, "inst-svelte__15352-15396-pr2base": 399861989, "inst-svelte__15352-15396-pr1": 399522635, "inst-svelte__15000-16021-pr2base": 403829842, "inst-svelte__15000-16021-pr1": 402927500, "inst-svelte__14922-14973-pr2base": 399586671, "inst-svelte__14922-14973-pr1": 399144659, "inst-svelte__14273-17925-pr2base": 406429739, "inst-svelte__14273-17925-pr1": 409059549, "inst-svelte__14211-16091-pr1": 409047266, "inst-svelte__14211-16091-pr2base": 403840911, "inst-svelte__13824-13999-pr2base": 409344299, "inst-svelte__13824-13999-pr1": 408770650, "inst-svelte__13601-16209-pr2base": 403842266, "inst-svelte__13601-16209-pr1": 466953026, "inst-svelte__13568-14229-pr2base": 409354978, "inst-svelte__13568-14229-pr1": 466943876, "inst-svelte__13492-15849-pr2base": 403804215, "inst-svelte__13492-15849-pr1": 466948077, "inst-svelte__13075-13535-pr2base": 467480410, "inst-svelte__13075-13535-pr1": 466907088, "inst-svelte__12810-15446-pr2base": 399725511, "inst-svelte__12810-15446-pr1": 468855376, "inst-svelte__12780-12949-pr2base": 468919699, "inst-svelte__12780-12949-pr1": 468854246, "inst-svelte__12744-15792-pr1": 468860966, "inst-svelte__12744-15792-pr2base": 403845727, "inst-svelte__12563-12591-pr2base": 469297085, "inst-svelte__12563-12591-pr1": 468838007, "inst-svelte__12500-12544-pr2base": 469490775, "inst-svelte__12500-12544-pr1": 468832817, "inst-svelte__12445-14347-pr2base": 409361245, "inst-svelte__12445-14347-pr1": 468827907, "inst-svelte__12215-12418-pr2base": 469278506, "inst-svelte__12215-12418-pr1": 468342467, "inst-svelte__12014-12024-pr2base": 488353473, "inst-svelte__12014-12024-pr1": 487929175, "inst-svelte__11438-11490-pr2base": 517587627, "inst-svelte__11438-11490-pr1": 517192700, "inst-svelte__11348-16278-pr1": 517148027, "inst-svelte__11348-16278-pr2base": 403868145, "inst-svelte__11238-14813-pr1": 517143949, "inst-svelte__11238-14813-pr2base": 399784844, "inst-svelte__11184-12348-pr1": 517142502, "inst-svelte__11184-12348-pr2base": 468634263, "inst-svelte__10656-11578-pr2base": 517595197, "inst-svelte__10656-11578-pr1": 508203172, "inst-svelte__10523-12345-pr2base": 468636312, "inst-svelte__10523-12345-pr1": 508196236, "inst-svelte__10464-10673-pr2base": 508548513, "inst-svelte__10464-10673-pr1": 508217897, "inst-svelte__10333-11237-pr2base": 517493501, "inst-svelte__10333-11237-pr1": 504786417, "inst-starlette__2697-2761-pr1": 218818613, "inst-starlette__2697-2761-pr2base": 218822518, "inst-starlette__1220-1314-pr1": 272450821, "inst-starlette__1220-1314-pr2base": 272707909, "inst-sqlglot__7467-7491-pr2base": 274413825, "inst-sqlglot__7467-7491-pr1": 274411301, "inst-sqlglot__7191-7211-pr1": 355045653, "inst-sqlglot__7191-7211-pr2base": 362271891, "inst-sqlglot__7160-7310-pr1": 274350532, "inst-sqlglot__7160-7310-pr2base": 274387430, "inst-sqlglot__7151-7197-pr2base": 274364486, "inst-sqlglot__7151-7197-pr1": 274354812, "inst-sqlglot__6923-7417-pr1": 274328063, "inst-sqlglot__6923-7417-pr2base": 274403739, "inst-sqlglot__6451-7549-pr2base": 362192300, "inst-sqlglot__6451-7549-pr1": 365655722, "inst-sqlglot__5493-7311-pr2base": 274389715, "inst-sqlglot__5493-7311-pr1": 273983195, "inst-sqlglot__5403-7127-pr1": 273952534, "inst-sqlglot__5403-7127-pr2base": 274344944, "inst-sqlfluff__4518-6010-pr2base": 314545445, "inst-sqlfluff__4518-6010-pr1": 309665552, "inst-sklearn__32747-32828-pr2base": 794828979, "inst-sklearn__32747-32828-pr1": 760500062, "inst-sklearn__30763-31528-pr2base": 794826561, "inst-sklearn__30763-31528-pr1": 795200748, "inst-sklearn__30708-33868-pr2base": 697786061, "inst-sklearn__30708-33868-pr1": 745600922, "inst-sklearn__29136-34224-pr2base": 735323295, "inst-sklearn__29136-34224-pr1": 803594616, "inst-sklearn__26016-26602-pr2base": 780175232, "inst-sklearn__26016-26602-pr1": 678003752, "inst-scipy__22897-23091-pr2base": 1204228105, "inst-scipy__22897-23091-pr1": 1292459843, "inst-scipy__22147-23681-pr1": 1550475189, "inst-scipy__22147-23681-pr2base": 1253850191, "inst-scipy__21729-23475-pr1": 1622984399, "inst-scipy__21729-23475-pr2base": 1414605874, "inst-pytest__12752-13029-pr1": 250412238, "inst-pytest__12752-13029-pr2base": 250436262, "inst-pytest__12208-12752-pr1": 250397304, "inst-pytest__12208-12752-pr2base": 250415482, "inst-pytest__10937-11991-pr1": 250293210, "inst-pytest__10937-11991-pr2base": 250367567, "inst-pytest__10758-11041-pr2base": 255261789, "inst-pytest__10758-11041-pr1": 254925386, "inst-pydantic__9128-9303-pr2base": 688343361, "inst-pydantic__9128-9303-pr1": 683095219, "inst-pydantic__8659-10070-pr1": 682501896, "inst-pydantic__8659-10070-pr2base": 682852872, "inst-pydantic__8537-8681-pr2base": 683345282, "inst-pydantic__8537-8681-pr1": 683152806, "inst-pydantic__7624-8066-pr1": 682325841, "inst-pydantic__7624-8066-pr2base": 683219326, "inst-pydantic__6981-7272-pr2base": 682286042, "inst-pydantic__6981-7272-pr1": 682466544, "inst-pydantic__6952-7899-pr2base": 682345344, "inst-pydantic__6952-7899-pr1": 682110298, "inst-pydantic__6951-9818-pr1": 682105749, "inst-pydantic__6951-9818-pr2base": 682995354, "inst-pydantic__6519-6758-pr2base": 697217577, "inst-pydantic__6519-6758-pr1": 679881715, "inst-pydantic__2557-4361-pr1": 682684601, "inst-pydantic__2557-4361-pr2base": 682783180, "inst-pydantic__11775-12398-pr1": 685082533, "inst-pydantic__11775-12398-pr2base": 684501155, "inst-pydantic__11388-12463-pr1": 701002314, "inst-pydantic__11388-12463-pr2base": 685044610, "inst-pydantic__10530-11008-pr1": 689699616, "inst-pydantic__10530-11008-pr2base": 696622098, "inst-pydantic__10417-11325-pr2base": 696425035, "inst-pydantic__10417-11325-pr1": 684318780, "inst-pydantic__10347-10358-pr1": 684872575, "inst-pydantic__10347-10358-pr2base": 685086832, "inst-prometheus__14513-14598-pr2base": 1343332048, "inst-prometheus__14513-14598-pr1": 1342505191, "inst-prometheus__14495-17135-pr1": 1375082838, "inst-prometheus__14495-17135-pr2base": 1517909322, "inst-pillow__6444-6817-pr2base": 631003524, "inst-pillow__6444-6817-pr1": 664148137, "inst-pandas__62843-65342-pr1": 788812651, "inst-pandas__62843-65342-pr2base": 759944187, "inst-pandas__62323-62402-pr2base": 737267657, "inst-pandas__62323-62402-pr1": 736694624, "inst-pandas__56321-57402-pr2base": 753058553, "inst-pandas__56321-57402-pr1": 835813259, "inst-pandas__52586-54428-pr2base": 746170490, "inst-pandas__52586-54428-pr1": 821423932, "inst-pandas__50857-54027-pr1": 819858858, "inst-pandas__50857-54027-pr2base": 844703775, "inst-pandas__50333-53855-pr2base": 796233258, "inst-pandas__50333-53855-pr1": 816783605, "inst-pandas__49775-51193-pr2base": 820580765, "inst-pandas__50316-54297-pr1": 793794869, "inst-pandas__50316-54297-pr2base": 779454818, "inst-pandas__49775-51193-pr1": 792604140, "inst-pandas__49324-49704-pr2base": 807391664, "inst-pandas__49324-49704-pr1": 898809347, "inst-pandas__47327-47774-pr2base": 813061099, "inst-pandas__47327-47774-pr1": 814680747, "inst-pandas__46141-48426-pr2base": 792597036, "inst-pandas__46141-48426-pr1": 786994220, "inst-pandas__45768-45967-pr2base": 785280981, "inst-pandas__45768-45967-pr1": 785027287, "inst-pandas__45058-51412-pr2base": 827275047, "inst-pandas__45058-51412-pr1": 786635297, "inst-pandas__44267-46798-pr2base": 791473027, "inst-pandas__44267-46798-pr1": 906958549, "inst-pandas__43256-52686-pr2base": 804110599, "inst-pandas__43060-46656-pr1": 808780788, "inst-pandas__43060-46656-pr2base": 813023623, "inst-pandas__43256-52686-pr1": 842537093, "inst-packaging__828-879-pr2base": 208416774, "inst-packaging__828-879-pr1": 208373092, "inst-numpy__25181-25267-pr2base": 716074351, "inst-numpy__25181-25267-pr1": 713091193, "inst-numpy__12065-21860-pr2base": 899020199, "inst-networkx__8386-8425-pr1": 391713362, "inst-networkx__8386-8425-pr2base": 391710536, "inst-numpy__12065-21860-pr1": 768481489, "inst-networkx__7739-8108-pr2base": 447083559, "inst-networkx__7739-8108-pr1": 445026114, "inst-n8n__20755-25390-pr2base": 1967446665, "inst-n8n__20755-25390-pr1": 1801235719, "inst-mypy__16388-16713-pr2base": 326488817, "inst-matplotlib__28104-29427-pr1": 1086718616, "inst-matplotlib__28104-29427-pr2base": 922847034, "inst-mypy__16388-16713-pr1": 326141254, "inst-httpx__2252-2671-pr2base": 270246753, "inst-httpx__2252-2671-pr1": 259562267, "inst-hono__4717-71848-pr2base": 622669549, "inst-hono__4717-71848-pr1": 713292872, "inst-hono__4291-29045-pr2base": 714510138, "inst-hono__2934-14268596-pr2base": 706858729, "inst-hono__2934-14268596-pr1": 1404111093, "inst-hono__4291-29045-pr1": 470897299, "inst-hono__2260-32869-pr2base": 1280588122, "inst-hono__2260-32869-pr1": 1279405332, "inst-hono__1714-24771-pr2base": 713300354, "inst-hono__1714-24771-pr1": 861375630, "inst-hono__1566-50710-pr2base": 841045605, "inst-hono__1428-39410-pr2base": 714437580, "inst-hono__1566-50710-pr1": 857348023, "inst-hono__1428-39410-pr1": 856024355, "inst-django__37017-37019-pr2base": 425909032, "inst-django__37017-37019-pr1": 425804860, "inst-django__36158-36252-pr1": 425961535, "inst-django__36158-36252-pr2base": 425988250, "inst-django__36149-36392-pr2base": 425817282, "inst-django__36116-36432-pr2base": 597652709, "inst-django__36149-36392-pr1": 425965083, "inst-django__36050-36522-pr2base": 597708948, "inst-django__36116-36432-pr1": 591694673, "inst-django__36050-36522-pr1": 570428707, "inst-django__35892-36949-pr2base": 597639900, "inst-django__35892-36949-pr1": 590069654, "inst-django__35859-36951-pr2base": 520788556, "inst-django__35859-36951-pr1": 589685213, "inst-django__35782-36314-pr2base": 598096697, "inst-django__35631-36411-pr2base": 597652328, "inst-django__35782-36314-pr1": 570458599, "inst-django__35631-36411-pr1": 570483687, "inst-django__35529-36783-pr2base": 425765220, "inst-django__35529-36783-pr1": 425984983, "inst-django__35303-36540-pr2base": 597655662, "inst-django__35020-35173-pr2base": 601079687, "inst-django__35303-36540-pr1": 570489832, "inst-django__35020-35173-pr1": 569604531, "inst-django__34773-34821-pr2base": 425067636, "inst-django__34773-34821-pr1": 425043489, "inst-django__34551-34798-pr2base": 425067090, "inst-django__34551-34798-pr1": 425025297, "inst-django__34429-35477-pr2base": 575855819, "inst-django__34429-35477-pr1": 569583101, "inst-django__33955-35867-pr2base": 576974096, "inst-django__33565-35973-pr2base": 595838760, "inst-django__33955-35867-pr1": 578467564, "inst-django__33565-35973-pr1": 597605112, "inst-django__33143-34849-pr2base": 581629138, "inst-django__33143-34849-pr1": 575662410, "inst-django__32539-35198-pr2base": 575828133, "inst-django__32539-35198-pr1": 571648094, "inst-django__31300-34861-pr1": 571313405, "inst-django__31300-34861-pr2base": 575595693, "inst-django__30581-34291-pr2base": 575399782, "inst-django__29725-36197-pr2base": 598323653, "inst-django__30581-34291-pr1": 606595482, "inst-django__29725-36197-pr1": 569587180, "inst-django__24870-34568-pr2base": 600751922, "inst-django__24870-34568-pr1": 578801616, "inst-django__21204-34570-pr1": 609029801, "inst-django__12090-37117-pr2base": 425903644, "inst-django__12090-37117-pr1": 425867003, "inst-django__21204-34570-pr2base": 575550438, "inst-caddy__6232-6429-pr2base": 839001018, "inst-caddy__6232-6429-pr1": 841914412, "inst-axios__5306-5353-pr2base": 289107585, "inst-axios__5306-5353-pr1": 288479832, "inst-attrs__1401-1417-pr2base": 215660810, "inst-attrs__1401-1417-pr1": 215656430, "inst-axios__10833-11029-pr1": 974497951, "inst-axios__10833-11029-pr2base": 380932541, "inst-astropy__17552-17705-pr1": 484001926, "inst-astropy__17552-17705-pr2base": 482787773, "inst-astropy__16223-18607-pr2base": 481578262, "inst-astropy__16223-18607-pr1": 453886616, "inst-astro__16967-17109-pr2base": 1091458205, "inst-astro__16967-17109-pr1": 990328041, "inst-astro__9143-61925-pr1": 712992336, "inst-astro__14169-54793-pr1": 825579374, "inst-astro__9143-61925-pr2base": 779745754, "inst-astro__14169-54793-pr2base": 813893296, "inst-aiohttp__8302-8333-pr2base": 535337107, "inst-aiohttp__8302-8333-pr1": 716488203, "inst-aiohttp__7661-12235-pr2base": 548069589, "inst-aiohttp__7781-7873-pr2base": 531018542, "inst-aiohttp__7661-12235-pr1": 530825287, "inst-aiohttp__7781-7873-pr1": 708267366, "inst-aiohttp__7665-8078-pr2base": 527802973, "inst-aiohttp__7665-8078-pr1": 527640984, "inst-aiohttp__7250-7889-pr2base": 527357231, "inst-aiohttp__11182-11729-pr1": 570018548, "inst-aiohttp__5894-6181-pr1": 697457874, "inst-aiohttp__11182-11729-pr2base": 572971097, "inst-aiohttp__11680-11727-pr1": 767446251, "inst-aiohttp__11018-11296-pr2base": 570154960, "inst-aiohttp__5894-6181-pr2base": 506604992, "inst-aiohttp__7250-7889-pr1": 719203440, "inst-aiohttp__11680-11727-pr2base": 572167447, "inst-aiohttp__11018-11296-pr1": 724338067}
|
data/leaderboard.csv
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
model,resolve_all_212,frr_all_212,predicted_frr_on_mini
|
| 2 |
+
Qwen3.8 Flash Next,91.98,20.75,21.2
|
| 3 |
+
GLM-5.3 Flash,80.66,11.32,11.3
|
| 4 |
+
DeepSeek-V4 Flash,58.49,18.87,19.4
|
| 5 |
+
GPT-5.6 Sol,84.43,18.4,19.0
|
| 6 |
+
GPT-5.6 Terra,74.53,15.09,15.2
|
| 7 |
+
GPT-5.6 Luna,74.06,16.51,16.9
|
| 8 |
+
Claude Opus 5,77.83,24.53,24.8
|
| 9 |
+
Claude Sonnet 5,59.91,16.98,17.2
|
| 10 |
+
Qwen3.5-397B-A17B,21.7,7.08,6.7
|
| 11 |
+
Qwen3.8-27B,25.47,7.55,7.4
|
| 12 |
+
Qwen3.5-27B,18.4,6.13,6.0
|
data/metrics.json
ADDED
|
@@ -0,0 +1,217 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n_pool": 158,
|
| 3 |
+
"image_gb": 11.0,
|
| 4 |
+
"max_pass_to_pass": 1872,
|
| 5 |
+
"repos": 10,
|
| 6 |
+
"predicted_frr_max_error": 0.6,
|
| 7 |
+
"predicted_resolve_max_error": 0.9,
|
| 8 |
+
"variance_explained_frr": [
|
| 9 |
+
0.132,
|
| 10 |
+
0.046,
|
| 11 |
+
0.083,
|
| 12 |
+
0.063,
|
| 13 |
+
0.064,
|
| 14 |
+
0.074,
|
| 15 |
+
0.09,
|
| 16 |
+
0.036,
|
| 17 |
+
0.061,
|
| 18 |
+
0.04,
|
| 19 |
+
0.06
|
| 20 |
+
],
|
| 21 |
+
"spearman_resolve_frr_all": 0.67,
|
| 22 |
+
"mix": {
|
| 23 |
+
"language": {
|
| 24 |
+
"mini": {
|
| 25 |
+
"python": 8,
|
| 26 |
+
"go": 2,
|
| 27 |
+
"javascript": 3,
|
| 28 |
+
"typescript": 2
|
| 29 |
+
},
|
| 30 |
+
"proportional": {
|
| 31 |
+
"python": 8.1,
|
| 32 |
+
"typescript": 2.0,
|
| 33 |
+
"javascript": 3.4,
|
| 34 |
+
"go": 1.5
|
| 35 |
+
}
|
| 36 |
+
},
|
| 37 |
+
"pr1_difficulty": {
|
| 38 |
+
"mini": {
|
| 39 |
+
"medium": 6,
|
| 40 |
+
"hard": 6,
|
| 41 |
+
"easy": 3
|
| 42 |
+
},
|
| 43 |
+
"proportional": {
|
| 44 |
+
"hard": 6.2,
|
| 45 |
+
"easy": 3.3,
|
| 46 |
+
"medium": 5.4
|
| 47 |
+
}
|
| 48 |
+
},
|
| 49 |
+
"pr2_difficulty": {
|
| 50 |
+
"mini": {
|
| 51 |
+
"medium": 4,
|
| 52 |
+
"easy": 9,
|
| 53 |
+
"hard": 2
|
| 54 |
+
},
|
| 55 |
+
"proportional": {
|
| 56 |
+
"medium": 3.7,
|
| 57 |
+
"easy": 8.8,
|
| 58 |
+
"hard": 2.5
|
| 59 |
+
}
|
| 60 |
+
},
|
| 61 |
+
"severity": {
|
| 62 |
+
"mini": {
|
| 63 |
+
"major": 9,
|
| 64 |
+
"minor": 6
|
| 65 |
+
},
|
| 66 |
+
"proportional": {
|
| 67 |
+
"major": 9.1,
|
| 68 |
+
"minor": 5.9
|
| 69 |
+
}
|
| 70 |
+
},
|
| 71 |
+
"detectability": {
|
| 72 |
+
"mini": {
|
| 73 |
+
"silent": 9,
|
| 74 |
+
"loud": 6
|
| 75 |
+
},
|
| 76 |
+
"proportional": {
|
| 77 |
+
"silent": 9.1,
|
| 78 |
+
"loud": 5.9
|
| 79 |
+
}
|
| 80 |
+
},
|
| 81 |
+
"task_type": {
|
| 82 |
+
"mini": {
|
| 83 |
+
"feature": 6,
|
| 84 |
+
"bug": 8,
|
| 85 |
+
"mixed": 1
|
| 86 |
+
},
|
| 87 |
+
"proportional": {
|
| 88 |
+
"feature": 6.2,
|
| 89 |
+
"bug": 7.9,
|
| 90 |
+
"mixed": 0.8
|
| 91 |
+
}
|
| 92 |
+
},
|
| 93 |
+
"security": {
|
| 94 |
+
"mini": {
|
| 95 |
+
"True": 1,
|
| 96 |
+
"False": 14
|
| 97 |
+
},
|
| 98 |
+
"proportional": {
|
| 99 |
+
"False": 13.7,
|
| 100 |
+
"True": 1.3
|
| 101 |
+
}
|
| 102 |
+
}
|
| 103 |
+
},
|
| 104 |
+
"simulation": {
|
| 105 |
+
"0.5": {
|
| 106 |
+
"random 10": {
|
| 107 |
+
"error_points": 8.7,
|
| 108 |
+
"pairs_5pt": 63.6,
|
| 109 |
+
"pairs_10pt": 72.0
|
| 110 |
+
},
|
| 111 |
+
"random 15": {
|
| 112 |
+
"error_points": 6.8,
|
| 113 |
+
"pairs_5pt": 72.4,
|
| 114 |
+
"pairs_10pt": 81.6
|
| 115 |
+
},
|
| 116 |
+
"random 20": {
|
| 117 |
+
"error_points": 5.9,
|
| 118 |
+
"pairs_5pt": 77.6,
|
| 119 |
+
"pairs_10pt": 86.7
|
| 120 |
+
},
|
| 121 |
+
"random 30": {
|
| 122 |
+
"error_points": 4.7,
|
| 123 |
+
"pairs_5pt": 83.8,
|
| 124 |
+
"pairs_10pt": 92.8
|
| 125 |
+
},
|
| 126 |
+
"random 60": {
|
| 127 |
+
"error_points": 3.0,
|
| 128 |
+
"pairs_5pt": 93.8,
|
| 129 |
+
"pairs_10pt": 98.6
|
| 130 |
+
},
|
| 131 |
+
"random 100": {
|
| 132 |
+
"error_points": 2.0,
|
| 133 |
+
"pairs_5pt": 98.1,
|
| 134 |
+
"pairs_10pt": 99.9
|
| 135 |
+
},
|
| 136 |
+
"foresight-swe-mini": {
|
| 137 |
+
"error_points": 6.7,
|
| 138 |
+
"pairs_5pt": 73.8,
|
| 139 |
+
"pairs_10pt": 83.6
|
| 140 |
+
}
|
| 141 |
+
},
|
| 142 |
+
"1": {
|
| 143 |
+
"random 10": {
|
| 144 |
+
"error_points": 8.8,
|
| 145 |
+
"pairs_5pt": 63.8,
|
| 146 |
+
"pairs_10pt": 72.5
|
| 147 |
+
},
|
| 148 |
+
"random 15": {
|
| 149 |
+
"error_points": 6.9,
|
| 150 |
+
"pairs_5pt": 73.0,
|
| 151 |
+
"pairs_10pt": 82.3
|
| 152 |
+
},
|
| 153 |
+
"random 20": {
|
| 154 |
+
"error_points": 6.0,
|
| 155 |
+
"pairs_5pt": 78.1,
|
| 156 |
+
"pairs_10pt": 87.1
|
| 157 |
+
},
|
| 158 |
+
"random 30": {
|
| 159 |
+
"error_points": 4.7,
|
| 160 |
+
"pairs_5pt": 84.1,
|
| 161 |
+
"pairs_10pt": 92.6
|
| 162 |
+
},
|
| 163 |
+
"random 60": {
|
| 164 |
+
"error_points": 3.0,
|
| 165 |
+
"pairs_5pt": 94.3,
|
| 166 |
+
"pairs_10pt": 99.0
|
| 167 |
+
},
|
| 168 |
+
"random 100": {
|
| 169 |
+
"error_points": 2.0,
|
| 170 |
+
"pairs_5pt": 98.3,
|
| 171 |
+
"pairs_10pt": 100.0
|
| 172 |
+
},
|
| 173 |
+
"foresight-swe-mini": {
|
| 174 |
+
"error_points": 6.8,
|
| 175 |
+
"pairs_5pt": 74.3,
|
| 176 |
+
"pairs_10pt": 83.3
|
| 177 |
+
}
|
| 178 |
+
},
|
| 179 |
+
"1.5": {
|
| 180 |
+
"random 10": {
|
| 181 |
+
"error_points": 8.7,
|
| 182 |
+
"pairs_5pt": 63.6,
|
| 183 |
+
"pairs_10pt": 72.3
|
| 184 |
+
},
|
| 185 |
+
"random 15": {
|
| 186 |
+
"error_points": 6.9,
|
| 187 |
+
"pairs_5pt": 73.8,
|
| 188 |
+
"pairs_10pt": 83.2
|
| 189 |
+
},
|
| 190 |
+
"random 20": {
|
| 191 |
+
"error_points": 6.0,
|
| 192 |
+
"pairs_5pt": 79.1,
|
| 193 |
+
"pairs_10pt": 88.2
|
| 194 |
+
},
|
| 195 |
+
"random 30": {
|
| 196 |
+
"error_points": 4.7,
|
| 197 |
+
"pairs_5pt": 85.3,
|
| 198 |
+
"pairs_10pt": 93.4
|
| 199 |
+
},
|
| 200 |
+
"random 60": {
|
| 201 |
+
"error_points": 3.0,
|
| 202 |
+
"pairs_5pt": 94.8,
|
| 203 |
+
"pairs_10pt": 99.3
|
| 204 |
+
},
|
| 205 |
+
"random 100": {
|
| 206 |
+
"error_points": 2.0,
|
| 207 |
+
"pairs_5pt": 98.6,
|
| 208 |
+
"pairs_10pt": 100.0
|
| 209 |
+
},
|
| 210 |
+
"foresight-swe-mini": {
|
| 211 |
+
"error_points": 6.8,
|
| 212 |
+
"pairs_5pt": 74.0,
|
| 213 |
+
"pairs_10pt": 83.3
|
| 214 |
+
}
|
| 215 |
+
}
|
| 216 |
+
}
|
| 217 |
+
}
|
data/tasks.jsonl
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"instance_id": "aiohttp__7665-8078", "repo": "aio-libs/aiohttp", "language": "python", "earlier_pr": 7665, "later_pr": 8078, "pr1_difficulty": "medium", "difficulty": "medium", "severity": "major", "failure_mode": "silent", "pr1_task_type": "feature", "security": true, "docker_image": "docker.io/shaswatpatel123/foresight-swe:inst-aiohttp__7665-8078-pr1", "n_fail_to_pass": 2, "n_anticipation": 6, "n_pass_to_pass": 218, "image_gb": 0.53}
|
| 2 |
+
{"instance_id": "django__21204-34570", "repo": "django/django", "language": "python", "earlier_pr": 21204, "later_pr": 34570, "pr1_difficulty": "hard", "difficulty": "easy", "severity": "minor", "failure_mode": "loud", "pr1_task_type": "bug", "security": false, "docker_image": "docker.io/shaswatpatel123/foresight-swe:inst-django__21204-34570-pr1", "n_fail_to_pass": 3, "n_anticipation": 1, "n_pass_to_pass": 312, "image_gb": 0.61}
|
| 3 |
+
{"instance_id": "django__34429-35477", "repo": "django/django", "language": "python", "earlier_pr": 34429, "later_pr": 35477, "pr1_difficulty": "medium", "difficulty": "easy", "severity": "major", "failure_mode": "silent", "pr1_task_type": "feature", "security": false, "docker_image": "docker.io/shaswatpatel123/foresight-swe:inst-django__34429-35477-pr1", "n_fail_to_pass": 7, "n_anticipation": 3, "n_pass_to_pass": 164, "image_gb": 0.57}
|
| 4 |
+
{"instance_id": "pandas__49324-49704", "repo": "pandas-dev/pandas", "language": "python", "earlier_pr": 49324, "later_pr": 49704, "pr1_difficulty": "easy", "difficulty": "medium", "severity": "minor", "failure_mode": "loud", "pr1_task_type": "bug", "security": false, "docker_image": "docker.io/shaswatpatel123/foresight-swe:inst-pandas__49324-49704-pr1", "n_fail_to_pass": 39, "n_anticipation": 1, "n_pass_to_pass": 1872, "image_gb": 0.9}
|
| 5 |
+
{"instance_id": "pandas__62843-65342", "repo": "pandas-dev/pandas", "language": "python", "earlier_pr": 62843, "later_pr": 65342, "pr1_difficulty": "medium", "difficulty": "easy", "severity": "minor", "failure_mode": "loud", "pr1_task_type": "mixed", "security": false, "docker_image": "docker.io/shaswatpatel123/foresight-swe:inst-pandas__62843-65342-pr1", "n_fail_to_pass": 6, "n_anticipation": 2, "n_pass_to_pass": 752, "image_gb": 0.79}
|
| 6 |
+
{"instance_id": "prometheus__14513-14598", "repo": "prometheus/prometheus", "language": "go", "earlier_pr": 14513, "later_pr": 14598, "pr1_difficulty": "hard", "difficulty": "hard", "severity": "minor", "failure_mode": "loud", "pr1_task_type": "bug", "security": false, "docker_image": "docker.io/shaswatpatel123/foresight-swe:inst-prometheus__14513-14598-pr1", "n_fail_to_pass": 2, "n_anticipation": 1, "n_pass_to_pass": 269, "image_gb": 1.34}
|
| 7 |
+
{"instance_id": "pydantic__10347-10358", "repo": "pydantic/pydantic", "language": "python", "earlier_pr": 10347, "later_pr": 10358, "pr1_difficulty": "easy", "difficulty": "easy", "severity": "minor", "failure_mode": "loud", "pr1_task_type": "bug", "security": false, "docker_image": "docker.io/shaswatpatel123/foresight-swe:inst-pydantic__10347-10358-pr1", "n_fail_to_pass": 1, "n_anticipation": 1, "n_pass_to_pass": 44, "image_gb": 0.68}
|
| 8 |
+
{"instance_id": "sklearn__26016-26602", "repo": "scikit-learn/scikit-learn", "language": "python", "earlier_pr": 26016, "later_pr": 26602, "pr1_difficulty": "easy", "difficulty": "easy", "severity": "major", "failure_mode": "silent", "pr1_task_type": "feature", "security": false, "docker_image": "docker.io/shaswatpatel123/foresight-swe:inst-sklearn__26016-26602-pr1", "n_fail_to_pass": 6, "n_anticipation": 1, "n_pass_to_pass": 57, "image_gb": 0.68}
|
| 9 |
+
{"instance_id": "svelte__10656-11578", "repo": "sveltejs/svelte", "language": "javascript", "earlier_pr": 10656, "later_pr": 11578, "pr1_difficulty": "hard", "difficulty": "easy", "severity": "minor", "failure_mode": "loud", "pr1_task_type": "feature", "security": false, "docker_image": "docker.io/shaswatpatel123/foresight-swe:inst-svelte__10656-11578-pr1", "n_fail_to_pass": 4, "n_anticipation": 3, "n_pass_to_pass": 682, "image_gb": 0.51}
|
| 10 |
+
{"instance_id": "svelte__9826-10786", "repo": "sveltejs/svelte", "language": "javascript", "earlier_pr": 9826, "later_pr": 10786, "pr1_difficulty": "hard", "difficulty": "medium", "severity": "major", "failure_mode": "silent", "pr1_task_type": "feature", "security": false, "docker_image": "docker.io/shaswatpatel123/foresight-swe:inst-svelte__9826-10786-pr1", "n_fail_to_pass": 3, "n_anticipation": 2, "n_pass_to_pass": 77, "image_gb": 0.51}
|
| 11 |
+
{"instance_id": "svelte__9962-11183", "repo": "sveltejs/svelte", "language": "javascript", "earlier_pr": 9962, "later_pr": 11183, "pr1_difficulty": "hard", "difficulty": "hard", "severity": "major", "failure_mode": "silent", "pr1_task_type": "bug", "security": false, "docker_image": "docker.io/shaswatpatel123/foresight-swe:inst-svelte__9962-11183-pr1", "n_fail_to_pass": 3, "n_anticipation": 12, "n_pass_to_pass": 454, "image_gb": 0.51}
|
| 12 |
+
{"instance_id": "vite__18242-19661", "repo": "vitejs/vite", "language": "typescript", "earlier_pr": 18242, "later_pr": 19661, "pr1_difficulty": "medium", "difficulty": "easy", "severity": "major", "failure_mode": "silent", "pr1_task_type": "bug", "security": false, "docker_image": "docker.io/shaswatpatel123/foresight-swe:inst-vite__18242-19661-pr1", "n_fail_to_pass": 2, "n_anticipation": 2, "n_pass_to_pass": 49, "image_gb": 0.66}
|
| 13 |
+
{"instance_id": "vuecore__12393-14545", "repo": "vuejs/core", "language": "typescript", "earlier_pr": 12393, "later_pr": 14545, "pr1_difficulty": "medium", "difficulty": "easy", "severity": "major", "failure_mode": "silent", "pr1_task_type": "bug", "security": false, "docker_image": "docker.io/shaswatpatel123/foresight-swe:inst-vuecore__12393-14545-pr1", "n_fail_to_pass": 1, "n_anticipation": 2, "n_pass_to_pass": 35, "image_gb": 0.62}
|
| 14 |
+
{"instance_id": "xarray__5233-10268", "repo": "pydata/xarray", "language": "python", "earlier_pr": 5233, "later_pr": 10268, "pr1_difficulty": "hard", "difficulty": "easy", "severity": "major", "failure_mode": "silent", "pr1_task_type": "feature", "security": false, "docker_image": "docker.io/shaswatpatel123/foresight-swe:inst-xarray__5233-10268-pr1", "n_fail_to_pass": 66, "n_anticipation": 1, "n_pass_to_pass": 221, "image_gb": 0.65}
|
| 15 |
+
{"instance_id": "prometheus__13583-14446", "repo": "prometheus/prometheus", "language": "go", "earlier_pr": 13583, "later_pr": 14446, "pr1_difficulty": "medium", "difficulty": "medium", "severity": "critical", "failure_mode": "silent", "pr1_task_type": "bug", "security": false, "docker_image": "docker.io/shaswatpatel123/foresight-swe:inst-prometheus__13583-14446-pr1", "n_fail_to_pass": 4, "n_anticipation": 4, "n_pass_to_pass": 93, "image_gb": 1.4}
|