Skip to content

Instantly share code, notes, and snippets.

@lucastorri
Created December 7, 2012 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucastorri/4233760 to your computer and use it in GitHub Desktop.
Save lucastorri/4233760 to your computer and use it in GitHub Desktop.
code-an simplest analyzer
import spark._
import com.thoughtworks.dod._
class NumberOfCommitsAnalyzer extends Analyzer {
def apply(data: RepoData, sc: SparkContext) =
Result(Seq("checkins"), Seq(Seq(data.commits.count)))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment