Skip to content

Commit a07df38

Browse files
andre15silvaclaude
andcommitted
fix(paper): wrap model and dataset names in \texttt in dataset stats table
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 24f7874 commit a07df38

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

run_paper_figures.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,11 +1272,19 @@ def build_dataset_stats_table(
12721272
r" & \#Traj.\ $\geq$15 turns & \#Traj.\ $\geq$50 turns \\" "\n"
12731273
r"\midrule" "\n"
12741274
)
1275+
_DS_LABELS = {
1276+
"Verified": r"\texttt{SWE-Bench-Verified}",
1277+
"Pro": r"\texttt{SWE-Bench-Pro}",
1278+
}
1279+
12751280
rows = []
12761281
for cfg in configs:
1282+
model_cell = r"\texttt{" + cfg["model_label"] + r"}"
1283+
dataset_cell = _DS_LABELS.get(cfg["dataset_label"],
1284+
r"\texttt{" + cfg["dataset_label"] + r"}")
12771285
if cfg.get("placeholder"):
12781286
rows.append(
1279-
f"{cfg['model_label']} & {cfg['dataset_label']} & "
1287+
f"{model_cell} & {dataset_cell} & "
12801288
r"\multicolumn{4}{c}{---} \\"
12811289
)
12821290
continue
@@ -1287,7 +1295,7 @@ def build_dataset_stats_table(
12871295
gt50 = sum(1 for s in stats if s["turns"] >= 50)
12881296

12891297
rows.append(
1290-
f"{cfg['model_label']} & {cfg['dataset_label']} & "
1298+
f"{model_cell} & {dataset_cell} & "
12911299
f"{n_traj:,} & {n_tok:,} & {gt15:,} & {gt50:,} \\\\"
12921300
)
12931301

0 commit comments

Comments
 (0)