Spaces:
Sleeping
Sleeping
Open on latest commit in live mode; cleaner chart
Browse files243 unmodified lines2442452462472482492502511 unmodified line25325425525625725825926026126226326453 unmodified lines318319320321322323324243 unmodified linesfig = Figure(figsize=(9, 2.4), dpi=110)ax = fig.add_subplot(111)if d["live_only"]:ax.bar(x, [len(g) for g in d["qnas"]], color="#c5cbf5", width=0.9, label="Test assertions added")ax.set_ylabel("Assertions\nadded")else:ax.plot(x, rolling("base_em"), color="#9aa3b5", lw=1.6, label="Base model")ax.plot(x, rolling("c2l_em"), color="#4f5bd5", lw=2.2, label="Code2LoRA (adapter at each commit)")1 unmodified lineax.axvline(t + 1, color="#22c3a6", alpha=0.18, lw=1)ax.set_ylim(0, 100)ax.set_ylabel("Exact match %\n(rolling)")ax.axvline(k + 1, color="#ff6b8b", lw=2)ax.set_xlim(0.5, max(2, len(cs)) + 0.5)ax.set_xlabel("Commit")for s in ("top", "right"):ax.spines[s].set_visible(False)ax.legend(loc="upper left" if d["live_only"] else "lower right", fontsize=8, frameon=False)fig.tight_layout()return fig53 unmodified linesdef default_commit(safe: str) -> int:d = load_repo(safe)return d["jump_targets"][0] if d["jump_targets"] else len(d["commits"]) - 1def on_repo(safe: str):243 unmodified lines2442452462472482492502511 unmodified line25325425525625725825926026126226326453 unmodified lines318319320321322323324325326243 unmodified linesfig = Figure(figsize=(9, 2.4), dpi=110)ax = fig.add_subplot(111)if d["live_only"]:ax.bar(x, [len(g) for g in d["qnas"]], color="#c5cbf5", width=0.9)ax.set_ylabel("Test assertions\nadded")else:ax.plot(x, rolling("base_em"), color="#9aa3b5", lw=1.6, label="Base model")ax.plot(x, rolling("c2l_em"), color="#4f5bd5", lw=2.2, label="Code2LoRA (adapter at each commit)")1 unmodified lineax.axvline(t + 1, color="#22c3a6", alpha=0.18, lw=1)ax.set_ylim(0, 100)ax.set_ylabel("Exact match %\n(rolling)")ax.legend(loc="lower right", fontsize=8, frameon=False)ax.axvline(k + 1, color="#ff6b8b", lw=2)ax.set_xlim(0.5, max(2, len(cs)) + 0.5)ax.set_xlabel("Commit")for s in ("top", "right"):ax.spines[s].set_visible(False)fig.tight_layout()return fig53 unmodified linesdef default_commit(safe: str) -> int:d = load_repo(safe)if not d["jump_targets"]:return len(d["commits"]) - 1return d["jump_targets"][-1] if d["live_only"] else d["jump_targets"][0]def on_repo(safe: str):
app.py+6-4