<commit_before>libraryDependencies += "com.google.protobuf" % "protobuf-java" % "3.0.0" % "protobuf"

excludeFilter in PB.generate := "test1.proto"

unmanagedResourceDirectories in Compile <++= PB.protoSources in Compile

TaskKey[Unit]("checkJar") := IO.withTemporaryDirectory{ dir =>
  val files = IO.unzip((packageBin in Compile).value, dir, "*.proto")
  val expect = Set("test1.proto", "test2.proto").map(dir / _)
  assert(files == expect, s"$files $expect")
}

// https://github.com/sbt/sbt-protobuf/issues/37
mainClass in compile := Some("whatever")<commit_msg>Rewrite basic test using .value<commit_after>libraryDependencies += "com.google.protobuf" % "protobuf-java" % "3.0.0" % "protobuf"

excludeFilter in PB.generate := "test1.proto"

unmanagedResourceDirectories in Compile ++= (PB.protoSources in Compile).value

TaskKey[Unit]("checkJar") := IO.withTemporaryDirectory{ dir =>
  val files = IO.unzip((packageBin in Compile).value, dir, "*.proto")
  val expect = Set("test1.proto", "test2.proto").map(dir / _)
  assert(files == expect, s"$files $expect")
}

// https://github.com/sbt/sbt-protobuf/issues/37
mainClass in compile := Some("whatever")
{'fraction_non_alphanumeric': 0.17199654278305965, 'fraction_numerical': 0.013828867761452032, 'mean_word_length': 5.2594594594594595, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '6331364', 'n_tokens_mistral': 397, 'n_tokens_neox': 383, 'n_words': 79}