<commit_before>enablePlugins(GitVersioning)

enablePlugins(GitBranchPrompt)

val cats = "org.typelevel" %% "cats" % "0.4.1"

lazy val doodle = crossProject.
  crossType(DoodleCrossType).
  settings(
    name          := "doodle",
    organization  := "underscoreio",
    scalaVersion  := "2.11.8",
    scalacOptions += "-feature",
    licenses += ("Apache-2.0", url("http://apache.org/licenses/LICENSE-2.0")),
    libraryDependencies ++= Seq(cats)
  ).jvmSettings(
    bintrayOrganization := Some("underscoreio"),
    bintrayPackageLabels := Seq("scala", "training", "creative-scala"),
    bintrayRepository := "training",
    licenses += ("Apache-2.0", url("http://apache.org/licenses/LICENSE-2.0")),
    // Release versioning:
    version := "0.3.0",
    // Snapshot versioning:
    // git.baseVersion := "0.4.0",
    // git.formattedShaVersion := {
      // git.gitHeadCommit.value map { sha =>
        // git.baseVersion.value + "-" + sha.substring(0, 6) + "-snapshot"
      // }
    // },
    initialCommands in console := """
      |import doodle.core._
      |import doodle.core.Image._
      |import doodle.syntax._
      |import doodle.jvm.Java2DCanvas._
      |import doodle.backend.StandardInterpreter._
      |import doodle.examples._
    """.trim.stripMargin,
    cleanupCommands in console := """
      |doodle.jvm.quit()
    """.trim.stripMargin
  ).jsSettings(
    workbenchSettings : _*
  ).jsSettings(
    persistLauncher         := true,
    persistLauncher in Test := false,
    bootSnippet             := """
      |doodle.ScalaJSExample().main();
    """.trim.stripMargin,
    testFrameworks          += new TestFramework("utest.runner.Framework"),
    //refreshBrowsers <<= refreshBrowsers.triggeredBy(packageJS in Compile)
    libraryDependencies ++= Seq(
      "org.scala-js"              %%% "scalajs-dom" % "0.9.0",
      "com.lihaoyi"               %%% "utest"       % "0.3.0" % "test",
      "com.github.japgolly.nyaya" %%% "nyaya-test"  % "0.5.3" % "test"
    )<commit_msg>Bump to version 0.4.0 snapshot<commit_after>enablePlugins(GitVersioning)

enablePlugins(GitBranchPrompt)

val cats = "org.typelevel" %% "cats" % "0.4.1"

lazy val doodle = crossProject.
  crossType(DoodleCrossType).
  settings(
    name          := "doodle",
    organization  := "underscoreio",
    scalaVersion  := "2.11.8",
    scalacOptions += "-feature",
    licenses += ("Apache-2.0", url("http://apache.org/licenses/LICENSE-2.0")),
    libraryDependencies ++= Seq(cats)
  ).jvmSettings(
    bintrayOrganization := Some("underscoreio"),
    bintrayPackageLabels := Seq("scala", "training", "creative-scala"),
    bintrayRepository := "training",
    licenses += ("Apache-2.0", url("http://apache.org/licenses/LICENSE-2.0")),
    // Release versioning:
    // version := "0.4.0",
    // Snapshot versioning:
    git.baseVersion := "0.4.0",
    git.formattedShaVersion := {
      git.gitHeadCommit.value map { sha =>
        git.baseVersion.value + "-" + sha.substring(0, 6) + "-snapshot"
      }
    },
    initialCommands in console := """
      |import doodle.core._
      |import doodle.core.Image._
      |import doodle.syntax._
      |import doodle.jvm.Java2DCanvas._
      |import doodle.backend.StandardInterpreter._
      |import doodle.examples._
    """.trim.stripMargin,
    cleanupCommands in console := """
      |doodle.jvm.quit()
    """.trim.stripMargin
  ).jsSettings(
    workbenchSettings : _*
  ).jsSettings(
    persistLauncher         := true,
    persistLauncher in Test := false,
    bootSnippet             := """
      |doodle.ScalaJSExample().main();
    """.trim.stripMargin,
    testFrameworks          += new TestFramework("utest.runner.Framework"),
    //refreshBrowsers <<= refreshBrowsers.triggeredBy(packageJS in Compile)
    libraryDependencies ++= Seq(
      "org.scala-js"              %%% "scalajs-dom" % "0.9.0",
      "com.lihaoyi"               %%% "utest"       % "0.3.0" % "test",
      "com.github.japgolly.nyaya" %%% "nyaya-test"  % "0.5.3" % "test"
    )
{'fraction_non_alphanumeric': 0.16816367265469062, 'fraction_numerical': 0.01721556886227545, 'mean_word_length': 2.6445454545454545, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '5228623', 'n_tokens_mistral': 1396, 'n_tokens_neox': 1375, 'n_words': 218}