Horje
count lines of code in github repo Code Example
count lines of code in github repo
git ls-files | xargs wc -l
count lines of code in github repo
git ls-files -z | xargs -0n1 git blame -w | perl -n -e '/^.*\((.*?)\s*[\d]{4}/; print $1,"\n"' | sort -f | uniq -c | sort -n
Source: github.com
get total github lines
$ cloc-git https://github.com/evalEmpire/perl5i.git
Cloning into 'temp-linecount-repo'...
remote: Counting objects: 200, done.
remote: Compressing objects: 100% (182/182), done.
remote: Total 200 (delta 13), reused 158 (delta 9), pack-reused 0
Receiving objects: 100% (200/200), 296.52 KiB | 110.00 KiB/s, done.
Resolving deltas: 100% (13/13), done.
Checking connectivity... done.
('temp-linecount-repo' will be deleted automatically)


     171 text files.
     166 unique files.                                          
      17 files ignored.

http://cloc.sourceforge.net v 1.62  T=1.13 s (134.1 files/s, 9764.6 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
Perl                           149           2795           1425           6382
JSON                             1              0              0            270
YAML                             2              0              0            198
-------------------------------------------------------------------------------
SUM:                           152           2795           1425           6850
-------------------------------------------------------------------------------




Shell

Related
import tensorflow as tf ModuleNotFoundError: No module named 'tensorflow' Code Example import tensorflow as tf ModuleNotFoundError: No module named 'tensorflow' Code Example
pip command to install xlrd version 1.2.0 Code Example pip command to install xlrd version 1.2.0 Code Example
zsh: command not found: react-native Code Example zsh: command not found: react-native Code Example
git remove commit Code Example git remove commit Code Example
laravel command not found after installing laravel mac Code Example laravel command not found after installing laravel mac Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
15