more CPANTS data (and another release)

domm on 2004-09-07T20:03:34

A new version of Module::CPANTS::Generator is on it's way to CPAN, here are some data samples: (btw, you can get the sqlite.db from http://cpants.dev.zsi.at>)
Highest Kwalitee now is 11, new indicators are: * has_tests (checks if there is a file test.pl or a dir t * proper_libs (checks if there is dir called 'lib' or a single *.pm file in the topdir)

Oh, the data:

sqlite> select kwalitee,count(kwalitee) as cnt from kwalitee group by 
   ...>           kwalitee order by kwalitee;
kwalitee    cnt       
----------  ----------
0           32        
1           3         
2           12        
3           61        
4           47        
5           59        
6           110       
7           521       
8           1695      
9           3411      
10          1654      
11          155       

sqlite> select count(*) from kwalitee where has_tests=0; count(*) ---------- 713

sqlite> select count(*) from kwalitee where proper_libs=0; count(*) ---------- 558



Another new thing is required_by, which lists the number of other dists requiring a module included in a given dist. To calculate this, there is a new table called modules which list which modules are included in a distribution.

sqlite> select dist,required_by from distribution where required_by > 0 order by required_by desc limit 15;
dist              required_by
----------------  -----------
Test-Simple-0.47  1021       
DBIx-Abstract-1.  914        
libwww-perl-5.10  655        
libwww-perl-5.77  446        
libwww-perl-5.80  446        
libwww-perl-5.53  444        
PathTools-3.00    207        
Data-Dumper-2.12  149        
HTML-Parser-3.36  149        
Digest-MD5-2.33   145        
Scalar-List-Util  130        
XML-Parser-2.34   98         
Template-Toolkit  91         
Template-Toolkit  90         
POE-0.29          87         


Some of this data is a bit spoiled, as, eg DBIx::Abstract includes Test::More in its dist and thus gets a lot of counts it actually doesn't deserve. I'll have to add some more checks to prevent this...

Other CPANTS news: *
Gabor hacked together a quick web frontend using Maypole available here: http://cpants.szabgab.com.

* We are thinking of renaming the dist from "Module::CPANTS" to "CPANTS". Any opinions on this?


This one goes to 11

nicholas on 2004-09-07T20:59:18

It goes to 11. :-)

But this will be a dis-incentive to add any more metrics. :-(

Renaming the dist

kane on 2004-09-08T06:28:04

* We are thinking of renaming the dist from "Module::CPANTS" to "CPANTS". Any opinions on this?

Top level namespaces bad. (although i'm guilty of it myself :)
Perhaps 'Module::*' isn't the best namespace for it, but perhaps 'CPAN::*' is.. there's currently 27 modules in the CPAN::* namespace by 10 different authors...

how about

hfb on 2004-09-08T09:57:43

CPAN::CPANTS ? :) Herr Kane makes a good point about CPAN::* but, this is the system we live inside of. I'm really glad to see you getting back to working on it :)

One thing though, I'm sure I'm not the only one whom 'kwalitee' drives bonkers. I know this is a Schwernism but, it just seems to cutesy for anyone to take seriously. I get enough K's up here in Konsonantland. :)