<commit_before>import complete.DefaultParsers._

crossTarget in Compile := target.value

val checkIterations = inputKey[Unit]("Verifies the accumlated number of iterations of incremental compilation.")

checkIterations := {
        val expected: Int = (Space ~> NatBasic).parsed
        val actual: Int = (compile in Compile).value.compilations.allCompilations.size
        assert(expected == actual, s"Expected $expected compilations, got $actual")
}
<commit_msg>Fix test source-dependencies/restore-classes<commit_after>import complete.DefaultParsers._

crossTarget in Compile := target.value

val checkIterations = inputKey[Unit]("Verifies the accumlated number of iterations of incremental compilation.")

checkIterations := {
  val analysis = (compile in Compile).value.asInstanceOf[sbt.internal.inc.Analysis]

  val expected: Int = (Space ~> NatBasic).parsed
  val actual: Int = analysis.compilations.allCompilations.size
  assert(expected == actual, s"Expected $expected compilations, got $actual")
}

{'fraction_non_alphanumeric': 0.0992063492063492, 'fraction_numerical': 0.0, 'mean_word_length': 5.267080745341615, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6202101', 'n_tokens_mistral': 281, 'n_tokens_neox': 274, 'n_words': 77}