Recently I came across SLOCCount [1]. It claims to count source code lines "correctly" (heuristics, comments, detects duplicate files,...) and estimates the cost to develop it. It seems to don't know cython, but I still want to share this ;-) Maybe someone wants to play with it and tweak it to work more correctly - the user guide and a book talk about a so called "COCOMO" model and there are various parameters for that estimation model. Here just the defaults:
$ ./sloccount .../sage/devel/sage-main/sage Totals grouped by language (dominant language first): python: 175098 (94.50%) cpp: 7203 (3.89%) ansic: 2997 (1.62%) Total Physical Source Lines of Code (SLOC) = 185,298 Development Effort Estimate, Person-Years (Person-Months) = 48.12 (577.40) (Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05)) Schedule Estimate, Years (Months) = 2.33 (28.01) (Basic COCOMO model, Months = 2.5 * (person-months**0.38)) Estimated Average Number of Developers (Effort/Schedule) = 20.61 Total Estimated Cost to Develop = $ 6,499,888 (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'." [1] http://www.dwheeler.com/sloccount/ Harald --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---