<commit_before>import sbt._
import java.util.jar.Manifest

class Build(info: ProjectInfo) extends DefaultProject(info) with IdeaProject {

	override def managedStyle = ManagedStyle.Maven
	lazy val publishTo = Resolver.file("github-pages-repo", new java.io.File("../maven-repo/"))

  val junit = "junit" % "junit" % "4.7" % "test" withSources
  val mockito = "org.mockito" % "mockito-all" % "1.8.5" % "test" withSources
  val scalaSpecs = "org.scala-tools.testing" % "specs_2.8.0" % "1.6.5" % "test" withSources

  // Self-test

  def scctPluginJar = jarPath
  def instrumentedClassDir = outputPath / "coverage-classes"
  def reportDir = outputPath / "coverage-report"
  def selfTestRunClasspath = instrumentedClassDir +++ (testClasspath --- mainCompilePath)

  class InstrumentCompileConfig extends MainCompileConfig {
    override def label = "coverage"
    override def outputDirectory = instrumentedClassDir
    override def analysisPath = outputPath / "coverage-analysis"
    override def classpath = scctPluginJar +++ (super.classpath --- mainCompilePath)
    override def baseCompileOptions = coverageCompileOption :: super.baseCompileOptions.toList
    def coverageCompileOption = CompileOption("-Xplugin:"+scctPluginJar.get.mkString)
  }

  lazy val setupCoverageEnv = task {
    FileUtilities.clean(reportDir, log)
    FileUtilities.createDirectory(reportDir, log)
    System.setProperty("scct.report.dir", reportDir.toString)
    System.setProperty("scct.src.reference.dir", mainScalaSourcePath.absolutePath)
    None
  }

  lazy val instrumentCompileConditional = new CompileConditional(new InstrumentCompileConfig, buildCompiler)<commit_msg>Fix self-test src location property.<commit_after>import sbt._
import java.util.jar.Manifest

class Build(info: ProjectInfo) extends DefaultProject(info) with IdeaProject {

	override def managedStyle = ManagedStyle.Maven
	lazy val publishTo = Resolver.file("github-pages-repo", new java.io.File("../maven-repo/"))

  val junit = "junit" % "junit" % "4.7" % "test" withSources
  val mockito = "org.mockito" % "mockito-all" % "1.8.5" % "test" withSources
  val scalaSpecs = "org.scala-tools.testing" % "specs_2.8.0" % "1.6.5" % "test" withSources

  // Self-test

  def scctPluginJar = jarPath
  def instrumentedClassDir = outputPath / "coverage-classes"
  def reportDir = outputPath / "coverage-report"
  def selfTestRunClasspath = instrumentedClassDir +++ (testClasspath --- mainCompilePath)

  class InstrumentCompileConfig extends MainCompileConfig {
    override def label = "coverage"
    override def outputDirectory = instrumentedClassDir
    override def analysisPath = outputPath / "coverage-analysis"
    override def classpath = scctPluginJar +++ (super.classpath --- mainCompilePath)
    override def baseCompileOptions = coverageCompileOption :: super.baseCompileOptions.toList
    def coverageCompileOption = CompileOption("-Xplugin:"+scctPluginJar.get.mkString)
  }

  lazy val setupCoverageEnv = task {
    FileUtilities.clean(reportDir, log)
    FileUtilities.createDirectory(reportDir, log)
    System.setProperty("scct.report.dir", reportDir.toString)
    System.setProperty("scct.source.dir", mainScalaSourcePath.absolutePath)
    None
  }

  lazy val instrumentCompileConditional = new CompileConditional(new InstrumentCompileConfig, buildCompiler)
{'fraction_non_alphanumeric': 0.10626128838049367, 'fraction_numerical': 0.006622516556291391, 'mean_word_length': 4.709621993127148, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4986946', 'n_tokens_mistral': 1029, 'n_tokens_neox': 995, 'n_words': 223}