Tag Archives: stats

Useless statistics

So, I decided on a whim to work out how many of the 4668759 lines in Koha were last edited by each person. So using this

git ls-files | xargs -n1 -d'\n' -i git blame {} | perl -n -e '/\s\((.*?)\s[0-9]{4}/ && print "$1\n"' | sort -f | uniq -c -w10 | sort -r

I then realised that as translation manager, I had the .po files credited to me so the numbers were too high, so I then ran

git ls-files -x *.po | xargs -n1 -d'\n' -i git blame {} | perl -n -e '/\s\((.*?)\s[0-9]{4}/ && print "$1\n"' | sort -f | uniq -c -w10 | sort -r

To just get the numbers without the .po files

Without the .po the official master koha branch has  947177 lines broken down by person like this:

      1 brendan                                                                                                              
      1 David Bavousett                                                                                                      
      1 Frère Sébastien Marie                                                                                                
      1 lavide                                                                                                               
      1 Magnus Enger                                                                                                         
      1 QA Manager                                                                                                           
      1 Robin Sheat                                                                                                          
      1 Ryan HIggins                                                                                                         
      1 sergerenaux                                                                                                          
      2 James Winter                                                                                                         
      2 NYUHSL                                                                                                               
      3 acli                                                                                                                 
      3 Brendan A. Gallagher                                                                                                 
      3 Cindy Murdock Ames                                                                                                   
      3 Matthew Hunt                                                                                                         
      3 Nicolas Morin                                                                                                        
      4 kados                                                                                                                
      4 Koha User                                                                                                            
      4 Koustubha Kale                                                                                                       
      4 shedges                                                                                                              
      4 szrj1m                                                                                                               
      5 Marcel de Rooy                                                                                                       
      7 NCE                                                                                                                  
      8 Frédéric DEMIANS                                                                                                   
      8 Koha                                                                                                                 
      8 plugz                                                                                                                
      9 dnmeid                                                                                                               
     10 amit gupta                                                                                                           
     10 Nahuel Angelinetti                                                                                                   
     11 amillar                                                                                                              
     11 Chris                                                                                                                
     11 Stan Brinkerhoff                                                                                                     
     13 dnmeid                                                                                                               
     13 pate                                                                                                                 
     14 PTFS Contractor                                                                                                      
     14 tonnesen                                                                                                             
     15 toins                                                                                                                
     16 Chris Catalfo                                                                                                        
     17 Clay Fouts                                                                                                           
     17 Cory Jaeger                                                                                                          
     17 koha                                                                                                                 
     21 Daniel Sweeney                                                                                                       
     21 truth_nz                                                                                                             
     21 Vincent Danjean
     24 Koha Production                                                                                                      
     29 root                                                                                                                 
     35 koha                                                                                                                 
     36 Jared CAMINS-ESAKOV                                                                                                  
     36 PTFS                                                                                                                 
     39 stan                                                                                                                 
     40 Nahuel ANGELINETTI                                                                                                   
     42 Liz Rea                                                                                                              
     46 Srdjan Jankovic                                                                                                      
     48 Christopher Hyde                                                                                                     
     51 Brian Harrington                                                                                                     
     55 savitra.sirohi                                                                                                       
     59 Nahuel Angelinetti                                                                                                   
     67 Danny Bouman                                                                                                         
     68 pate                                                                                                                 
     69 DeAndre Carroll                                                                                                      
     71 genjimoto                                                                                                            
     71 hpassini                                                                                                             
     78 Ian Walls                                                                                                            
     81 Nahuel Angelinetti                                                                                                   
     87 slef                                                                                                                 
     98 alaurin                                                                                                              
     99 Sébastien Hinderer                                                                                                   
    120 Nahuel Angelinetti                                                                                                   
    129 Zeno Tajoli                                                                                                          
    130 David Birmingham                                                                                                     
    135 sushi                                                                                                                
    167 acli                                                                                                                 
    167 John Soros                                                                                                           
    168 Rick Welykochy                                                                                                       
    180 J. David Bavousett                                                                                                   
    190 wolfpac444                                                                                                           
    216 Wolfgang Heymans                                                                                                     
    229 btoumi                                                                                                               
    257 Will Stokes                                                                                                          
    258 doxulting                                                                                                            
    260 David Goldfein                                                                                                       
    265 Alex Arnaud                                                                                                          
    332 brendan                                                                                                              
    334 finlayt                                                                                                              
    335 Donovan Jones                                                                                                        
    342 plg                                                                                                                  
    364 Kyle Hall                                                                                                            
    366 rych                                                                                                                 
    382 Allen Reinmeyer
    494 Nahuel ANGELINETTI                                                                                                   
    522 Pianohacker                                                                                                          
    529 Darrell Ulm                                                                                                          
    529 joshferraro                                                                                                          
    537 bob_lyon                                                                                                             
    563 MJ Ray                                                                                                               
    615 tgarip1957                                                                                                           
    631 Paul Poulain                                                                                                         
    673 MJ Ray                                                                                                               
    684 arensb                                                                                                               
    754 kados                                                                                                                
    797 Marc Chantreux                                                                                                       
    890 Paul POULAIN                                                                                                         
    897 tonnesen                                                                                                             
    926 Mason James                                                                                                          
   1105 Kyle M Hall                                                                                                          
   1110 thd                                                                                                                  
   1185 Garry Collum                                                                                                         
   1275 Andrew Elwell                                                                                                        
   1480 paul                                                                                                                 
   1680 Nahuel ANGELINETTI                                                                                                   
   1853 root                                                                                                                 
   1918 oleonard                                                                                                             
   2148 John Beppu                                                                                                           
   2150 oleonard                                                                                                             
   2152 Stephen Edwards                                                                                                      
   2343 Jean-André Santoni                                                                                                   
   2469 Nicole Engard                                                                                                        
   2652 Colin Campbell                                                                                                       
   2923 Michael Hafen                                                                                                        
   2935 Ricardo Dias Marques                                                                                                 
   2968 acli                                                                                                                 
   3925 Ryan Higgins                                                                                                         
   4024 Lars Wirzenius                                                                                                       
   4317 Frédéric Demians                                                                                                     
   4720 Jesse Weaver                                                                                                         
   4831 Jane Wagner                                                                                                          
   4940 Matthias Meusburger                                                                                                  
   6003 hdl                                                                                                                  
   6198 toins                                                                                                                
  10333 Andrew Moore 
  11565 Ryan Higgins                                                                                                         
  17381 Joe Atzberger                                                                                                        
  21592 Henri-Damien LAURENT                                                                                                 
  27268 Chris Cormack                                                                                                        
  33829 Joshua Ferraro                                                                                                       
  36276 Russel Garlick                                                                                                       
  36947 Owen Leonard                                                                                                         
  42002 Galen Charlton                                                                                                       
  45025 Frederic Demians                                                                                                     
  46317 Katrin Fischer                                                                                                       
  48135 thd                                                                                                                  
  48371 Piotr Wejman                                                                                                         
  62207 Chris Nighswonger                                                                                                    
  85964 Paul Poulain                                                                                                         
 283600 Nahuel ANGELINETTI

