-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathindex.html
6277 lines (5670 loc) · 577 KB
/
index.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
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
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>Everything You Always Wanted To Know About GitHub (But Were Afraid To Ask)</title>
<link type="text/css" rel="stylesheet" href="https://code.highcharts.com/css/highcharts.css"/>
<style type="text/css">
html
{
background: #FFF;
}
body
{
background: white;
padding: 5rem;
}
html, body
{
font-family: 'Noto Sans', Sans-Serif;
font-weight: 300;
color: black;
line-height: 1.5;
}
body
{
width: 60%;
min-width: 1000px;
margin: auto;
}
h1
{
text-align: center;
font-size: 36pt;
margin-top: -1rem;
}
h2, h3
{
margin-top: 2rem;
}
h2
{
font-size: 24pt;
}
h3
{
font-size: 20pt;
}
.toc2
{
}
.toc3
{
margin-left: 1rem;
}
a, a:visited
{
font-weight: 400;
color: #0088FF;
text-decoration: none;
}
a:active, a:focus, a:hover
{
color: #FF4400;
border: 0;
}
p
{
font-size: 14pt;
}
pre, .code
{
font-family: Liberation Mono, DejaVu Sans Mono, MonoLisa, Consolas, Monospace;
line-height: 1.1;
}
pre
{
font-size: 10pt;
padding: 0.5rem;
overflow-x: scroll;
background: #eff0f1;
}
.code
{
background: #F8F4E8;
padding-left: 0.25rem;
padding-right: 0.25rem;
white-space: nowrap;
font-size: 90%;
}
.wrap
{
white-space: normal;
}
.anchor, .anchor:visited
{
color: #DB9;
#padding-left: 0.5rem;
}
#toc
{
font-size: 90%;
}
#move-to-top
{
float: left;
top: 1rem;
left: 1rem;
margin-left: -10rem;
margin-top: 0.5rem;
font-size: 24pt;
position: sticky;
-webkit-position: sticky;
}
#move-to-top a
{
color: #CCC;
}
.button
{
cursor: pointer;
}
.button_selected, .button_selected:hover
{
font-weight: bold;
color: #000;
}
.copyright
{
text-align: center;
color: gray;
font-size: 70%;
margin-top: 5rem;
margin-bottom: -3rem;
}
.chart
{
margin-top: 2rem;
box-shadow: 0 0 1rem #EEE;
}
.sql
{
font-weight: bold;
white-space: pre-wrap;
}
.edit, .edit:visited
{
float: right;
display: block;
font-size: 300%;
color: #888;
z-index: -1;
}
@media (prefers-color-scheme: dark)
{
html, body
{
background: #211f22;
color: #d6d9d6;
}
h1
{
color: #eed9b7;
}
h2, h3
{
color: #eed9b7;
}
a, a:visited
{
font-weight: 400;
color: #4bdaf7;
text-decoration: none;
}
pre, .code
{
font-family: DejaVu Sans Mono, Liberation Mono, MonoLisa, Consolas, Monospace;
}
pre
{
background: #3d3b40;
scrollbar-color: dark;
}
.code
{
background: #3d3b40;
color: #FFF;
}
.button_selected, .button_selected:hover
{
color: #FFF;
}
.anchor, .anchor:visited, #move-to-top a
{
color: #555;
}
html
{
--scrollbarBG: #3d3b40;
--thumbBG: #4d4a50;
}
pre::-webkit-scrollbar
{
height: 0.75rem;
}
pre
{
scrollbar-height: thin;
scrollbar-color: var(--thumbBG) var(--scrollbarBG);
}
pre::-webkit-scrollbar-track
{
background: var(--scrollbarBG);
}
pre::-webkit-scrollbar-thumb
{
background-color: var(--thumbBG) ;
border-radius: 6px;
border: 3px solid var(--scrollbarBG);
}
.chart
{
box-shadow: none;
}
.highcharts-background
{
fill: #3d3b40;
}
.highcharts-series-1
{
stroke: magenta;
}
.highcharts-legend-item-hidden
{
fill-opacity: 0.5;
}
.highcharts-container text
{
fill: #d6d9d6;
}
.highcharts-subtitle,
.highcharts-credits,
.highcharts-axis-title
{
fill-opacity: 0.7;
}
.highcharts-tooltip-box
{
fill: #3d3b40;
}
.highcharts-column-series rect.highcharts-point
{
stroke: #3d3b40;
}
}
</style>
</head>
<body>
<h1>Everything You Always Wanted To Know<br/>About GitHub (But Were Afraid To Ask)</h1>
<h2>Abstract</h2>
<p>We prepared a dataset from the <a href="https://www.gharchive.org/">GH Archive</a> that contains all the events in all GitHub repositories since 2011 in structured format. The dataset was uploaded into <a href="https://clickhouse.com/">ClickHouse</a>, where it contains 3.1 billion records. We redistribute it for research purposes and it can be downloaded at this <a href="#download-the-dataset">direct link</a>. This dataset can help answer almost any question about GitHub that you can imagine.</p>
<p>This article shows the usage of the dataset and offers insights into the GitHub ecosystem. It emphasizes how easy it is to play with data using modern tools.</p>
<div id="move-to-top"><a href="#table-of-contents">▲</a></div>
<h2>Table of Contents</h2>
<p id='toc'></p>
<h2>Let's play with the data!</h2>
<h3>Counting stars</h3>
<p>The <span class="code">WatchEvent</span> is the event when someone gives a star to a repo.</p>
<pre class="query">
:) <span class="sql">SELECT count() FROM github_events WHERE event_type = 'WatchEvent'</span>
┌───count()─┐
│ 232118474 │
└───────────┘
1 rows in set. Elapsed: 0.034 sec. Processed 232.13 million rows, 232.13 MB (6.85 billion rows/s., 6.85 GB/s.)
</pre>
<p>There is no event when someone removes the star. This means that star removal is invisible, but it should be rare in any case, so we can calculate the approximate number of stars from these events.</p>
<pre class="query">
:) <span class="sql">SELECT action, count() FROM github_events WHERE event_type = 'WatchEvent' GROUP BY action</span>
┌─action──┬───count()─┐
│ started │ 232118474 │
└─────────┴───────────┘
1 rows in set. Elapsed: 0.034 sec. Processed 232.13 million rows, 464.26 MB (6.77 billion rows/s., 13.53 GB/s.)
</pre>
<p>There are over 200 million stars on GitHub!</p>
<p>Let's validate the star count by comparing it for my favorite repository:</p>
<pre class="query">
:) <span class="sql">SELECT count() FROM github_events WHERE event_type = 'WatchEvent' AND repo_name IN ('ClickHouse/ClickHouse', 'yandex/ClickHouse') GROUP BY action</span>
┌─count()─┐
│ 14359 │
└─────────┘
1 rows in set. Elapsed: 0.006 sec. Processed 32.77 thousand rows, 166.65 KB (5.52 million rows/s., 28.07 MB/s.)
</pre>
<p>The number looks consistent with the real star count.</p>
<p>(The repository was moved from <span class="code">yandex/ClickHouse</span> to <span class="code">ClickHouse/ClickHouse</span> on October 2019, so we have to sum up the numbers for two repos.)</p>
<h3>Top repositories by stars</h3>
<p>This is the first report that comes to mind.</p>
<pre class="query">
:) SET output_format_pretty_row_numbers = 1
:) <span class="sql">SELECT repo_name, count() AS stars FROM github_events WHERE event_type = 'WatchEvent' GROUP BY repo_name ORDER BY stars DESC LIMIT 50</span>
┌─repo_name──────────────────────────────┬──stars─┐
1. │ <a href="https://github.com/996icu/996.ICU">996icu/996.ICU</a> │ 354850 │
2. │ <a href="https://github.com/FreeCodeCamp/FreeCodeCamp">FreeCodeCamp/FreeCodeCamp</a> │ 225490 │
3. │ <a href="https://github.com/vuejs/vue">vuejs/vue</a> │ 199731 │
4. │ <a href="https://github.com/facebook/react">facebook/react</a> │ 188575 │
5. │ <a href="https://github.com/tensorflow/tensorflow">tensorflow/tensorflow</a> │ 173681 │
6. │ <a href="https://github.com/sindresorhus/awesome">sindresorhus/awesome</a> │ 160542 │
7. │ <a href="https://github.com/kamranahmedse/developer-roadmap">kamranahmedse/developer-roadmap</a> │ 147561 │
8. │ <a href="https://github.com/getify/You-Dont-Know-JS">getify/You-Dont-Know-JS</a> │ 144146 │
9. │ <a href="https://github.com/freeCodeCamp/freeCodeCamp">freeCodeCamp/freeCodeCamp</a> │ 140027 │
10. │ <a href="https://github.com/twbs/bootstrap">twbs/bootstrap</a> │ 126371 │
11. │ <a href="https://github.com/torvalds/linux">torvalds/linux</a> │ 121415 │
12. │ <a href="https://github.com/jwasham/coding-interview-university">jwasham/coding-interview-university</a> │ 119797 │
13. │ <a href="https://github.com/github/gitignore">github/gitignore</a> │ 119322 │
14. │ <a href="https://github.com/donnemartin/system-design-primer">donnemartin/system-design-primer</a> │ 118394 │
15. │ <a href="https://github.com/flutter/flutter">flutter/flutter</a> │ 116303 │
16. │ <a href="https://github.com/airbnb/javascript">airbnb/javascript</a> │ 115651 │
17. │ <a href="https://github.com/jackfrued/Python-100-Days">jackfrued/Python-100-Days</a> │ 108760 │
18. │ <a href="https://github.com/robbyrussell/oh-my-zsh">robbyrussell/oh-my-zsh</a> │ 107173 │
19. │ <a href="https://github.com/facebook/react-native">facebook/react-native</a> │ 105346 │
20. │ <a href="https://github.com/TheAlgorithms/Python">TheAlgorithms/Python</a> │ 102067 │
21. │ <a href="https://github.com/vinta/awesome-python">vinta/awesome-python</a> │ 98604 │
22. │ <a href="https://github.com/Snailclimb/JavaGuide">Snailclimb/JavaGuide</a> │ 97793 │
23. │ <a href="https://github.com/vhf/free-programming-books">vhf/free-programming-books</a> │ 94137 │
24. │ <a href="https://github.com/CyC2018/CS-Notes">CyC2018/CS-Notes</a> │ 93320 │
25. │ <a href="https://github.com/golang/go">golang/go</a> │ 92407 │
26. │ <a href="https://github.com/EbookFoundation/free-programming-books">EbookFoundation/free-programming-books</a> │ 92016 │
27. │ <a href="https://github.com/trekhleb/javascript-algorithms">trekhleb/javascript-algorithms</a> │ 89512 │
28. │ <a href="https://github.com/danistefanovic/build-your-own-x">danistefanovic/build-your-own-x</a> │ 89253 │
29. │ <a href="https://github.com/jlevy/the-art-of-command-line">jlevy/the-art-of-command-line</a> │ 87750 │
30. │ <a href="https://github.com/Microsoft/vscode">Microsoft/vscode</a> │ 82043 │
31. │ <a href="https://github.com/angular/angular">angular/angular</a> │ 80602 │
32. │ <a href="https://github.com/justjavac/free-programming-books-zh_CN">justjavac/free-programming-books-zh_CN</a> │ 78460 │
33. │ <a href="https://github.com/labuladong/fucking-algorithm">labuladong/fucking-algorithm</a> │ 77568 │
34. │ <a href="https://github.com/angular/angular.js">angular/angular.js</a> │ 76251 │
35. │ <a href="https://github.com/FortAwesome/Font-Awesome">FortAwesome/Font-Awesome</a> │ 75924 │
36. │ <a href="https://github.com/nodejs/node">nodejs/node</a> │ 75477 │
37. │ <a href="https://github.com/tensorflow/models">tensorflow/models</a> │ 75206 │
38. │ <a href="https://github.com/laravel/laravel">laravel/laravel</a> │ 74136 │
39. │ <a href="https://github.com/daneden/animate.css">daneden/animate.css</a> │ 74095 │
40. │ <a href="https://github.com/mrdoob/three.js">mrdoob/three.js</a> │ 72597 │
41. │ <a href="https://github.com/M4cs/BabySploit">M4cs/BabySploit</a> │ 71572 │
42. │ <a href="https://github.com/ant-design/ant-design">ant-design/ant-design</a> │ 71552 │
43. │ <a href="https://github.com/electron/electron">electron/electron</a> │ 71394 │
44. │ <a href="https://github.com/kubernetes/kubernetes">kubernetes/kubernetes</a> │ 68644 │
45. │ <a href="https://github.com/resume/resume.github.com">resume/resume.github.com</a> │ 68423 │
46. │ <a href="https://github.com/atom/atom">atom/atom</a> │ 68396 │
47. │ <a href="https://github.com/iluwatar/java-design-patterns">iluwatar/java-design-patterns</a> │ 67831 │
48. │ <a href="https://github.com/PanJiaChen/vue-element-admin">PanJiaChen/vue-element-admin</a> │ 67625 │
49. │ <a href="https://github.com/django/django">django/django</a> │ 66415 │
50. │ <a href="https://github.com/apple/swift">apple/swift</a> │ 66350 │
└────────────────────────────────────────┴────────┘
50 rows in set. Elapsed: 0.663 sec. Processed 232.13 million rows, 1.81 GB (350.34 million rows/s., 2.73 GB/s.)
</pre>
<p>The top repository ever is "996.ICU" — it's not for software, but more like a project to improve awareness about work schedules in different Chinese companies. But wait... it's not the top repo. We see two copies of "FreeCodeCamp": <span class="code">FreeCodeCamp/FreeCodeCamp</span> and <span class="code">freeCodeCamp/freeCodeCamp</span>. If we sum up the stars it will be <span class="code">225390 + 139197 = 360137</span> — slightly more than "996.ICU". So, the top repository on GitHub is an educational resource.</p>
<p>Next we see: JavaScript framework, then Machine Learning framework, then another JavaScript framework, then the list of Awesome Awesomeness, then the JavaScript education resources, then another education project, another education project, UI framework, education, education, UI framework, JS something, CSS framework and finally in 17th place there is Linux. Let's stop at this point.</p>
<p>Bottomline: GitHub is full of JavaScript frameworks and education content. But don't jump to conclusions yet — we've only scratched the surface!</p>
<h3>Distribution of repositories by star count</h3>
<p>By the way, what is the distribution of repositories by stars?</p>
<pre class="query">
<span class="sql">SELECT
exp10(floor(log10(c))) AS stars,
uniq(k)
FROM
(
SELECT
repo_name AS k,
count() AS c
FROM github_events
WHERE event_type = 'WatchEvent'
GROUP BY k
)
GROUP BY stars
ORDER BY stars ASC</span>
┌──stars─┬──uniq(k)─┐
│ 1 │ 14946505 │
│ 10 │ 1196622 │
│ 100 │ 213026 │
│ 1000 │ 28944 │
│ 10000 │ 1847 │
│ 100000 │ 20 │
└────────┴──────────┘
6 rows in set. Elapsed: 1.249 sec. Processed 232.13 million rows, 1.81 GB (185.80 million rows/s., 1.45 GB/s.)
</pre>
<p>There are only 16 million repositories that have at least one star. There are only 1.4 million repositories with 10+ stars. Just 240 000 repositories have over 100 stars, 29 000 have over 1k stars, 1800 have over 10k stars and there are only 20 repositories with more than 100k stars.</p>
<h3>The total number of repositories on GitHub</h3>
<pre class="query">
:) <span class="sql">SELECT uniq(repo_name) FROM github_events</span>
┌─uniq(repo_name)─┐
│ 164059648 │
└─────────────────┘
1 rows in set. Elapsed: 3.801 sec. Processed 3.12 billion rows, 24.87 GB (820.73 million rows/s., 6.54 GB/s.)
</pre>
<p>If we will take all stars and distribute uniformly across all the repositories, every repository will get 1.37 stars.</p>
<h3>How has the list of top repositories changed over the years?</h3>
<p>
<a data-div-id-prefix="repos" class="button">2015</a>
| <a data-div-id-prefix="repos" class="button">2016</a>
| <a data-div-id-prefix="repos" class="button">2017</a>
| <a data-div-id-prefix="repos" class="button">2018</a>
| <a data-div-id-prefix="repos" class="button">2019</a>
| <a data-div-id-prefix="repos" class="button_selected">2020</a></p>
<div id="repos2020">
<pre class="query">
:) <span class="sql">SELECT repo_name, count() AS stars FROM github_events WHERE event_type = 'WatchEvent' AND toYear(created_at) = '2020' GROUP BY repo_name ORDER BY stars DESC LIMIT 50</span>
┌─repo_name────────────────────────────────────┬─stars─┐
1. │ <a href="https://github.com/labuladong/fucking-algorithm">labuladong/fucking-algorithm</a> │ 77568 │
2. │ <a href="https://github.com/jwasham/coding-interview-university">jwasham/coding-interview-university</a> │ 54591 │
3. │ <a href="https://github.com/kamranahmedse/developer-roadmap">kamranahmedse/developer-roadmap</a> │ 50944 │
4. │ <a href="https://github.com/donnemartin/system-design-primer">donnemartin/system-design-primer</a> │ 37384 │
5. │ <a href="https://github.com/EbookFoundation/free-programming-books">EbookFoundation/free-programming-books</a> │ 36686 │
6. │ <a href="https://github.com/public-apis/public-apis">public-apis/public-apis</a> │ 36405 │
7. │ <a href="https://github.com/TheAlgorithms/Python">TheAlgorithms/Python</a> │ 33837 │
8. │ <a href="https://github.com/CyC2018/CS-Notes">CyC2018/CS-Notes</a> │ 33517 │
9. │ <a href="https://github.com/danistefanovic/build-your-own-x">danistefanovic/build-your-own-x</a> │ 33283 │
10. │ <a href="https://github.com/microsoft/PowerToys">microsoft/PowerToys</a> │ 33137 │
11. │ <a href="https://github.com/denoland/deno">denoland/deno</a> │ 31550 │
12. │ <a href="https://github.com/flutter/flutter">flutter/flutter</a> │ 31320 │
13. │ <a href="https://github.com/Snailclimb/JavaGuide">Snailclimb/JavaGuide</a> │ 31103 │
14. │ <a href="https://github.com/trekhleb/javascript-algorithms">trekhleb/javascript-algorithms</a> │ 30803 │
15. │ <a href="https://github.com/sindresorhus/awesome">sindresorhus/awesome</a> │ 28424 │
16. │ <a href="https://github.com/florinpop17/app-ideas">florinpop17/app-ideas</a> │ 27989 │
17. │ <a href="https://github.com/vuejs/vue">vuejs/vue</a> │ 27458 │
18. │ <a href="https://github.com/jackfrued/Python-100-Days">jackfrued/Python-100-Days</a> │ 26699 │
19. │ <a href="https://github.com/CSSEGISandData/COVID-19">CSSEGISandData/COVID-19</a> │ 26659 │
20. │ <a href="https://github.com/ytdl-org/youtube-dl">ytdl-org/youtube-dl</a> │ 26475 │
21. │ <a href="https://github.com/facebook/react">facebook/react</a> │ 24122 │
22. │ <a href="https://github.com/bradtraversy/design-resources-for-developers">bradtraversy/design-resources-for-developers</a> │ 23170 │
23. │ <a href="https://github.com/geekxh/hello-algorithm">geekxh/hello-algorithm</a> │ 22650 │
24. │ <a href="https://github.com/ohmyzsh/ohmyzsh">ohmyzsh/ohmyzsh</a> │ 21705 │
25. │ <a href="https://github.com/microsoft/vscode">microsoft/vscode</a> │ 21607 │
26. │ <a href="https://github.com/cli/cli">cli/cli</a> │ 21541 │
27. │ <a href="https://github.com/torvalds/linux">torvalds/linux</a> │ 20547 │
28. │ <a href="https://github.com/github/gitignore">github/gitignore</a> │ 19863 │
29. │ <a href="https://github.com/getify/You-Dont-Know-JS">getify/You-Dont-Know-JS</a> │ 19778 │
30. │ <a href="https://github.com/goldbergyoni/nodebestpractices">goldbergyoni/nodebestpractices</a> │ 19452 │
31. │ <a href="https://github.com/huggingface/transformers">huggingface/transformers</a> │ 19214 │
32. │ <a href="https://github.com/microsoft/playwright">microsoft/playwright</a> │ 18751 │
33. │ <a href="https://github.com/ossu/computer-science">ossu/computer-science</a> │ 18621 │
34. │ <a href="https://github.com/Genymobile/scrcpy">Genymobile/scrcpy</a> │ 18538 │
35. │ <a href="https://github.com/macrozheng/mall">macrozheng/mall</a> │ 18335 │
36. │ <a href="https://github.com/tiangolo/fastapi">tiangolo/fastapi</a> │ 17962 │
37. │ <a href="https://github.com/gothinkster/realworld">gothinkster/realworld</a> │ 17696 │
38. │ <a href="https://github.com/AobingJava/JavaFamily">AobingJava/JavaFamily</a> │ 17495 │
39. │ <a href="https://github.com/PanJiaChen/vue-element-admin">PanJiaChen/vue-element-admin</a> │ 17330 │
40. │ <a href="https://github.com/microsoft/terminal">microsoft/terminal</a> │ 16719 │
41. │ <a href="https://github.com/willmcgugan/rich">willmcgugan/rich</a> │ 16627 │
42. │ <a href="https://github.com/evanw/esbuild">evanw/esbuild</a> │ 16621 │
43. │ <a href="https://github.com/jlevy/the-art-of-command-line">jlevy/the-art-of-command-line</a> │ 16351 │
44. │ <a href="https://github.com/tensorflow/tensorflow">tensorflow/tensorflow</a> │ 16104 │
45. │ <a href="https://github.com/angular/angular">angular/angular</a> │ 15762 │
46. │ <a href="https://github.com/kon9chunkit/GitHub-Chinese-Top-Charts">kon9chunkit/GitHub-Chinese-Top-Charts</a> │ 15738 │
47. │ <a href="https://github.com/freeCodeCamp/freeCodeCamp">freeCodeCamp/freeCodeCamp</a> │ 15701 │
48. │ <a href="https://github.com/MisterBooo/LeetCodeAnimation">MisterBooo/LeetCodeAnimation</a> │ 15686 │
49. │ <a href="https://github.com/azl397985856/leetcode">azl397985856/leetcode</a> │ 15352 │
50. │ <a href="https://github.com/anuraghazra/github-readme-stats">anuraghazra/github-readme-stats</a> │ 15193 │
└──────────────────────────────────────────────┴───────┘
50 rows in set. Elapsed: 0.400 sec. Processed 214.00 million rows, 2.41 GB (535.27 million rows/s., 6.02 GB/s.)
</pre>
<p>The top repo is a Chinese educational resource to prepare for an algorithms interview. Actually, amost all of the top 10 are related to education. The only exceptions are: <span class="code">Deno</span> — a JS runtime and <span class="code">CSSEGISandData/COVID-19</span> — a repo for COVID-19 data. Yes, I expected that 2020 would be about COVID-19 but happily enough it's not only about COVID-19.</p>
</div>
<div id="repos2019">
<pre class="query">
:) <span class="sql">SELECT repo_name, count() AS stars FROM github_events WHERE event_type = 'WatchEvent' AND toYear(created_at) = '2019' GROUP BY repo_name ORDER BY stars DESC LIMIT 50</span>
┌─repo_name──────────────────────────────────┬──stars─┐
1. │ <a href="https://github.com/996icu/996.ICU">996icu/996.ICU</a> │ 344825 │
2. │ <a href="https://github.com/jackfrued/Python-100-Days">jackfrued/Python-100-Days</a> │ 76845 │
3. │ <a href="https://github.com/M4cs/BabySploit">M4cs/BabySploit</a> │ 71013 │
4. │ <a href="https://github.com/Snailclimb/JavaGuide">Snailclimb/JavaGuide</a> │ 53444 │
5. │ <a href="https://github.com/TheAlgorithms/Python">TheAlgorithms/Python</a> │ 48859 │
6. │ <a href="https://github.com/CyC2018/CS-Notes">CyC2018/CS-Notes</a> │ 46609 │
7. │ <a href="https://github.com/MisterBooo/LeetCodeAnimation">MisterBooo/LeetCodeAnimation</a> │ 41526 │
8. │ <a href="https://github.com/vuejs/vue">vuejs/vue</a> │ 39159 │
9. │ <a href="https://github.com/flutter/flutter">flutter/flutter</a> │ 38733 │
10. │ <a href="https://github.com/doocs/advanced-java">doocs/advanced-java</a> │ 35338 │
11. │ <a href="https://github.com/microsoft/Terminal">microsoft/Terminal</a> │ 34359 │
12. │ <a href="https://github.com/jlevy/the-art-of-command-line">jlevy/the-art-of-command-line</a> │ 30852 │
13. │ <a href="https://github.com/kamranahmedse/developer-roadmap">kamranahmedse/developer-roadmap</a> │ 30842 │
14. │ <a href="https://github.com/facebook/react">facebook/react</a> │ 29040 │
15. │ <a href="https://github.com/donnemartin/system-design-primer">donnemartin/system-design-primer</a> │ 27042 │
16. │ <a href="https://github.com/tensorflow/tensorflow">tensorflow/tensorflow</a> │ 27032 │
17. │ <a href="https://github.com/macrozheng/mall">macrozheng/mall</a> │ 26520 │
18. │ <a href="https://github.com/testerSunshine/12306">testerSunshine/12306</a> │ 26414 │
19. │ <a href="https://github.com/sindresorhus/awesome">sindresorhus/awesome</a> │ 26286 │
20. │ <a href="https://github.com/azl397985856/leetcode">azl397985856/leetcode</a> │ 25765 │
21. │ <a href="https://github.com/jwasham/coding-interview-university">jwasham/coding-interview-university</a> │ 25556 │
22. │ <a href="https://github.com/PanJiaChen/vue-element-admin">PanJiaChen/vue-element-admin</a> │ 25101 │
23. │ <a href="https://github.com/0voice/interview_internal_reference">0voice/interview_internal_reference</a> │ 24557 │
24. │ <a href="https://github.com/lib-pku/libpku">lib-pku/libpku</a> │ 23015 │
25. │ <a href="https://github.com/getify/You-Dont-Know-JS">getify/You-Dont-Know-JS</a> │ 22647 │
26. │ <a href="https://github.com/EbookFoundation/free-programming-books">EbookFoundation/free-programming-books</a> │ 21884 │
27. │ <a href="https://github.com/microsoft/terminal">microsoft/terminal</a> │ 21878 │
28. │ <a href="https://github.com/scutan90/DeepLearning-500-questions">scutan90/DeepLearning-500-questions</a> │ 21784 │
29. │ <a href="https://github.com/deepfakes/faceswap">deepfakes/faceswap</a> │ 21237 │
30. │ <a href="https://github.com/sveltejs/svelte">sveltejs/svelte</a> │ 20969 │
31. │ <a href="https://github.com/torvalds/linux">torvalds/linux</a> │ 20455 │
32. │ <a href="https://github.com/vinta/awesome-python">vinta/awesome-python</a> │ 20217 │
33. │ <a href="https://github.com/justjavac/free-programming-books-zh_CN">justjavac/free-programming-books-zh_CN</a> │ 20137 │
34. │ <a href="https://github.com/30-seconds/30-seconds-of-code">30-seconds/30-seconds-of-code</a> │ 19784 │
35. │ <a href="https://github.com/formulahendry/955.WLB">formulahendry/955.WLB</a> │ 19772 │
36. │ <a href="https://github.com/NationalSecurityAgency/ghidra">NationalSecurityAgency/ghidra</a> │ 19651 │
37. │ <a href="https://github.com/robbyrussell/oh-my-zsh">robbyrussell/oh-my-zsh</a> │ 19602 │
38. │ <a href="https://github.com/imhuay/Algorithm_Interview_Notes-Chinese">imhuay/Algorithm_Interview_Notes-Chinese</a> │ 19508 │
39. │ <a href="https://github.com/trekhleb/javascript-algorithms">trekhleb/javascript-algorithms</a> │ 19460 │
40. │ <a href="https://github.com/LisaDziuba/Awesome-Design-Tools">LisaDziuba/Awesome-Design-Tools</a> │ 19142 │
41. │ <a href="https://github.com/freeCodeCamp/freeCodeCamp">freeCodeCamp/freeCodeCamp</a> │ 18955 │
42. │ <a href="https://github.com/golang/go">golang/go</a> │ 18842 │
43. │ <a href="https://github.com/alibaba/flutter-go">alibaba/flutter-go</a> │ 18382 │
44. │ <a href="https://github.com/ziishaned/learn-regex">ziishaned/learn-regex</a> │ 18352 │
45. │ <a href="https://github.com/github/gitignore">github/gitignore</a> │ 18228 │
46. │ <a href="https://github.com/danistefanovic/build-your-own-x">danistefanovic/build-your-own-x</a> │ 18155 │
47. │ <a href="https://github.com/Advanced-Frontend/Daily-Interview-Question">Advanced-Frontend/Daily-Interview-Question</a> │ 17797 │
48. │ <a href="https://github.com/ossu/computer-science">ossu/computer-science</a> │ 17794 │
49. │ <a href="https://github.com/dcloudio/uni-app">dcloudio/uni-app</a> │ 17759 │
50. │ <a href="https://github.com/codercom/code-server">codercom/code-server</a> │ 17702 │
└────────────────────────────────────────────┴────────┘
50 rows in set. Elapsed: 0.366 sec. Processed 219.33 million rows, 2.55 GB (599.92 million rows/s., 6.96 GB/s.)
</pre>
<p>996.ICU, education and pentesting framework. MS Terminal is worth noting. Also a Chinese e-commerce product sits next to Tensorflow.</p>
</div>
<div id="repos2018">
<pre class="query">
:) <span class="sql">SELECT repo_name, count() AS stars FROM github_events WHERE event_type = 'WatchEvent' AND toYear(created_at) = '2018' GROUP BY repo_name ORDER BY stars DESC LIMIT 50</span>
┌─repo_name──────────────────────────────┬─stars─┐
1. │ <a href="https://github.com/vuejs/vue">vuejs/vue</a> │ 51515 │
2. │ <a href="https://github.com/trekhleb/javascript-algorithms">trekhleb/javascript-algorithms</a> │ 39249 │
3. │ <a href="https://github.com/facebook/react">facebook/react</a> │ 38817 │
4. │ <a href="https://github.com/flutter/flutter">flutter/flutter</a> │ 38357 │
5. │ <a href="https://github.com/danistefanovic/build-your-own-x">danistefanovic/build-your-own-x</a> │ 37815 │
6. │ <a href="https://github.com/tensorflow/tensorflow">tensorflow/tensorflow</a> │ 36976 │
7. │ <a href="https://github.com/kamranahmedse/developer-roadmap">kamranahmedse/developer-roadmap</a> │ 35278 │
8. │ <a href="https://github.com/x64dbg/x64dbg">x64dbg/x64dbg</a> │ 32381 │
9. │ <a href="https://github.com/donnemartin/system-design-primer">donnemartin/system-design-primer</a> │ 31384 │
10. │ <a href="https://github.com/CyC2018/Interview-Notebook">CyC2018/Interview-Notebook</a> │ 29941 │
11. │ <a href="https://github.com/kelseyhightower/nocode">kelseyhightower/nocode</a> │ 26326 │
12. │ <a href="https://github.com/Microsoft/vscode">Microsoft/vscode</a> │ 26211 │
13. │ <a href="https://github.com/xingshaocheng/architect-awesome">xingshaocheng/architect-awesome</a> │ 25750 │
14. │ <a href="https://github.com/sindresorhus/awesome">sindresorhus/awesome</a> │ 24977 │
15. │ <a href="https://github.com/ry/deno">ry/deno</a> │ 22798 │
16. │ <a href="https://github.com/getify/You-Dont-Know-JS">getify/You-Dont-Know-JS</a> │ 22014 │
17. │ <a href="https://github.com/tensorflow/models">tensorflow/models</a> │ 21511 │
18. │ <a href="https://github.com/GoogleChrome/puppeteer">GoogleChrome/puppeteer</a> │ 21137 │
19. │ <a href="https://github.com/leonardomso/33-js-concepts">leonardomso/33-js-concepts</a> │ 21033 │
20. │ <a href="https://github.com/facebook/create-react-app">facebook/create-react-app</a> │ 20300 │
21. │ <a href="https://github.com/axios/axios">axios/axios</a> │ 20102 │
22. │ <a href="https://github.com/houshanren/hangzhou_house_knowledge">houshanren/hangzhou_house_knowledge</a> │ 19227 │
23. │ <a href="https://github.com/ant-design/ant-design">ant-design/ant-design</a> │ 19162 │
24. │ <a href="https://github.com/facebookresearch/Detectron">facebookresearch/Detectron</a> │ 18611 │
25. │ <a href="https://github.com/jwasham/coding-interview-university">jwasham/coding-interview-university</a> │ 18255 │
26. │ <a href="https://github.com/robbyrussell/oh-my-zsh">robbyrussell/oh-my-zsh</a> │ 18254 │
27. │ <a href="https://github.com/EbookFoundation/free-programming-books">EbookFoundation/free-programming-books</a> │ 18127 │
28. │ <a href="https://github.com/github/gitignore">github/gitignore</a> │ 17872 │
29. │ <a href="https://github.com/airbnb/javascript">airbnb/javascript</a> │ 17616 │
30. │ <a href="https://github.com/justjavac/free-programming-books-zh_CN">justjavac/free-programming-books-zh_CN</a> │ 17293 │
31. │ <a href="https://github.com/PanJiaChen/vue-element-admin">PanJiaChen/vue-element-admin</a> │ 17256 │
32. │ <a href="https://github.com/yangshun/front-end-interview-handbook">yangshun/front-end-interview-handbook</a> │ 17138 │
33. │ <a href="https://github.com/vinta/awesome-python">vinta/awesome-python</a> │ 16797 │
34. │ <a href="https://github.com/golang/go">golang/go</a> │ 16424 │
35. │ <a href="https://github.com/facebook/react-native">facebook/react-native</a> │ 16039 │
36. │ <a href="https://github.com/torvalds/linux">torvalds/linux</a> │ 15936 │
37. │ <a href="https://github.com/TheAlgorithms/Python">TheAlgorithms/Python</a> │ 15914 │
38. │ <a href="https://github.com/tabler/tabler">tabler/tabler</a> │ 15849 │
39. │ <a href="https://github.com/kubernetes/kubernetes">kubernetes/kubernetes</a> │ 15800 │
40. │ <a href="https://github.com/Avik-Jain/100-Days-Of-ML-Code">Avik-Jain/100-Days-Of-ML-Code</a> │ 15777 │
41. │ <a href="https://github.com/iluwatar/java-design-patterns">iluwatar/java-design-patterns</a> │ 15370 │
42. │ <a href="https://github.com/parcel-bundler/parcel">parcel-bundler/parcel</a> │ 15257 │
43. │ <a href="https://github.com/Meituan-Dianping/mpvue">Meituan-Dianping/mpvue</a> │ 15017 │
44. │ <a href="https://github.com/storybooks/storybook">storybooks/storybook</a> │ 14835 │
45. │ <a href="https://github.com/dawnlabs/carbon">dawnlabs/carbon</a> │ 14807 │
46. │ <a href="https://github.com/toddmotto/public-apis">toddmotto/public-apis</a> │ 14781 │
47. │ <a href="https://github.com/electron/electron">electron/electron</a> │ 14750 │
48. │ <a href="https://github.com/shadowsocks/shadowsocks-windows">shadowsocks/shadowsocks-windows</a> │ 14619 │
49. │ <a href="https://github.com/kdn251/interviews">kdn251/interviews</a> │ 14586 │
50. │ <a href="https://github.com/scutan90/DeepLearning-500-questions">scutan90/DeepLearning-500-questions</a> │ 14497 │
└────────────────────────────────────────┴───────┘
50 rows in set. Elapsed: 0.304 sec. Processed 219.55 million rows, 2.73 GB (722.04 million rows/s., 8.96 GB/s.)
</pre>
<p>JavaScript frameworks and education.</p>
</div>
<div id="repos2017">
<pre class="query">
:) <span class="sql">SELECT repo_name, count() AS stars FROM github_events WHERE event_type = 'WatchEvent' AND toYear(created_at) = '2017' GROUP BY repo_name ORDER BY stars DESC LIMIT 50</span>
┌─repo_name──────────────────────────────────────┬─stars─┐
1. │ <a href="https://github.com/freeCodeCamp/freeCodeCamp">freeCodeCamp/freeCodeCamp</a> │ 90989 │
2. │ <a href="https://github.com/tensorflow/tensorflow">tensorflow/tensorflow</a> │ 49278 │
3. │ <a href="https://github.com/vuejs/vue">vuejs/vue</a> │ 48185 │
4. │ <a href="https://github.com/facebook/react">facebook/react</a> │ 34524 │
5. │ <a href="https://github.com/mr-mig/every-programmer-should-know">mr-mig/every-programmer-should-know</a> │ 30991 │
6. │ <a href="https://github.com/kamranahmedse/developer-roadmap">kamranahmedse/developer-roadmap</a> │ 30497 │
7. │ <a href="https://github.com/sindresorhus/awesome">sindresorhus/awesome</a> │ 29084 │
8. │ <a href="https://github.com/getify/You-Dont-Know-JS">getify/You-Dont-Know-JS</a> │ 28902 │
9. │ <a href="https://github.com/thedaviddias/Front-End-Checklist">thedaviddias/Front-End-Checklist</a> │ 24745 │
10. │ <a href="https://github.com/facebookincubator/create-react-app">facebookincubator/create-react-app</a> │ 24479 │
11. │ <a href="https://github.com/Microsoft/vscode">Microsoft/vscode</a> │ 23504 │
12. │ <a href="https://github.com/donnemartin/system-design-primer">donnemartin/system-design-primer</a> │ 22584 │
13. │ <a href="https://github.com/GoogleChrome/puppeteer">GoogleChrome/puppeteer</a> │ 22408 │
14. │ <a href="https://github.com/airbnb/javascript">airbnb/javascript</a> │ 22119 │
15. │ <a href="https://github.com/sdmg15/Best-websites-a-programmer-should-visit">sdmg15/Best-websites-a-programmer-should-visit</a> │ 21764 │
16. │ <a href="https://github.com/jwasham/coding-interview-university">jwasham/coding-interview-university</a> │ 21395 │
17. │ <a href="https://github.com/twbs/bootstrap">twbs/bootstrap</a> │ 21157 │
18. │ <a href="https://github.com/toddmotto/public-apis">toddmotto/public-apis</a> │ 20881 │
19. │ <a href="https://github.com/kamranahmedse/design-patterns-for-humans">kamranahmedse/design-patterns-for-humans</a> │ 19420 │
20. │ <a href="https://github.com/robbyrussell/oh-my-zsh">robbyrussell/oh-my-zsh</a> │ 19325 │
21. │ <a href="https://github.com/airbnb/lottie-android">airbnb/lottie-android</a> │ 18700 │
22. │ <a href="https://github.com/facebook/react-native">facebook/react-native</a> │ 18696 │
23. │ <a href="https://github.com/vuejs/awesome-vue">vuejs/awesome-vue</a> │ 18499 │
24. │ <a href="https://github.com/tipsy/github-profile-summary">tipsy/github-profile-summary</a> │ 17847 │
25. │ <a href="https://github.com/FreeCodeCampChina/freecodecamp.cn">FreeCodeCampChina/freecodecamp.cn</a> │ 17794 │
26. │ <a href="https://github.com/electron/electron">electron/electron</a> │ 17490 │
27. │ <a href="https://github.com/kdn251/interviews">kdn251/interviews</a> │ 17471 │
28. │ <a href="https://github.com/ryanmcdermott/clean-code-javascript">ryanmcdermott/clean-code-javascript</a> │ 17433 │
29. │ <a href="https://github.com/mzabriskie/axios">mzabriskie/axios</a> │ 17414 │
30. │ <a href="https://github.com/vinta/awesome-python">vinta/awesome-python</a> │ 17254 │
31. │ <a href="https://github.com/torvalds/linux">torvalds/linux</a> │ 17200 │
32. │ <a href="https://github.com/tensorflow/models">tensorflow/models</a> │ 17066 │
33. │ <a href="https://github.com/nodejs/node">nodejs/node</a> │ 17062 │
34. │ <a href="https://github.com/github/gitignore">github/gitignore</a> │ 16873 │
35. │ <a href="https://github.com/python/cpython">python/cpython</a> │ 16627 │
36. │ <a href="https://github.com/yangshun/tech-interview-handbook">yangshun/tech-interview-handbook</a> │ 16388 │
37. │ <a href="https://github.com/ElemeFE/element">ElemeFE/element</a> │ 16320 │
38. │ <a href="https://github.com/bailicangdu/vue2-elm">bailicangdu/vue2-elm</a> │ 16249 │
39. │ <a href="https://github.com/d3/d3">d3/d3</a> │ 16167 │
40. │ <a href="https://github.com/Hack-with-Github/Awesome-Hacking">Hack-with-Github/Awesome-Hacking</a> │ 16153 │
41. │ <a href="https://github.com/golang/go">golang/go</a> │ 16096 │
42. │ <a href="https://github.com/k88hudson/git-flight-rules">k88hudson/git-flight-rules</a> │ 15950 │
43. │ <a href="https://github.com/webpack/webpack">webpack/webpack</a> │ 15869 │
44. │ <a href="https://github.com/mbeaudru/modern-js-cheatsheet">mbeaudru/modern-js-cheatsheet</a> │ 15321 │
45. │ <a href="https://github.com/EbookFoundation/free-programming-books">EbookFoundation/free-programming-books</a> │ 15319 │
46. │ <a href="https://github.com/angular/angular">angular/angular</a> │ 14392 │
47. │ <a href="https://github.com/prettier/prettier">prettier/prettier</a> │ 14344 │
48. │ <a href="https://github.com/vhf/free-programming-books">vhf/free-programming-books</a> │ 14304 │
49. │ <a href="https://github.com/JetBrains/kotlin">JetBrains/kotlin</a> │ 14210 │
50. │ <a href="https://github.com/parcel-bundler/parcel">parcel-bundler/parcel</a> │ 14190 │
└────────────────────────────────────────────────┴───────┘
50 rows in set. Elapsed: 0.321 sec. Processed 218.60 million rows, 2.80 GB (680.46 million rows/s., 8.72 GB/s.)
</pre>
</div>
<div id="repos2016">
<pre class="query">
:) <span class="sql">SELECT repo_name, count() AS stars FROM github_events WHERE event_type = 'WatchEvent' AND toYear(created_at) = '2016' GROUP BY repo_name ORDER BY stars DESC LIMIT 50</span>
┌─repo_name───────────────────────────────────────┬──stars─┐
1. │ <a href="https://github.com/FreeCodeCamp/FreeCodeCamp">FreeCodeCamp/FreeCodeCamp</a> │ 182203 │
2. │ <a href="https://github.com/jwasham/google-interview-university">jwasham/google-interview-university</a> │ 31522 │
3. │ <a href="https://github.com/vhf/free-programming-books">vhf/free-programming-books</a> │ 28870 │
4. │ <a href="https://github.com/vuejs/vue">vuejs/vue</a> │ 28831 │
5. │ <a href="https://github.com/tensorflow/tensorflow">tensorflow/tensorflow</a> │ 28282 │
6. │ <a href="https://github.com/facebook/react">facebook/react</a> │ 26046 │
7. │ <a href="https://github.com/getify/You-Dont-Know-JS">getify/You-Dont-Know-JS</a> │ 24975 │
8. │ <a href="https://github.com/sindresorhus/awesome">sindresorhus/awesome</a> │ 24829 │
9. │ <a href="https://github.com/chrislgarry/Apollo-11">chrislgarry/Apollo-11</a> │ 23483 │
10. │ <a href="https://github.com/yarnpkg/yarn">yarnpkg/yarn</a> │ 21518 │
11. │ <a href="https://github.com/facebook/react-native">facebook/react-native</a> │ 19779 │
12. │ <a href="https://github.com/twbs/bootstrap">twbs/bootstrap</a> │ 19396 │
13. │ <a href="https://github.com/airbnb/javascript">airbnb/javascript</a> │ 19064 │
14. │ <a href="https://github.com/joshbuchea/HEAD">joshbuchea/HEAD</a> │ 18439 │
15. │ <a href="https://github.com/facebookincubator/create-react-app">facebookincubator/create-react-app</a> │ 18191 │
16. │ <a href="https://github.com/firehol/netdata">firehol/netdata</a> │ 17908 │
17. │ <a href="https://github.com/robbyrussell/oh-my-zsh">robbyrussell/oh-my-zsh</a> │ 17364 │
18. │ <a href="https://github.com/FallibleInc/security-guide-for-developers">FallibleInc/security-guide-for-developers</a> │ 15901 │
19. │ <a href="https://github.com/open-guides/og-aws">open-guides/og-aws</a> │ 15620 │
20. │ <a href="https://github.com/github/gitignore">github/gitignore</a> │ 15205 │
21. │ <a href="https://github.com/electron/electron">electron/electron</a> │ 15138 │
22. │ <a href="https://github.com/googlesamples/android-architecture">googlesamples/android-architecture</a> │ 14647 │
23. │ <a href="https://github.com/torvalds/linux">torvalds/linux</a> │ 14434 │
24. │ <a href="https://github.com/getlantern/lantern">getlantern/lantern</a> │ 14189 │
25. │ <a href="https://github.com/reactjs/redux">reactjs/redux</a> │ 13997 │
26. │ <a href="https://github.com/nodejs/node">nodejs/node</a> │ 13602 │
27. │ <a href="https://github.com/Microsoft/vscode">Microsoft/vscode</a> │ 13284 │
28. │ <a href="https://github.com/angular/angular">angular/angular</a> │ 13204 │
29. │ <a href="https://github.com/apple/swift">apple/swift</a> │ 13060 │
30. │ <a href="https://github.com/ParsePlatform/parse-server">ParsePlatform/parse-server</a> │ 12837 │
31. │ <a href="https://github.com/braydie/HowToBeAProgrammer">braydie/HowToBeAProgrammer</a> │ 12574 │
32. │ <a href="https://github.com/docker/docker">docker/docker</a> │ 12482 │
33. │ <a href="https://github.com/atom/atom">atom/atom</a> │ 12468 │
34. │ <a href="https://github.com/webpack/webpack">webpack/webpack</a> │ 12186 │
35. │ <a href="https://github.com/ZuzooVn/machine-learning-for-software-engineers">ZuzooVn/machine-learning-for-software-engineers</a> │ 11916 │
36. │ <a href="https://github.com/jgthms/bulma">jgthms/bulma</a> │ 11685 │
37. │ <a href="https://github.com/vinta/awesome-python">vinta/awesome-python</a> │ 11626 │
38. │ <a href="https://github.com/angular/angular.js">angular/angular.js</a> │ 11446 │
39. │ <a href="https://github.com/golang/go">golang/go</a> │ 11337 │
40. │ <a href="https://github.com/toddmotto/public-apis">toddmotto/public-apis</a> │ 11266 │
41. │ <a href="https://github.com/ReactiveX/RxJava">ReactiveX/RxJava</a> │ 11244 │
42. │ <a href="https://github.com/daneden/animate.css">daneden/animate.css</a> │ 11109 │
43. │ <a href="https://github.com/naptha/tesseract.js">naptha/tesseract.js</a> │ 10955 │
44. │ <a href="https://github.com/tensorflow/models">tensorflow/models</a> │ 10874 │
45. │ <a href="https://github.com/josephmisiti/awesome-machine-learning">josephmisiti/awesome-machine-learning</a> │ 10546 │
46. │ <a href="https://github.com/FortAwesome/Font-Awesome">FortAwesome/Font-Awesome</a> │ 10496 │
47. │ <a href="https://github.com/juliangarnier/anime">juliangarnier/anime</a> │ 10462 │
48. │ <a href="https://github.com/AHAAAAAAA/PokemonGo-Map">AHAAAAAAA/PokemonGo-Map</a> │ 10448 │
49. │ <a href="https://github.com/Microsoft/TypeScript">Microsoft/TypeScript</a> │ 10340 │
50. │ <a href="https://github.com/caesar0301/awesome-public-datasets">caesar0301/awesome-public-datasets</a> │ 10333 │
└─────────────────────────────────────────────────┴────────┘
50 rows in set. Elapsed: 0.277 sec. Processed 216.06 million rows, 2.88 GB (780.88 million rows/s., 10.39 GB/s.)
</pre>
</div>
<div id="repos2015">
<pre class="query">
:) <span class="sql">SELECT repo_name, count() AS stars FROM github_events WHERE event_type = 'WatchEvent' AND toYear(created_at) = '2015' GROUP BY repo_name ORDER BY stars DESC LIMIT 50</span>
┌─repo_name────────────────────────────────────┬─stars─┐
1. │ <a href="https://github.com/FreeCodeCamp/FreeCodeCamp">FreeCodeCamp/FreeCodeCamp</a> │ 38485 │
2. │ <a href="https://github.com/facebook/react-native">facebook/react-native</a> │ 25888 │
3. │ <a href="https://github.com/apple/swift">apple/swift</a> │ 25834 │
4. │ <a href="https://github.com/sindresorhus/awesome">sindresorhus/awesome</a> │ 24420 │
5. │ <a href="https://github.com/facebook/react">facebook/react</a> │ 22977 │
6. │ <a href="https://github.com/jlevy/the-art-of-command-line">jlevy/the-art-of-command-line</a> │ 22105 │
7. │ <a href="https://github.com/NARKOZ/hacker-scripts">NARKOZ/hacker-scripts</a> │ 20450 │
8. │ <a href="https://github.com/twbs/bootstrap">twbs/bootstrap</a> │ 19775 │
9. │ <a href="https://github.com/google/material-design-lite">google/material-design-lite</a> │ 17904 │
10. │ <a href="https://github.com/airbnb/javascript">airbnb/javascript</a> │ 17586 │
11. │ <a href="https://github.com/nvbn/thefuck">nvbn/thefuck</a> │ 17168 │
12. │ <a href="https://github.com/vhf/free-programming-books">vhf/free-programming-books</a> │ 16923 │
13. │ <a href="https://github.com/getify/You-Dont-Know-JS">getify/You-Dont-Know-JS</a> │ 16404 │
14. │ <a href="https://github.com/atom/electron">atom/electron</a> │ 16174 │
15. │ <a href="https://github.com/tensorflow/tensorflow">tensorflow/tensorflow</a> │ 16009 │
16. │ <a href="https://github.com/FreeCodeCamp/freecodecamp">FreeCodeCamp/freecodecamp</a> │ 15321 │
17. │ <a href="https://github.com/nylas/N1">nylas/N1</a> │ 14927 │
18. │ <a href="https://github.com/angular/angular.js">angular/angular.js</a> │ 14824 │
19. │ <a href="https://github.com/atom/atom">atom/atom</a> │ 13737 │
20. │ <a href="https://github.com/mbostock/d3">mbostock/d3</a> │ 13497 │
21. │ <a href="https://github.com/Dogfalo/materialize">Dogfalo/materialize</a> │ 13150 │
22. │ <a href="https://github.com/ripienaar/free-for-dev">ripienaar/free-for-dev</a> │ 12847 │
23. │ <a href="https://github.com/torvalds/linux">torvalds/linux</a> │ 12455 │
24. │ <a href="https://github.com/robbyrussell/oh-my-zsh">robbyrussell/oh-my-zsh</a> │ 12281 │
25. │ <a href="https://github.com/github/gitignore">github/gitignore</a> │ 11358 │
26. │ <a href="https://github.com/bevacqua/dragula">bevacqua/dragula</a> │ 11060 │
27. │ <a href="https://github.com/meteor/meteor">meteor/meteor</a> │ 10963 │
28. │ <a href="https://github.com/FortAwesome/Font-Awesome">FortAwesome/Font-Awesome</a> │ 10849 │
29. │ <a href="https://github.com/docker/docker">docker/docker</a> │ 10845 │
30. │ <a href="https://github.com/daneden/animate.css">daneden/animate.css</a> │ 10732 │
31. │ <a href="https://github.com/zenorocha/clipboard.js">zenorocha/clipboard.js</a> │ 10471 │
32. │ <a href="https://github.com/0xAX/linux-insides">0xAX/linux-insides</a> │ 10459 │
33. │ <a href="https://github.com/typicode/json-server">typicode/json-server</a> │ 10247 │
34. │ <a href="https://github.com/wasabeef/awesome-android-ui">wasabeef/awesome-android-ui</a> │ 10187 │
35. │ <a href="https://github.com/babel/babel">babel/babel</a> │ 10147 │
36. │ <a href="https://github.com/h5bp/Front-end-Developer-Interview-Questions">h5bp/Front-end-Developer-Interview-Questions</a> │ 10011 │
37. │ <a href="https://github.com/prakhar1989/awesome-courses">prakhar1989/awesome-courses</a> │ 9947 │
38. │ <a href="https://github.com/lukehoban/es6features">lukehoban/es6features</a> │ 9890 │
39. │ <a href="https://github.com/driftyco/ionic">driftyco/ionic</a> │ 9771 │
40. │ <a href="https://github.com/gorhill/uBlock">gorhill/uBlock</a> │ 9761 │
41. │ <a href="https://github.com/minimaxir/big-list-of-naughty-strings">minimaxir/big-list-of-naughty-strings</a> │ 9550 │
42. │ <a href="https://github.com/Semantic-Org/Semantic-UI">Semantic-Org/Semantic-UI</a> │ 9546 │
43. │ <a href="https://github.com/Microsoft/vscode">Microsoft/vscode</a> │ 9489 │
44. │ <a href="https://github.com/alex/what-happens-when">alex/what-happens-when</a> │ 9479 │
45. │ <a href="https://github.com/vinta/awesome-python">vinta/awesome-python</a> │ 9304 │
46. │ <a href="https://github.com/golang/go">golang/go</a> │ 9254 │
47. │ <a href="https://github.com/phanan/htaccess">phanan/htaccess</a> │ 9240 │
48. │ <a href="https://github.com/nwjs/nw.js">nwjs/nw.js</a> │ 9203 │
49. │ <a href="https://github.com/johnpapa/angular-styleguide">johnpapa/angular-styleguide</a> │ 9129 │
50. │ <a href="https://github.com/google/material-design-icons">google/material-design-icons</a> │ 9099 │
└──────────────────────────────────────────────┴───────┘
50 rows in set. Elapsed: 0.268 sec. Processed 213.30 million rows, 2.99 GB (795.76 million rows/s., 11.17 GB/s.)
</pre>
</div>
<p>Bonus: all these results in a single report:</p>
<pre class="query">
<span class="sql">SELECT
year,
lower(repo_name) AS repo,
count()
FROM github_events
WHERE (event_type = 'WatchEvent') AND (year >= 2015)
GROUP BY
repo,
toYear(created_at) AS year
ORDER BY
year ASC,
count() DESC
LIMIT 10 BY year</span>
┌─year─┬─repo──────────────────────────┬─count()─┐
│ 2015 │ <a href="https://github.com/freecodecamp/freecodecamp">freecodecamp/freecodecamp</a> │ 53806 │
│ 2015 │ <a href="https://github.com/facebook/react-native">facebook/react-native</a> │ 25888 │
│ 2015 │ <a href="https://github.com/apple/swift">apple/swift</a> │ 25834 │
│ 2015 │ <a href="https://github.com/sindresorhus/awesome">sindresorhus/awesome</a> │ 24420 │
│ 2015 │ <a href="https://github.com/facebook/react">facebook/react</a> │ 22977 │
│ 2015 │ <a href="https://github.com/jlevy/the-art-of-command-line">jlevy/the-art-of-command-line</a> │ 22105 │
│ 2015 │ <a href="https://github.com/narkoz/hacker-scripts">narkoz/hacker-scripts</a> │ 20450 │
│ 2015 │ <a href="https://github.com/twbs/bootstrap">twbs/bootstrap</a> │ 19775 │
│ 2015 │ <a href="https://github.com/google/material-design-lite">google/material-design-lite</a> │ 17904 │
│ 2015 │ <a href="https://github.com/airbnb/javascript">airbnb/javascript</a> │ 17586 │
└──────┴───────────────────────────────┴─────────┘
┌─year─┬─repo────────────────────────────────┬─count()─┐
│ 2016 │ <a href="https://github.com/freecodecamp/freecodecamp">freecodecamp/freecodecamp</a> │ 182203 │
│ 2016 │ <a href="https://github.com/jwasham/google-interview-university">jwasham/google-interview-university</a> │ 31522 │
│ 2016 │ <a href="https://github.com/vhf/free-programming-books">vhf/free-programming-books</a> │ 28870 │
│ 2016 │ <a href="https://github.com/vuejs/vue">vuejs/vue</a> │ 28831 │
│ 2016 │ <a href="https://github.com/tensorflow/tensorflow">tensorflow/tensorflow</a> │ 28282 │
│ 2016 │ <a href="https://github.com/facebook/react">facebook/react</a> │ 26046 │
│ 2016 │ <a href="https://github.com/getify/you-dont-know-js">getify/you-dont-know-js</a> │ 24975 │
│ 2016 │ <a href="https://github.com/sindresorhus/awesome">sindresorhus/awesome</a> │ 24829 │
│ 2016 │ <a href="https://github.com/chrislgarry/apollo-11">chrislgarry/apollo-11</a> │ 23483 │
│ 2016 │ <a href="https://github.com/yarnpkg/yarn">yarnpkg/yarn</a> │ 21518 │
└──────┴─────────────────────────────────────┴─────────┘
┌─year─┬─repo────────────────────────────────┬─count()─┐
│ 2017 │ <a href="https://github.com/freecodecamp/freecodecamp">freecodecamp/freecodecamp</a> │ 96359 │
│ 2017 │ <a href="https://github.com/tensorflow/tensorflow">tensorflow/tensorflow</a> │ 49278 │
│ 2017 │ <a href="https://github.com/vuejs/vue">vuejs/vue</a> │ 48185 │
│ 2017 │ <a href="https://github.com/facebook/react">facebook/react</a> │ 34524 │
│ 2017 │ <a href="https://github.com/mr-mig/every-programmer-should-know">mr-mig/every-programmer-should-know</a> │ 30991 │
│ 2017 │ <a href="https://github.com/kamranahmedse/developer-roadmap">kamranahmedse/developer-roadmap</a> │ 30497 │
│ 2017 │ <a href="https://github.com/sindresorhus/awesome">sindresorhus/awesome</a> │ 29084 │
│ 2017 │ <a href="https://github.com/getify/you-dont-know-js">getify/you-dont-know-js</a> │ 28902 │
│ 2017 │ <a href="https://github.com/thedaviddias/front-end-checklist">thedaviddias/front-end-checklist</a> │ 24745 │
│ 2017 │ <a href="https://github.com/facebookincubator/create-react-app">facebookincubator/create-react-app</a> │ 24479 │
└──────┴─────────────────────────────────────┴─────────┘
┌─year─┬─repo─────────────────────────────┬─count()─┐
│ 2018 │ <a href="https://github.com/vuejs/vue">vuejs/vue</a> │ 51515 │
│ 2018 │ <a href="https://github.com/trekhleb/javascript-algorithms">trekhleb/javascript-algorithms</a> │ 39249 │
│ 2018 │ <a href="https://github.com/facebook/react">facebook/react</a> │ 38817 │
│ 2018 │ <a href="https://github.com/flutter/flutter">flutter/flutter</a> │ 38357 │
│ 2018 │ <a href="https://github.com/danistefanovic/build-your-own-x">danistefanovic/build-your-own-x</a> │ 37815 │
│ 2018 │ <a href="https://github.com/tensorflow/tensorflow">tensorflow/tensorflow</a> │ 36976 │
│ 2018 │ <a href="https://github.com/kamranahmedse/developer-roadmap">kamranahmedse/developer-roadmap</a> │ 35278 │
│ 2018 │ <a href="https://github.com/x64dbg/x64dbg">x64dbg/x64dbg</a> │ 32381 │
│ 2018 │ <a href="https://github.com/donnemartin/system-design-primer">donnemartin/system-design-primer</a> │ 31384 │
│ 2018 │ <a href="https://github.com/cyc2018/interview-notebook">cyc2018/interview-notebook</a> │ 29941 │
└──────┴──────────────────────────────────┴─────────┘
┌─year─┬─repo─────────────────────────┬─count()─┐
│ 2019 │ <a href="https://github.com/996icu/996.icu">996icu/996.icu</a> │ 344825 │
│ 2019 │ <a href="https://github.com/jackfrued/python-100-days">jackfrued/python-100-days</a> │ 76845 │
│ 2019 │ <a href="https://github.com/m4cs/babysploit">m4cs/babysploit</a> │ 71013 │
│ 2019 │ <a href="https://github.com/microsoft/terminal">microsoft/terminal</a> │ 56844 │
│ 2019 │ <a href="https://github.com/snailclimb/javaguide">snailclimb/javaguide</a> │ 53444 │
│ 2019 │ <a href="https://github.com/thealgorithms/python">thealgorithms/python</a> │ 48859 │
│ 2019 │ <a href="https://github.com/cyc2018/cs-notes">cyc2018/cs-notes</a> │ 46609 │
│ 2019 │ <a href="https://github.com/misterbooo/leetcodeanimation">misterbooo/leetcodeanimation</a> │ 41526 │
│ 2019 │ <a href="https://github.com/vuejs/vue">vuejs/vue</a> │ 39159 │
│ 2019 │ <a href="https://github.com/flutter/flutter">flutter/flutter</a> │ 38733 │
└──────┴──────────────────────────────┴─────────┘
┌─year─┬─repo───────────────────────────────────┬─count()─┐
│ 2020 │ <a href="https://github.com/labuladong/fucking-algorithm">labuladong/fucking-algorithm</a> │ 77568 │
│ 2020 │ <a href="https://github.com/jwasham/coding-interview-university">jwasham/coding-interview-university</a> │ 54591 │
│ 2020 │ <a href="https://github.com/kamranahmedse/developer-roadmap">kamranahmedse/developer-roadmap</a> │ 50944 │
│ 2020 │ <a href="https://github.com/donnemartin/system-design-primer">donnemartin/system-design-primer</a> │ 37384 │
│ 2020 │ <a href="https://github.com/ebookfoundation/free-programming-books">ebookfoundation/free-programming-books</a> │ 36686 │
│ 2020 │ <a href="https://github.com/public-apis/public-apis">public-apis/public-apis</a> │ 36405 │
│ 2020 │ <a href="https://github.com/thealgorithms/python">thealgorithms/python</a> │ 33837 │
│ 2020 │ <a href="https://github.com/cyc2018/cs-notes">cyc2018/cs-notes</a> │ 33517 │
│ 2020 │ <a href="https://github.com/danistefanovic/build-your-own-x">danistefanovic/build-your-own-x</a> │ 33283 │
│ 2020 │ <a href="https://github.com/microsoft/powertoys">microsoft/powertoys</a> │ 33137 │
└──────┴────────────────────────────────────────┴─────────┘
60 rows in set. Elapsed: 15.368 sec. Processed 231.51 million rows, 2.71 GB (15.06 million rows/s., 176.33 MB/s.)
</pre>
<p>And a multi-line graph:</p>
<pre class="query">
<span class="sql">SELECT
repo AS name,
groupArrayInsertAt(toUInt32(c), toUInt64(dateDiff('month', toDate('2015-01-01'), month))) AS data
FROM
(
SELECT
lower(repo_name) AS repo,
toStartOfMonth(created_at) AS month,
count() AS c
FROM github_events
WHERE (event_type = 'WatchEvent') AND (toYear(created_at) >= 2015) AND (repo IN
(
SELECT lower(repo_name) AS repo
FROM github_events
WHERE (event_type = 'WatchEvent') AND (toYear(created_at) >= 2015)
GROUP BY repo
ORDER BY count() DESC
LIMIT 10
))
GROUP BY
repo,
month
)
GROUP BY repo
ORDER BY repo ASC
</span>
10 rows in set. Elapsed: 1.729 sec. Processed 231.51 million rows, 1.58 GB (133.88 million rows/s., 913.63 MB/s.)
</pre>
<div class="chart" id="chart_top_repos"></div>
<h3>How has the total number of stars changed over time?</h3>
<pre class="query">
:) <span class="sql">SELECT toYear(created_at) AS year, count() AS stars, bar(stars, 0, 50000000, 10) AS bar FROM github_events WHERE event_type = 'WatchEvent' GROUP BY year ORDER BY year</span>
┌─year─┬────stars─┬─bar────────┐
│ 2011 │ 1831742 │ ▎ │
│ 2012 │ 4048676 │ ▋ │
│ 2013 │ 7432800 │ █▍ │
│ 2014 │ 11952935 │ ██▍ │