<commit_before>import com.typesafe.sbt.SbtScalariform.ScalariformKeys
import sbt.Keys._

import scala.language.postfixOps
import scalariform.formatter.preferences._

organization in ThisBuild := "io.vamp"

name := """vamp"""

version in ThisBuild := VersionHelper.versionByTag // version based on env VAMP_VERSION and "git describe"

scalaVersion := "2.12.1"

scalaVersion in ThisBuild := scalaVersion.value

description in ThisBuild := """Vamp"""

resolvers in ThisBuild ++= Seq(
  Resolver.typesafeRepo("releases"),
  Resolver.sonatypeRepo("releases"),
  Resolver.jcenterRepo
)

// Libraries
val akka = "com.typesafe.akka" %% "akka-actor" % "2.4.16" ::
  "com.typesafe.akka" %% "akka-http" % "10.0.3" ::
  "com.typesafe.akka" %% "akka-parsing" % "10.0.3" ::
  ("de.heikoseeberger" %% "akka-sse" % "2.0.0" excludeAll ExclusionRule(organization = "com.typesafe.akka")) ::
  "ch.megard" %% "akka-http-cors" % "0.1.10" ::
  ("com.typesafe.akka" %% "akka-slf4j" % "2.4.16" exclude("org.slf4j", "slf4j-api")) :: Nil

val json4s = "org.json4s" %% "json4s-native" % "3.5.0" ::
  "org.json4s" %% "json4s-core" % "3.5.0" ::
  "org.json4s" %% "json4s-ext" % "3.5.0" ::
  "org.json4s" %% "json4s-native" % "3.5.0" :: Nil

val snakeYaml = "org.yaml" % "snakeyaml" % "1.16" :: Nil

val kamon = ("io.kamon" %% "kamon-core" % "0.6.4" excludeAll ExclusionRule(organization = "com.typesafe.akka")) ::
  "org.slf4j" % "jul-to-slf4j" % "1.7.21" :: Nil

val logging = "org.slf4j" % "slf4j-api" % "1.7.21" ::
  "ch.qos.logback" % "logback-classic" % "1.1.7" ::
  ("com.typesafe.scala-logging" %% "scala-logging" % "3.5.0" exclude("org.slf4j", "slf4j-api")) :: Nil

val testing = "junit" % "junit" % "4.11" % "test" ::
  "org.scalatest" %% "scalatest" % "3.0.1" % "test" ::
  "org.scalacheck" %% "scalacheck" % "1.13.4" % "test" ::
  "com.typesafe.akka" %% "akka-testkit" % "2.4.14" % "test" :: Nil

val templating = Seq("org.jtwig" % "jtwig-core" % "5.65")

val sql = Seq(
  "org.postgresql" % "postgresql" % "9.4-1202-jdbc42",
  "mysql" % "mysql-connector-java" % "6.0.6",
  "com.microsoft.sqlserver" % "mssql-jdbc" % "6.1.0.jre8")

val fp = Seq(
  "org.typelevel" %% "cats" % "0.9.0",
  "com.chuusai"  %% "shapeless" % "2.3.2")

val redislbs = Seq("com.github.etaty" %% "rediscala" % "1.8.0")

val configlbs = Seq("com.typesafe"  % "config" % "1.3.1")

val zookeeperlbs = Seq("org.apache.zookeeper" % "zookeeper" % "3.4.8"
  exclude("org.slf4j", "slf4j-log4j12") exclude("log4j", "log4j"))

val dockerlbs = Seq("com.spotify" % "docker-client" % "5.0.1")

// Force scala version for the dependencies
dependencyOverrides in ThisBuild ++= Set(
  "org.scala-lang" % "scala-compiler" % scalaVersion.value,
  "org.scala-lang" % "scala-library" % scalaVersion.value
)

lazy val formatting = scalariformSettings ++ Seq(ScalariformKeys.preferences := ScalariformKeys.preferences.value
  .setPreference(CompactControlReadability, true)
  .setPreference(AlignParameters, true)
  .setPreference(AlignSingleLineCaseStatements, true)
  .setPreference(DoubleIndentClassDeclaration, true)
  .setPreference(DanglingCloseParenthesis, Preserve)
  .setPreference(RewriteArrowSymbols, true))

lazy val root = project.in(file(".")).settings(
  // Disable publishing root empty pom
  packagedArtifacts in RootProject(file(".")) := Map.empty,
  // allows running main classes from subprojects
  run := {
    (run in bootstrap in Compile).evaluated
  }
).aggregate(
  common,
  persistence,
  model,
  operation,
  bootstrap,
  container_driver,
  workflow_driver,
  pulse,
  http_api,
  gateway_driver,
  lifter,
  dcos,
  elasticsearch,
  config,
  haproxy,
  mysql,
  postgresql,
  redis,
  sqlserver,
  zookeeper,
  consul,
  etcd,
  kubernetes)

lazy val bootstrap = project.settings(packAutoSettings).settings(
  description := "Bootstrap for Vamp",
  name := "vamp-bootstrap",
  formatting
).dependsOn(common, persistence, model, operation, container_driver, workflow_driver, pulse, http_api, gateway_driver)

lazy val http_api = project.settings(
  description := "Http Api for Vamp",
  name := "vamp-http_api",
  formatting,
  libraryDependencies ++= testing
).dependsOn(operation)

