<commit_before>import play.PlayImport.PlayKeys._
import scoverage.ScoverageSbtPlugin.ScoverageKeys._

name := "apidoc"

organization := "com.gilt.apidoc"

scalaVersion in ThisBuild := "2.11.4"

// required because of issue between scoverage & sbt
parallelExecution in Test in ThisBuild := true

lazy val lib = project
  .in(file("lib"))
  .settings(commonSettings: _*)

lazy val core = project
  .in(file("core"))
  .dependsOn(lib)
  .aggregate(lib)
  .settings(commonSettings: _*)
  .settings(
    resolvers += "Typesafe Maven Repository" at "http://repo.typesafe.com/typesafe/maven-releases/",
    libraryDependencies ++= Seq(
      "com.typesafe.play" %% "play-json" % "2.3.6"
    )
  )

lazy val generated = project
  .in(file("generated"))
  .enablePlugins(PlayScala)
  .settings(
    libraryDependencies ++= Seq(
      ws
    )
  )

lazy val api = project
  .in(file("api"))
  .dependsOn(generator, core)
  .aggregate(generated, core)
  .enablePlugins(PlayScala)
  .settings(commonSettings: _*)
  .settings(
    routesImport += "com.gilt.apidoc.Bindables._",
    libraryDependencies ++= Seq(
      ws,
      jdbc,
      anorm,
      "org.postgresql" % "postgresql"    % "9.3-1101-jdbc4",
      "org.mindrot"    % "jbcrypt"       % "0.3m",
      "com.sendgrid"   % "sendgrid-java" % "2.1.0",
      "org.scalatestplus" %% "play" % "1.2.0" % "test"
    )
  )

lazy val www = project
  .in(file("www"))
  .dependsOn(generated, core)
  .aggregate(generated, core)
  .enablePlugins(PlayScala)
  .settings(commonSettings: _*)
  .settings(
    routesImport += "com.gilt.apidoc.Bindables._"
  )

lazy val generator = project
  .in(file("generator"))
  .dependsOn(generated, lib, core) // goal is to remove core dependency here<commit_msg>Remove generator dependency from api project<commit_after>import play.PlayImport.PlayKeys._
import scoverage.ScoverageSbtPlugin.ScoverageKeys._

name := "apidoc"

organization := "com.gilt.apidoc"

scalaVersion in ThisBuild := "2.11.4"

// required because of issue between scoverage & sbt
parallelExecution in Test in ThisBuild := true

lazy val lib = project
  .in(file("lib"))
  .settings(commonSettings: _*)

lazy val core = project
  .in(file("core"))
  .dependsOn(lib)
  .aggregate(lib)
  .settings(commonSettings: _*)
  .settings(
    resolvers += "Typesafe Maven Repository" at "http://repo.typesafe.com/typesafe/maven-releases/",
    libraryDependencies ++= Seq(
      "com.typesafe.play" %% "play-json" % "2.3.6"
    )
  )

lazy val generated = project
  .in(file("generated"))
  .enablePlugins(PlayScala)
  .settings(
    libraryDependencies ++= Seq(
      ws
    )
  )

lazy val api = project
  .in(file("api"))
  .dependsOn(generated, core)
  .aggregate(generated, core)
  .enablePlugins(PlayScala)
  .settings(commonSettings: _*)
  .settings(
    routesImport += "com.gilt.apidoc.Bindables._",
    libraryDependencies ++= Seq(
      ws,
      jdbc,
      anorm,
      "org.postgresql" % "postgresql"    % "9.3-1101-jdbc4",
      "org.mindrot"    % "jbcrypt"       % "0.3m",
      "com.sendgrid"   % "sendgrid-java" % "2.1.0",
      "org.scalatestplus" %% "play" % "1.2.0" % "test"
    )
  )

lazy val www = project
  .in(file("www"))
  .dependsOn(generated, core)
  .aggregate(generated, core)
  .enablePlugins(PlayScala)
  .settings(commonSettings: _*)
  .settings(
    routesImport += "com.gilt.apidoc.Bindables._"
  )

lazy val generator = project
  .in(file("generator"))
  .dependsOn(generated, lib, core) // goal is to remove core dependency here
{'fraction_non_alphanumeric': 0.15138531848043416, 'fraction_numerical': 0.012567837760639817, 'mean_word_length': 3.302211302211302, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '2668491', 'n_tokens_mistral': 1318, 'n_tokens_neox': 1263, 'n_words': 248}