<commit_before>import scala.sys.process._

fork := true

val versionNumber = "1.24"
version := versionNumber

lazy val standardLibraries = Seq(
  "io.spray" %%  "spray-json" % "1.3.5",
  "org.scalatest" % "scalatest_2.13" % "3.1.0" % "test",
  "org.scalafx" % "scalafx_2.13" % "14-R19",
  "com.typesafe.akka" %% "akka-actor" % "2.6.0",
  "com.h2database" % "h2" % "1.4.197"
)


lazy val commonConfiguration = Seq(
  name := "dbtarzan",

  maintainer := "<NAME>",

  version := versionNumber,

  scalaVersion := "2.13.1",

  mainClass in Compile := Some("dbtarzan.gui.Main"),

  scalaSource in Compile := baseDirectory.value / ".." / "src" / "main" / "scala",

  scalaSource in Test := baseDirectory.value / ".." / "src" / "test" / "scala",

  resourceDirectory in Compile := baseDirectory.value / ".." / "src" / "main" / "resources",

  resourceDirectory in Test := baseDirectory.value / ".." / "src" / "test" / "resources",

  scalacOptions in Compile ++= Seq("-Ywarn-unused:imports"),
  scalacOptions in Compile --= Seq("-Xfatal-warnings"),
  assemblyMergeStrategy in assembly := {
    case "module-info.class" => MergeStrategy.discard
    case x => {
      val oldStrategy = (assemblyMergeStrategy in assembly).value
      oldStrategy(x)
    }
  },
// scalacOptions += "-Ylog-classpath"
  maintainer := "<NAME> <<EMAIL>>",
  packageSummary := "DBTarzan Package",
  packageDescription := "DBTarzan, the database browser"

) 

def buildProject(name: String) = {
  val javaFXModules = Seq("base", "controls", "graphics", "media")
  Project(name, file(s"prj${name}"))
    .settings(commonConfiguration)
    .settings(
      libraryDependencies ++= standardLibraries ++ javaFXModules.map( module => 
        "org.openjfx" % s"javafx-$module" % "14" classifier name
      )
    )
}

<commit_msg>fixed build.sbt to avoid using javafx jars of other oses when compiling for a specific one<commit_after>import scala.sys.process._

fork := true

val versionNumber = "1.24"
version := versionNumber

lazy val standardLibraries = Seq(
  "io.spray" %%  "spray-json" % "1.3.5",
  "org.scalatest" % "scalatest_2.13" % "3.1.0" % "test",
  "org.scalafx" % "scalafx_2.13" % "14-R19",
  "com.typesafe.akka" %% "akka-actor" % "2.6.0",
  "com.h2database" % "h2" % "1.4.197"
)

lazy val commonConfiguration = Seq(
  name := "dbtarzan",

  maintainer := "<NAME>",

  version := versionNumber,

  scalaVersion := "2.13.1",

  mainClass in Compile := Some("dbtarzan.gui.Main"),

  scalaSource in Compile := baseDirectory.value / ".." / "src" / "main" / "scala",

  scalaSource in Test := baseDirectory.value / ".." / "src" / "test" / "scala",

  resourceDirectory in Compile := baseDirectory.value / ".." / "src" / "main" / "resources",

  resourceDirectory in Test := baseDirectory.value / ".." / "src" / "test" / "resources",

  scalacOptions in Compile ++= Seq("-Ywarn-unused:imports"),
  scalacOptions in Compile --= Seq("-Xfatal-warnings"),
  buildStrategy(),
// scalacOptions += "-Ylog-classpath"
  maintainer := "<NAME> <<EMAIL>>",
  packageSummary := "DBTarzan Package",
  packageDescription := "DBTarzan, the database browser"

)

def buildStrategy() = {
  assemblyMergeStrategy in assembly := {
    case "module-info.class" => MergeStrategy.discard
    case x => {
      val oldStrategy = (assemblyMergeStrategy in assembly).value
      oldStrategy(x)
    }
  }
}

def buildProject(name: String) = {
  val javaFXModules = Seq("base", "controls", "graphics", "media")
  val javaFXLibraries = javaFXModules.map(module =>
    "org.openjfx" % s"javafx-$module" % "14" classifier name
  )
  Project(name, file(s"prj${name}"))
    .settings( commonConfiguration)
    .settings(
      libraryDependencies ++= standardLibraries ++ javaFXLibraries
    )
    .settings(
      excludeDependenciesOfOtherOses(name)
    )
}

def excludeDependenciesOfOtherOses(name: String) = {
  assemblyExcludedJars in assembly ++= {
    val osnamesBut = Seq("win", "mac", "linux").filter(n => n != name)
    val cp = (fullClasspath in assembly).value
    cp filter { f => osnamesBut.exists(osName => f.data.getName.contains(osName)) }
  }
}

{'fraction_non_alphanumeric': 0.17093391855644965, 'fraction_numerical': 0.01706900755913192, 'mean_word_length': 3.578125, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 20, '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': '2907406', 'n_tokens_mistral': 1483, 'n_tokens_neox': 1409, 'n_words': 306}