Out of curiosity I did the same with PTFS’ Harley release which without the .po files is 603087 lines. Broken done by person it looks like

      1 brendan
      1 Frère Sébastien Marie
      1 hdl
      1 Paul Poulain
      1 QA Manager
      1 Ryan HIggins
      1 sergerenaux
      2 rangi
      3 Brendan A. Gallagher
      4 Andrei V. Toutoukine
      4 kados
      4 Koha User
      4 shedges
      4 szrj1m
      5 NCE
      6 lavide
      6 Magnus Enger
      6 oleonard
      6 root
      6 tipaul
      6 tipaul
      9 Frédéric DEMIANS
     11 amillar
     11 Chris
     11 dnmeid
     11 Stan Brinkerhoff
     12 James Winter
     12 Paul Poulain
     13 dnmeid
     13 pate
     13 Paul Poulain
     13 plugz
     14 tonnesen
     15 PTFS Contractor
     15 toins
     16 Chris Catalfo
     17 Clay Fouts
     17 Cory Jaeger
     17 David Bavousett
     19 Liz Rea
     20 Daniel Sweeney
     21 Ian Walls
     22 truth_nz
     22 Vincent Danjean
     24 Koha Production
     24 Nahuel ANGELINETTI
     31 kyletest
     34 Nahuel Angelinetti
     36 hdl
     39 stan
     43 Paul Poulain
     49 Ian Walls
     51 Brian Harrington
     52 Andrew Elwell
     52 Danny Bouman
     53 toins
     54 doxulting
     55 Christopher Hyde
     56 Arcadia Koha
     56 savitra.sirohi
     56 Zeno Tajoli
     59 Nahuel Angelinetti
     59 Paul POULAIN
     64 koha
     65 dev3
     71 DeAndre Carroll
     71 hpassini
     72 pate
     73 genjimoto
     91 Paul Poulain
     91 slef
     93 PTFS
    100 kyletest
    105 alaurin
    110 Sébastien Hinderer
    124 Katrin Fischer
    127 acli
    143 Matthias Meusburger
    156 toins
    167 acli
    171 Rick Welykochy
    188 Nahuel Angelinetti
    221 Wolfgang Heymans
    222 wolfpac444
    232 doxulting
    238 btoumi
    256 sushi
    295 David Goldfein
    365 Paul POULAIN
    368 rych
    379 finlayt
    416 Allen Reinmeyer
    451 acli
    485 Jean-André Santoni
    533 joshferraro
    541 MJ Ray
    564 plg
    579 Kyle Hall
    582 Darrell Ulm
    608 Kyle M Hall
    678 Mason James
   719 MJ Ray
    728 bob_lyon
    755 arensb
    762 Pianohacker
    794 Marc Chantreux
    943 kados
    946 Nahuel ANGELINETTI
    948 Garry Collum
    986 Nahuel ANGELINETTI
    989 Paul POULAIN
   1057 tonnesen
   1110 thd
   1181 tgarip1957
   1309 Nicole Engard
   1362 rangi
   1471 paul
   1722 Frédéric Demians
   1918 oleonard
   2161 John Beppu
   2278 Stephen Edwards
   2365 oleonard
   2421 acli
   2932 Michael Hafen
   2937 Ricardo Dias Marques
   3104 Paul POULAIN
   3452 David Birmingham
   3770 Colin Campbell
   3962 Ryan Higgins
   4648 Jesse Weaver
   4714 Paul POULAIN
   4967 Jane Wagner
   6490 hdl
   6517 PTFS
   7167 toins
   9670 J. David Bavousett
  10373 Paul POULAIN
  10706 tipaul
  10920 Andrew Moore
  10987 Henri-Damien LAURENT
  11886 Ryan Higgins
  18508 Joe Atzberger
  34379 Owen Leonard
  36286 Russel Garlick
  42306 Galen Charlton
  46674 Chris Cormack
  48135 thd
  48166 Joshua Ferraro
  50450 tipaul
  56119 Chris Nighswonger
  62542 Frederic Demians

Full git stats for Koha

So after the great article by Eric Hellman on his blog about the copyright to Koha code I decided to learn about subtree merging so I could combine the old koha repo, with the new one. That way instead of having the stats broken into 2 different ones, pre 2000 and post 2000, I can generate stats for the whole of the history of Koha.

Github has a great tutorial that I’m not going to repeat here. But if you follow it, you will end up with a repository that combines as many other repositories as you need.

So here’s the stats report. Some interesting things:

  • If you look at at the activity tab, you can see that we have pretty even coverage for all 24 hours of the day.
  • If you look at the general page you will see we average 3.2 commits a day .. doesn’t sound that much until you realise that is 3.2 commits average for 3755 days!!
  • Out of the last 32 weeks, there is a only a single week where commits dipped into single figures

So whatever might be happening elsewhere, main trunk development of Koha is as strong as ever. Tis good to see.