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

name := "apidoc"

organization := "com.bryzek.apidoc"

scalaVersion in ThisBuild := "2.11.7"

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

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

val avroVersion = "1.7.7"

lazy val avro = project
  .in(file("avro"))
  .dependsOn(generated, lib)
  .aggregate(generated, lib)
  .settings(
    libraryDependencies ++= Seq(
      "org.apache.avro"   % "avro"              % avroVersion,
      "org.apache.avro"   % "avro-compiler"     % avroVersion,
      "com.typesafe.play" %% "play-json" % "2.4.6",
      "org.scalatest"     %% "scalatest" % "2.2.5" % "test"
    )
  )

lazy val swagger = project
  .in(file("swagger"))
  .dependsOn(generated, lib)
  .aggregate(generated, lib)
  .settings(
    libraryDependencies ++= Seq(
      "io.swagger" % "swagger-parser" % "1.0.5",
      "com.typesafe.play" %% "play-json" % "2.4.6",
      "org.scalatest"     %% "scalatest" % "2.2.5" % "test"
    )
  )

lazy val core = project
  .in(file("core"))
  .dependsOn(generated, lib, avro, swagger)
  .aggregate(generated, lib, avro, swagger)
  .settings(commonSettings: _*)
  .settings(
    resolvers += "Typesafe Maven Repository" at "http://repo.typesafe.com/typesafe/maven-releases/",
    libraryDependencies ++= Seq(
      "com.typesafe.play" %% "play-json" % "2.4.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.bryzek.apidoc.api.v0.Bindables._",
    resolvers += "Scalaz Bintray Repo" at "https://dl.bintray.com/scalaz/releases",
    libraryDependencies ++= Seq(
      ws,
      jdbc,
      "com.typesafe.play" %% "anorm"         % "2.5.0",
      "org.postgresql"    %  "postgresql"    % "9.4-1206-jdbc42",
      "org.mindrot"       %  "jbcrypt"       % "0.3m",
      "com.sendgrid"      %  "sendgrid-java" % "2.2.2",
      specs2              %  Test,
      "org.scalatestplus" %% "play" % "1.4.0-M4" % "test"
    )<commit_msg>Upgrade org.postgresql.postgresql from 9.4-1206-jdbc42 => 9.4.1207<commit_after>import play.PlayImport.PlayKeys._
import play.sbt.PlayImport._
import scoverage.ScoverageSbtPlugin.ScoverageKeys._

name := "apidoc"

organization := "com.bryzek.apidoc"

scalaVersion in ThisBuild := "2.11.7"

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

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

val avroVersion = "1.7.7"

lazy val avro = project
  .in(file("avro"))
  .dependsOn(generated, lib)
  .aggregate(generated, lib)
  .settings(
    libraryDependencies ++= Seq(
      "org.apache.avro"   % "avro"              % avroVersion,
      "org.apache.avro"   % "avro-compiler"     % avroVersion,
      "com.typesafe.play" %% "play-json" % "2.4.6",
      "org.scalatest"     %% "scalatest" % "2.2.5" % "test"
    )
  )

lazy val swagger = project
  .in(file("swagger"))
  .dependsOn(generated, lib)
  .aggregate(generated, lib)
  .settings(
    libraryDependencies ++= Seq(
      "io.swagger" % "swagger-parser" % "1.0.5",
      "com.typesafe.play" %% "play-json" % "2.4.6",
      "org.scalatest"     %% "scalatest" % "2.2.5" % "test"
    )
  )

lazy val core = project
  .in(file("core"))
  .dependsOn(generated, lib, avro, swagger)
  .aggregate(generated, lib, avro, swagger)
  .settings(commonSettings: _*)
  .settings(
    resolvers += "Typesafe Maven Repository" at "http://repo.typesafe.com/typesafe/maven-releases/",
    libraryDependencies ++= Seq(
      "com.typesafe.play" %% "play-json" % "2.4.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.bryzek.apidoc.api.v0.Bindables._",
    resolvers += "Scalaz Bintray Repo" at "https://dl.bintray.com/scalaz/releases",
    libraryDependencies ++= Seq(
      ws,
      jdbc,
      "com.typesafe.play" %% "anorm"         % "2.5.0",
      "org.postgresql"    %  "postgresql"    % "9.4.1207",
      "org.mindrot"       %  "jbcrypt"       % "0.3m",
      "com.sendgrid"      %  "sendgrid-java" % "2.2.2",
      specs2              %  Test,
      "org.scalatestplus" %% "play" % "1.4.0-M4" % "test"
    )
{'fraction_non_alphanumeric': 0.16749585406301823, 'fraction_numerical': 0.02197346600331675, 'mean_word_length': 2.7932389937106916, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '3647210', 'n_tokens_mistral': 1933, 'n_tokens_neox': 1845, 'n_words': 326}