Last active
December 19, 2015 17:28
-
-
Save vgaltes/ef2f85887e15710660d3 to your computer and use it in GitHub Desktop.
Number of real authors
This file contains hidden or 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
let consolidateNames name = | |
match name with | |
|authorName when mapAuthors.ContainsKey name -> (mapAuthors.TryFind name).Value | |
|authorName -> authorName | |
let numberOfAuthors = | |
totalCommits | |
|> Array.groupBy(fun c -> c.CommitInfo.Author) | |
|> Array.map(fun a -> consolidateNames (fst a)) | |
|> Array.distinct | |
|> Array.length | |
-------------------------------------------------------------- | |
val numberOfAuthors : int = 16 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment