4 ms·
Now the usual for large projects like this one (this is just for the main repo): $ loc . ------------------------------------------------------------------
by drej 9y ago
Now the usual for large projects like this one (this is just for the main repo):
$ loc .
--------------------------------------------------------------------------------
Language Files Lines Blank Comment Code
--------------------------------------------------------------------------------
C++ 587 202592 23441 43727 135424
C/C++ Header 450 34934 6371 11733 16830
Bourne Shell 10 2363 247 518 1598
Plain Text 16 827 46 0 781
Autoconf 1 2507 551 1635 321
Python 1 195 32 22 141
Markdown 2 162 45 0 117
ASP.NET 2 2 0 0 2
--------------------------------------------------------------------------------
Total 1069 243582 30733 57635 155214
--------------------------------------------------------------------------------
- deleted 9y ago[deleted]
- jwilk 9y ago> Now the usual for large projects like this one (this is just for the main repo): I don't understand what you're trying to say. The usual... what?
- drej 9y agoOh, I thought that we do this sort of thing whenever there's a new open source project posted here. People seem to want to know what it's made of and potentially its (S)LOC.
- chrisseaton 9y agoI've never seen anyone do that on here.
- exikyut 9y agoBut I like it. GitHub is all like "98.6% C++, 1.4% Other", which is... an understandable heuristic, but very meh.
- chrisseaton 9y agoI wish GitHub let me customise which directories to include. My project shows up as 74% Ruby, but a lot of that is some specs that aren't really part of the project, and in reality it's 60% Ruby.
- jwilk 9y agoTo some extent, you can influence GitHub's classification via gitattributes: https://github.com/github/linguist https://github.com/github/linguist
- Fnoord 9y agoDidn't know about loc or this thing, thanks for bringing it up.
- slowmotiony 9y agoSo there are two lines of ASP.NET code? Do I read this correctly?
- bringtheaction 9y agoProbably a misclassification. It's not 100% accurate but it gives a good idea of the size and languages of the code base.
- dspillett 9y agoTwo single line files that have a file extension making them look like ASP.net code is how I read that. It could be place-holder scripts that redirect to the correct location, for instance a default.asp/index.asp file that does nothing but redirect to index.html some other default that IIS doesn't recognised out of the box. This would catch cases where someone has just dumped the web assets on a IIS share (IIS doesn't, or at least didn't used to, consider index.html as a potential default document). In classic ASP this would be something like the line: <% response.redirect "index.whatever-extension" %> It could also be false positives in whatever test is being performed. For a project like this, I suspect that is more likely to be the case.
- oneweekwonder 9y agoI wonder if there is a website/api that will give you loc of pypi or npm packages. Maybe in the form of a forum badge or certificate like pdf.