-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmethodology.html
More file actions
696 lines (625 loc) · 26.8 KB
/
Copy pathmethodology.html
File metadata and controls
696 lines (625 loc) · 26.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
<!DOCTYPE html>
<html lang="en" data-theme="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Methodology | Orange Dev Tracker | Bitcoin Data Labs</title>
<meta name="description"
content="Detailed methodology for tracking Bitcoin Core development metrics. Learn how we calculate contributor tiers, codebase size, and corporate sponsorship heuristics.">
<link rel="canonical" href="https://sorukumar.github.io/orange-dev-tracker/methodology.html">
<link rel="stylesheet" href="https://bitcoindatalabs.org/styles/styles.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
<link rel="icon" type="image/png" href="https://bitcoindatalabs.org/favicon.png">
<!-- Open Graph -->
<meta property="og:title" content="Methodology | Orange Dev Tracker | Bitcoin Data Labs">
<meta property="og:description" content="Detailed methodology for tracking Bitcoin Core development metrics.">
<meta property="og:image" content="https://sorukumar.github.io/orange-dev-tracker/assets/og-image.png">
<link rel="stylesheet" href="styles/style.css">
<style>
/* Methodology Documentation Layout */
:root {
--stripe-slate: #0a2540;
--stripe-text: #424770;
--accent-orange: #E8916B;
--sidebar-width: 260px;
--section-gap: 5rem;
--app-bg: #fcfbf9;
/* Warmer background to match app */
}
body {
background-color: var(--app-bg);
color: var(--stripe-text);
line-height: 1.6;
font-family: 'Inter', sans-serif;
display: flex;
flex-direction: column;
min-height: 100vh;
margin: 0;
}
.layout-wrapper {
display: flex;
max-width: 1300px;
margin: 0 auto;
position: relative;
flex: 1;
width: 100%;
box-sizing: border-box;
}
/* Sidebar Navigation */
.sidebar {
width: var(--sidebar-width);
height: calc(100vh - 120px);
position: sticky;
top: 120px;
padding: 2rem 1.5rem;
overflow-y: auto;
}
@media (max-width: 1024px) {
.sidebar {
display: none;
}
.main-content {
margin-left: 0 !important;
max-width: 100% !important;
}
}
.sidebar h3 {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.12em;
color: #8898aa;
margin-bottom: 1.5rem;
font-weight: 700;
padding-left: 14px;
}
.sidebar ul {
list-style: none;
padding: 0;
margin: 0;
}
.sidebar li {
margin-bottom: 0.5rem;
}
.sidebar a {
color: #6b7280;
text-decoration: none;
font-size: 0.95rem;
transition: all 0.2s;
display: block;
padding: 10px 16px;
border-radius: 50px;
/* Pill shape */
font-weight: 500;
}
.sidebar a:hover {
color: var(--accent-orange);
background: #fffafa;
}
.sidebar a.active {
color: var(--accent-orange);
background: #fef2e0;
/* Matches header pill */
font-weight: 600;
}
/* Main Content */
.main-content {
flex: 1;
padding: 3rem 4rem;
max-width: 850px;
min-height: 100vh;
}
.page-header {
margin-bottom: 4rem;
}
.page-header h1 {
font-size: 2rem;
color: #2D3748;
font-weight: 700;
margin: 0 0 0.5rem 0;
letter-spacing: -0.01em;
}
.page-header p {
font-size: 1.05rem;
color: #718096;
margin: 0;
max-width: 650px;
}
/* Pipeline Visual */
.pipeline-container {
background: #0a2540;
border-radius: 16px;
padding: 3rem 2rem;
margin-bottom: 4rem;
color: white;
position: relative;
overflow: hidden;
box-shadow: 0 20px 40px rgba(10, 37, 64, 0.1);
}
.pipeline-title {
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--accent-orange);
font-weight: 700;
margin-bottom: 2rem;
display: flex;
align-items: center;
gap: 10px;
}
.pipeline-steps {
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
}
.step {
text-align: center;
flex: 1;
position: relative;
z-index: 2;
}
.step-icon {
width: 50px;
height: 50px;
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 1rem;
font-size: 1.25rem;
color: white;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.step:hover .step-icon {
transform: translateY(-5px);
background: var(--accent-orange);
border-color: var(--accent-orange);
box-shadow: 0 10px 20px rgba(247, 147, 26, 0.3);
}
.step-label {
font-size: 0.85rem;
font-weight: 600;
color: rgba(255, 255, 255, 0.95);
}
.step-desc {
font-size: 0.7rem;
color: rgba(255, 255, 255, 0.5);
margin-top: 4px;
}
.connector {
flex: 1;
height: 2px;
background: rgba(255, 255, 255, 0.1);
margin-top: -30px;
}
/* Content Sections */
section {
margin-bottom: var(--section-gap);
scroll-margin-top: 140px;
}
section h2 {
font-size: 1.75rem;
color: var(--stripe-slate);
margin-bottom: 1.5rem;
display: flex;
align-items: center;
gap: 12px;
font-weight: 700;
border-bottom: none;
padding-bottom: 0;
}
section p {
font-size: 1.05rem;
color: #424770;
margin-bottom: 1.5rem;
}
/* Metric Cards */
.metric-card {
background: white;
border: 1px solid #e6ebf1;
border-radius: 12px;
padding: 1.75rem;
margin-bottom: 1.5rem;
transition: border-color 0.2s;
}
.metric-card:hover {
border-color: #d1d9e2;
}
.metric-card h4 {
font-size: 1.1rem;
font-weight: 600;
color: var(--stripe-slate);
margin-bottom: 0.75rem;
display: flex;
align-items: center;
justify-content: space-between;
}
.badge-source {
font-size: 0.65rem;
text-transform: uppercase;
letter-spacing: 0.05em;
background: #f6f9fc;
color: #8898aa;
padding: 3px 8px;
border-radius: 4px;
font-weight: 600;
}
.details-box {
background: #f8fafc;
border-radius: 8px;
padding: 1.25rem;
margin-top: 1rem;
border: 1px solid #edf2f7;
}
.details-box dt {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: #a0aec0;
font-weight: 700;
margin-bottom: 0.25rem;
}
.details-box dd {
margin-left: 0;
font-size: 0.95rem;
color: var(--stripe-text);
margin-bottom: 1rem;
}
.details-box dd:last-child {
margin-bottom: 0;
}
/* Criticality Indicators */
.weight-pill {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 0.75rem;
font-weight: 700;
padding: 4px 10px;
border-radius: 20px;
}
.weight-high {
background: #fee2e2;
color: #991b1b;
}
.weight-med {
background: #fef3c7;
color: #92400e;
}
.weight-low {
background: #ecfdf5;
color: #065f46;
}
pre {
background: #0a2540;
color: #f7fafc;
padding: 1.25rem;
border-radius: 8px;
font-size: 0.85rem;
margin: 1.5rem 0;
overflow-x: auto;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 1rem;
}
th,
td {
text-align: left;
padding: 12px;
border-bottom: 1px solid #e6ebf1;
}
th {
background: #f8fafc;
color: var(--stripe-slate);
font-weight: 600;
text-transform: uppercase;
font-size: 0.75rem;
}
.static-link {
display: inline-flex;
align-items: center;
gap: 8px;
color: var(--accent-orange);
text-decoration: none;
font-weight: 600;
font-size: 0.95rem;
margin-top: 0.5rem;
}
.static-link:hover {
text-decoration: underline;
}
@media (max-width: 768px) {
.main-content {
padding: 2rem 1.5rem;
}
.pipeline-steps {
flex-direction: column;
gap: 2rem;
}
.connector {
display: none;
}
}
</style>
</head>
<body class="has-fixed-header">
<div id="header"></div>
<div class="layout-wrapper">
<!-- Sidebar Navigation -->
<aside class="sidebar">
<h3>Methodology</h3>
<ul>
<li><a href="#pipeline" class="active">The Data Pipeline</a></li>
<li><a href="#contributors">Contributors & Aliases</a></li>
<li><a href="#maintainers">Maintainer Tracking</a></li>
<li><a href="#codebase">Codebase & LOC</a></li>
<li><a href="#categories">Categories & Mapping</a></li>
<li><a href="#criticality">Impact & Criticality</a></li>
<li><a href="#sources">Data Sources</a></li>
</ul>
</aside>
<!-- Main Content -->
<main class="main-content">
<header class="page-header">
<h1>Our Methodology</h1>
<p>Technical transparency on how we ingest, resolve, and analyze Bitcoin Core development activity.</p>
</header>
<!-- Data Pipeline Section -->
<section id="pipeline">
<div class="pipeline-container">
<div class="pipeline-title">
<i class="fas fa-microchip"></i>
The Data Lifecycle
</div>
<div class="pipeline-steps">
<div class="step">
<div class="step-icon"><i class="fas fa-terminal"></i></div>
<div class="step-label">Extract</div>
<div class="step-desc">Git Numstat</div>
</div>
<div class="connector"></div>
<div class="step">
<div class="step-icon"><i class="fas fa-project-diagram"></i></div>
<div class="step-label">Resolve</div>
<div class="step-desc">Identity Fusion</div>
</div>
<div class="connector"></div>
<div class="step">
<div class="step-icon"><i class="fas fa-tags"></i></div>
<div class="step-label">Classify</div>
<div class="step-desc">Functional Areas</div>
</div>
<div class="connector"></div>
<div class="step">
<div class="step-icon"><i class="fas fa-file-export"></i></div>
<div class="step-label">Serialize</div>
<div class="step-desc">JSON Artifacts</div>
</div>
</div>
</div>
<p>The Orange Dev Tracker is powered by a forensic Git analysis pipeline. We reconstruct the 15-year
history of the project to understand the evolution of the software and the people behind it.</p>
</section>
<!-- Contributors Section -->
<section id="contributors">
<h2><i class="fas fa-users" style="color: var(--accent-orange)"></i> Contributors & Aliases</h2>
<p>We track individuals who have authored at least one commit. Because developers often use multiple
aliases, we apply identity resolution to unify them into unique human identities.</p>
<div class="metric-card">
<h4>Unique Contributors <span class="badge-source">Engine: clean.py</span></h4>
<p>Total count of distinct individuals with aliases unified via a graph clustering algorithm.</p>
<div class="details-box">
<dt>Methodology</dt>
<dd>We build a relational graph where names and emails are nodes. Edges are drawn when they
appear in the same commit. Connected components represent a single identity.</dd>
<dt>Resolution</dt>
<dd>Known pseudonyms (e.g., <code>sipa</code> → <code>Pieter Wuille</code>) are manually fused
using our <code>aliases_lookup.json</code> index.</dd>
</div>
</div>
</section>
<!-- Maintainers Section -->
<section id="maintainers">
<h2><i class="fas fa-key" style="color: var(--accent-orange)"></i> Maintainer Tracking</h2>
<p>Maintainers are the technical gatekeepers of the project. We track both historical lineage and
current authority.</p>
<div class="metric-card">
<h4>The Trusted Circle</h4>
<div class="details-box">
<dt>Historical (Author Era)</dt>
<dd>Verified via community records (StackExchange) for early committers like Satoshi Nakamoto,
Laszlo Hanyecz, and Gavin Andresen.</dd>
<dt>Modern (Merge Era)</dt>
<dd>Identified by the <code>committer_email</code> on <code>is_merge = True</code> commits,
cross-referenced with the <code>trusted-keys</code> whitelist from the repository.</dd>
</div>
</div>
</section>
<!-- Codebase Section -->
<section id="codebase">
<h2><i class="fas fa-code-branch" style="color: var(--accent-orange)"></i> Codebase & LOC</h2>
<p>We measure project size using a combination of static analysis (current state) and historical churn
replays (evolution).</p>
<div class="metric-card">
<h4>Logic Lines of Code (LLOC)</h4>
<div class="details-box">
<dt>Included</dt>
<dd>C++, Python (Tests), C, and Shell scripts.</dd>
<dt>Excluded</dt>
<dd>Qt translations (.ts), UI forms (.ui), documentation (.md), and generated assets.</dd>
</div>
</div>
</section>
<!-- Categories Section -->
<section id="categories">
<h2><i class="fas fa-tags" style="color: var(--accent-orange)"></i> Categories & Mapping</h2>
<p>Every file in the Bitcoin Core repository is assigned a functional category. This allows us to track
development focus and calculate risk-weighted impact scores.</p>
<div class="metric-card" style="border-left: 4px solid var(--accent-orange); background: #fffcf9;">
<h4><i class="fas fa-exclamation-circle"
style="color: var(--accent-orange); margin-right: 8px;"></i>
Priority Rules</h4>
<p style="font-size: 0.95rem; margin-bottom: 0;">To ensure cross-cutting work like Testing and
Documentation is correctly captured, we apply rules in a specific <strong>priority
order</strong>. Cross-subsystem tests are identified first. For example, a file residing in
<code>src/wallet/test/</code> is categorized as <strong>Tests (QA)</strong>, not Wallet, because
its primary function is validation rather than feature logic.
</p>
</div>
<div class="metric-card">
<h4>Full Category Index</h4>
<div style="overflow-x: auto;">
<table>
<thead>
<tr>
<th>Category</th>
<th>Primary Paths / Patterns</th>
<th>Core Role</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>Consensus</strong></td>
<td><code>src/consensus/</code>, <code>src/validation</code></td>
<td>Protocol invariant rules</td>
</tr>
<tr>
<td><strong>Cryptography</strong></td>
<td><code>src/crypto/</code>, <code>src/secp256k1/</code></td>
<td>Mathematical primitives</td>
</tr>
<tr>
<td><strong>Core Libs</strong></td>
<td><code>src/kernel/</code>, <code>src/script/</code></td>
<td>Architectural scaffolding</td>
</tr>
<tr>
<td><strong>P2P Network</strong></td>
<td><code>src/net/</code>, <code>src/protocol</code></td>
<td>Communication fabric</td>
</tr>
<tr>
<td><strong>Database</strong></td>
<td><code>src/leveldb/</code>, <code>src/dbwrapper</code></td>
<td>Persistence & Indexing</td>
</tr>
<tr>
<td><strong>Utilities</strong></td>
<td><code>src/util/</code>, <code>src/support/</code></td>
<td>Shared helpers</td>
</tr>
<tr>
<td><strong>Node & RPC</strong></td>
<td><code>src/node/</code>, <code>src/rpc/</code></td>
<td>Application & Interface</td>
</tr>
<tr>
<td><strong>Wallet</strong></td>
<td><code>src/wallet/</code>, <code>src/interfaces</code></td>
<td>Key & Coin management</td>
</tr>
<tr>
<td><strong>GUI</strong></td>
<td><code>src/qt/</code></td>
<td>Visual presentation</td>
</tr>
<tr>
<td><strong>Tests (QA)</strong></td>
<td><code>/test/</code>, <code>/fuzz/</code>, <code>*/test/*.cpp</code></td>
<td>Global & subsystem validation</td>
</tr>
<tr>
<td><strong>Build & CI</strong></td>
<td><code>ci/</code>, <code>Makefile</code>, <code>depends/</code></td>
<td>Compilation & DevOps</td>
</tr>
<tr>
<td><strong>Documentation</strong></td>
<td><code>doc/</code>, <code>*.md</code></td>
<td>Education & Guides</td>
</tr>
</tbody>
</table>
</div>
</div>
</section>
<!-- Criticality Section -->
<section id="criticality">
<h2><i class="fas fa-shield-alt" style="color: var(--accent-orange)"></i> Impact & Criticality</h2>
<p>We use a Risk-Weighted Impact Model to visualize development focus. Not all code is equal; a bug in
Consensus is existential, while a typo in Documentation is minor.</p>
<div class="metric-card">
<h4>Weighting Groups</h4>
<div class="details-box">
<dt>Security Group (50x)</dt>
<dd><span class="weight-pill weight-high">50x</span> Consensus, Cryptography, Core Libs.</dd>
<dt>Resilience Group (30x - 40x)</dt>
<dd><span class="weight-pill weight-med">40x</span> P2P Network. <span
class="weight-pill weight-med">30x</span> Database, Utilities.</dd>
<dt>Usability Group (10x - 20x)</dt>
<dd><span class="weight-pill weight-low">20x</span> Wallet. <span
class="weight-pill weight-low">10x</span> Node & RPC, GUI.</dd>
<dt>Quality & Education (1x - 5x)</dt>
<dd><span class="weight-pill weight-low">5x</span> Tests, Build & CI. <span
class="weight-pill weight-low">1x</span> Documentation.</dd>
</div>
</div>
<div class="metric-card">
<h4>The Formula</h4>
<p>Impact scores are calculated using fractional attribution to prevent over-counting multi-category
work.</p>
<pre><code>Score = Σ (Commit × Weight × 1/N)</code></pre>
</div>
</section>
<!-- Sources Section -->
<section id="sources">
<h2><i class="fas fa-database" style="color: var(--accent-orange)"></i> Data Sources</h2>
<p>Transparency is our priority. You can verify all static classification data directly via our
repository.</p>
<div class="metric-card">
<h4>Verified Data Assets</h4>
<p>These JSON files provide the ground truth for our forensics. We invite the community to review
and suggest improvements via PRs.</p>
<div class="details-box">
<dt>Identity & Aliases</dt>
<dd>Unifies multiple developer identities (names/emails) into single human entities.
<br><a
href="https://raw.githubusercontent.com/sorukumar/orange-dev-tracker/main/data/aliases_lookup.json"
class="static-link" target="_blank"><i class="fas fa-external-link-alt"></i>
aliases_lookup.json</a>
</dd>
<dt>Maintainer Trust</dt>
<dd>The whitelist of historical and active maintainers authorized to merge code.
<br><a
href="https://raw.githubusercontent.com/sorukumar/orange-dev-tracker/main/data/maintainers_lookup.json"
class="static-link" target="_blank"><i class="fas fa-external-link-alt"></i>
maintainers_lookup.json</a>
</dd>
<dt>Corporate Sponsorship</dt>
<dd>Heuristics for mapping emails and companies to sponsorship status.
<br><a
href="https://raw.githubusercontent.com/sorukumar/orange-dev-tracker/main/data/sponsors_lookup.json"
class="static-link" target="_blank"><i class="fas fa-external-link-alt"></i>
sponsors_lookup.json</a>
</dd>
<dt>Regional Identification</dt>
<dd>Verified geographical locations for contributors (where public).
<br><a
href="https://raw.githubusercontent.com/sorukumar/orange-dev-tracker/main/data/identified_locations.json"
class="static-link" target="_blank"><i class="fas fa-external-link-alt"></i>
identified_locations.json</a>
</dd>
</div>
</div>
</section>
</main>
</div>
<div id="footer"></div>
<script src="https://bitcoindatalabs.org/components/app-components.js"></script>
<script src="js/app-config.js"></script>
</body>
</html>