<commit_before>import sbt._
import Keys._
import com.twitter.sbt._

object Scrooge extends Build {
  // projects that use finagle will provide their own dependent jar.
  val finagleVersion = "1.11.0"
  val utilVersion = "1.12.13"

  val generateTestThrift = TaskKey[Seq[File]](
    "generate-test-thrift",
    "generate scala/java code used for unit tests"
  )

  val sharedSettings = Seq(
    SubversionPublisher.subversionRepository := Some("https://svn.twitter.biz/maven-public"),

    generateTestThrift <<= (
      streams,
      exportedProducts in Compile,
      fullClasspath in Runtime,
      sourceManaged in Test,
      resourceDirectory in Test
    ) map { (out, products, cp, managed, resources) =>
      generateThriftFor("scala", cp, managed, resources, out.log) // ++
        // generateThriftFor("java", cp, managed, resources, out.log)
    }
  )

  lazy val scrooge = Project(
    id = "scrooge",
    base = file(".")
  ) aggregate(scroogeRuntime, scroogeGenerator)

  lazy val scroogeRuntime = Project(
    id = "scrooge-runtime",
    base = file("scrooge-runtime"),
    settings = Project.defaultSettings ++
      StandardProject.newSettings ++
      sharedSettings
  ).settings(
    name := "scrooge-runtime",
    organization := "com.twitter",
    version := "1.1.4-SNAPSHOT",

    libraryDependencies ++= Seq(
      "com.twitter" %% "finagle-thrift" % finagleVersion,
      "com.twitter" %% "util-codec" % utilVersion,

      // for tests:
      "org.scala-tools.testing" % "specs_2.9.1" % "1.6.9" % "test"
    )
  )

  lazy val scroogeGenerator = Project(
    id = "scrooge-generator",
    base = file("scrooge-generator"),
    settings = Project.defaultSettings ++
      StandardProject.newSettings ++
      sharedSettings ++
      // package the distribution zipfile too:
      addArtifact(Artifact("scrooge", "zip", "zip"), PackageDist.packageDist).settings
  ).settings(
    name := "scrooge",
    organization := "com.twitter",
    version := "2.5.5-SNAPSHOT",

    libraryDependencies ++= Seq(
      "org.apache.thrift" % "libthrift" % "0.8.0",
      "com.github.scopt" %% "scopt" % "2.0.1",
      "com.twitter" %% "util-core" % utilVersion,

      // for tests:
      "org.scala-tools.testing" %% "specs" % "1.6.9" % "test" withSources(),
      "org.scalatest" %% "scalatest" % "1.7.1" % "test",
      "com.twitter" %% "scalatest-mixins" % "1.0.3" % "test",
      "org.jmock" % "jmock" % "2.4.0" % "test",
      "org.hamcrest" % "hamcrest-all" % "1.1" % "test",<commit_msg>don't add _2.9.1 to the generator zipfile name.<commit_after>import sbt._
import Keys._
import com.twitter.sbt._

object Scrooge extends Build {
  // projects that use finagle will provide their own dependent jar.
  val finagleVersion = "1.11.0"
  val utilVersion = "1.12.13"

  val generateTestThrift = TaskKey[Seq[File]](
    "generate-test-thrift",
    "generate scala/java code used for unit tests"
  )

  val sharedSettings = Seq(
    SubversionPublisher.subversionRepository := Some("https://svn.twitter.biz/maven-public"),

    generateTestThrift <<= (
      streams,
      exportedProducts in Compile,
      fullClasspath in Runtime,
      sourceManaged in Test,
      resourceDirectory in Test
    ) map { (out, products, cp, managed, resources) =>
      generateThriftFor("scala", cp, managed, resources, out.log) // ++
        // generateThriftFor("java", cp, managed, resources, out.log)
    }
  )

  lazy val scrooge = Project(
    id = "scrooge",
    base = file(".")
  ) aggregate(scroogeRuntime, scroogeGenerator)

  lazy val scroogeRuntime = Project(
    id = "scrooge-runtime",
    base = file("scrooge-runtime"),
    settings = Project.defaultSettings ++
      StandardProject.newSettings ++
      sharedSettings
  ).settings(
    name := "scrooge-runtime",
    organization := "com.twitter",
    version := "1.1.4-SNAPSHOT",

    libraryDependencies ++= Seq(
      "com.twitter" %% "finagle-thrift" % finagleVersion,
      "com.twitter" %% "util-codec" % utilVersion,

      // for tests:
      "org.scala-tools.testing" % "specs_2.9.1" % "1.6.9" % "test"
    )
  )

  lazy val scroogeGenerator = Project(
    id = "scrooge-generator",
    base = file("scrooge-generator"),
    settings = Project.defaultSettings ++
      StandardProject.newSettings ++
      sharedSettings ++
      // package the distribution zipfile too:
      addArtifact(Artifact("scrooge", "zip", "zip"), PackageDist.packageDist).settings
  ).settings(
    name := "scrooge",
    organization := "com.twitter",
    version := "2.5.5-SNAPSHOT",

    // we only generate one scrooge to bind them all.
    crossPaths := false,

    libraryDependencies ++= Seq(
      "org.apache.thrift" % "libthrift" % "0.8.0",
      "com.github.scopt" %% "scopt" % "2.0.1",
      "com.twitter" %% "util-core" % utilVersion,

      // for tests:
      "org.scala-tools.testing" %% "specs" % "1.6.9" % "test" withSources(),
      "org.scalatest" %% "scalatest" % "1.7.1" % "test",
      "com.twitter" %% "scalatest-mixins" % "1.0.3" % "test",
      "org.jmock" % "jmock" % "2.4.0" % "test",
      "org.hamcrest" % "hamcrest-all" % "1.1" % "test",
{'fraction_non_alphanumeric': 0.15618898867629832, 'fraction_numerical': 0.016595080046856697, 'mean_word_length': 2.9166666666666665, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4511119', 'n_tokens_mistral': 1767, 'n_tokens_neox': 1722, 'n_words': 371}