<commit_before>import com.typesafe.sbt.SbtNativePackager.autoImport.{
  maintainer,
  packageDescription,
  packageSummary
}
import com.typesafe.sbt.packager.docker.DockerPlugin.autoImport._
import sbt.Keys._
import sbt._

// scalastyle:off
object Settings {

  val BaseScalacOpts = Seq(
    "-feature", // Emit warning and location for usages of features that should be imported explicitly.
    "-deprecation", // Emit warning and location for usages of deprecated APIs.
    "-Xlint", // Enable recommended additional warnings.
    "-Xfatal-warnings", // Fail the compilation if there are any warnings.
    "-language:implicitConversions",
    "-language:higherKinds",
    "-language:existentials",
    "-language:postfixOps"
  )

  val ExtraScalacOpts = Seq(
    "-unchecked", // Enable additional warnings where generated code depends on assumptions.
    "-Ywarn-adapted-args", // Warn if an argument list is modified to match the receiver.
    "-Ywarn-dead-code", // Warn when dead code is identified.
    "-Ywarn-inaccessible", // Warn about inaccessible types in method signatures.
    "-Ywarn-nullary-override", // Warn when non-nullary overrides nullary, e.g. def foo() over def foo.
    "-Ywarn-numeric-widen" // Warn when numerics are widened.
  )

  val BaseSettings = Seq(
    organization := "net.scalytica",
    licenses += ("Apache-2.0", url(
      "http://opensource.org/licenses/https://opensource.org/licenses/Apache-2.0"
    )),
    scalaVersion := Dependencies.ScalaVer,
    scalacOptions := BaseScalacOpts,
    scalacOptions in Test ++= Seq("-Yrangepos"),
    javaOptions += "-Duser.timezone=UTC", // Set timezone to UTC
    javaOptions in Test += "-Dlogger.resource=logback-test.xml",
    logBuffered in Test := false,
    fork in Test := true,
    testOptions += Tests
      .Argument(TestFrameworks.Specs2, "html", "junitxml", "console"),
    // Disable scaladoc
    publishArtifact in (Compile, packageDoc) := false,
    publishArtifact in packageDoc := false,
    sources in (Compile, doc) := Seq.empty
  )

  val GitlabRegistry = "registry.gitlab.com"
  val GitlabUser     = "kpmeen"

  val DockerSettings = Seq(
    maintainer in Docker := "<NAME> <<EMAIL>>",
    packageSummary in Docker := "Symbiotic Backend services",
    packageDescription in Docker := "Backend for the Symbiotic simple file management system",
    dockerExposedPorts in Docker := Seq(9000),
    dockerBaseImage in Docker := "openjdk:8",
    dockerRepository := Some(s"$GitlabRegistry/$GitlabUser"),
    dockerAlias := DockerAlias(
      Some(GitlabRegistry),
      Some(GitlabUser),
      "symbiotic",
      Some("latest")
    )
  )

  val NoPublish = Seq(
    publish := {},
    publishLocal := {}
  )

  val BintrayPublish = Seq(
    publishMavenStyle := true,
    publishArtifact in Test := false,
    pomExtra := (
      <url>https://gitlab.com/kpmeen/symbiotic</url>
        <scm>
          <url><EMAIL>:kpmeen/symbiotic.git</url>
          <connection>scm:git:<EMAIL>:kpmeen/symbiotic.git</connection>
        </scm>
        <developers>
          <developer>
            <id>kpmeen</id>
            <name><NAME></name>
            <url>http://scalytica.net</url>
          </developer>
        </developers>
    )
  )