lazy val operation = project.settings(<commit_msg>Fix depedencies of boot module<commit_after>import com.typesafe.sbt.SbtScalariform.ScalariformKeys
import sbt.Keys._

import scala.language.postfixOps
import scalariform.formatter.preferences._

organization in ThisBuild := "io.vamp"

name := """vamp"""

version in ThisBuild := VersionHelper.versionByTag // version based on env VAMP_VERSION and "git describe"

scalaVersion := "2.12.1"

scalaVersion in ThisBuild := scalaVersion.value

description in ThisBuild := """Vamp"""

resolvers in ThisBuild ++= Seq(
  Resolver.typesafeRepo("releases"),
  Resolver.sonatypeRepo("releases"),
  Resolver.jcenterRepo
)

// Libraries
val akka = "com.typesafe.akka" %% "akka-actor" % "2.4.16" ::
  "com.typesafe.akka" %% "akka-http" % "10.0.3" ::
  "com.typesafe.akka" %% "akka-parsing" % "10.0.3" ::
  ("de.heikoseeberger" %% "akka-sse" % "2.0.0" excludeAll ExclusionRule(organization = "com.typesafe.akka")) ::
  "ch.megard" %% "akka-http-cors" % "0.1.10" ::
  ("com.typesafe.akka" %% "akka-slf4j" % "2.4.16" exclude("org.slf4j", "slf4j-api")) :: Nil

val json4s = "org.json4s" %% "json4s-native" % "3.5.0" ::
  "org.json4s" %% "json4s-core" % "3.5.0" ::
  "org.json4s" %% "json4s-ext" % "3.5.0" ::
  "org.json4s" %% "json4s-native" % "3.5.0" :: Nil

val snakeYaml = "org.yaml" % "snakeyaml" % "1.16" :: Nil

val kamon = ("io.kamon" %% "kamon-core" % "0.6.4" excludeAll ExclusionRule(organization = "com.typesafe.akka")) ::
  "org.slf4j" % "jul-to-slf4j" % "1.7.21" :: Nil

val logging = "org.slf4j" % "slf4j-api" % "1.7.21" ::
  "ch.qos.logback" % "logback-classic" % "1.1.7" ::
  ("com.typesafe.scala-logging" %% "scala-logging" % "3.5.0" exclude("org.slf4j", "slf4j-api")) :: Nil

val testing = "junit" % "junit" % "4.11" % "test" ::
  "org.scalatest" %% "scalatest" % "3.0.1" % "test" ::
  "org.scalacheck" %% "scalacheck" % "1.13.4" % "test" ::
  "com.typesafe.akka" %% "akka-testkit" % "2.4.14" % "test" :: Nil

val templating = Seq("org.jtwig" % "jtwig-core" % "5.65")

val sql = Seq(
  "org.postgresql" % "postgresql" % "9.4-1202-jdbc42",
  "mysql" % "mysql-connector-java" % "6.0.6",
  "com.microsoft.sqlserver" % "mssql-jdbc" % "6.1.0.jre8")

val fp = Seq(
  "org.typelevel" %% "cats" % "0.9.0",
  "com.chuusai"  %% "shapeless" % "2.3.2")

val redislbs = Seq("com.github.etaty" %% "rediscala" % "1.8.0")

val configlbs = Seq("com.typesafe"  % "config" % "1.3.1")

val zookeeperlbs = Seq("org.apache.zookeeper" % "zookeeper" % "3.4.8"
  exclude("org.slf4j", "slf4j-log4j12") exclude("log4j", "log4j"))

val dockerlbs = Seq("com.spotify" % "docker-client" % "5.0.1")

// Force scala version for the dependencies
dependencyOverrides in ThisBuild ++= Set(
  "org.scala-lang" % "scala-compiler" % scalaVersion.value,
  "org.scala-lang" % "scala-library" % scalaVersion.value
)

lazy val formatting = scalariformSettings ++ Seq(ScalariformKeys.preferences := ScalariformKeys.preferences.value
  .setPreference(CompactControlReadability, true)
  .setPreference(AlignParameters, true)
  .setPreference(AlignSingleLineCaseStatements, true)
  .setPreference(DoubleIndentClassDeclaration, true)
  .setPreference(DanglingCloseParenthesis, Preserve)
  .setPreference(RewriteArrowSymbols, true))

lazy val root = project.in(file(".")).settings(
  // Disable publishing root empty pom
  packagedArtifacts in RootProject(file(".")) := Map.empty,
  // allows running main classes from subprojects
  run := {
    (run in bootstrap in Compile).evaluated
  }
).aggregate(
  common,
  persistence,
  model,
  operation,
  bootstrap,
  container_driver,
  workflow_driver,
  pulse,
  http_api,
  gateway_driver,
  lifter,
  dcos,
  elasticsearch,
  config,
  haproxy,
  mysql,
  postgresql,
  redis,
  sqlserver,
  zookeeper,
  consul,
  etcd,
  kubernetes)

lazy val bootstrap = project.settings(packAutoSettings).settings(
  description := "Bootstrap for Vamp",
  name := "vamp-bootstrap",
  formatting
).dependsOn(common,
  persistence,
  model,
  operation,
  container_driver,
  workflow_driver,
  pulse,
  http_api,
  gateway_driver,
  lifter,
  dcos,
  elasticsearch,
  config,
  haproxy,
  mysql,
  postgresql,
  redis,
  sqlserver,
  zookeeper,
  consul,
  etcd,
  kubernetes)

lazy val http_api = project.settings(
  description := "Http Api for Vamp",
  name := "vamp-http_api",
  formatting,
  libraryDependencies ++= testing
).dependsOn(operation)

lazy val operation = project.settings(
{'fraction_non_alphanumeric': 0.1794333683105981, 'fraction_numerical': 0.03124635653491897, 'mean_word_length': 4.179951690821256, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3886573', 'n_tokens_mistral': 3604, 'n_tokens_neox': 3426, 'n_words': 632}