11 next unless /^r(\d+) /;
12 my ($r, $comitter, $date) = split /[|:]/, $_;
13 $comitter=trim
($comitter);
14 $comitters{$comitter}++;
17 #foreach (sort {$comitters{$a} <=> $comitters{$b}} keys %comitters) {
18 # print "$_: $comitters{$_}\n";
21 my $authors = readauthors
();
22 #print Dumper $authors;
24 foreach my $c (sort {$comitters{$b} <=> $comitters{$a}} keys %comitters) {
25 print "$c: $comitters{$c}\n";
28 foreach my $a (@
$authors) {
29 if ($a->{wholeline
} =~ $re) {
35 # Time for some hurestics: Try matching _ as space -- Darren_Duncan for example.
39 foreach my $a (@
$authors) {
40 if ($a->{wholeline
} =~ $re) {
47 # Guess first initial, last name.
48 my ($initial, $last) = $c =~ m/^(.)(.*)/;
49 $re = qr/^$initial.*$last/i;
50 foreach my $a (@
$authors) {
51 if ($a->{wholeline
} =~ $re) {
59 warn "$c missing from AUTHORS file\n";
62 $author->{commitid
}=$c;
63 $author->{commitcount
}=$comitters{$c};
76 my $fh = IO
::File
->new("AUTHORS", "<:utf8");
78 my (%bycpan, %bynick);
85 my ($cpanid) = m/\(([A-Z]+)\)/;
86 my ($nick) = m/"([^"]+)"/;
87 my $author = {cpanid
=> $cpanid, nick
=> $nick, wholeline
=> $_};
88 push @authors, $author;