无聊的我去统计了下 Android 的源码。
➜ android sudo cloc .
469800 text files.
346654 unique files.
190401 files ignored.
http://cloc.sourceforge.net v 1.64 T=53660.05 s (5.3 files/s, 1732.3 lines/s)
----------------------------------------------------------------------------------------
Language files blank comment code
----------------------------------------------------------------------------------------
C 35405 2754736 3176691 15588839
C++ 46836 2064388 1730430 11675356
C/C++ Header 67650 1797716 2989349 8498086
Prolog 26474 891 -2 8494026
XML 21278 132099 1293355 6996750
Java 39986 1191565 2528200 6112904
JSON 1189 1669 0 3266188
HTML 10729 788928 140287 2678912
Javascript 5202 130680 279119 1280439
Assembly 5308 159122 284433 1127422
Python 6735 249105 322442 1032487
Bourne Shell 1569 147003 141602 916092
DOS Batch 1506 5804 1094 620294
Expect 841 14237 8724 285893
m4 524 24656 6568 227057
Perl 470 29680 29068 184565
Objective C++ 1428 40820 50565 180743
CSS 673 17287 7714 99335
Objective C 1450 22735 69115 84013
make 2761 19014 20457 76604
IDL 1123 8571 0 76398
Maven 713 3936 5876 68716
D 2442 16802 0 63451
MSBuild script 169 1 90 54931
C# 448 8890 17858 53784
Windows Module Definition 149 3113 178 27618
Fortran 77 68 19 15419 26495
CMake 691 4513 4359 24497
Ruby 102 5442 3546 23377
Rust 617 5674 6719 22031
yacc 33 2988 1740 21581
Pascal 52 5030 42926 20720
Bourne Again Shell 344 2508 4787 13182
XSLT 60 1427 1252 12436
Protocol Buffers 205 3376 8202 11070
Go 26 1409 1210 10429
Windows Resource File 116 1903 1322 9325
XSD 38 1687 4530 8308
Tcl/Tk 36 989 1895 6971
lex 29 1311 1354 6876
OCaml 73 1752 2733 5786
Groovy 158 2018 1454 5491
Ant 63 1179 2457 5024
ASP.Net 18 313 0 4425
awk 44 457 1514 4174
diff 83 58 490 4077
ActionScript 56 860 2550 3715
YAML 219 344 1180 3579
PHP 34 493 518 2631
SASS 13 409 158 2282
Cython 12 617 429 2209
Lisp 20 375 599 1725
Lua 22 348 223 1707
SQL 39 14 8 1682
Ada 10 599 560 1681
MATLAB 13 314 326 1672
sed 75 194 648 1325
TypeScript 1 4 0 1258
OpenCL 70 316 335 861
NAnt script 6 179 36 829
WiX source 3 103 60 711
Dart 8 183 274 450
Racket 4 43 94 402
vim script 8 85 140 393
C Shell 6 69 55 374
Arduino Sketch 1 79 15 300
DTD 11 49 95 290
Haskell 4 109 70 250
Korn Shell 1 39 46 223
SAS 3 52 111 200
CUDA 15 94 101 191
F# 9 83 195 184
ASP 1 33 0 137
Velocity Template Language 1 60 0 133
Qt Project 1 10 2 58
JavaServer Faces 3 10 0 52
Standard ML 3 7 0 46
ERB 1 7 0 46
MXML 1 10 0 23
Handlebars 1 4 0 16
Mercury 4 3 0 15
Windows Message File 1 3 0 13
Visual Basic 2 1 1 12
Fortran 90 1 0 244 0
----------------------------------------------------------------------------------------
SUM: 286597 9683703 13220195 70048853
----------------------------------------------------------------------------------------