<commit_before>name := "twatcher"

val settings = Seq(
  name := "twatcher"
, version := "1.1.0"
, scalaVersion := "2.11.7"
, scalacOptions ++= Seq(
    "-unchecked", "-deprecation", "-feature"
  , "-encoding", "utf8"
  )
)

lazy val root = (
  project in file(".")
  enablePlugins PlayScala
  settings(settings)
  settings(
    libraryDependencies ++= Seq(
      jdbc
    , ws
    , evolutions
    , cache
    , "com.typesafe.slick" %% "slick" % "3.0.0"
    )
  )
)

// Add static script files to bin/ directory
mappings in Universal <++= (packageBin in Compile) map { jar =>
  val scriptsDir = new java.io.File("scripts/bin")
  scriptsDir.listFiles.toSeq.map { f =>
    f -> ("bin/" + f.getName)
  }
}

mappings in Universal <++= (packageBin in Compile) map { jar =>
  val scriptsDir = new java.io.File("scripts/public")
  scriptsDir.listFiles.toSeq.map { f =>
    f -> f.getName
  }
}

routesGenerator := InjectedRoutesGenerator<commit_msg>do not generate API docs<commit_after>name := "twatcher"

val settings = Seq(
  name := "twatcher"
, version := "1.1.0"
, scalaVersion := "2.11.7"
, scalacOptions ++= Seq(
    "-unchecked", "-deprecation", "-feature"
  , "-encoding", "utf8"
  )
)

lazy val root = (
  project in file(".")
  enablePlugins PlayScala
  settings(settings)
  settings(
    libraryDependencies ++= Seq(
      jdbc
    , ws
    , evolutions
    , cache
    , "com.typesafe.slick" %% "slick" % "3.0.0"
    )
  )
)

// Add static script files to bin/ directory
mappings in Universal <++= (packageBin in Compile) map { jar =>
  val scriptsDir = new java.io.File("scripts/bin")
  scriptsDir.listFiles.toSeq.map { f =>
    f -> ("bin/" + f.getName)
  }
}

mappings in Universal <++= (packageBin in Compile) map { jar =>
  val scriptsDir = new java.io.File("scripts/public")
  scriptsDir.listFiles.toSeq.map { f =>
    f -> f.getName
  }
}

routesGenerator := InjectedRoutesGenerator

// Do not generate API doc
doc in Compile <<= target.map(_ / "none")
{'fraction_non_alphanumeric': 0.16115912557193696, 'fraction_numerical': 0.011184544992374174, 'mean_word_length': 3.0577319587628864, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 15, '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': '6732573', 'n_tokens_mistral': 721, 'n_tokens_neox': 707, 'n_words': 171}