<commit_before>package japgolly.scalajs.benchmark.engine

import japgolly.scalajs.benchmark.vendor.chartjs.Chart
import scala.concurrent.duration._

final case class EngineOptions(clock           : Clock,
                               initialDelay    : FiniteDuration,
                               delay           : () => FiniteDuration,
                               outlierTrimIfMin: Int,
                               outlierTrimPct  : Double,
                               minRuns         : Int,
                               minTime         : FiniteDuration,
                               maxRuns         : Int,
                               maxTime         : FiniteDuration,
                              )

object EngineOptions {

  val default: EngineOptions =
    apply(
      clock            = Clock.Default,
      initialDelay     = 4.millis,
      delay            = defaultDelay,
      outlierTrimIfMin = 1000,
      outlierTrimPct   = 0.08,
      minRuns          = 10000,
      minTime          = 1.second,
      maxRuns          = 100000,
      maxTime          = 12.second,
    )

  // Ensure benchmarks don't start before chart animation finishes
  private def defaultDelay: () => FiniteDuration = () => {
    val chartTimeSec = Chart.defaults.global.animationSteps / 60.0
    val delaySec     = chartTimeSec * 1.4 // some buffer
    val delayMicro   = delaySec * 1000000.0
    delayMicro.toInt.micros
  }
}
<commit_msg>Remove unused EngineOptions<commit_after>package japgolly.scalajs.benchmark.engine

import japgolly.scalajs.benchmark.vendor.chartjs.Chart
import scala.concurrent.duration._

final case class EngineOptions(clock           : Clock,
                               initialDelay    : FiniteDuration,
                               delay           : () => FiniteDuration,
                               minRuns         : Int,
                               minTime         : FiniteDuration,
                               maxRuns         : Int,
                               maxTime         : FiniteDuration,
                              )

object EngineOptions {

  val default: EngineOptions =
    apply(
      clock            = Clock.Default,
      initialDelay     = 4.millis,
      delay            = defaultDelay,
      minRuns          = 10000,
      minTime          = 1.second,
      maxRuns          = 100000,
      maxTime          = 12.second,
    )

  // Ensure benchmarks don't start before chart animation finishes
  private def defaultDelay: () => FiniteDuration = () => {
    val chartTimeSec = Chart.defaults.global.animationSteps / 60.0
    val delaySec     = chartTimeSec * 1.4 // some buffer
    val delayMicro   = delaySec * 1000000.0
    delayMicro.toInt.micros
  }
}

{'fraction_non_alphanumeric': 0.06832298136645963, 'fraction_numerical': 0.023017902813299233, 'mean_word_length': 1.2892976588628762, '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': '682180', 'n_tokens_mistral': 758, 'n_tokens_neox': 681, 'n_words': 150}