<commit_before>import java.nio.file.Files.newDirectoryStream
import java.nio.file.StandardCopyOption.REPLACE_EXISTING
import java.nio.file.{CopyOption, Files, Path, Paths, StandardCopyOption}
import java.util.function.Consumer
import java.util.stream.Stream

enablePlugins(ScalaJSPlugin)

organization := "com.me"
name := "playground-binding.scala"
version := "0.1.0"

developers := List(
  Developer(
    "ccamel",
    "杨<NAME>",
    "<EMAIL>",
    url("https://github.com/ccamel")
  )
)
startYear := Some(2017)

scalaVersion := "2.12.1"

libraryDependencies ++= Seq(
  "org.scala-js" %%% "scalajs-dom" % "0.9.1",
  "com.thoughtworks.binding" %%% "dom" % "latest.release",
  "org.scalatest" %%% "scalatest" % "3.0.1" % "test",
  "org.scalatest" %% "scalatest" % "3.0.1" % "test" // FIXME: https://github.com/scalatest/scalatest/issues/911
)


scalaJSUseMainModuleInitializer := true

lazy val dist = taskKey[Unit]("Make distribution")

dist := {
  implicit def toPath (filename: String): Path = Paths.get(filename)

  val srcDir: Path = "target/scala-2.12"
  val destDir: Path = "dist"
  val jsDir = destDir.resolve("js")

  println(s"Making distribution to $destDir")

  newDirectoryStream(srcDir,"playground*.js").forEach( new Consumer[Path]() {
    override def accept(f: Path): Unit = {
      val dst = jsDir.resolve(f.getFileName)
      dst.toFile.mkdirs()
      Files.copy(f, dst, REPLACE_EXISTING)
    }
  } )
  Files.copy("index.html", destDir.resolve("index.html"), REPLACE_EXISTING)
}

addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full)

<commit_msg>secure the version of binding.scala library (to 11.0.0-M2)<commit_after>import java.nio.file.Files.newDirectoryStream
import java.nio.file.StandardCopyOption.REPLACE_EXISTING
import java.nio.file.{Files, Path, Paths}
import java.util.function.Consumer

enablePlugins(ScalaJSPlugin)

organization := "com.me"
name := "playground-binding.scala"
version := "0.1.0"

developers := List(
  Developer(
    "ccamel",
    "杨<NAME>",
    "<EMAIL>",
    url("https://github.com/ccamel")
  )
)
startYear := Some(2017)

scalaVersion := "2.12.1"

libraryDependencies ++= Seq(
  "org.scala-js" %%% "scalajs-dom" % "0.9.1",
  "com.thoughtworks.binding" %%% "dom" % "11.0.0-M2",
  "org.scalatest" %%% "scalatest" % "3.0.1" % "test",
  "org.scalatest" %% "scalatest" % "3.0.1" % "test" // FIXME: https://github.com/scalatest/scalatest/issues/911
)


scalaJSUseMainModuleInitializer := true

lazy val dist = taskKey[Unit]("Make distribution")

dist := {
  implicit def toPath (filename: String): Path = Paths.get(filename)

  val srcDir: Path = "target/scala-2.12"
  val destDir: Path = "dist"
  val jsDir = destDir.resolve("js")

  println(s"Making distribution to $destDir")

  newDirectoryStream(srcDir,"playground*.js").forEach( new Consumer[Path]() {
    override def accept(f: Path): Unit = {
      val dst = jsDir.resolve(f.getFileName)
      dst.toFile.mkdirs()
      Files.copy(f, dst, REPLACE_EXISTING)
    }
  } )
  Files.copy("index.html", destDir.resolve("index.html"), REPLACE_EXISTING)
}

addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full)


{'fraction_non_alphanumeric': 0.17093206951026857, 'fraction_numerical': 0.021484992101105844, 'mean_word_length': 4.267886855241264, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '552181', 'n_tokens_mistral': 1224, 'n_tokens_neox': 1169, 'n_words': 209}