<commit_before>import ScalaModulePlugin._

scalaModuleSettings

name               := "scala-swing"

version            := "2.1.1"

scalacOptions in ThisBuild ++= Seq("-deprecation", "-feature")

// Map[JvmMajorVersion, List[(ScalaVersion, UseForPublishing)]]
scalaVersionsByJvm in ThisBuild := Map(
   8 -> List("2.11.12", "2.12.8", "2.13.0-RC1").map(_ -> true),
   9 -> List("2.11.12", "2.12.8", "2.13.0-RC1").map(_ -> false),
  10 -> List("2.11.12", "2.12.8", "2.13.0-RC1").map(_ -> false),
  11 -> List("2.11.12", "2.12.8", "2.13.0-RC1").map(_ -> false),
  12 -> List("2.11.12", "2.12.8", "2.13.0-RC1").map(_ -> false)
)

scalaVersion in ThisBuild := "2.12.8"

OsgiKeys.exportPackage := Seq(s"scala.swing.*;version=${version.value}")

mimaPreviousVersion := Some("2.1.0")

// set the prompt (for this build) to include the project id.
shellPrompt in ThisBuild := { state => Project.extract(state).currentRef.project + "> " }

lazy val swing = project.in(file("."))
  .settings(
    libraryDependencies += {
      "org.scalatest" %% "scalatest" % "3.0.8-RC2" % Test
    },
    // Adds a `src/main/scala-2.13+` source directory for Scala 2.13 and newer
    // and  a `src/main/scala-2.13-` source directory for Scala version older than 2.13
    unmanagedSourceDirectories in Compile += {
      val sourceDir = (sourceDirectory in Compile).value
      CrossVersion.partialVersion(scalaVersion.value) match {
        case Some((2, n)) if n >= 13 => sourceDir / "scala-2.13+"
        case _                       => sourceDir / "scala-2.13-"
      }
    }
  )

lazy val examples = project.in(file("examples"))
  .dependsOn(swing)
  .settings(
    scalaVersion := (scalaVersion in swing).value,
    fork in run := true,
    fork := true
  )

lazy val uitest = project.in(file("uitest"))
  .dependsOn(swing)
  .settings(
    scalaVersion := (scalaVersion in swing).value,
    fork in run := true,
    fork := true
  )
<commit_msg>support for Scala 2.13.0-RC2<commit_after>import ScalaModulePlugin._

scalaModuleSettings

name               := "scala-swing"

version            := "2.1.1"

scalacOptions in ThisBuild ++= Seq("-deprecation", "-feature")

// Map[JvmMajorVersion, List[(ScalaVersion, UseForPublishing)]]
scalaVersionsByJvm in ThisBuild := Map(
   8 -> List("2.11.12", "2.12.8", "2.13.0-RC2").map(_ -> true),
   9 -> List("2.11.12", "2.12.8", "2.13.0-RC2").map(_ -> false),
  10 -> List("2.11.12", "2.12.8", "2.13.0-RC2").map(_ -> false),
  11 -> List("2.11.12", "2.12.8", "2.13.0-RC2").map(_ -> false),
  12 -> List("2.11.12", "2.12.8", "2.13.0-RC2").map(_ -> false)
)

scalaVersion in ThisBuild := "2.12.8"

OsgiKeys.exportPackage := Seq(s"scala.swing.*;version=${version.value}")

mimaPreviousVersion := Some("2.1.0")

// set the prompt (for this build) to include the project id.
shellPrompt in ThisBuild := { state => Project.extract(state).currentRef.project + "> " }

lazy val swing = project.in(file("."))
  .settings(
    libraryDependencies += {
      if (scalaVersion.value == "2.13.0-RC2") {
        "org.scalatest" % "scalatest_2.13.0-RC1" % "3.0.8-RC2" % Test  // it works
      } else {
        "org.scalatest" %% "scalatest" % "3.0.8-RC2" % Test
      }
    },
    // Adds a `src/main/scala-2.13+` source directory for Scala 2.13 and newer
    // and  a `src/main/scala-2.13-` source directory for Scala version older than 2.13
    unmanagedSourceDirectories in Compile += {
      val sourceDir = (sourceDirectory in Compile).value
      CrossVersion.partialVersion(scalaVersion.value) match {
        case Some((2, n)) if n >= 13 => sourceDir / "scala-2.13+"
        case _                       => sourceDir / "scala-2.13-"
      }
    }
  )

lazy val examples = project.in(file("examples"))
  .dependsOn(swing)
  .settings(
    scalaVersion := (scalaVersion in swing).value,
    fork in run := true,
    fork := true
  )

lazy val uitest = project.in(file("uitest"))
  .dependsOn(swing)
  .settings(
    scalaVersion := (scalaVersion in swing).value,
    fork in run := true,
    fork := true
  )

{'fraction_non_alphanumeric': 0.18409937888198757, 'fraction_numerical': 0.06086956521739131, 'mean_word_length': 2.776735459662289, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 33, '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': '6553230', 'n_tokens_mistral': 1574, 'n_tokens_neox': 1458, 'n_words': 317}