Menu

Home

henkidefix

Welcome to CLOCPY

Work in progress to make a good version, but i first move into subversion
to make sure i don't loose all my work due to some local disc problem.

Created this program back in 2012 when i just started coding in python
the old versions works but the problem is: using globals is not right in python.
And because they use globals they cannot be unit-tested.
There is a version for python2 is from 2012.
There is a version python 3 made in 2015, only changed print to print().

The output of CLOCPY.py:

> clocpy examples/

 lines   code  code   total
 total  lines  chars  bytes  filename
     24     13    435    805  examples/bashscript
     47     24    406    997  examples/functest.py
     38     15    553   1083  examples/makefile-old
    520    370   9780  24593  examples/test1.py
     38     15    553   1084  examples/Makefile
     95     81   1634   2176  examples/test2.pas
     44     34    545    793  examples/classtest1.pas
    232    204   6374   7910  examples/test3.cxx
    782    632  13262  20701  examples/ple_main.pas

The output of CLOC:

> cloc --by-file examples/

----------------------------------------------
File                      blank  comment  code
----------------------------------------------
examples/test1.py            48     101    371
examples/ple_main.pas        55     417    310
examples/test3.cxx           19       9    204
examples/test2.pas           10       1     84
examples/classtest1.pas       7       2     35
examples/functest.py          8      14     25
examples/Makefile             8      15     15
examples/bashscript           2       8     14
examples/NotThisOne/global.h  3       9      2

Henk SPeksnijder 20171225


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.