  def SymbioticProject(name: String): Project = {
    val fullName = s"symbiotic-$name"

    Project(fullName, file(fullName))
      .settings(BaseSettings: _*)
      .settings(
        updateOptions := updateOptions.value.withCachedResolution(true)
      )<commit_msg>Removing redundant scm info from pomExtra definition<commit_after>import com.typesafe.sbt.SbtNativePackager.autoImport.{
  maintainer,
  packageDescription,
  packageSummary
}
import com.typesafe.sbt.packager.docker.DockerPlugin.autoImport._
import sbt.Keys._
import sbt._

// scalastyle:off
object Settings {

  val BaseScalacOpts = Seq(
    "-feature", // Emit warning and location for usages of features that should be imported explicitly.
    "-deprecation", // Emit warning and location for usages of deprecated APIs.
    "-Xlint", // Enable recommended additional warnings.
    "-Xfatal-warnings", // Fail the compilation if there are any warnings.
    "-language:implicitConversions",
    "-language:higherKinds",
    "-language:existentials",
    "-language:postfixOps"
  )

  val ExtraScalacOpts = Seq(
    "-unchecked", // Enable additional warnings where generated code depends on assumptions.
    "-Ywarn-adapted-args", // Warn if an argument list is modified to match the receiver.
    "-Ywarn-dead-code", // Warn when dead code is identified.
    "-Ywarn-inaccessible", // Warn about inaccessible types in method signatures.
    "-Ywarn-nullary-override", // Warn when non-nullary overrides nullary, e.g. def foo() over def foo.
    "-Ywarn-numeric-widen" // Warn when numerics are widened.
  )

  val BaseSettings = Seq(
    organization := "net.scalytica",
    licenses += ("Apache-2.0", url(
      "http://opensource.org/licenses/https://opensource.org/licenses/Apache-2.0"
    )),
    scalaVersion := Dependencies.ScalaVer,
    scalacOptions := BaseScalacOpts,
    scalacOptions in Test ++= Seq("-Yrangepos"),
    javaOptions += "-Duser.timezone=UTC", // Set timezone to UTC
    javaOptions in Test += "-Dlogger.resource=logback-test.xml",
    logBuffered in Test := false,
    fork in Test := true,
    testOptions += Tests
      .Argument(TestFrameworks.Specs2, "html", "junitxml", "console"),
    // Disable scaladoc
    publishArtifact in (Compile, packageDoc) := false,
    publishArtifact in packageDoc := false,
    sources in (Compile, doc) := Seq.empty
  )

  val GitlabRegistry = "registry.gitlab.com"
  val GitlabUser     = "kpmeen"

  val DockerSettings = Seq(
    maintainer in Docker := "<NAME> <<EMAIL>>",
    packageSummary in Docker := "Symbiotic Backend services",
    packageDescription in Docker := "Backend for the Symbiotic simple file management system",
    dockerExposedPorts in Docker := Seq(9000),
    dockerBaseImage in Docker := "openjdk:8",
    dockerRepository := Some(s"$GitlabRegistry/$GitlabUser"),
    dockerAlias := DockerAlias(
      Some(GitlabRegistry),
      Some(GitlabUser),
      "symbiotic",
      Some("latest")
    )
  )

  val NoPublish = Seq(
    publish := {},
    publishLocal := {}
  )

  val BintrayPublish = Seq(
    publishMavenStyle := true,
    publishArtifact in Test := false,
    pomExtra := (
      <url>https://gitlab.com/kpmeen/symbiotic</url>
        <developers>
          <developer>
            <id>kpmeen</id>
            <name><NAME></name>
            <url>http://scalytica.net</url>
          </developer>
        </developers>
    )
  )

  def SymbioticProject(name: String): Project = {
    val fullName = s"symbiotic-$name"

    Project(fullName, file(fullName))
      .settings(BaseSettings: _*)
      .settings(
        updateOptions := updateOptions.value.withCachedResolution(true)
      )
{'fraction_non_alphanumeric': 0.1245639534883721, 'fraction_numerical': 0.0029069767441860465, 'mean_word_length': 3.071597633136095, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '200093', 'n_tokens_mistral': 2180, 'n_tokens_neox': 2086, 'n_words': 524}