mike dupont
commited on
Commit
·
ce4ed2a
1
Parent(s):
1ec5835
Add static analytics dashboard
Browse files- index.html +121 -0
index.html
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Git Activity Analytics</title>
|
| 7 |
+
<style>
|
| 8 |
+
* { margin: 0; padding: 0; box-sizing: border-box; }
|
| 9 |
+
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #0d1117; color: #c9d1d9; }
|
| 10 |
+
.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
|
| 11 |
+
h1 { font-size: 2.5em; margin-bottom: 10px; }
|
| 12 |
+
.subtitle { color: #8b949e; margin-bottom: 40px; }
|
| 13 |
+
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 40px; }
|
| 14 |
+
.stat-card { background: #161b22; border: 1px solid #30363d; border-radius: 6px; padding: 20px; }
|
| 15 |
+
.stat-value { font-size: 2em; font-weight: bold; color: #58a6ff; }
|
| 16 |
+
.stat-label { color: #8b949e; margin-top: 5px; }
|
| 17 |
+
.section { background: #161b22; border: 1px solid #30363d; border-radius: 6px; padding: 30px; margin-bottom: 30px; }
|
| 18 |
+
.section h2 { margin-bottom: 20px; color: #58a6ff; }
|
| 19 |
+
.contributor { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #21262d; }
|
| 20 |
+
.contributor:last-child { border-bottom: none; }
|
| 21 |
+
.rank { color: #8b949e; margin-right: 15px; }
|
| 22 |
+
.name { flex: 1; }
|
| 23 |
+
.metrics { color: #8b949e; font-size: 0.9em; }
|
| 24 |
+
.email-issue { background: #1c2128; padding: 10px; margin: 5px 0; border-left: 3px solid #f85149; border-radius: 3px; }
|
| 25 |
+
.footer { text-align: center; color: #8b949e; margin-top: 60px; }
|
| 26 |
+
a { color: #58a6ff; text-decoration: none; }
|
| 27 |
+
a:hover { text-decoration: underline; }
|
| 28 |
+
</style>
|
| 29 |
+
</head>
|
| 30 |
+
<body>
|
| 31 |
+
<div class="container">
|
| 32 |
+
<h1>📊 Git Activity Analytics</h1>
|
| 33 |
+
<p class="subtitle">Comprehensive analysis of 402,816 commits from 9,001 authors across 53 repositories</p>
|
| 34 |
+
|
| 35 |
+
<div class="stats">
|
| 36 |
+
<div class="stat-card">
|
| 37 |
+
<div class="stat-value" id="total-commits">402,816</div>
|
| 38 |
+
<div class="stat-label">Total Commits</div>
|
| 39 |
+
</div>
|
| 40 |
+
<div class="stat-card">
|
| 41 |
+
<div class="stat-value" id="total-authors">9,001</div>
|
| 42 |
+
<div class="stat-label">Contributors</div>
|
| 43 |
+
</div>
|
| 44 |
+
<div class="stat-card">
|
| 45 |
+
<div class="stat-value" id="total-repos">53</div>
|
| 46 |
+
<div class="stat-label">Repositories</div>
|
| 47 |
+
</div>
|
| 48 |
+
<div class="stat-card">
|
| 49 |
+
<div class="stat-value">564 MB</div>
|
| 50 |
+
<div class="stat-label">Dataset Size</div>
|
| 51 |
+
</div>
|
| 52 |
+
</div>
|
| 53 |
+
|
| 54 |
+
<div class="section">
|
| 55 |
+
<h2>🔝 Top 10 Contributors</h2>
|
| 56 |
+
<div id="top-contributors"></div>
|
| 57 |
+
</div>
|
| 58 |
+
|
| 59 |
+
<div class="section">
|
| 60 |
+
<h2>⚠️ Email Attribution Issues</h2>
|
| 61 |
+
<p style="color: #8b949e; margin-bottom: 15px;">Commits with non-standard or invalid email addresses that may not be properly attributed on GitHub.</p>
|
| 62 |
+
<div id="email-issues"></div>
|
| 63 |
+
</div>
|
| 64 |
+
|
| 65 |
+
<div class="section">
|
| 66 |
+
<h2>📦 Dataset Access</h2>
|
| 67 |
+
<p>Full dataset available at: <a href="https://huggingface.co/datasets/introspector/git-activity" target="_blank">huggingface.co/datasets/introspector/git-activity</a></p>
|
| 68 |
+
<p style="margin-top: 10px; color: #8b949e;">Organized by platform/user/year/month with complete commit metadata including numstat data.</p>
|
| 69 |
+
</div>
|
| 70 |
+
|
| 71 |
+
<div class="footer">
|
| 72 |
+
<p>Generated with custom Rust analytics tools | Data collected 2026-01-15</p>
|
| 73 |
+
</div>
|
| 74 |
+
</div>
|
| 75 |
+
|
| 76 |
+
<script>
|
| 77 |
+
const topContributors = [
|
| 78 |
+
{ rank: 1, name: "bors", commits: 46234, repos: 2, insertions: 18801, deletions: 15938 },
|
| 79 |
+
{ rank: 2, name: "bors[bot]", commits: 13526, repos: 2, insertions: 0, deletions: 0 },
|
| 80 |
+
{ rank: 3, name: "Matthias Krüger", commits: 13315, repos: 2, insertions: 57774, deletions: 36854 },
|
| 81 |
+
{ rank: 4, name: "Aleksey Kladov", commits: 10966, repos: 2, insertions: 1025160, deletions: 922056 },
|
| 82 |
+
{ rank: 5, name: "Ralf Jung", commits: 9549, repos: 2, insertions: 299819, deletions: 250307 },
|
| 83 |
+
{ rank: 6, name: "Lukas Wirth", commits: 8080, repos: 2, insertions: 1167597, deletions: 535245 },
|
| 84 |
+
{ rank: 7, name: "Guillaume Gomez", commits: 7662, repos: 2, insertions: 311045, deletions: 189320 },
|
| 85 |
+
{ rank: 8, name: "Alex Crichton", commits: 5998, repos: 1, insertions: 815007, deletions: 631984 },
|
| 86 |
+
{ rank: 9, name: "Brian Anderson", commits: 5768, repos: 2, insertions: 408915, deletions: 360820 },
|
| 87 |
+
{ rank: 10, name: "bjorn3", commits: 5278, repos: 2, insertions: 185710, deletions: 144209 }
|
| 88 |
+
];
|
| 89 |
+
|
| 90 |
+
const emailIssues = [
|
| 91 |
+
{ name: "mike dupont", email: "h4@solfunmeme.com", commits: 2619, issue: "non-standard domain" },
|
| 92 |
+
{ name: "mike", email: "h@solfunmeme.com", commits: 1497, issue: "non-standard domain" },
|
| 93 |
+
{ name: "Mike DuPont", email: "git@solfunmeme.com", commits: 180, issue: "non-standard domain" },
|
| 94 |
+
{ name: "Oliver Schneider", email: "github4395871230gnr48oli-obk.de", commits: 2620, issue: "invalid format" },
|
| 95 |
+
{ name: "Ulrik Sverdrup", email: "root@localhost", commits: 243, issue: "local email" },
|
| 96 |
+
{ name: "blake2-ppc", email: "blake2-ppc", commits: 204, issue: "invalid format" },
|
| 97 |
+
{ name: "mejrs", email: "unknown", commits: 126, issue: "invalid format" }
|
| 98 |
+
];
|
| 99 |
+
|
| 100 |
+
const contributorsDiv = document.getElementById('top-contributors');
|
| 101 |
+
topContributors.forEach(c => {
|
| 102 |
+
contributorsDiv.innerHTML += `
|
| 103 |
+
<div class="contributor">
|
| 104 |
+
<span class="rank">#${c.rank}</span>
|
| 105 |
+
<span class="name">${c.name}</span>
|
| 106 |
+
<span class="metrics">${c.commits.toLocaleString()} commits • ${c.repos} repos • +${c.insertions.toLocaleString()} -${c.deletions.toLocaleString()}</span>
|
| 107 |
+
</div>
|
| 108 |
+
`;
|
| 109 |
+
});
|
| 110 |
+
|
| 111 |
+
const issuesDiv = document.getElementById('email-issues');
|
| 112 |
+
emailIssues.forEach(i => {
|
| 113 |
+
issuesDiv.innerHTML += `
|
| 114 |
+
<div class="email-issue">
|
| 115 |
+
<strong>${i.name}</strong> <${i.email}> - ${i.commits.toLocaleString()} commits (${i.issue})
|
| 116 |
+
</div>
|
| 117 |
+
`;
|
| 118 |
+
});
|
| 119 |
+
</script>
|
| 120 |
+
</body>
|
| 121 |
+
</html>
|