Skip to content

Instantly share code, notes, and snippets.

@vgaltes
Last active December 19, 2015 17:28
Show Gist options
  • Save vgaltes/ef2f85887e15710660d3 to your computer and use it in GitHub Desktop.
Save vgaltes/ef2f85887e15710660d3 to your computer and use it in GitHub Desktop.
Number of real authors
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