forked from twitter/opensource-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
year-in-review.html
388 lines (340 loc) · 15.5 KB
/
year-in-review.html
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
---
layout: year-in-review-layout
title: Year in Review | Twitter Open Source
description: Twitter Open Source Website
keywords: twitter, open, source, open source, finatra, finagle, scala
url: https://opensource.twitter.com
custom_css: year-in-review.css
custom_js: year-in-review.js
---
<body data-spy="scroll" data-target="#YIR-navbar">
<!-- Navigation Bar -->
<nav>
<div class="nav-title">
<span class="Icon Icon--logo Icon--large"></span>
<!-- Link in web -->
<a class="YIRnav-home-link" href="{{ site.baseurl }}/">Twitter Open Source</a>
<a class="YIRnav-YIR-link" href="{{ site.baseurl }}/year-in-review">Year in Review</a>
<!-- Only in mobile -->
<p class="home-text">Twitter Open Source</p>
<span id="caret" class="Icon Icon--caretDown"></span>
</div>
<!-- Only in mobile -->
<ul class="nav-menu">
<li class="nav-list-item">
<a class="nav-link" href="#section1">Welcome</a>
</li>
<li class="nav-list-item">
<a class="nav-link" href="#section2">Top 10 repos</a>
</li>
<li class="nav-list-item">
<a class="nav-link" href="#section3">Locations</a>
</li>
<li class="nav-list-item">
<a class="nav-link" href="#section4">Heat metrics</a>
</li>
<li class="nav-list-item">
<a class="nav-link" href="#section5">Light metrics</a>
</li>
<li class="nav-list-item">
<a class="nav-link" href="#section6">Love metrics</a>
</li>
<li class="nav-list-item list-end">
<a class="nav-link" href="#section7">@TwitterOSS</a>
</li>
</ul>
</nav>
<!-- Timeline navigation effect from https://codepen.io/nailaahmad/pen/MyZXVE -->
<div class="YIR-wrapper">
<div class="YIR-container">
<div class="YIR-nav-wrapper" id="YIR-navbar">
<ul class="nav">
<li class="active">
<a href="#section1">
<span class="YIR-nav-title">Welcome</span>
<p class="YIR-nav-body">This webpage updates weekly and provides a sliding window into the previous 12 months. Patches are always welcome.</p>
</a>
</li>
<li>
<a href="#section2">
<span class="YIR-nav-title">Top 10 repos</span>
<p class="YIR-nav-body">These are our top 10 GitHub repositories, ranked by total commit counts.</p>
</a>
</li>
<li>
<a href="#section3">
<span class="YIR-nav-title">Locations</span>
<p class="YIR-nav-body">Our contributors are located all around the world. This list is based on self reported locations from our contributors’ GitHub profiles.</p>
</a>
</li>
<li>
<a href="#section4">
<span class="YIR-nav-title">Heat metrics</span>
<p class="YIR-nav-body">Heat means work. We measure heat by the number and frequency of commits and committers across our repos.</p>
</a>
</li>
<li>
<a href="#section5">
<span class="YIR-nav-title">Light metrics</span>
<p class="YIR-nav-body">Light means visibility. We measure visibility by number of watchers subscribed to updates, and number of people who have favorited our projects.</p>
</a>
</li>
<li>
<a href="#section6">
<span class="YIR-nav-title">Love metrics</span>
<p class="YIR-nav-body">Love means culture and support. We measure love by the number of users who have copied our projects and contributed changes back upstream.</p>
</a>
</li>
<li>
<a href="#section7">
<span class="YIR-nav-title">@TwitterOSS</span>
<p class="YIR-nav-body">Making it simple to trust, ship, and grow Open Source at Twitter and beyond. Follow @TwitterOSS to stay updated!</p>
</a>
</li>
</ul>
</div> <!-- End of YIR-nav-wrapper -->
</div> <!-- End of YIR-container -->
<section class="section1" id="section1">
<div class="YIR-container-section">
<div class="YIR-header">
<!-- id="type" -->
<h1 class="YIR-subheading" id="date-range"></h1>
<h1 id="YIR-heading-text">Year in Review</h1>
<h1 class="YIR-subheading" id="type">An overview of the past 12 months of activity on Twitter’s Open Source projects.</h1>
</div>
<!-- Only visible in mobile -->
<div class="mobile-heading" id="YIR-header-mobile-heading">
<p>This webpage updates weekly and provides a sliding window into the previous 12 months. Patches are always welcome.</p>
</div>
</div>
</section>
<section class="section2" id="section2">
<div class="YIR-container-section">
<!-- Only visible in mobile -->
<div class="mobile-heading">
<h1>Top 10 repos</h1>
<p>These are our top 10 GitHub repositories, ranked by total commit counts.</p>
</div>
<table id="top-10-repos">
<tr>
<th></th>
<th></th>
<th>Total commits</th>
</tr>
<!-- Table content added in year-in-review.js -->
</table>
</div>
</section>
<section class="section3" id="section3">
<div class="YIR-container-section">
<!-- Only visible in mobile -->
<div class="mobile-heading">
<h1 class="large-title">Locations</h1>
<p>Our contributors are located all around the world. This list is based on self reported locations from our contributors’ GitHub profiles.</p>
</div>
<div class="locations">
<div class="location-item">
<img src="assets/year-in-review/flags/united_states_1f1fa-1f1f8.svg" alt="United States flag">
United States
</div>
<div class="location-item">
<img src="assets/year-in-review/flags/greece_1f1ec-1f1f7.svg" alt="Greece flag">
Greece
</div>
<div class="location-item">
<img src="assets/year-in-review/flags/germany_1f1e9-1f1ea.svg" alt="Germany flag">
Germany
</div>
<div class="location-item">
<img src="assets/year-in-review/flags/united_kingdom_1f1ec-1f1e7.svg" alt="United Kingdom flag">
United Kingdom
</div>
<div class="location-item">
<img src="assets/year-in-review/flags/singapore_1f1f8-1f1ec.svg" alt="Singapore flag">
Singapore
</div>
<div class="location-item">
<img src="assets/year-in-review/flags/china_1f1e8-1f1f3.svg" alt="China flag">
China
</div>
<div class="location-item">
<img src="assets/year-in-review/flags/belgium_1f1e7-1f1ea.svg" alt="Belgium flag">
Belgium
</div>
<div class="location-item">
<img src="assets/year-in-review/flags/austria_1f1e6-1f1f9.svg" alt="Austria flag">
Austria
</div>
<div class="location-item">
<img src="assets/year-in-review/flags/peru_1f1f5-1f1ea.svg" alt="Peru flag">
Peru
</div>
<div class="location-item">
<img src="assets/year-in-review/flags/australia_1f1e6-1f1fa.svg" alt="Australia flag">
Australia
</div>
<p class="locations-disclaimer">*Top 10 locations ranked by commits, accurate as of Aug 2019</p>
</div>
</div>
</section>
<section class="section4" id="section4">
<div class="YIR-container-section">
<!-- Only visible in mobile -->
<div class="mobile-heading">
<h1>Heat metrics</h1>
<p>Heat means work. We measure heat by the number and frequency of commits and committers across our repos.</p>
</div>
<div class="metric-wrapper">
<svg class="fire-svg" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width='220px' height ='220px' viewBox="-1 -1 38 38" xml:space="preserve" >
<path class="fire-st0" d="M35,19c0-2.1-0.4-4-1-5.9c-0.5,5.4-3.3,8.2-6.3,6.9c-2.8-1.2-0.9-5.9-0.8-8.2c0.2-3.8,0-8.2-6.9-11.8
c2.9,5.5,0.3,8.9-2.3,9.1c-3,0.2-5.7-2.5-4.7-7c-3.2,2.4-3.3,6.4-2.3,9c1,2.7,0,5-2.6,5.2c-2.8,0.3-4.4-3-3-8.3c-2.5,3-4,6.8-4,11
c0,9.4,7.6,17,17,17S35,28.4,35,19z"/>
<path class="fire-st1" d="M28.4,24c0.1,3.1-2.6,4.3-4,3.7c-2.1-0.8-1.5-2.3-2.1-5.3s-2.6-5.1-5.7-6c2.2,6.3-1.2,8.7-3.1,9.1
c-1.9,0.4-3.8,0-4-4C7.4,23.7,6,26.7,6,30c0,0.4,0,0.7,0.1,1.1c3.1,3,7.3,4.9,11.9,4.9s8.9-1.9,11.9-4.9c0-0.4,0.1-0.7,0.1-1.1
C30,27.8,29.4,25.8,28.4,24z"/>
</svg>
<!-- <img src="assets/year-in-review/fire_outline.svg" alt="Fire emoji" class="emoji-outline"> -->
<div class="metric">
<span class="metric-count" id="commit-count"></span>
<span class="metric-name">commits</span>
<div class="description">
Commits reflect the amount of activity across our repositories.
</div>
</div>
<div class="metric">
<span class="metric-count" id="committer-count"></span>
<span class="metric-name">committers</span>
<div class="description">
Committers are the unique individuals that drive change in our repositories.
</div>
</div>
</div>
</div>
</section>
<section class="section5" id="section5">
<div class="YIR-container-section">
<!-- Only visible in mobile -->
<div class="mobile-heading">
<h1>Light metrics</h1>
<p>Light means visibility. We measure visibility by number of watchers subscribed to updates, and number of people who have favorited our projects.</p>
</div>
<div class="metric-wrapper">
<svg class="sun-svg" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width='220px' height ='220px' viewBox="-1 -1 38 38" xml:space="preserve">
<path class="sun-st0" d="M8,18a10,10 0 1,0 20,0a10,10 0 1,0 -20,0"/>
<path class="sun-st1" d="M16,2c0,0,0-2,2-2s2,2,2,2v2c0,0,0,2-2,2s-2-2-2-2V2z"/>
<path class="sun-st2" d="M34,16c0,0,2,0,2,2s-2,2-2,2h-2c0,0-2,0-2-2s2-2,2-2H34z"/>
<path class="sun-st3" d="M4,16c0,0,2,0,2,2s-2,2-2,2H2c0,0-2,0-2-2s2-2,2-2H4z"/>
<path class="sun-st4" d="M9.1,7.3c0,0,1.4,1.4,0,2.8s-2.8,0-2.8,0L4.9,8.7c0,0-1.4-1.4,0-2.8c1.4-1.4,2.8,0,2.8,0L9.1,7.3z"/>
<path class="sun-st5" d="M30.1,28.3c0,0,1.4,1.4,0,2.8c-1.4,1.4-2.8,0-2.8,0l-1.4-1.4c0,0-1.4-1.4,0-2.8s2.8,0,2.8,0S30.1,28.3,30.1,28.3z"/>
<path class="sun-st6" d="M29.7,10.1c0,0-1.4,1.4-2.8,0s0-2.8,0-2.8l1.4-1.4c0,0,1.4-1.4,2.8,0s0,2.8,0,2.8S29.7,10.1,29.7,10.1z"/>
<path class="sun-st7" d="M8.7,31.1c0,0-1.4,1.4-2.8,0s0-2.8,0-2.8l1.4-1.4c0,0,1.4-1.4,2.8,0s0,2.8,0,2.8S8.7,31.1,8.7,31.1z"/>
<path class="sun-st8" d="M16,32c0,0,0-2,2-2s2,2,2,2v2c0,0,0,2-2,2s-2-2-2-2V32z"/>
</svg>
<!-- <img src="assets/year-in-review/sun_outline.svg" alt="Fire emoji" class="emoji-outline"> -->
<div class="metric">
<span class="metric-count" id="watcher-count"></span>
<span class="metric-name">watchers</span>
<div class="description">
Watchers receive notifications for some or all changes to our codebases.
</div>
</div>
<div class="metric">
<span class="metric-count" id="star-count"></span>
<span class="metric-name">stars</span>
<div class="description">
Stars show preference for a repository, like a bookmark.
</div>
</div>
</div>
</div>
</section>
<section class="section6" id="section6">
<div class="YIR-container-section">
<!-- Only visible in mobile -->
<div class="mobile-heading">
<h1>Love metrics</h1>
<p>Love means culture and support. We measure love by the number of users who have copied our projects and contributed changes back upstream.</p>
</div>
<div class="metric-wrapper">
<svg class="heart-svg" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width='220px' height ='220px' viewBox="-1 -1 38 38" xml:space="preserve">
<path class="heart-st0" d="M31.6,22.9c2-2.8,3.5-5.8,4-8.8c0.2-0.7,0.3-1.5,0.3-2.2C35.9,6.4,31.5,2,26,2c-3.3,0-6.2,1.6-8,4.1
C16.2,3.6,13.3,2,10,2c-5.4,0-9.9,4.4-9.9,9.9c0,0.8,0.1,1.5,0.3,2.2C1.8,22.6,11.2,31.6,18,34c2.6-0.9,5.6-2.8,8.4-5.3"/>
<path class="heart-st1" d="M34.3,23.9l-3.8-1.4l-1.4-3.8C29,18.3,28.6,18,28.2,18s-0.8,0.3-0.9,0.7l-1.4,3.8L22,23.9
c-0.4,0.1-0.7,0.5-0.7,0.9c0,0.4,0.3,0.8,0.7,0.9l3.8,1.4l1.4,3.8c0.1,0.4,0.5,0.7,0.9,0.7s0.8-0.3,0.9-0.7l1.4-3.8l3.8-1.4
c0.4-0.1,0.7-0.5,0.7-0.9S34.7,24,34.3,23.9z M11.3,7.9L9,7L8.1,4.7C8,4.3,7.6,4,7.2,4C6.8,4,6.4,4.3,6.2,4.7L5.4,7L3,7.9
C2.6,8,2.3,8.4,2.3,8.8c0,0.4,0.3,0.8,0.7,0.9l2.4,0.9L6.2,13c0.1,0.4,0.5,0.7,0.9,0.7S8,13.4,8.1,13L9,10.6l2.4-0.9
C11.7,9.6,12,9.2,12,8.8C12,8.4,11.7,8,11.3,7.9z"/>
</svg>
<!-- <img src="assets/year-in-review/heart_outline.svg" alt="Fire emoji" class="emoji-outline"> -->
<div class="metric">
<span class="metric-count" id="fork-count"></span>
<span class="metric-name">forks</span>
<div class="description">
Forks represent full-copies of our repositories, usually for development and testing.
</div>
</div>
<div class="metric">
<span class="metric-count" id="merged-count"></span>
<span class="metric-name">PRs merged</span>
<div class="description">
Our users contribute pull requests (PRs) directly back to us.
</div>
</div>
</div>
</div>
</section>
<section class="section7" id="section7">
<div class="YIR-container-section">
<!-- Only visible in mobile -->
<div class="mobile-heading">
<h1>@TwitterOSS</h1>
<p>Making it simple to trust, ship, and grow Open Source at Twitter and beyond. Follow @TwitterOSS to stay updated!</p>
</div>
<div class="YIR-tweet-wrapper">
<blockquote class="twitter-tweet"><p lang="en" dir="ltr">Heat 🔥 Light ☀️ Love 💖<br><br>A year of growth in Twitter Open Source.<br>Built by <a href="https://twitter.com/terns?ref_src=twsrc%5Etfw">@terns</a>, powered by <a href="https://twitter.com/CHAOSSproj?ref_src=twsrc%5Etfw">@CHAOSSproj</a> <a href="https://t.co/sHuWhxAahJ">https://t.co/sHuWhxAahJ</a></p>— Twitter Open Source (@TwitterOSS) <a href="https://twitter.com/TwitterOSS/status/1162412830189948929?ref_src=twsrc%5Etfw">August 16, 2019</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
</div>
</div>
</section>
</div> <!-- End of YIR-wrapper -->
</body>
<!-- Get all repos and commit counts -->
<script type="text/javascript">
// Get all repos from repo_commits.json
let allRepos = [];
{% for item in site.data.augur.repo_commits %}
allRepos.push({
name: "{{ item[0] }}",
commitCount: "{{ item[1]["commit_count"] }}",
})
{% endfor %}
// Convert numbers greater than 1 million to m, and numbers greater than 10,000 to k
function formatNum(num) {
if (num >= 1000000) {
num = Math.floor(num / 1000000);
return num.toString() + "m";
} else if (num >= 10000) {
num = Math.floor(num / 1000);
return num.toString() + "k";
} else {
return Math.floor(num).toString();
}
}
// Insert metric counts
{% for aggregateSummary in site.data.augur.aggregate_summary %}
var commitCountSpan = document.getElementById("commit-count");
commitCountSpan.innerText = formatNum("{{ aggregateSummary["commit_count"] }}");
var committerCountSpan = document.getElementById("committer-count");
committerCountSpan.innerText = formatNum("{{ aggregateSummary["committer_count"] }}");
var watcherCountSpan = document.getElementById("watcher-count");
watcherCountSpan.innerText = formatNum("{{ aggregateSummary["watcher_count"] }}");
var starCountSpan = document.getElementById("star-count");
starCountSpan.innerText = formatNum("{{ aggregateSummary["stars_count"] }}");
var forkCountSpan = document.getElementById("fork-count");
forkCountSpan.innerText = formatNum("{{ aggregateSummary["fork_count"] }}");
var mergedCountSpan = document.getElementById("merged-count");
mergedCountSpan.innerText = formatNum("{{ aggregateSummary["merged_count"] }}");
{% endfor %}
</script>