Publish Rootformer-Code v25 vs Qwen4-35B-A3B live interactive HTML5/SVG Showcase Space
Browse filesFiles changed (10)
- README.md+18-6
- glassmorphism_ui_html_ours.htmlAdded+426
- glassmorphism_ui_html_qwen4.htmlAdded+360
- index.html+631-18
- pelican_ours.htmlAdded+23
- pelican_qwen4.htmlAdded+23
- pelican_svg_ours.svgAdded
- pelican_svg_qwen4.svgAdded
- spinning_hexagon_html_ours.htmlAdded+356
- spinning_hexagon_html_qwen4.htmlAdded+262
12345678910---title: Rootformer Code V25 Showcaseemoji: 📉colorFrom: greencolorTo: bluesdk: staticpinned: false---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference12345678910111213141516171819202122---title: Rootformer-Code v25 (Stage 25.2 + KhalilSWE v3.6) vs Qwen4-35B-A3B Live Showcaseemoji: ⚡colorFrom: bluecolorTo: indigosdk: staticpinned: truelicense: apache-2.0models:- enver/rootformer-code-v25-khalilswe-27bdatasets:- enver/KhalilAlgoWorksshort_description: Rootformer v25 vs Qwen4-35B-A3B Live HTML5 & SWE Showcase---# Rootformer-Code v25 (`Stage 25.2` + `KhalilSWE v3.6`) vs. `Qwen4-35B-A3B` — Live Interactive ShowcaseRun the raw one-shot HTML5 Canvas physics, Glassmorphism dashboard, and SVG demos generated by **Rootformer-Code v25 (`Stage 25.2` 27B)** side-by-side against Alibaba's **`Qwen4-35B-A3B`** directly in your browser.- **Model Weights & `KhalilSWE v3.6` Repo:** [`enver/rootformer-code-v25-khalilswe-27b`](https://huggingface.co/enver/rootformer-code-v25-khalilswe-27b)- **Headline Real-Repo Score (`SWE-bench Verified 100`, `76` unseen):** **`62.0%`** (`62/100` via `GH-03 Istiṣḥāb`; `60.0%` single-shot `Base + KhalilSWE v3.6`; `6.2×` over vanilla `Qwen3.8-27B + ReAct = 10.0%`).- **Unseen `SWE-HO6` Head-to-Head (`3` Django + `3` SymPy):** Our `27B + KhalilSWE v3.6` **`4/6 (66.7%)`** vs vanilla `Qwen4-35B-A3B + ReAct` **`3/6 (50.0%)`**, and **`Qwen4-35B-A3B` + our `KhalilSWE v3.6` = `5/6 (83.3%)`**!
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Agent Profile & Telemetry</title><style> * { margin: 0; padding: 0; box-sizing: border-box; }
:root { --bg: #07090f; --glass: rgba(255, 255, 255, 0.05); --glass-strong: rgba(255, 255, 255, 0.08); --stroke: rgba(255, 255, 255, 0.10); --text: #e8ecf4; --muted: #8b93a7; --accent: #6ee7ff; --accent2: #a78bfa; --green: #4ade80; --amber: #fbbf24; --pink: #f472b6; }
html, body { width: 100%; height: 100%; background: var(--bg); font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--text); overflow: hidden; }
/* ---------- Gradient mesh background ---------- */ .mesh { position: fixed; inset: 0; z-index: 0; background: radial-gradient(600px 400px at 12% 8%, rgba(110, 231, 255, 0.16), transparent 60%), radial-gradient(700px 500px at 88% 15%, rgba(167, 139, 250, 0.18), transparent 60%), radial-gradient(600px 500px at 75% 90%, rgba(244, 114, 182, 0.12), transparent 60%), radial-gradient(500px 400px at 20% 85%, rgba(74, 222, 128, 0.10), transparent 60%), #07090f; filter: saturate(1.1); } .mesh::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%); }
/* ---------- Stage ---------- */ .stage { position: relative; z-index: 1; width: 900px; height: 650px; margin: 0 auto; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
/* ---------- Glass card base ---------- */ .glass { background: var(--glass); border: 1px solid var(--stroke); border-radius: 18px; backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
/* ---------- Header ---------- */ .header { display: flex; align-items: center; gap: 18px; padding: 18px 22px; position: relative; overflow: hidden; } .header::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(110,231,255,0.6), rgba(167,139,250,0.6), transparent); }
.avatar-wrap { position: relative; flex-shrink: 0; } .avatar { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; font-size: 30px; background: linear-gradient(135deg, rgba(110,231,255,0.25), rgba(167,139,250,0.35)), rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); box-shadow: 0 0 24px rgba(110, 231, 255, 0.25); } .status-dot { position: absolute; bottom: -4px; right: -4px; width: 18px; height: 18px; border-radius: 50%; background: var(--green); border: 3px solid #0b0e16; box-shadow: 0 0 10px rgba(74, 222, 128, 0.8); animation: pulse 2s infinite; } @keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); } 50% { box-shadow: 0 0 0 6px rgba(74,222,128,0); } }
.id-block { flex: 1; min-width: 0; } .name-row { display: flex; align-items: center; gap: 8px; } .agent-name { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; background: linear-gradient(90deg, #fff, #b9c4dd); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; } .verified { width: 20px; height: 20px; flex-shrink: 0; filter: drop-shadow(0 0 6px rgba(110,231,255,0.6)); } .agent-sub { margin-top: 4px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .tag { padding: 2px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; background: rgba(110,231,255,0.10); border: 1px solid rgba(110,231,255,0.25); color: var(--accent); } .tag.violet { background: rgba(167,139,250,0.10); border-color: rgba(167,139,250,0.30); color: var(--accent2); }
.uptime { text-align: right; flex-shrink: 0; } .uptime .big { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--green); } .uptime .lbl { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }
/* ---------- KPI grid ---------- */ .kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; } .kpi { padding: 14px 16px; position: relative; overflow: hidden; transition: transform 0.25s ease, border-color 0.25s ease; } .kpi:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.22); } .kpi::after { content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 2px; border-radius: 2px; background: var(--kpi-color, var(--accent)); opacity: 0.8; } .kpi .k-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); font-weight: 600; } .kpi .k-value { margin-top: 8px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--kpi-color, var(--text)); } .kpi .k-delta { margin-top: 6px; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; } .k-delta.up { color: var(--green); background: rgba(74,222,128,0.10); } .k-delta.flat { color: var(--amber); background: rgba(251,191,36,0.10); } .kpi .k-spark { position: absolute; right: 10px; bottom: 10px; opacity: 0.55; }
/* ---------- Chart ---------- */ .chart-card { flex: 1; padding: 16px 20px 12px; display: flex; flex-direction: column; min-height: 0; } .chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; } .chart-title { font-size: 13px; font-weight: 700; letter-spacing: 0.02em; } .legend { display: flex; gap: 14px; font-size: 11px; color: var(--muted); } .legend span { display: inline-flex; align-items: center; gap: 6px; } .swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; } .swatch.a { background: var(--accent); box-shadow: 0 0 8px rgba(110,231,255,0.6); } .swatch.b { background: rgba(167,139,250,0.7); } .chart-body { flex: 1; min-height: 0; } .chart-body svg { width: 100%; height: 100%; display: block; }
/* ---------- PR pills ---------- */ .pr-row { display: flex; align-items: center; gap: 10px; padding: 12px 16px; } .pr-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); font-weight: 700; flex-shrink: 0; } .pills { display: flex; gap: 8px; overflow: hidden; } .pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--glass-strong); border: 1px solid var(--stroke); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); white-space: nowrap; transition: border-color 0.2s ease, transform 0.2s ease; cursor: default; } .pill:hover { border-color: rgba(110,231,255,0.45); transform: translateY(-2px); } .pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px rgba(74,222,128,0.8); } .pill .hash { color: var(--accent); } .pill .meta { color: var(--muted); font-weight: 500; }</style></head><body> <div class="mesh"></div>
<div class="stage">
<!-- ============ HEADER ============ --> <header class="glass header"> <div class="avatar-wrap"> <div class="avatar">🤖</div> <div class="status-dot" title="Online"></div> </div>
<div class="id-block"> <div class="name-row"> <span class="agent-name">Forge-7 · Autonomous SWE Agent</span> <!-- Verified badge --> <svg class="verified" viewBox="0 0 24 24" fill="none" aria-label="Verified"> <path d="M12 1.5l2.6 2 3.3-.3 1.2 3.1 3 1.5-.7 3.2 2 2.6-2 2.6.7 3.2-3 1.5-1.2 3.1-3.3-.3-2.6 2-2.6-2-3.3.3-1.2-3.1-3-1.5.7-3.2-2-2.6 2-2.6-.7-3.2 3-1.5 1.2-3.1 3.3.3 2.6-2z" fill="url(#vbGrad)" stroke="rgba(255,255,255,0.35)" stroke-width="0.6"/> <path d="M8.4 12.2l2.4 2.4 4.8-5" stroke="#06121a" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/> <defs> <linearGradient id="vbGrad" x1="0" y1="0" x2="24" y2="24"> <stop offset="0" stop-color="#6ee7ff"/> <stop offset="1" stop-color="#a78bfa"/> </linearGradient> </defs> </svg> </div> <div class="agent-sub"> <span class="tag">v4.2.1</span> <span class="tag violet">Tier-1 Autonomy</span> <span>Model: forge-coder-700b · Runtime: sandboxed-k8s · Region: us-east-1</span> </div> </div>
<div class="uptime"> <div class="big">99.98%</div> <div class="lbl">Uptime · 30d</div> </div> </header>
<!-- ============ KPI CARDS ============ --> <section class="kpis"> <div class="glass kpi" style="--kpi-color:#6ee7ff;"> <div class="k-label">Repo Solve Rate</div> <div class="k-value">87.4%</div> <span class="k-delta up">▲ 3.2 pts</span> <svg class="k-spark" width="56" height="24" viewBox="0 0 56 24"> <polyline points="0,18 8,16 16,17 24,12 32,13 40,8 48,9 56,4" fill="none" stroke="#6ee7ff" stroke-width="1.6" stroke-linecap="round"/> </svg> </div>
<div class="glass kpi" style="--kpi-color:#4ade80;"> <div class="k-label">Patch Precision</div> <div class="k-value">94.1%</div> <span class="k-delta up">▲ 1.8 pts</span> <svg class="k-spark" width="56" height="24" viewBox="0 0 56 24"> <polyline points="0,14 8,15 16,11 24,12 32,9 40,10 48,6 56,5" fill="none" stroke="#4ade80" stroke-width="1.6" stroke-linecap="round"/> </svg> </div>
<div class="glass kpi" style="--kpi-color:#fbbf24;"> <div class="k-label">ECE Calibration</div> <div class="k-value">0.031</div> <span class="k-delta flat">▼ 0.004</span> <svg class="k-spark" width="56" height="24" viewBox="0 0 56 24"> <polyline points="0,6 8,8 16,7 24,10 32,9 40,12 48,11 56,14" fill="none" stroke="#fbbf24" stroke-width="1.6" stroke-linecap="round"/> </svg> </div>
<div class="glass kpi" style="--kpi-color:#a78bfa;"> <div class="k-label">Active Params</div> <div class="k-value">700B</div> <span class="k-delta up">MoE · 92B routed</span> <svg class="k-spark" width="56" height="24" viewBox="0 0 56 24"> <polyline points="0,20 8,18 16,19 24,14 32,15 40,10 48,11 56,6" fill="none" stroke="#a78bfa" stroke-width="1.6" stroke-linecap="round"/> </svg> </div> </section>
<!-- ============ CHART ============ --> <section class="glass chart-card"> <div class="chart-head"> <div class="chart-title">Performance Comparison — Last 12 Cycles</div> <div class="legend"> <span><i class="swatch a"></i>Forge-7 (this agent)</span> <span><i class="swatch b"></i>Baseline v3.9</span> </div> </div> <div class="chart-body"></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Agent Profile — Telemetry Card</title><style> :root{ --bg:#07090f; --glass:rgba(255,255,255,.055); --glass-strong:rgba(255,255,255,.09); --stroke:rgba(255,255,255,.12); --stroke-soft:rgba(255,255,255,.07); --txt:#eef2ff; --muted:#8b93ad; --accent:#7c6cff; --accent2:#38e0c8; --accent3:#ff7ab6; --good:#3ddc97; --radius:18px; } *{margin:0;padding:0;box-sizing:border-box} html,body{width:900px;height:650px;overflow:hidden} body{ font-family:"Inter","SF Pro Display",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; background:var(--bg); color:var(--txt); position:relative; }
/* ---------- Gradient mesh background ---------- */ .mesh{position:absolute;inset:0;z-index:0;overflow:hidden} .blob{position:absolute;border-radius:50%;filter:blur(90px);opacity:.55;will-change:transform} .b1{width:420px;height:420px;background:radial-gradient(circle at 30% 30%,#5b4bff,transparent 70%);top:-140px;left:-100px;animation:drift1 14s ease-in-out infinite alternate} .b2{width:380px;height:380px;background:radial-gradient(circle at 60% 40%,#0fbfae,transparent 70%);bottom:-160px;right:-80px;animation:drift2 16s ease-in-out infinite alternate} .b3{width:300px;height:300px;background:radial-gradient(circle at 50% 50%,#ff4f9e,transparent 70%);top:38%;left:52%;opacity:.28;animation:drift3 18s ease-in-out infinite alternate} .b4{width:260px;height:260px;background:radial-gradient(circle at 50% 50%,#2b6cff,transparent 70%);bottom:-60px;left:30%;opacity:.35;animation:drift1 20s ease-in-out infinite alternate-reverse} @keyframes drift1{to{transform:translate(60px,40px) scale(1.12)}} @keyframes drift2{to{transform:translate(-50px,-30px) scale(1.08)}} @keyframes drift3{to{transform:translate(-40px,50px) scale(1.15)}} .grid-overlay{ position:absolute;inset:0;z-index:1; background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px); background-size:44px 44px; mask-image:radial-gradient(ellipse at 50% 40%,black 30%,transparent 80%); -webkit-mask-image:radial-gradient(ellipse at 50% 40%,black 30%,transparent 80%); }
/* ---------- Card shell ---------- */ .stage{position:relative;z-index:2;width:900px;height:650px;padding:22px} .card{ width:100%;height:100%; background:linear-gradient(160deg,rgba(255,255,255,.08),rgba(255,255,255,.03) 45%,rgba(255,255,255,.05)); border:1px solid var(--stroke); border-radius:26px; backdrop-filter:blur(28px) saturate(140%); -webkit-backdrop-filter:blur(28px) saturate(140%); box-shadow:0 30px 80px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.14); padding:22px 24px 18px; display:flex;flex-direction:column;gap:14px; position:relative;overflow:hidden; } .card::before{ content:"";position:absolute;inset:0;border-radius:26px;pointer-events:none; background:radial-gradient(600px 200px at 20% -10%,rgba(124,108,255,.18),transparent 60%); }
/* ---------- Header ---------- */ .header{display:flex;align-items:center;gap:16px;position:relative} .avatar-wrap{position:relative;flex-shrink:0} .avatar{ width:72px;height:72px;border-radius:22px; background:conic-gradient(from 210deg,#7c6cff,#38e0c8,#ff7ab6,#7c6cff); padding:2.5px;box-shadow:0 8px 24px rgba(124,108,255,.35); animation:spinHue 8s linear infinite; } @keyframes spinHue{to{filter:hue-rotate(360deg)}} .avatar-inner{ width:100%;height:100%;border-radius:19.5px; background:linear-gradient(145deg,#151a2e,#0b0e1a); display:flex;align-items:center;justify-content:center; font-weight:800;font-size:26px;letter-spacing:-1px; background-clip:padding-box; color:transparent; background-image:linear-gradient(145deg,#151a2e,#0b0e1a),linear-gradient(120deg,#a89bff,#5ff0d8); background-origin:border-box; } .avatar-inner span{ background:linear-gradient(120deg,#b3a6ff,#5ff0d8); -webkit-background-clip:text;background-clip:text;color:transparent; } .verified{ position:absolute;right:-7px;bottom:-7px;width:26px;height:26px;border-radius:50%; background:#0b0e1a;display:flex;align-items:center;justify-content:center; border:1px solid var(--stroke); } .verified svg{display:block} .id-block{flex:1;min-width:0} .name-row{display:flex;align-items:center;gap:10px} .name{font-size:21px;font-weight:800;letter-spacing:-.3px} .tag{ font-size:10.5px;font-weight:700;letter-spacing:.8px;text-transform:uppercase; padding:4px 9px;border-radius:999px; background:linear-gradient(120deg,rgba(124,108,255,.25),rgba(56,224,200,.2)); border:1px solid rgba(124,108,255,.4);color:#c9c2ff; } .sub{font-size:12.5px;color:var(--muted);margin-top:3px;display:flex;align-items:center;gap:8px} .status{ display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:600;color:#9df3cd; background:rgba(61,220,151,.1);border:1px solid rgba(61,220,151,.3); padding:3px 10px;border-radius:999px; } .pulse{width:7px;height:7px;border-radius:50%;background:var(--good);box-shadow:0 0 0 0 rgba(61,220,151,.6);animation:pulse 1.8s infinite} @keyframes pulse{70%{box-shadow:0 0 0 8px rgba(61,220,151,0)}100%{box-shadow:0 0 0 0 rgba(61,220,151,0)}} .uptime{ text-align:right;flex-shrink:0; background:var(--glass);border:1px solid var(--stroke-soft);border-radius:14px; padding:10px 16px;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px); } .uptime .val{font-size:19px;font-weight:800;background:linear-gradient(120deg,#fff,#a89bff);-webkit-background-clip:text;background-clip:text;color:transparent;font-variant-numeric:tabular-nums} .uptime .lbl{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:1px;margin-top:2px}
/* ---------- KPI grid ---------- */ .kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px} .kpi{ background:var(--glass);border:1px solid var(--stroke-soft);border-radius:var(--radius); padding:13px 14px 12px;position:relative;overflow:hidden; backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px); transition:transform .25s ease,border-color .25s ease; } .kpi:hover{transform:translateY(-3px);border-color:rgba(255,255,255,.22)} .kpi::after{content:"";position:absolute;top:0;left:0;right:0;height:2px;background:var(--bar,linear-gradient(90deg,#7c6cff,#38e0c8));opacity:.9} .kpi .k-top{display:flex;align-items:center;justify-content:space-between} .kpi .k-label{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.9px;color:var(--muted)} .kpi .k-delta{font-size:10px;font-weight:700;padding:2px 7px;border-radius:999px} .up{color:#9df3cd;background:rgba(61,220,151,.12);border:1px solid rgba(61,220,151,.25)} .kpi .k-value{font-size:26px;font-weight:800;letter-spacing:-.5px;margin-top:6px;font-variant-numeric:tabular-nums} .kpi .k-foot{display:flex;align-items:center;gap:8px;margin-top:8px} .meter{flex:1;height:5px;border-radius:99px;background:rgba(255,255,255,.08);overflow:hidden} .meter i{display:block;height:100%;border-radius:99px;background:var(--bar,linear-gradient(90deg,#7c6cff,#38e0c8));width:var(--w,50%);animation:grow 1.2s cubic-bezier(.2,.8,.2,1) both} @keyframes grow{from{width:0}} .kpi .k-note{font-size:10px;color:var(--muted);white-space:nowrap} .kpi:nth-child(1){--bar:linear-gradient(90deg,#7c6cff,#b3a6ff)} .kpi:nth-child(2){--bar:linear-gradient(90deg,#38e0c8,#7cf5dd)} .kpi:nth-child(3){--bar:linear-gradient(90deg,#ffb86c,#ff7ab6)} .kpi:nth-child(4){--bar:linear-gradient(90deg,#4f9dff,#7c6cff)}
/* ---------- Chart panel ---------- */ .panel-row{display:flex;gap:12px;flex:1;min-height:0} .chart-panel{ flex:1.6;background:var(--glass);border:1px solid var(--stroke-soft);border-radius:var(--radius); padding:14px 16px 10px;display:flex;flex-direction:column;min-width:0; backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px); } .panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px} .panel-title{font-size:12.5px;font-weight:700;letter-spacing:.2px} .legend{display:flex;gap:12px;font-size:10.5px;color:var(--muted)} .legend span{display:inline-flex;align-items:center;gap:5px} .dot{width:8px;height:8px;border-radius:3px;display:inline-block} .chart-wrap{flex:1;min-height:0} svg.chart{width:100%;height:100%;display:block} .bar-a{animation:barGrow 1s cubic-bezier(.2,.8,.2,1) both;transform-origin:bottom} @keyframes barGrow{from{transform:scaleY(0)}} .line-draw{stroke-dasharray:600;stroke-dashoffset:600;animation:draw 1.6s .3s ease forwards} @keyframes draw{to{stroke-dashoffset:0}}
/* ---------- PR feed ---------- */ .pr-panel{ flex:1;background:var(--glass);border:1px solid var(--stroke-soft);border-radius:var(--radius); padding:14px 16px;display:flex;flex-direction:column;min-width:0; backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px); } .pr-list{display:flex;flex-direction:column;gap:8px;margin-top:8px;flex:1;justify-content:space-evenly} .pr{ display:flex;align-items:center;gap:9px; background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08); border-radius:999px;padding:7px 12px;font-size:11.5px; white-space:nowrap;overflow:hidden; transition:background .2s,border-color .2s; } .pr:hover{background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.2)} .pr .badge{font-size:9.5px;font-weight:800;padding:2px 8px;border-radius:999px;flex-shrink:0;letter-spacing:.4px} .merged{color:#d6c6ff;background:rgba(124,108,255,.18);border:1px solid rgba(124,108,255,.4)} .pr .title{overflow:hidden;text-overflow:ellipsis;font-weight:600;color:#dfe4f5} .pr .num{color:var(--muted);font-variant-numeric:tabular-nums;flex-shrink:0}
/* ---------- Footer pills ---------- */ .footer{display:flex;align-items:center;justify-content:space-between;gap:12px} .pill-row{display:flex;gap:8px;flex-wrap:nowrap;overflow:hidden} .pill{ font-size:10.5px;font-weight:600;color:#c9cee3; background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1); padding:5px 12px;border-radius:999px;white-space:nowrap; backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px); } .pill b{color:#fff;font-weight:800} .pill.hot{background:linear-gradient(120deg,rgba(124,108,255,.22),rgba(56,224,200,.14));border-color:rgba(124,108,255,.35)}</style></head><body>
<div class="mesh"> <div class="blob b1"></div> <div class="blob b2"></div> <div class="blob b3"></div> <div class="blob b4"></div></div><div class="grid-overlay"></div>
<div class="stage"> <div class="card">
<!-- Header --> <div class="header"> <div class="avatar-wrap"> <div class="avatar"><div class="avatar-inner"><span>AE</span></div></div> <div class="verified" title="Verified Autonomous Agent"> <svg width="16" height="16" viewBox="0 0 24 24" fill="none"> <path d="M12 1.5l2.6 2.1 3.3-.3 1 3.2 2.9 1.7-1 3.2 1 3.2-2.9 1.7-1 3.2-3.3-.3L12 22.5l-2.6-2.1-3.3.3-1-3.2L2.2 15.8l1-3.2-1-3.2 2.9-1.7 1-3.2 3.3.3L12 1.5z" fill="url(#vg)"/> <path d="M8.6 12.2l2.3 2.3 4.5-4.6" stroke="#0b0e1a" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/> <defs><linearGradient id="vg" x1="0" y1="0" x2="24" y2="24"><stop stop-color="#7c6cff"/><stop offset="1" stop-color="#38e0c8"/></linearGradient></defs> </svg> </div> </div> <div class="id-block"> <div class="name-row"> <div class="name">Aether-7B</div> <div class="tag">Autonomous SWE Agent</div> </div> <div class="sub"> <span class="status"><span class="pulse"></span>Reasoning · Autonomous Mode</span> <span>v4.2.1 · checkpoint <b style="color:#c9cee3">a7f3c9e</b></span> </div> </div> <div class="uptime"> <div class="val">1,284h</div> <div class="lbl">Continuous Uptime</div> </div> </div>
<!-- KPI cards --> <div class="kpis"> <div class="kpi"> <div class="k-top"><span class="k-label">Repo Solve Rate</span><span class="k-delta up">▲ 4.2%</span></div> <div class="k-value">73.8<span style="font-size:15px;color:var(--muted)">%</span></div> <div class="k-foot"><div class="meter"><i style="--w:73.8%"></i></div><span class="k-note">SWE-bench</span></div> </div> <div class="kpi"> <div class="k-top"><span class="k-label">Patch Precision</span><span class="k-delta up">▲ 1.9%</span></div> <div class="k-value">91.2<span style="font-size:15px;color:var(--muted)">%</span></div> <div class="k-foot"><div class="meter"><i style="--w:91.2%"></i></div><span class="k-note">tests pass</span></div> </div> <div class="kpi"> <div class="k-top"><span class="k-label">ECE Calibration</span><span class="k-delta up">▼ 0.013</span></div> <div class="k-value">0.021</div> <div class="k-foot"><div class="meter"><i style="--w:97%"></i></div><span class="k-note">lower = better</span></div> </div> <div class="kpi"> <div class="k-top"><span class="k-label">Active Params</span><span class="k-delta up">MoE 2/8</span></div> <div class="k-value">3.1<span style="font-size:15px;color:var(--muted)">B</span></div> <div class="k-foot"><div class="meter"><i style="--w:39%"></i></div><span class="k-note">of 12.4B total</span></div> </div> </div>
<!-- Chart + PR feed --> <div class="panel-row"> <div class="chart-panel"> <div class="panel-head"> <div class="panel-title">Performance vs. Baselines — Last 8 Releases</div> <div class="legend"> <span><span class="dot" style="background:#7c6cff"></span>Aether-7B</span> <span><span class="dot" style="background:#38e0c8"></span>Prior SOTA</span> <span><span class="dot" style="background:rgba(255,255,255,.35)"></span>Baseline</span> </div> </div> <div class="chart-wrap"> <svg class="chart" viewBox="0 0 520 150" preserveAspectRatio="none" aria-label="Performance comparison chart"> <defs> <linearGradient id="barG" x1="0" y1="1" x2="0" y2="0"> <stop offset="0" stop-color="#7c6cff" stop-opacity=".45"/> <stop offset="1" stop-color="#b3a6ff"/> </linearGradient> <linearGradient id="areaG" x1="0" y1="0" x2="0" y2="1"> <stop offset="0" stop-color="#38e0c8" stop-opacity=".28"/> <stop offset="1" stop-color="#38e0c8" stop-opacity="0"/> </linearGradient> </defs> <!-- gridlines --> <g stroke="rgba(255,255,255,.07)" stroke-width="1"> <line x1="0" y1="30" x2="520" y2="30"/><line x1="0" y1="65" x2="520" y2="65"/> <line x1="0" y1="100" x2="520" y2="100"/><line x1="0" y1="135" x2="520" y2="135"/> </g> <!-- baseline bars (ghost) --> <g fill="rgba(255,255,255,.09)"> <rect x="18" y="98" width="26" height="37" rx="4"/><rect x="83" y="94" width="26" height="41" rx="4"/> <rect x="148" y="90" width="26" height="45" rx="4"/><rect x="213" y="86" width="26" height="49" rx="4"/> <rect x="278" y="80" width="26" height="55" rx="4"/><rect x="343" y="74" width="26" height="61" rx="4"/> <rect x="408" y="66" width="26" height="69" rx="4"/><rect x="473" y="58" width="26" height="77" rx="4"/> </g> <!-- Aether bars --> <g class="bar-a"> <rect x="26" y="82" width="18" height="53" rx="4" fill="url(#barG)"/> <rect x="91" y="72" width="18" height="63" rx="4" fill="url(#barG)"/> <rect x="156" y="60" width="18" height="75" rx="4" fill="url(#barG)"/> <rect x="221" y="48" width="18" height="87" rx="4" fill="url(#barG)"/> <rect x="286" y="38" width="18" height="97" rx="4" fill="url(#barG)"/> <rect x="351" y="28" width="18" height="107" rx="4" fill="url(#barG)"/> <rect x="416" y="20" width="18" height="115" rx="4" fill="url(#barG)"/> <rect x="481" y="12" width="18" height="123" rx="4" fill="url(#barG)"/> </g> <!-- Prior SOTA sparkline area --> <path d="M35 96 L100 88 L165 80 L230 72 L295 62 L360 55 L425 46 L490 38 L490 135 L35 135 Z" fill="url(#areaG)"/> <path class="line-draw" d="M35 96 L100 88 L165 80 L230 72 L295 62 L360 55 L425 46 L490 38" fill="none" stroke="#38e0c8" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/> <!-- points --> <g fill="#0b0e1a" stroke="#38e0c8" stroke-width="2"> <circle cx="35" cy="96" r="3.4"/><circle cx="165" cy="80" r="3.4"/><circle cx="295" cy="62" r="3.4"/><circle cx="425" cy="46" r="3.4"/><circle cx="490" cy="38" r="4"/> </g> <!-- labels --> <g font-size="9" fill="#8b93ad" font-family="inherit"> <text x="26" y="148">v3.4</text><text x="156" y="148">v3.6</text><text x="286" y="148">v3.8</text><text x="416" y="148">v4.0</text><text x="478" y="148" fill="#c9c2ff" font-weight="700">v4.2</text> </g> </svg> </div> </div>
<div class="pr-panel"> <div class="panel-head"> <div class="panel-title">Recently Resolved PRs</div> <span style="font-size:10px;color:var(--muted)">last 24h · 47</span> </div> <div class="pr-list"> <div class="pr"><span class="badge merged">MERGED</span><span class="title">fix: race condition in async worker pool</span><span class="num">#4821</span></div> <div class="pr"><span class="badge merged">MERGED</span><span class="title">perf: vectorize token batch normalization</span><span class="num">#4817</span></div> <div class="pr"><span class="badge merged">MERGED</span><span class="title">fix: OOM in sparse attention cache eviction</span><span class="num">#4809</span></div> <div class="pr"><span class="badge merged">MERGED</span><span class="title">refactor: unify retry/backoff middleware</span><span class="num">#4796</span></div> <div class="pr"><span class="badge merged">MERGED</span><span class="title">fix: flaky ECE calibration test harness</span><span class="num">#4788</span></div> </div> </div> </div>
<!-- Footer --> <div class="footer"> <div class="pill-row"> <span class="pill hot">⚡ <b>1,942</b> issues triaged</span> <span class="pill">🧪 <b>98.4%</b> CI green</span> <span class="pill">🔍 <b>0</b> regressions</span> </div> <div class="pill-row"> <span class="pill">context <b>128k</b></span> <span class="pill">temp <b>0.15</b></span> <span class="pill">cost <b>$0.42</b>/hr</span> </div> </div>
</div></div>
</body></html>12345678910111213141516171819<!doctype html><html><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width" /><title>My static Space</title><link rel="stylesheet" href="style.css" /></head><body><div class="card"><h1>Welcome to your static Space!</h1><p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p><p>Also don't forget to check the<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.</p></div></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632<!DOCTYPE html><html lang="en"><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /><title>Rootformer-Code v25 vs Qwen4-35B-A3B — Live Interactive Demo Studio</title><style>:root {--bg: #070b14;--panel: #0e1628;--panel2: #121d34;--border: rgba(148, 163, 184, 0.18);--text: #e2e8f0;--muted: #94a3b8;--accent: #38bdf8;--accent2: #818cf8;--green: #34d399;--amber: #fbbf24;--rose: #fb7185;}* { box-sizing: border-box; }body {margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;background: radial-gradient(circle at 15% 0%, #102042 0%, var(--bg) 45%);color: var(--text); min-height: 100vh;}.wrap { max-width: 1520px; margin: 0 auto; padding: 20px 20px 44px; }header {display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;padding: 18px 22px; background: rgba(14, 22, 40, 0.85); border: 1px solid var(--border);border-radius: 16px; backdrop-filter: blur(12px); margin-bottom: 18px;}h1 { margin: 0 0 6px; font-size: 1.38rem; letter-spacing: -0.02em; }.sub { color: var(--muted); font-size: 0.9rem; margin: 0; }.links { display: flex; flex-wrap: wrap; gap: 10px; }.btn {display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 10px;font-size: 0.85rem; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid var(--border);background: var(--panel2); color: var(--text); transition: 0.15s ease;}.btn:hover { border-color: var(--accent); transform: translateY(-1px); }.btn-primary { background: linear-gradient(135deg, #2563eb, #4f46e5); border-color: transparent; color: #fff; }.kpis {display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 18px;}.kpi {background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px;}.kpi .lbl { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }.kpi .val { font-size: 1.45rem; font-weight: 700; margin: 4px 0 2px; color: #fff; }.kpi .note { font-size: 0.8rem; color: var(--green); }.tabs {display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; justify-content: space-between;}.tab-group { display: flex; flex-wrap: wrap; gap: 8px; }.tab {padding: 10px 15px; border-radius: 10px; background: var(--panel); border: 1px solid var(--border);color: var(--muted); font-weight: 600; font-size: 0.88rem; cursor: pointer; transition: 0.15s ease;}.tab:hover { color: #fff; border-color: rgba(56,189,248,0.45); }.tab.active {background: linear-gradient(135deg, rgba(56,189,248,0.2), rgba(129,140,248,0.22));border-color: var(--accent); color: #fff;}.pane { display: none; }.pane.active { display: block; }.desc-bar {display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;background: var(--panel); border: 1px solid var(--border); border-radius: 12px;padding: 12px 16px; margin-bottom: 14px; font-size: 0.88rem; color: var(--muted);}.desc-bar strong { color: #fff; }.split {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;}@media (max-width: 1024px) { .split { grid-template-columns: 1fr; } }.card {background: var(--panel); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;display: flex; flex-direction: column;}.card-head {display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between;padding: 11px 14px; background: var(--panel2); border-bottom: 1px solid var(--border);}.card-title { font-weight: 700; font-size: 0.92rem; display: flex; align-items: center; gap: 8px; }.pill {font-size: 0.74rem; padding: 3px 8px; border-radius: 999px; font-weight: 700;}.pill-ours { background: rgba(52,211,153,0.16); color: var(--green); border: 1px solid rgba(52,211,153,0.35); }.pill-q4 { background: rgba(129,140,248,0.16); color: #a5b4fc; border: 1px solid rgba(129,140,248,0.35); }.pill-win { background: rgba(251,191,36,0.16); color: var(--amber); border: 1px solid rgba(251,191,36,0.35); }.card-actions { display: flex; gap: 8px; align-items: center; }.mini-link {font-size: 0.78rem; color: var(--accent); text-decoration: none; font-weight: 600;padding: 4px 8px; border-radius: 7px; background: rgba(56,189,248,0.1);}.mini-link:hover { background: rgba(56,189,248,0.22); }iframe {width: 100%; height: 640px; border: 0; background: #050811; display: block;}.table-wrap {background: var(--panel); border: 1px solid var(--border); border-radius: 14px; overflow-x: auto; margin-bottom: 18px;}table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }th, td { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: left; }th { background: var(--panel2); color: #cbd5e1; font-weight: 700; }.b-pass { background: rgba(52,211,153,0.16); color: var(--green); padding: 3px 8px; border-radius: 6px; font-weight: 700; font-size: 0.78rem; }.b-fail { background: rgba(251,113,133,0.14); color: var(--rose); padding: 3px 8px; border-radius: 6px; font-weight: 700; font-size: 0.78rem; }pre {margin: 0; padding: 14px; overflow: auto; max-height: 460px; font-size: 0.8rem; line-height: 1.48;background: #060a13; color: #e2e8f0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;}</style></head><body><div class="wrap"><header><div><h1>⚡ Rootformer-Code v25 (Stage 25.2 + KhalilSWE v3.6) vs. Qwen4-35B-A3B</h1><p class="sub">100% Live Browser HTML5 / Canvas / SVG Outputs & Unseen SWE-bench Shootout — Same Hardware (A100-80GB), Same Prompts</p></div><div class="links"><a class="btn btn-primary" href="https://huggingface.co/enver/rootformer-code-v25-khalilswe-27b" target="_blank" rel="noopener">🤗 Model Weights (27B BF16)</a><a class="btn" href="https://huggingface.co/datasets/enver/KhalilAlgoWorks" target="_blank" rel="noopener">📚 KhalilAlgoWorks Dataset</a></div></header><section class="kpis"><div class="kpi"><div class="lbl">SWE-bench Verified 100</div><div class="val">62.0% <span style="font-size:0.9rem;color:#94a3b8">(62/100)</span></div><div class="note">63.2% Unseen · 6.2× vs Vanilla Qwen3.8-27B (10%)</div></div><div class="kpi"><div class="lbl">Unseen SWE-HO6 vs Qwen4</div><div class="val">4/6 vs 3/6</div><div class="note">Ours 66.7% beats Qwen4-35B-A3B ReAct (50.0%)</div></div><div class="kpi"><div class="lbl">Qwen4 + Our KhalilSWE v3.6</div><div class="val">5/6 <span style="font-size:0.9rem;color:#94a3b8">(83.3%)</span></div><div class="note">+33.3 pts lift & 100% patch rate on Qwen4 itself!</div></div><div class="kpi"><div class="lbl">Dev-615 + Turāth-40 Arabic</div><div class="val">81.63% / 75.0%</div><div class="note">502/615 OOF (ECE 0.0413) · +7.5 pts Arabic Fast</div></div></section><div class="tabs"><div class="tab-group"><button class="tab active" data-tab="hex">1. Spinning Neon Hexagon Physics (LIVE)</button><button class="tab" data-tab="glass">2. Glassmorphism Telemetry UI (LIVE)</button><button class="tab" data-tab="pelican">3. Pelican on a Bicycle SVG (LIVE)</button><button class="tab" data-tab="bench">4. SWE-HO6 & Audited Code Outputs</button></div><button class="btn" id="reloadBtn" type="button">↻ Reload Active Live Demos</button></div><!-- TAB 1: SPINNING HEXAGON --><div class="pane active" id="pane-hex"><div class="desc-bar"><div><strong>Prompt:</strong> Single-file HTML5 Canvas simulation of 18 glowing physics balls with gravity, elasticity, trails, and HUD inside a rotating neon hexagon.</div><div><strong>Result:</strong> Ours achieved <strong>33.0 FPS</strong> with a crisp zero-overlap HUD vs Qwen4's <strong>21.5 FPS</strong>, overlapping energy text, and smeared outline.</div></div><div class="split"><div class="card"><div class="card-head"><div class="card-title"><span class="pill pill-ours">OURS</span> Rootformer Stage 25.2 (Qaṭʿ · 39.5s) <span class="pill pill-win">33.0 FPS · WIN</span></div><div class="card-actions"><a class="mini-link" href="./spinning_hexagon_html_ours.html" target="_blank" rel="noopener">Fullscreen ↗</a></div></div><iframe data-src="./spinning_hexagon_html_ours.html" src="./spinning_hexagon_html_ours.html" title="Ours Spinning Hexagon"></iframe></div><div class="card"><div class="card-head"><div class="card-title"><span class="pill pill-q4">QWEN4</span> Qwen4-35B-A3B (35.6s · 21.5 FPS)</div><div class="card-actions"><a class="mini-link" href="./spinning_hexagon_html_qwen4.html" target="_blank" rel="noopener">Fullscreen ↗</a></div></div><iframe data-src="./spinning_hexagon_html_qwen4.html" src="./spinning_hexagon_html_qwen4.html" title="Qwen4 Spinning Hexagon"></iframe></div></div></div><!-- TAB 2: GLASSMORPHISM UI --><div class="pane" id="pane-glass"><div class="desc-bar"><div><strong>Prompt:</strong> Single-file dark glassmorphism Autonomous Coding Agent Telemetry Card with KPIs, chart, and PR status badges.</div><div><strong>Result:</strong> Honest trade-off — Ours rendered crisp glass KPI cards in <strong>39.5s</strong> (5,120-tok cap clipped bottom chart); Qwen4 finished the full chart + PR pills in <strong>65.4s</strong> (8,192-tok cap).</div></div><div class="split"><div class="card"><div class="card-head"><div class="card-title"><span class="pill pill-ours">OURS</span> Rootformer Stage 25.2 (39.5s · 5,120 tok cap)</div><div class="card-actions"><a class="mini-link" href="./glassmorphism_ui_html_ours.html" target="_blank" rel="noopener">Fullscreen ↗</a></div></div><iframe data-src="./glassmorphism_ui_html_ours.html" src="./glassmorphism_ui_html_ours.html" title="Ours Glassmorphism UI"></iframe></div><div class="card"><div class="card-head"><div class="card-title"><span class="pill pill-q4">QWEN4</span> Qwen4-35B-A3B (65.4s · 8,192 tok cap) <span class="pill pill-win">FULL CHART</span></div><div class="card-actions"><a class="mini-link" href="./glassmorphism_ui_html_qwen4.html" target="_blank" rel="noopener">Fullscreen ↗</a></div></div><iframe data-src="./glassmorphism_ui_html_qwen4.html" src="./glassmorphism_ui_html_qwen4.html" title="Qwen4 Glassmorphism UI"></iframe></div></div></div><!-- TAB 3: PELICAN SVG --><div class="pane" id="pane-pelican"><div class="desc-bar"><div><strong>Prompt:</strong> Viral internet SVG benchmark — "A detailed SVG illustration of a pelican riding a bicycle along a coastal boardwalk at sunset."</div><div><strong>Result:</strong> Both rendered detailed boardwalk, ocean, sunset, wheels & bicycle frame before hitting output token limits near the neck; <strong>Ours finished 6.3× faster (39.5s vs 248.7s)</strong>.</div></div><div class="split"><div class="card"><div class="card-head"><div class="card-title"><span class="pill pill-ours">OURS</span> Rootformer Stage 25.2 (9.2 KB · 39.5s) <span class="pill pill-win">6.3× FASTER</span></div><div class="card-actions"><a class="mini-link" href="./pelican_svg_ours.svg" target="_blank" rel="noopener">Raw SVG ↗</a></div></div><iframe data-src="./pelican_ours.html" src="./pelican_ours.html" title="Ours Pelican SVG"></iframe></div><div class="card"><div class="card-head"><div class="card-title"><span class="pill pill-q4">QWEN4</span> Qwen4-35B-A3B (10.5 KB · 248.7s)</div><div class="card-actions"><a class="mini-link" href="./pelican_svg_qwen4.svg" target="_blank" rel="noopener">Raw SVG ↗</a></div></div><iframe data-src="./pelican_qwen4.html" src="./pelican_qwen4.html" title="Qwen4 Pelican SVG"></iframe></div></div></div><!-- TAB 4: SWE-HO6 & CODE --><div class="pane" id="pane-bench"><div class="desc-bar"><div><strong>Unseen SWE-HO6 (3 Django + 3 SymPy from <code>heldout10</code>):</strong> Graded zero-Docker against official hidden <code>FAIL_TO_PASS + PASS_TO_PASS</code> suites under an identical 16-turn cap.</div></div><div class="table-wrap"><table><thead><tr><th>Unseen GitHub Issue</th><th>Qwen3.8-27B + ReAct</th><th>Qwen4-35B-A3B + ReAct</th><th>Ours (27B + KhalilSWE v3.6)</th><th>Bonus: Qwen4-35B-A3B + Our KhalilSWE v3.6</th></tr></thead><tbody><tr><td><code>django__django-14725</code></td><td><span class="b-fail">FAIL</span></td><td><span class="b-fail">FAIL</span></td><td><span class="b-fail">FAIL</span></td><td><span class="b-fail">FAIL</span></td></tr><tr><td><code>django__django-14771</code></td><td><span class="b-fail">FAIL</span></td><td><span class="b-pass">PASS</span></td><td><span class="b-pass">PASS</span></td><td><span class="b-pass">PASS</span></td></tr><tr><td><code>django__django-14787</code></td><td><span class="b-fail">FAIL</span></td><td><span class="b-pass">PASS</span></td><td><span class="b-pass">PASS</span></td><td><span class="b-pass">PASS</span></td></tr><tr><td><code>sympy__sympy-22456</code></td><td><span class="b-fail">FAIL</span></td><td><span class="b-fail">FAIL</span></td><td><span class="b-pass">PASS</span></td><td><span class="b-pass">PASS</span></td></tr><tr><td><code>sympy__sympy-22914</code></td><td><span class="b-fail">FAIL</span></td><td><span class="b-pass">PASS</span></td><td><span class="b-pass">PASS</span></td><td><span class="b-pass">PASS</span></td></tr><tr><td><code>sympy__sympy-23262</code></td><td><span class="b-fail">FAIL</span></td><td><span class="b-fail">FAIL</span></td><td><span class="b-fail">FAIL</span></td><td><span class="b-pass">PASS</span></td></tr><tr style="background:rgba(56,189,248,0.08);font-weight:700;"><td>Total Resolved</td><td>0 / 6 (0.0%)</td><td>3 / 6 (50.0%)</td><td style="color:var(--green)">4 / 6 (66.7%)</td><td style="color:var(--amber)">5 / 6 (83.3%)</td></tr></tbody></table></div><div class="desc-bar"><div><strong>1. Unseen Multi-Library <code>BigCodeBench-Hard</code> (RandomForest / pandas / matplotlib):</strong> Both passed <strong>5/5 official unittests</strong>; Ours is <strong>3× leaner</strong> (1,040 chars vs 3,113 chars).</div></div><div class="split" style="margin-bottom:18px;"><div class="card"><div class="card-head"><div class="card-title"><span class="pill pill-ours">OURS · 5/5 PASS</span> Stage 25.2 (1,040 chars)</div></div><pre>import pandas as pdfrom sklearn.ensemble import RandomForestClassifierimport seaborn as snsimport matplotlib.pyplot as pltdef task_func(df, target_column):# Separate features and targetX = df.drop(columns=[target_column])y = df[target_column]# Train Random Forest Classifierclf = RandomForestClassifier()clf.fit(X, y)# Get feature importancesfeature_importances = clf.feature_importances_# Create a dataframe for sortingimportance_df = pd.DataFrame({'Feature': X.columns,'Importance': feature_importances})# Sort in descending orderimportance_df = importance_df.sort_values(by='Importance', ascending=False).reset_index(drop=True)# Plot horizontal bar plotfig, ax = plt.subplots()sns.barplot(x='Importance', y='Feature', data=importance_df, ax=ax)ax.set_xlabel('Feature Importance Score')ax.set_ylabel('Features')ax.set_title('Visualizing Important Features')return clf, ax</pre></div><div class="card"><div class="card-head"><div class="card-title"><span class="pill pill-q4">QWEN4 · 5/5 PASS</span> Qwen4-35B-A3B (3,113 chars)</div></div><pre>import pandas as pdimport numpy as npfrom sklearn.ensemble import RandomForestClassifierimport seaborn as snsimport matplotlib.pyplot as pltdef task_func(df, target_column):"""Train a Random Forest classifier on a dataframe (using `target_column` as thelabel) and plot the feature importances as a horizontal bar plot.Parameters----------df : pandas.DataFrameThe dataframe containing the features and the column of interest.target_column : strThe name of the column used as the classification target.Returns-------(sklearn.ensemble.RandomForestClassifier, matplotlib.axes.Axes)The trained random forest classifier and the Axes object of theplotted bar chart."""# ------------------------------------------------------------------# 1. Split the data into features (X) and target (y)# ------------------------------------------------------------------X = df.drop(columns=[target_column])y = df[target_column]# ------------------------------------------------------------------# 2. Encode any non numeric (categorical / boolean) feature columns so# that the random forest can consume them.# ------------------------------------------------------------------non_numeric = X.select_dtypes(include=["object", "category", "bool", "string"]).columnsif len(non_numeric) > 0:X = pd.get_dummies(X, columns=list(non_numeric))# ------------------------------------------------------------------# 3. Train the random forest classifier# ------------------------------------------------------------------clf = RandomForestClassifier()clf.fit(X, y)# ------------------------------------------------------------------# 4. Collect and sort the feature importances in descending order# ------------------------------------------------------------------importances = clf.feature_importances_feature_names = np.asarray(X.columns)sorted_idx = np.argsort(importances)[::-1] # descending ordersorted_importances = np.asarray(importances)[sorted_idx]sorted_features = feature_names[sorted_idx]# ------------------------------------------------------------------# 5. Plot: importances on the x-axis, feature names on the y-axis# ------------------------------------------------------------------fig, ax = plt.subplots(figsize=(10, 6))ax.barh(sorted_features, sorted_importances, color="skyblue", edgecolor="black")ax.set_xlabel("Feature Importance Score")ax.set_ylabel("Features")ax.set_title("Visualizing Important Features")fig.tight_layout()return clf, axif __name__ == "__main__":# Simple demodata = pd.DataFrame({"feature1": np.random.rand(100),"feature2": np.random.rand(100),"feature3": np.random.rand(100),"category": np.random.choice(["a", "b", "c"], 100),"target": np.random.choice([0, 1], 100),})model, axis = task_func(data, "target")plt.show()</pre></div></div><div class="desc-bar"><div><strong>2. Classical Arabic <code>Turāth</code> DAG & Lexicographical Kahn Validator:</strong> Both passed <strong>10/10 hidden asserts</strong>; Ours is <strong>40% leaner</strong> with zero stray debug prints (2,096 chars vs 3,456 chars).</div></div><div class="split"><div class="card"><div class="card-head"><div class="card-title"><span class="pill pill-ours">OURS · 10/10 PASS</span> Stage 25.2 (2,096 chars)</div></div><pre>def analyze_isnad_dag(chains: list[list[str]], unreliable: set[str]) -> dict:from heapq import heappush, heappopnodes = set()edges = set()for chain in chains:for n in chain:nodes.add(n)for i in range(len(chain) - 1):edges.add((chain[i], chain[i + 1]))# Check for self-loops (direct cycle)for u, v in edges:if u == v:return {"valid_dag": False, "topological_order": [], "authentic_chains": 0, "longest_clean_path": 0}# Build adjacency and in-degreeadj = {n: [] for n in nodes}in_degree = {n: 0 for n in nodes}for u, v in edges:adj[u].append(v)in_degree[v] += 1# Kahn's algorithm with lexicographic tie-breakingheap = [n for n in nodes if in_degree[n] == 0]heap.sort()topo = []while heap:u = heappop(heap)topo.append(u)for v in adj[u]:in_degree[v] -= 1if in_degree[v] == 0:heappush(heap, v)if len(topo) != len(nodes):return {"valid_dag": False, "topological_order": [], "authentic_chains": 0, "longest_clean_path": 0}# Authentic chains: non-empty and no narrator in unreliableauthentic_chains = 0for chain in chains:if len(chain) > 0 and not any(n in unreliable for n in chain):authentic_chains += 1# Longest clean path (number of nodes) in subgraph of reliable nodesclean_nodes = {n for n in nodes if n not in unreliable}if not clean_nodes:longest_clean_path = 0else:dp = {n: 1 for n in clean_nodes}for u in topo:if u not in clean_nodes:continuefor v in adj[u]:if v in clean_nodes:if dp[u] + 1 > dp[v]:dp[v] = dp[u] + 1longest_clean_path = max(dp.values())return {"valid_dag": True,"topological_order": topo,"authentic_chains": authentic_chains,"longest_clean_path": longest_clean_path}</pre></div><div class="card"><div class="card-head"><div class="card-title"><span class="pill pill-q4">QWEN4 · 10/10 PASS</span> Qwen4-35B-A3B (3,456 chars)</div></div><pre>import heapqdef analyze_isnad_dag(chains: list[list[str]], unreliable: set[str]) -> dict:"""تحليل رسم الإسناد الموجّه المُجمَّع من كل سلاسل الإسناد.يعيد:{"valid_dag": bool,"topological_order": list[str], # كسني أبجدي عند التساوي"authentic_chains": int,"longest_clean_path": int}"""invalid = {"valid_dag": False,"topological_order": [],"authentic_chains": 0,"longest_clean_path": 0,}if unreliable is None:unreliable = set()nodes: set[str] = set()adj: dict[str, set] = {}indeg: dict[str, int] = {}edge_set: set[tuple[str, str]] = set()# ---- بناء الرسم البياني المُجمَّع (عقد + حواف فريدة) ----for chain in chains:if chain is None:continuechain = list(chain)if not chain:continuefor name in chain:nodes.add(name)if name not in adj:adj[name] = set()indeg[name] = 0for a, b in zip(chain, chain[1:]):if a == b:# حلقة ذاتية => دورة موجهة حتماًadj.setdefault(a, set())indeg.setdefault(a, 0)if (a, b) not in edge_set:edge_set.add((a, b))adj[a].add(b)indeg[b] += 1continueif (a, b) not in edge_set:edge_set.add((a, b))adj[a].add(b)indeg[b] += 1if not nodes:return {"valid_dag": True,"topological_order": [],"authentic_chains": 0,"longest_clean_path": 0,}# ---- خوارزمية كان مع أولوية صغرى (كسني أبجدي) ----heap = [n for n in nodes if indeg[n] == 0]heapq.heapify(heap)order: list[str] = []while heap:u = heapq.heappop(heap)order.append(u)for v in sorted(adj[u]):indeg[v] -= 1if indeg[v] == 0:heapq.heappush(heap, v)if len(order) != len(nodes):# توجد دورة موجهة (أو حلقة ذاتية)return invalid# ---- عدد السلاسل الصحيحة (خالية من الرواة غير الموثوقين) ----authentic_chains = 0for chain in chains:if chain is None:continueif not chain:continueok = Truefor name in chain:if name in unreliable:ok = Falsebreakif ok:authentic_chains += 1# ---- أطول مسار موجّه يمر فقط برواة موثوقين (DP على الترتيب الطوبولوجي) ----dp: dict[str, int] = {}for u in order:if u in unreliable:continueif u not in dp:dp[u] = 1base = dp[u]for v in adj[u]:if v in unreliable:continueif dp.get(v, 0) < base + 1:dp[v] = base + 1longest_clean_path = max(dp.values()) if dp else 0return {"valid_dag": True,"topological_order": order,"authentic_chains": authentic_chains,"longest_clean_path": longest_clean_path,}if __name__ == "__main__":print(analyze_isnad_dag([["مالك", "نافع", "ابن عمر"]], {"ابن عمر"}))print(analyze_isnad_dag([["أ", "ب"], ["ب", "أ"]], set()))print(analyze_isnad_dag([], set()))</pre></div></div></div></div><script>(function() {const tabs = document.querySelectorAll('.tab');const panes = document.querySelectorAll('.pane');tabs.forEach(t => {t.addEventListener('click', () => {tabs.forEach(x => x.classList.remove('active'));panes.forEach(p => p.classList.remove('active'));t.classList.add('active');document.getElementById('pane-' + t.dataset.tab).classList.add('active');});});document.getElementById('reloadBtn').addEventListener('click', () => {const active = document.querySelector('.pane.active');if (!active) return;active.querySelectorAll('iframe').forEach(f => {const base = f.getAttribute('data-src') || f.src;f.src = base.split('?')[0] + '?t=' + Date.now();});});})();</script></body></html>
1234567891011121314151617181920212223<!DOCTYPE html><html lang="en"><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width,initial-scale=1" /><title>pelican_svg_ours.svg</title><style> * { box-sizing: border-box; margin: 0; padding: 0; } html, body { width: 100%; height: 100%; background: #070b14; display: flex; align-items: center; justify-content: center; overflow: hidden; } img { max-width: 98%; max-height: 98%; width: auto; height: auto; border-radius: 10px; box-shadow: 0 12px 36px rgba(0,0,0,0.45); background: #0c1220; }</style></head><body> <img src="./pelican_svg_ours.svg" alt="pelican_svg_ours.svg" /></body></html>1234567891011121314151617181920212223<!DOCTYPE html><html lang="en"><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width,initial-scale=1" /><title>pelican_svg_qwen4.svg</title><style> * { box-sizing: border-box; margin: 0; padding: 0; } html, body { width: 100%; height: 100%; background: #070b14; display: flex; align-items: center; justify-content: center; overflow: hidden; } img { max-width: 98%; max-height: 98%; width: auto; height: auto; border-radius: 10px; box-shadow: 0 12px 36px rgba(0,0,0,0.45); background: #0c1220; }</style></head><body> <img src="./pelican_svg_qwen4.svg" alt="pelican_svg_qwen4.svg" /></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>Neon Hexagon Physics</title><style> html, body { margin: 0; padding: 0; background: #05080f; display: flex; justify-content: center; align-items: center; min-height: 100vh; overflow: hidden; } canvas { background: #0b1120; border: 1px solid #1e293b; border-radius: 8px; box-shadow: 0 0 40px rgba(34, 211, 238, 0.15), 0 0 80px rgba(16, 185, 129, 0.08); }</style></head><body><canvas id="c" width="900" height="650"></canvas><script>(() => { "use strict";
const canvas = document.getElementById("c"); const ctx = canvas.getContext("2d"); const W = 900, H = 650; const CX = W / 2, CY = H / 2 + 10; const HEX_R = 265;
// --- Constants --- const RPM = 18; const OMEGA = RPM * 2 * Math.PI / 60; // rad/s const GRAVITY = 900; // px/s^2 const WALL_RESTITUTION = 0.92; const BALL_RESTITUTION = 0.96; const AIR_DRAG = 0.9995; const SUBSTEPS = 4; const TRAIL_LEN = 16; const BALL_COUNT = 18;
// --- State --- let rotation = 0; let balls = []; let lastTime = performance.now(); let fps = 60; let fpsSmooth = 60;
// --- Background grid (pre-rendered) --- const bg = document.createElement("canvas"); bg.width = W; bg.height = H; { const b = bg.getContext("2d"); b.fillStyle = "#0b1120"; b.fillRect(0, 0, W, H); // subtle grid b.strokeStyle = "rgba(56, 189, 248, 0.05)"; b.lineWidth = 1; for (let x = 0; x <= W; x += 40) { b.beginPath(); b.moveTo(x + 0.5, 0); b.lineTo(x + 0.5, H); b.stroke(); } for (let y = 0; y <= H; y += 40) { b.beginPath(); b.moveTo(0, y + 0.5); b.lineTo(W, y + 0.5); b.stroke(); } // radial vignette const g = b.createRadialGradient(CX, CY, 100, CX, CY, 520); g.addColorStop(0, "rgba(11, 17, 32, 0)"); g.addColorStop(1, "rgba(2, 4, 10, 0.85)"); b.fillStyle = g; b.fillRect(0, 0, W, H); }
// --- Ball factory --- const PALETTE = [ "#22d3ee", "#34d399", "#f472b6", "#facc15", "#a78bfa", "#fb7185", "#4ade80", "#60a5fa", "#fbbf24", "#2dd4bf", "#e879f9", "#f87171", "#a3e635", "#38bdf8", "#fde047", "#c084fc", "#5eead4", "#fb923c" ];
function makeBalls() { balls = []; let attempts = 0; while (balls.length < BALL_COUNT && attempts < 5000) { attempts++; const r = 9 + Math.random() * 13; const a = Math.random() * Math.PI * 2; const d = Math.random() * (HEX_R - r - 40); const x = CX + Math.cos(a) * d; const y = CY + Math.sin(a) * d; // reject if overlapping existing balls let ok = true; for (const o of balls) { const dx = o.x - x, dy = o.y - y; if (dx * dx + dy * dy < (o.r + r + 4) * (o.r + r + 4)) { ok = false; break; } } if (!ok) continue; balls.push({ x, y, vx: (Math.random() - 0.5) * 300, vy: (Math.random() - 0.5) * 300, r, m: r * r, color: PALETTE[balls.length % PALETTE.length], trail: [] }); } } makeBalls();
// --- Hexagon geometry (world space) --- function hexVerts(rot) { const v = []; for (let i = 0; i < 6; i++) { const a = rot + i * Math.PI / 3; v.push({ x: CX + Math.cos(a) * HEX_R, y: CY + Math.sin(a) * HEX_R }); } return v; }
// --- Physics --- function wallVelocityAt(px, py) { // v = omega x r (2D cross: omega * (-ry, rx)) const rx = px - CX, ry = py - CY; return { x: -OMEGA * ry, y: OMEGA * rx }; }
function collideWalls(ball) { const verts = hexVerts(rotation); for (let i = 0; i < 6; i++) { const a = verts[i], b = verts[(i + 1) % 6]; const ex = b.x - a.x, ey = b.y - a.y; const len = Math.hypot(ex, ey); // inward normal (points toward center) let nx = ey / len, ny = -ex / len; if (nx * (CX - a.x) + ny * (CY - a.y) < 0) { nx = -nx; ny = -ny; }
const dist = (ball.x - a.x) * nx + (ball.y - a.y) * ny; if (dist < ball.r) { // push out const pen = ball.r - dist; ball.x += nx * pen; ball.y += ny * pen;
// contact point & wall velocity there const cxp = ball.x - nx * ball.r; const cyp = ball.y - ny * ball.r; const wv = wallVelocityAt(cxp, cyp);
// relative velocity let rvx = ball.vx - wv.x; let rvy = ball.vy - wv.y; const vn = rvx * nx + rvy * ny; if (vn < 0) { rvx -= (1 + WALL_RESTITUTION) * vn * nx; rvy -= (1 + WALL_RESTITUTION) * vn * ny; ball.vx = rvx + wv.x; ball.vy = rvy + wv.y; } } } }
function collideBalls() { for (let i = 0; i < balls.length; i++) { for (let j = i + 1; j < balls.length; j++) { const a = balls[i], b = balls[j]; const dx = b.x - a.x, dy = b.y - a.y; const minD = a.r + b.r; const d2 = dx * dx + dy * dy; if (d2 >= minD * minD || d2 === 0) continue; const d = Math.sqrt(d2); const nx = dx / d, ny = dy / d;
// positional correction (mass-weighted) const overlap = minD - d; const total = a.m + b.m; a.x -= nx * overlap * (b.m / total); a.y -= ny * overlap * (b.m / total); b.x += nx * overlap * (a.m / total); b.y += ny * overlap * (a.m / total);
// elastic impulse const rvx = b.vx - a.vx, rvy = b.vy - a.vy; const vn = rvx * nx + rvy * ny; if (vn < 0) { const jImp = -(1 + BALL_RESTITUTION) * vn / (1 / a.m + 1 / b.m); const ix = jImp * nx, iy = jImp * ny; a.vx -= ix / a.m; a.vy -= iy / a.m; b.vx += ix / b.m; b.vy += iy / b.m; } } } }
function step(dt) { const h = dt / SUBSTEPS; for (let s = 0; s < SUBSTEPS; s++) { rotation += OMEGA * h; for (const ball of balls) { ball.vy += GRAVITY * h; ball.vx *= AIR_DRAG; ball.vy *= AIR_DRAG; ball.x += ball.vx * h; ball.y += ball.vy * h; collideWalls(ball); } collideBalls(); } // record trails for (const ball of balls) { ball.trail.push({ x: ball.x, y: ball.y }); if (ball.trail.length > TRAIL_LEN) ball.trail.shift(); } }
// --- Rendering --- function drawHexagon() { const verts = hexVerts(rotation); ctx.save(); ctx.lineJoin = "round";
// outer glow pass ctx.shadowColor = "#22d3ee"; ctx.shadowBlur = 28; ctx.strokeStyle = "rgba(34, 211, 238, 0.9)"; ctx.lineWidth = 4; ctx.beginPath(); verts.forEach((v, i) => i === 0 ? ctx.moveTo(v.x, v.y) : ctx.lineTo(v.x, v.y)); ctx.closePath(); ctx.stroke();
// inner emerald pass ctx.shadowColor = "#34d399"; ctx.shadowBlur = 14; ctx.strokeStyle = "rgba(52, 211, 153, 0.55)"; ctx.lineWidth = 1.5; ctx.stroke();
// vertex nodes ctx.shadowBlur = 18; ctx.fillStyle = "#a7f3d0"; for (const v of verts) { ctx.beginPath(); ctx.arc(v.x, v.y, 4, 0, Math.PI * 2); ctx.fill(); } ctx.restore(); }
function drawBalls() { ctx.save(); ctx.lineCap = "round"; for (const ball of balls) { // trail const t = ball.trail; for (let i = 1; i < t.length; i++) { const alpha = (i / t.length) * 0.45; ctx.strokeStyle = ball.color; ctx.globalAlpha = alpha; ctx.lineWidth = ball.r * 0.9 * (i / t.length); ctx.beginPath(); ctx.moveTo(t[i - 1].x, t[i - 1].y); ctx.lineTo(t[i].x, t[i].y); ctx.stroke(); } ctx.globalAlpha = 1;
// glow body ctx.shadowColor = ball.color; ctx.shadowBlur = 18; ctx.fillStyle = ball.color; ctx.beginPath(); ctx.arc(ball.x, ball.y, ball.r, 0, Math.PI * 2); ctx.fill();
// hot core ctx.shadowBlur = 0; ctx.fillStyle = "rgba(255,255,255,0.85)"; ctx.beginPath(); ctx.arc(ball.x - ball.r * 0.25, ball.y - ball.r * 0.25, ball.r * 0.35, 0, Math.PI * 2); ctx.fill(); } ctx.restore(); }
function totalKE() { let ke = 0; for (const b of balls) ke += 0.5 * b.m * (b.vx * b.vx + b.vy * b.vy); return ke; }
function drawHUD() { const ke = totalKE(); const lines = [ ["FPS", fpsSmooth.toFixed(1)], ["RPM", RPM.toFixed(0)], ["BALLS", balls.length.toString()], ["KE", ke >= 1e6 ? (ke / 1e6).toFixed(2) + " MJ" : (ke / 1e3).toFixed(1) + " kJ"] ]; ctx.save(); ctx.font = "600 14px 'Courier New', monospace"; ctx.textBaseline = "top";
// panel ctx.fillStyle = "rgba(8, 14, 28, 0.72)"; ctx.strokeStyle = "rgba(34, 211, 238, 0.45)"; ctx.lineWidth = 1; const px = 14, py = 14, pw = 178, ph = 104; ctx.beginPath(); ctx.roundRect ? ctx.roundRect(px, py, pw, ph, 6) : ctx.rect(px, py, pw, ph); ctx.fill(); ctx.stroke();
lines.forEach((row, i) => { const y = py + 12 + i * 21; ctx.fillStyle = "#67e8f9"; ctx.fillText(row[0], px + 12, y); ctx.fillStyle = "#e2e8f0"; ctx.textAlign = "right"; ctx.fillText(row[1], px + pw - 12, y); ctx.textAlign = "left"; }); ctx.restore(); }
// --- Main loop --- function frame(now) { let dt = (now - lastTime) / 1000; lastTime = now; if (dt > 0.05) dt = 0.05; // clamp after tab-switch if (dt > 0) { const inst = 1 / dt; fpsSmooth += (inst - fpsSmooth) * 0.08; }
step(dt);
ctx.drawImage(bg, 0, 0); drawHexagon(); drawBalls(); drawHUD();
requestAnimationFrame(frame); } requestAnimationFrame(frame);})();</script></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>Neon Hexagon Physics</title><style> html,body{margin:0;padding:0;background:#05070d;display:flex;align-items:center;justify-content:center;height:100vh;overflow:hidden} canvas{background:#0b1120;box-shadow:0 0 40px rgba(0,255,200,0.15);border:1px solid #12203a}</style></head><body><canvas id="c" width="900" height="650"></canvas><script>(() => { const cvs = document.getElementById('c'); const ctx = cvs.getContext('2d'); const W = 900, H = 650; const CX = W / 2, CY = H / 2 + 10;
// ---------- Hexagon geometry ---------- const HEX_R = 275; // circumradius const APO = HEX_R * Math.cos(Math.PI / 6); // apothem const RPM = 18; const OMEGA = RPM * 2 * Math.PI / 60; // rad/s let hexAngle = 0;
// ---------- Physics constants ---------- const GRAVITY = 850; // px/s^2 const WALL_E = 0.88; // wall restitution const BALL_E = 0.96; // ball-ball restitution const FRICTION = 0.25; // tangential coupling with spinning wall const N_BALLS = 18;
// ---------- Balls ---------- const COLORS = [ '#00ffd5','#00ff88','#ffee00','#ff5533','#ff33cc','#33aaff', '#aaff00','#ff8800','#8855ff','#00ffaa','#ff2266','#66ffcc', '#ffcc00','#ff66ff','#33ff33','#ff9999','#99ccff','#ffaa66' ]; const balls = []; for (let i = 0; i < N_BALLS; i++) { const r = 7 + Math.random() * 13; const ang = Math.random() * Math.PI * 2; const rad = Math.random() * (APO - r - 30); balls.push({ x: CX + Math.cos(ang) * rad, y: CY + Math.sin(ang) * rad, vx: (Math.random() - 0.5) * 300, vy: (Math.random() - 0.5) * 300, r: r, m: r * r, color: COLORS[i % COLORS.length], trail: [] }); }
// ---------- FPS tracking ---------- let fps = 60, lastT = performance.now(); let ke = 0;
function step(dt) { hexAngle += OMEGA * dt;
// Precompute hexagon edge outward normals (6 of them) const normals = []; for (let k = 0; k < 6; k++) { const a = hexAngle + k * Math.PI / 3 + Math.PI / 6; normals.push([Math.cos(a), Math.sin(a)]); }
// --- Integrate + wall collisions --- for (const b of balls) { b.vy += GRAVITY * dt;
// light air drag for stability b.vx *= (1 - 0.02 * dt); b.vy *= (1 - 0.02 * dt);
b.x += b.vx * dt; b.y += b.vy * dt;
const rx = b.x - CX, ry = b.y - CY;
for (const [nx, ny] of normals) { const d = rx * nx + ry * ny; // signed distance along outward normal const pen = d + b.r - APO; // penetration depth if (pen > 0) { // contact point relative to hex center (approx on wall) const cpx = rx - nx * d, cpy = ry - ny * d; // wall point velocity from rotation: omega x r => (-omega*cpy, omega*cpx) const wvx = -OMEGA * cpy; const wvy = OMEGA * cpx;
// relative velocity let rvx = b.vx - wvx, rvy = b.vy - wvy; const vn = rvx * nx + rvy * ny; if (vn > 0) { // decompose relative velocity const txn = rvx - vn * nx, tyn = rvy - vn * ny; // tangential part // reflect normal component, damp tangential slightly toward wall rvx = txn * (1 - FRICTION * 0.5) - vn * WALL_E * nx; rvy = tyn * (1 - FRICTION * 0.5) - vn * WALL_E * ny; b.vx = rvx + wvx; b.vy = rvy + wvy; } // positional correction: push back inside b.x -= nx * pen; b.y -= ny * pen; } } }
// --- Ball-to-ball elastic collisions --- for (let i = 0; i < balls.length; i++) { for (let j = i + 1; j < balls.length; j++) { const a = balls[i], b = balls[j]; let dx = b.x - a.x, dy = b.y - a.y; let dist2 = dx * dx + dy * dy; const minD = a.r + b.r; if (dist2 < minD * minD && dist2 > 1e-9) { const dist = Math.sqrt(dist2); const nx = dx / dist, ny = dy / dist; // positional separation weighted by inverse mass const overlap = minD - dist; const tm = a.m + b.m; a.x -= nx * overlap * (b.m / tm); a.y -= ny * overlap * (b.m / tm); b.x += nx * overlap * (a.m / tm); b.y += ny * overlap * (a.m / tm); // relative velocity along normal const rvx = b.vx - a.vx, rvy = b.vy - a.vy; const vn = rvx * nx + rvy * ny; if (vn < 0) { const imp = -(1 + BALL_E) * vn / (1 / a.m + 1 / b.m); a.vx -= imp * nx / a.m; a.vy -= imp * ny / a.m; b.vx += imp * nx / b.m; b.vy += imp * ny / b.m; } } } }
// --- Kinetic energy + trails --- ke = 0; for (const b of balls) { ke += 0.5 * b.m * (b.vx * b.vx + b.vy * b.vy); b.trail.push(b.x, b.y); if (b.trail.length > 24) b.trail.splice(0, 2); } }
function draw() { // fade previous frame -> glowing motion trails ctx.globalCompositeOperation = 'source-over'; ctx.fillStyle = 'rgba(11,17,32,0.22)'; ctx.fillRect(0, 0, W, H);
// --- Hexagon --- ctx.save(); ctx.translate(CX, CY); ctx.rotate(hexAngle); ctx.beginPath(); for (let k = 0; k < 6; k++) { const a = k * Math.PI / 3; const x = Math.cos(a) * HEX_R, y = Math.sin(a) * HEX_R; k === 0 ? ctx.moveTo(x, y) : ctx.lineTo(x, y); } ctx.closePath(); const grad = ctx.createLinearGradient(-HEX_R, 0, HEX_R, 0); grad.addColorStop(0, '#00e5ff'); grad.addColorStop(1, '#00ff9d'); ctx.shadowColor = '#00ffd5'; ctx.shadowBlur = 22; ctx.strokeStyle = grad; ctx.lineWidth = 3; ctx.stroke(); ctx.shadowBlur = 0; ctx.strokeStyle = 'rgba(0,255,213,0.12)'; ctx.lineWidth = 10; ctx.stroke(); ctx.restore();
// --- Balls with trails --- ctx.globalCompositeOperation = 'lighter'; for (const b of balls) { // trail const t = b.trail; for (let i = 0; i < t.length - 2; i += 2) { const alpha = (i / t.length) * 0.35; ctx.strokeStyle = b.color; ctx.globalAlpha = alpha; ctx.lineWidth = b.r * 0.8 * (i / t.length) + 1; ctx.beginPath(); ctx.moveTo(t[i], t[i + 1]); ctx.lineTo(t[i + 2], t[i + 3]); ctx.stroke(); } ctx.globalAlpha = 1; // glow ctx.shadowColor = b.color; ctx.shadowBlur = 18; ctx.fillStyle = b.color; ctx.beginPath(); ctx.arc(b.x, b.y, b.r, 0, Math.PI * 2); ctx.fill(); ctx.shadowBlur = 0; // bright core ctx.fillStyle = 'rgba(255,255,255,0.85)'; ctx.beginPath(); ctx.arc(b.x - b.r * 0.25, b.y - b.r * 0.25, b.r * 0.35, 0, Math.PI * 2); ctx.fill(); } ctx.globalCompositeOperation = 'source-over';
// --- HUD --- ctx.font = '14px "Courier New", monospace'; ctx.textBaseline = 'top'; const lines = [ ['FPS', fps.toFixed(1)], ['RPM', RPM.toFixed(1)], ['BALLS', N_BALLS], ['KINETIC ENERGY', (ke / 1e6).toFixed(3) + ' MJ*'] ]; ctx.fillStyle = 'rgba(5,10,20,0.65)'; ctx.fillRect(8, 8, 210, 86); ctx.strokeStyle = 'rgba(0,255,213,0.4)'; ctx.strokeRect(8.5, 8.5, 209, 85); for (let i = 0; i < lines.length; i++) { const y = 16 + i * 19; ctx.fillStyle = '#00e5ff'; ctx.fillText(lines[i][0] + ':', 18, y); ctx.fillStyle = '#00ff9d'; ctx.fillText(lines[i][1], 130, y); } }
function loop(now) { let dt = (now - lastT) / 1000; lastT = now; if (dt > 0) { const inst = 1 / dt; fps += (inst - fps) * 0.08; // EMA smoothing } dt = Math.min(dt, 1 / 30); // clamp for stability
// substeps for robust collisions const sub = 2; for (let s = 0; s < sub; s++) step(dt / sub);
draw(); requestAnimationFrame(loop); }
// initial clear ctx.fillStyle = '#0b1120'; ctx.fillRect(0, 0, W, H); requestAnimationFrame(loop);})();</script></body></html>README.md+18-6
glassmorphism_ui_html_ours.htmlAdded+426
glassmorphism_ui_html_qwen4.htmlAdded+360
index.html+631-18
pelican_ours.htmlAdded+23
pelican_qwen4.htmlAdded+23
pelican_svg_ours.svgAdded
pelican_svg_qwen4.svgAdded
spinning_hexagon_html_ours.htmlAdded+356
spinning_hexagon_html_qwen4.htmlAdded+262