[Insight-developers] LOC

William A. Hoffman billlist at nycap.rr.com
Mon Aug 16 10:04:05 EDT 2004


OK, here is a version without CableSwig:

SLOC    Directory       SLOC-by-Language (Sorted)
224306  Utilities       ansic=140918,cpp=56418,fortran=26052,tcl=505,sh=294,
                        perl=119
92550   Code            cpp=89541,ansic=2923,sh=86
69072   Testing         cpp=68866,tcl=132,python=59,sh=15
18312   Examples        cpp=16986,python=685,tcl=387,java=254
4784    Wrapping        cpp=4245,tcl=276,sh=151,python=92,java=20
1585    Validation      cpp=1529,sh=56
82      top_dir         tcl=29,ansic=25,sh=20,perl=8
53      CMake           ansic=47,cpp=6
21      Documentation   ansic=21
0       Applications    (none)
0       Auxiliary       (none)
0       CMakeTmp        (none)
0       CVS             (none)
0       Copyright       (none)
0       bin             (none)


Totals grouped by language (dominant language first):
cpp:         237591 (57.84%)
ansic:       143934 (35.04%)
fortran:      26052 (6.34%)
tcl:           1329 (0.32%)
python:         836 (0.20%)
sh:             622 (0.15%)
java:           274 (0.07%)
perl:           127 (0.03%)




Total Physical Source Lines of Code (SLOC)                = 410,765
Development Effort Estimate, Person-Years (Person-Months) = 110.99 (1,331.94)
 (Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05))
Schedule Estimate, Years (Months)                         = 3.21 (38.48)
 (Basic COCOMO model, Months = 2.5 * (person-months**0.38))
Estimated Average Number of Developers (Effort/Schedule)  = 34.61
Total Estimated Cost to Develop                           = $ 14,993,904
 (average salary = $56,286/year, overhead = 2.40).
SLOCCount, Copyright (C) 2001-2004 David A. Wheeler
SLOCCount is Open Source Software/Free Software, licensed under the GNU GPL.
SLOCCount comes with ABSOLUTELY NO WARRANTY, and you are welcome to
redistribute it under certain conditions as specified by the GNU GPL license;
see the documentation for details.
Please credit this data as "generated using David A. Wheeler's 'SLOCCount'."



Here is a breakdown of Utilities:
( I think the large ansi c is coming from the netlib code.)

SLOC    Directory       SLOC-by-Language (Sorted)
118366  vxl             ansic=51532,cpp=40581,fortran=26052,sh=201
26959   png             ansic=26959
20733   tiff            ansic=20723,sh=10
13735   jpeg            ansic=13735
9780    expat           ansic=9780
9589    MetaIO          cpp=9589
8677    NrrdIO          ansic=8667,perl=10
6348    kwsys           ansic=3943,cpp=2370,perl=35
5567    zlib            ansic=5567
3878    DICOMParser     cpp=3878
525     Dart            tcl=505,sh=20
137     Doxygen         perl=74,sh=63
12      itksys          ansic=12

At 09:45 AM 8/16/2004, William A. Hoffman wrote:
>Yea, that's what I did....
>
>
>At 08:21 AM 8/16/2004, Brad King wrote:
>>Miller, James V (Research) wrote:
>>>1. I am little suprised at the number of lines of C code.  I guess most of
>>>our header files are mistaken as ansi C code.
>>
>>I bet Bill ran it in an ITK checkout that had CableSwig in the Utilities directory.  That would have caused it to pick up all the C source to GCC and SWIG.
>>
>>-Brad
>>_______________________________________________
>>Insight-developers mailing list
>>Insight-developers at itk.org
>>http://www.itk.org/mailman/listinfo/insight-developers
>
>_______________________________________________
>Insight-developers mailing list
>Insight-developers at itk.org
>http://www.itk.org/mailman/listinfo/insight-developers 



More information about the Insight-developers mailing list