<commit_before>package scoverage.report

import java.io.File

import scoverage.{Coverage, IOUtils}

object CoverageAggregator {

  def aggregate(baseDir: File, targetDir: File): Option[Coverage] = {
    val files = IOUtils.reportFileSearch(baseDir, IOUtils.isReportFile)
    println(s"[info] Found ${files.size} subproject report files [${files.mkString(",")}]")
    if (files.size > 0) {
      val coverage = aggregatedCoverage(files)
      Some(coverage)
    } else {
      None
    }
  }

   def aggregatedCoverage(files: Seq[File]): Coverage = {
    var id = 0
    val coverage = Coverage()
    files foreach {
      case file =>
        val subcoverage = ScoverageXmlReader.read(file)
        // need to ensure all the ids are unique otherwise the coverage object will have stmt collisions
        id = id + 1
        subcoverage.statements foreach { stmt => coverage add stmt.copy(id = id)}
    }
    coverage
  }
}<commit_msg>Removed unused param from method<commit_after>package scoverage.report

import java.io.File

import scoverage.{Coverage, IOUtils}

object CoverageAggregator {

  def aggregate(baseDir: File): Option[Coverage] = {
    val files = IOUtils.reportFileSearch(baseDir, IOUtils.isReportFile)
    println(s"[info] Found ${files.size} subproject report files [${files.mkString(",")}]")
    if (files.size > 0) {
      val coverage = aggregatedCoverage(files)
      Some(coverage)
    } else {
      None
    }
  }

   def aggregatedCoverage(files: Seq[File]): Coverage = {
    var id = 0
    val coverage = Coverage()
    files foreach {
      case file =>
        val subcoverage = ScoverageXmlReader.read(file)
        // need to ensure all the ids are unique otherwise the coverage object will have stmt collisions
        id = id + 1
        subcoverage.statements foreach { stmt => coverage add stmt.copy(id = id)}
    }
    coverage
  }
}
{'fraction_non_alphanumeric': 0.10278372591006424, 'fraction_numerical': 0.0032119914346895075, 'mean_word_length': 3.054229934924078, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '6964229', 'n_tokens_mistral': 591, 'n_tokens_neox': 575, 'n_words': 160}