{"id":1922,"date":"2010-05-18T02:25:50","date_gmt":"2010-05-18T06:25:50","guid":{"rendered":"http:\/\/www.gubatron.com\/blog\/?p=1922"},"modified":"2010-05-18T02:25:50","modified_gmt":"2010-05-18T06:25:50","slug":"think-youre-in-a-big-project","status":"publish","type":"post","link":"https:\/\/www.gubatron.com\/blog\/think-youre-in-a-big-project\/","title":{"rendered":"Think you&#8217;re in a big project?"},"content":{"rendered":"<p>Recently I became curious on how many lines of code a huge open source project I contribute to has on what languages. I found a tool called &#8220;cloc&#8221; on sourceforge, check out the results and I dare you to think again if you think you&#8217;re in a big project.<br \/>\n<!--more--><br \/>\n[bash]<br \/>\n$ cloc .<br \/>\n   11642 text files.<br \/>\n   11383 unique files.<br \/>\n   42549 files ignored.<\/p>\n<p>http:\/\/cloc.sourceforge.net v 1.51  T=193.0 s (56.3 files\/s, 11577.2 lines\/s)<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\nLanguage                      files          blank        comment           code<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\nJava                           9259         309032         469814        1123643<br \/>\nHTML                           1079          24512          16894         196291<br \/>\nXML                             205           3152           4552          34709<br \/>\nC++                              62           2923           3738          16397<br \/>\nC\/C++ Header                    103           1874           4249           6685<br \/>\nC                                17            842            729           2498<br \/>\nXSD                              15            132            124           1358<br \/>\nPerl                              6            301            752           1323<br \/>\nObjective C                      10            249            237            798<br \/>\nDOS Batch                        19            118             65            704<br \/>\nCSS                              15            184            171            675<br \/>\nmake                             14            206            355            623<br \/>\nBourne Shell                     23            154            172            601<br \/>\nXSLT                              4            134            298            553<br \/>\nBourne Again Shell               12             69            141            426<br \/>\nPython                            9            126             79            416<br \/>\nJavascript                        7             42             21            188<br \/>\nIDL                               1             14              0             52<br \/>\nTeamcenter def                    1              0              0              9<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\nSUM:                          10861         344064         502391        1387949<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n[\/bash]<\/p>\n<p>If you want to count lines of code for your projects give <a href=\"http:\/\/cloc.sourceforge.net\">cloc a try<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently I became curious on how many lines of code a huge open source project I contribute to has on what languages. I found a tool called &#8220;cloc&#8221; on sourceforge, check out the results and I dare you to think again if you think you&#8217;re in a big project.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[15,30],"tags":[],"class_list":["post-1922","post","type-post","status-publish","format-standard","hentry","category-code","category-geeklife"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5Unzf-v0","jetpack-related-posts":[{"id":3277,"url":"https:\/\/www.gubatron.com\/blog\/how-many-lines-of-code-are-there-inside-bitcoin-core-client\/","url_meta":{"origin":1922,"position":0},"title":"How many lines of code are there inside Bitcoin-Core client?","author":"gubatron","date":"April 30, 2014","format":false,"excerpt":"According to cloc this is the line count breakdown, 87% of the project is all C\/C++ header files and code. http:\/\/cloc.sourceforge.net v 1.60 T=7.23 s (72.2 files\/s, 43792.9 lines\/s) ------------------------------------------------------------------------------- Language files blank comment code ------------------------------------------------------------------------------- C++ 244 9985 6246 211500 C\/C++ Header 188 5346 4617 35399 Bourne Shell 26\u2026","rel":"","context":"In &quot;BitCoin&quot;","block_context":{"text":"BitCoin","link":"https:\/\/www.gubatron.com\/blog\/category\/bitcoin-2\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1978,"url":"https:\/\/www.gubatron.com\/blog\/how-many-lines-of-code-does-it-take-to-create-the-android-os\/","url_meta":{"origin":1922,"position":1},"title":"How many lines of code does it take to create the Android OS?","author":"gubatron","date":"May 23, 2010","format":false,"excerpt":"This is a report done on all the projects that make up for the android project, my copy of it is synced as of May 23rd 2010, 6pm [bash] -------------------------------------------------------------------------------- Language files blank comment code -------------------------------------------------------------------------------- XML 4130 26919 62996 3044624 C 7191 494387 685731 2826741 Java 16473 423278 986294\u2026","rel":"","context":"In &quot;Android&quot;","block_context":{"text":"Android","link":"https:\/\/www.gubatron.com\/blog\/category\/android\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4135,"url":"https:\/\/www.gubatron.com\/blog\/the-curious-case-of-inconsistent-cargo-fmt-formatting-and-how-to-fix-it\/","url_meta":{"origin":1922,"position":2},"title":"The Curious Case of Inconsistent cargo fmt Formatting (and How to Fix It)","author":"gubatron","date":"February 17, 2025","format":false,"excerpt":"Have you ever run into a situation where\u00a0cargo fmt, Rust's code formatter, produces different output on different machines, even though you're working on the same project? This can be incredibly frustrating, especially when you're trying to maintain consistent code style across a team or between your own development environments. I\u2026","rel":"","context":"In &quot;Code&quot;","block_context":{"text":"Code","link":"https:\/\/www.gubatron.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2025\/02\/gubatron_Abstract_digital_art_fragmented_code_snippets_floati_e3f2c486-78ad-4b2a-b86a-e792a1970064_2.png?fit=1024%2C1024&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2025\/02\/gubatron_Abstract_digital_art_fragmented_code_snippets_floati_e3f2c486-78ad-4b2a-b86a-e792a1970064_2.png?fit=1024%2C1024&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2025\/02\/gubatron_Abstract_digital_art_fragmented_code_snippets_floati_e3f2c486-78ad-4b2a-b86a-e792a1970064_2.png?fit=1024%2C1024&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2025\/02\/gubatron_Abstract_digital_art_fragmented_code_snippets_floati_e3f2c486-78ad-4b2a-b86a-e792a1970064_2.png?fit=1024%2C1024&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":2759,"url":"https:\/\/www.gubatron.com\/blog\/frostwire-nearing-1mm-lines-of-source-code\/","url_meta":{"origin":1922,"position":3},"title":"FrostWire nearing 1MM lines of Source Code","author":"gubatron","date":"July 31, 2012","format":false,"excerpt":"-------------------------------------------------------------------------------- Language files blank comment code -------------------------------------------------------------------------------- Java 6700 230082 339218 818509 HTML 403 8751 4745 72384 XML 70 1112 996 11029 C++ 6 220 317 806 CSS 10 202 132 799 JSP 16 64 606 777 Javascript 5 77 54 571 XSLT 4 134 298 553 XSD 7 40\u2026","rel":"","context":"In &quot;Code&quot;","block_context":{"text":"Code","link":"https:\/\/www.gubatron.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3383,"url":"https:\/\/www.gubatron.com\/blog\/things-to-remember-when-compilinglinking-cc-software\/","url_meta":{"origin":1922,"position":4},"title":"# Things to remember when compiling\/linking C\/C++ software","author":"gubatron","date":"March 18, 2015","format":false,"excerpt":"by Angel Leon. March 17, 2015. Include Paths On the compilation phase, you will usually need to specify the different include paths so that the interfaces (.h, .hpp) which define structs, classes, constans, and functions can be found. With gcc and llvm include paths are passed with -I\/path\/to\/includes, you can\u2026","rel":"","context":"In &quot;Code&quot;","block_context":{"text":"Code","link":"https:\/\/www.gubatron.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2015\/03\/make-all-executables.png?fit=680%2C510&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2015\/03\/make-all-executables.png?fit=680%2C510&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.gubatron.com\/blog\/wp-content\/uploads\/2015\/03\/make-all-executables.png?fit=680%2C510&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":2762,"url":"https:\/\/www.gubatron.com\/blog\/frostwire-for-android-breaks-past-its-first-250k-lines-of-source-code\/","url_meta":{"origin":1922,"position":5},"title":"FrostWire for Android breaks past its first 250k lines of source code","author":"gubatron","date":"July 31, 2012","format":false,"excerpt":"-------------------------------------------------------------------------------- Language files blank comment code -------------------------------------------------------------------------------- Java 1950 101133 77855 256590 XML 126 480 2351 9308 XSD 2 28 57 187 Bourne Again Shell 1 30 17 147 -------------------------------------------------------------------------------- SUM: 2079 101671 80280 266232 -------------------------------------------------------------------------------- Help wanted","rel":"","context":"In &quot;Code&quot;","block_context":{"text":"Code","link":"https:\/\/www.gubatron.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/posts\/1922","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/comments?post=1922"}],"version-history":[{"count":0,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/posts\/1922\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/media?parent=1922"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/categories?post=1922"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/tags?post=1922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}