You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Language_Repo lr JOIN Language l ON lr.Language_id = l.id
12
+
GROUP BY Language_id
13
+
ORDER BY Repo_Count DESC
14
+
LIMIT 10
15
+
'
16
+
-- Loading resources from /Users/bbkane/.sqliterc
17
+
┌────────────┬────────────┐
18
+
│ Name │ Repo_Count │
19
+
├────────────┼────────────┤
20
+
│ Shell │ 939 │
21
+
│ JavaScript │ 617 │
22
+
│ HTML │ 598 │
23
+
│ Python │ 540 │
24
+
│ Makefile │ 519 │
25
+
│ CSS │ 432 │
26
+
│ Dockerfile │ 403 │
27
+
│ Go │ 367 │
28
+
│ C │ 305 │
29
+
│ C++ │ 230 │
30
+
└────────────┴────────────┘
31
+
```
32
+
33
+
# 10 most popular languages by lines
34
+
35
+
Note that these are lines in the repo, which includes generated code
36
+
37
+
```
38
+
starghaze.db> SELECT l.Name language_name, SUM(lr.Size) AS lines FROM `Language` l JOIN `Language_Repo` lr ON l.id = lr.`Language_id` GROUP BY l.`Name` ORDER BY lines DESC LIMIT 10;
39
+
language_name lines
40
+
C++ 942739556
41
+
Jupyter Notebook 804633765
42
+
Python 518129708
43
+
C 442379463
44
+
Go 366579078
45
+
TypeScript 323614022
46
+
JavaScript 319470060
47
+
Java 306837166
48
+
HTML 196157314
49
+
C# 193605672
50
+
```
51
+
52
+
# What Repo has the most C++ code?
53
+
54
+
```
55
+
starghaze.db> SELECT l.Name AS language_name, lr.Size, "https://github.com/" || r.NameWithOwner AS link FROM `Language` l JOIN `Language_Repo` lr ON l.id = lr.`Language_id` JOIN Repo r ON lr.`Repo_id` = r.id WHERE l.`Name` = 'C++' ORDER BY lr.`Size` DESC LIMIT 10;
56
+
language_name Size link
57
+
C++ 119581200 https://github.com/bloomberg/bde
58
+
C++ 89578048 https://github.com/microsoft/service-fabric
59
+
C++ 57547160 https://github.com/duckdb/duckdb
60
+
C++ 40643968 https://github.com/mapsme/omim
61
+
C++ 36784149 https://github.com/godotengine/godot
62
+
C++ 31984347 https://github.com/arangodb/arangodb
63
+
C++ 29233152 https://github.com/vespa-engine/vespa
64
+
C++ 23346282 https://github.com/organicmaps/organicmaps
65
+
C++ 23113037 https://github.com/SerenityOS/serenity
66
+
C++ 20847917 https://github.com/Z3Prover/z3
67
+
10 rows in set
68
+
``````
69
+
70
+
# How Many Repos do I star per month
71
+
72
+
```
73
+
$ sqlite3 -cmd '.mode tabs' starghaze.db '
74
+
SELECT strftime("%Y-%m", r.StarredAt) as month, COUNT(r.NameWithOwner) as [count] FROM `Repo` r GROUP BY month ORDER BY month ASC;
75
+
' | tablegraph --firstline timechart
76
+
```
77
+
78
+
# How have my topics changed over time?
79
+
80
+
Let's see count by topic by month? Something like:
81
+
82
+
2020-01 C++ 0
83
+
2020-02 C++ 10
84
+
2020-02 Python 10
85
+
86
+
```
87
+
starghaze.db> SELECT strftime("%Y-%m", r.StarredAt) as month , l.Name, COUNT(r.NameWithOwner) as name_count FROM `Repo` r JOIN `
88
+
Language_Repo` lr ON r.id = lr.`Repo_id` JOIN `Language` l ON lr.`Language_id` = l.id GROUP BY month ORDER BY mont
0 commit comments