Created
May 12, 2010 04:31
-
-
Save mabako/398211 to your computer and use it in GitHub Desktop.
Statistics for valhallaGaming repos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mabako: 553814 (44.65%) lines, 3549 (54.38%) files | |
Mount: 363479 (29.31%) lines, 1172 (17.96%) files | |
Fenix: 240925 (19.43%) lines, 1463 (22.42%) files | |
Chamberlain: 51597 (4.16%) lines, 298 (4.57%) files | |
herbjr: 13238 (1.07%) lines, 18 (0.28%) files | |
Cazomino05: 5826 (0.47%) lines, 0 (0%) files | |
Flobu: 4733 (0.38%) lines, 10 (0.15%) files | |
VGMTAServer: 1751 (0.14%) lines, 1 (0.02%) files | |
Mr.Hankey: 1709 (0.14%) lines, 0 (0%) files | |
Jumba: 1187 (0.1%) lines, 3 (0.05%) files | |
RayRay: 1006 (0.08%) lines, 0 (0%) files | |
Serizzim: 575 (0.05%) lines, 0 (0%) files | |
Konstantine: 165 (0.01%) lines, 0 (0%) files | |
VieiraN: 126 (0.01%) lines, 0 (0%) files | |
CC: 114 (0.01%) lines, 0 (0%) files | |
Jackson: 0 (0%) lines, 12 (0.18%) files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To generate the readable logs for one repo: | |
git log --numstat --pretty="%an" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$changes = array( ); | |
$touched = array( ); | |
$files = array( '1.txt', '2.txt', '3.txt' ); | |
$totalchanged = 0; | |
$totaltouched = 0; | |
$author = ''; | |
foreach( $files as $file ) | |
{ | |
$c = file( $file ); | |
foreach( $c as $o ) | |
{ | |
$o = trim( $o ); | |
if( $o == '' ) { } | |
elseif( strpos( $o, "\t" ) === false ) | |
{ | |
$author = $o; | |
if( $author == 'Fenix1053' ) | |
$author = 'Fenix'; | |
elseif( $author == 'CCarlon' ) | |
$author = 'CC'; | |
if( !isset( $changes[ $author ] ) ) | |
$changes[ $author ] = 0; | |
if( !isset( $touched[ $author ] ) ) | |
$touched[ $author ] = 0; | |
} | |
else | |
{ | |
$x = explode( "\t", $o ); | |
if( $x[0] != '-' ) | |
{ | |
$changes[ $author ] += $x[0] + $x[1]; | |
$totalchanged += $x[0] + $x[1]; | |
} | |
else | |
{ | |
$touched[ $author ] ++; | |
$totaltouched++; | |
} | |
} | |
} | |
} | |
arsort( $changes ); | |
foreach( $changes as $author => $changed ) | |
{ | |
echo $author . ': ' . $changed . ' (' . round( $changed / $totalchanged * 100, 2 ) . '%) lines, ' . $touched[ $author ] . ' (' . round( $touched[ $author ] / $totaltouched * 100, 2 ) . '%) files' . "\n"; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment