Skip to content

Instantly share code, notes, and snippets.

@catwell
Created March 19, 2024 10:26
Show Gist options
  • Save catwell/2375f3f0925877eeaec411f79e14099d to your computer and use it in GitHub Desktop.
Save catwell/2375f3f0925877eeaec411f79e14099d to your computer and use it in GitHub Desktop.
Lines of code in Python, Lua, PHP and Ruby
=== Python-3.12.2 ===
github.com/AlDanial/cloc v 2.00 T=5.10 s (775.6 files/s, 446163.8 lines/s)
---------------------------------------------------------------------------------------
Language files blank comment code
---------------------------------------------------------------------------------------
Python 1946 136288 157620 635104
C 365 60311 57289 411210
C/C++ Header 492 21539 11893 206768
reStructuredText 490 85145 106460 102226
Text 133 2830 0 96064
JSON 22 3 0 69313
XML 194 362 144 44072
Bourne Shell 18 5676 2791 29906
m4 2 720 300 7155
C++ 7 815 316 3688
TOML 67 83 115 2420
HTML 11 144 0 2309
DOS Batch 32 365 113 1790
WiX source 47 168 44 1741
Visual Studio Solution 2 1 2 1677
Markdown 10 336 0 1120
Objective-C 7 98 61 635
MSBuild script 27 41 3 630
Windows Module Definition 6 23 12 557
diff 6 17 277 542
Lisp 1 109 81 502
PowerShell 7 87 179 352
make 4 83 43 345
Windows Resource File 6 37 52 242
Fortran 77 2 116 0 200
INI 6 59 27 179
WiX string localization 11 19 0 179
JavaScript 2 9 9 118
PHP 2 34 17 108
CSS 1 27 4 81
D 5 8 1 74
YAML 3 7 4 60
Bourne Again Shell 2 8 2 46
Fish Shell 1 13 14 42
Assembly 2 2 39 33
IDL 1 0 0 24
Dockerfile 1 6 0 18
XSLT 2 5 12 16
C Shell 1 10 5 12
SVG 9 0 0 9
DTD 1 4 0 2
Visual Basic Script 1 0 1 0
---------------------------------------------------------------------------------------
SUM: 3955 315608 337930 1621569
---------------------------------------------------------------------------------------
=== lua-5.4.6 ===
github.com/AlDanial/cloc v 2.00 T=0.06 s (1154.6 files/s, 719078.2 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
C 34 3278 3829 17447
HTML 3 3977 11 9073
C/C++ Header 28 1366 1509 2570
make 2 66 38 227
CSS 3 34 0 169
-------------------------------------------------------------------------------
SUM: 70 8721 5387 29486
-------------------------------------------------------------------------------
=== php-8.3.4 ===
github.com/AlDanial/cloc v 2.00 T=7.24 s (2980.6 files/s, 470634.8 lines/s)
---------------------------------------------------------------------------------------
Language files blank comment code
---------------------------------------------------------------------------------------
C 834 99415 70366 1129412
PHP 19286 125633 61936 1071862
C/C++ Header 809 31031 23693 289102
Text 93 57 0 275612
Bourne Shell 21 26247 5237 79044
INI 9 6051 315 21641
m4 91 2534 1207 17362
Web Services Description 93 581 193 12964
Lua 8 784 944 7225
C++ 21 1180 546 5001
ReasonML 7 855 847 4884
Markdown 31 1133 0 3565
JavaScript 2 658 293 3111
lex 3 684 379 2996
YAML 34 121 42 2479
yacc 4 355 126 2345
XML 49 142 37 2326
diff 2 182 1118 2013
Assembly 44 597 2942 1938
Windows Module Definition 5 1 6 1836
XSD 10 30 17 860
ANTLR Grammar 1 67 45 808
GLSL 16 71 0 327
DOS Batch 10 61 20 274
make 1 45 17 207
XSLT 12 16 17 160
awk 4 16 9 149
D 3 11 37 145
JSON 56 6 0 133
Pascal 1 33 149 133
PO File 9 5 12 78
Windows Resource File 1 10 2 74
DTD 5 11 0 46
Bourne Again Shell 1 8 0 42
CSV 7 0 0 37
reStructuredText 2 8 0 28
NAnt script 1 8 0 26
Windows Message File 1 3 0 24
HTML 5 0 0 20
Dockerfile 1 1 4 10
---------------------------------------------------------------------------------------
SUM: 21593 298651 170556 2940299
---------------------------------------------------------------------------------------
=== ruby-3.3.0 ===
github.com/AlDanial/cloc v 2.00 T=5.27 s (2282.8 files/s, 581679.6 lines/s)
---------------------------------------------------------------------------------------
Language files blank comment code
---------------------------------------------------------------------------------------
Ruby 8469 227856 120595 1326955
C 552 109560 89297 760808
Text 1865 4373 0 99259
C/C++ Header 444 9832 34089 90637
Bourne Shell 23 6102 2396 31250
yacc 2 3027 1455 28032
Rust 59 4647 5003 22453
make 9 463 90 20910
Markdown 132 6021 4 15685
Pascal 3 1838 7073 7131
YAML 215 463 100 6172
m4 39 320 87 5264
ERB 38 491 2 3074
Windows Module Definition 8 194 0 1781
Python 21 348 87 1721
JSON 47 5 0 1305
PHP 6 63 158 902
Fortran 77 1 1 0 790
C++ 4 165 50 781
CSS 3 131 147 600
Ruby HTML 22 66 1 557
Assembly 17 166 283 548
HTML 4 27 0 506
DOS Batch 8 14 4 464
JavaScript 4 80 67 394
Lisp 2 16 28 89
diff 1 25 96 70
Perl 7 7 0 62
TOML 4 14 14 50
Bourne Again Shell 6 11 16 47
awk 2 2 0 36
D 1 55 134 34
IDL 1 1 0 31
Scheme 6 10 0 31
ReasonML 1 21 100 27
sed 1 0 0 23
INI 1 8 0 22
zsh 1 3 20 16
XML 2 0 0 12
CSV 2 0 0 6
Dockerfile 1 1 0 3
---------------------------------------------------------------------------------------
SUM: 12034 376427 261396 2428538
---------------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment