<commit_before>organization := "org.xerial.silk"
sonatypeProfileName := "org.xerial"
description := "A framework for simplifying SQL pipelines"
scalaVersion in Global := "2.11.7"

packSettings
packMain := Map("silk" -> "xerial.silk.cui.SilkMain")
packExclude := Seq("silk")

resolvers in Global += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"

val commonSettings = Seq(
  scalacOptions in Compile := Seq("-language:experimental.macros", "-deprecation", "-feature")
)

lazy val root = Project(id = "silk", base = file(".")).settings(
  publish := {}
).aggregate(silkMacros, silkCore, silkCui)

lazy val silkMacros = Project(id = "silk-macros", base = file("silk-macros"))
                     .settings(commonSettings)
                     .settings(
                         libraryDependencies ++= Seq(
                           "org.scala-lang" % "scalap" % scalaVersion.value,
                           "org.scala-lang" % "scala-reflect" % scalaVersion.value,
                           "org.xerial" % "xerial-lens" % "3.3.8"
                         )
                       )

lazy val silkCore = Project(id = "silk-core", base = file("silk-core"))
                    .settings(commonSettings)
                    .settings(
                        libraryDependencies ++= Seq(
                          "com.github.nscala-time" %% "nscala-time" % "2.2.0",
                          "org.ow2.asm" % "asm-all" % "4.1",
                          "com.esotericsoftware.kryo" % "kryo" % "2.20" exclude("org.ow2.asm", "asm"),
                          "org.scalatest" %% "scalatest" % "2.2.4" % "test",
                          "org.xerial" % "sqlite-jdbc" % "3.8.11.1",
                          "org.xerial.msgframe" % "msgframe-core" % "0.1.0-SNAPSHOT",
                          "com.treasuredata.client" % "td-client" % "0.6.0-SNAPSHOT",
                          "com.treasuredata" % "td-jdbc" % "0.5.1"
                        )
                      )
                    .dependsOn(silkMacros)

lazy val silkCui = Project(id = "silk-cui", base = file("silk-cui"))
                   .settings(commonSettings)
                   .dependsOn(silkCore % "test->test;compile->compile")

pomExtra in Global := {
  <url>http://xerial.org/silk</url>
    <licenses>
      <license>
        <name>Apache 2</name>
        <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      </license>
    </licenses>
    <scm>
      <connection>scm:git:github.com/xerial/silk.git</connection>
      <developerConnection>scm:git:git@github.com:xerial/silk.git</developerConnection>
      <url>github.com/xerial/silk.git</url>
    </scm>
    <properties>
      <scala.version>{scalaVersion.value}</scala.version>
      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>
    <developers>
      <developer>
        <id>leo</id>
        <name><NAME></name>
        <url>http://xerial.org/leo</url>
      </developer>
    </developers>
}<commit_msg>Format sbt<commit_after>organization := "org.xerial.silk"
sonatypeProfileName := "org.xerial"
description := "A framework for simplifying SQL pipelines"
scalaVersion in Global := "2.11.7"

packSettings
packMain := Map("silk" -> "xerial.silk.cui.SilkMain")
packExclude := Seq("silk")

resolvers in Global += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"

val commonSettings = Seq(
  scalacOptions in Compile := Seq("-language:experimental.macros", "-deprecation", "-feature")
)

lazy val root = Project(id = "silk", base = file(".")).settings(
  publish := {}
).aggregate(silkMacros, silkCore, silkCui)

lazy val silkMacros =
  Project(id = "silk-macros", base = file("silk-macros"))
  .settings(commonSettings)
  .settings(
      libraryDependencies ++= Seq(
        "org.scala-lang" % "scalap" % scalaVersion.value,
        "org.scala-lang" % "scala-reflect" % scalaVersion.value,
        "org.xerial" % "xerial-lens" % "3.3.8"
      )
    )

lazy val silkCore =
  Project(id = "silk-core", base = file("silk-core"))
  .settings(commonSettings)
  .settings(
      libraryDependencies ++= Seq(
        "com.github.nscala-time" %% "nscala-time" % "2.2.0",
        "org.ow2.asm" % "asm-all" % "4.1",
        "com.esotericsoftware.kryo" % "kryo" % "2.20" exclude("org.ow2.asm", "asm"),
        "org.scalatest" %% "scalatest" % "2.2.4" % "test",
        "org.xerial" % "sqlite-jdbc" % "3.8.11.1",
        "org.xerial.msgframe" % "msgframe-core" % "0.1.0-SNAPSHOT",
        "com.treasuredata.cinlient" % "td-client" % "0.6.0-SNAPSHOT",
        "com.treasuredata" % "td-jdbc" % "0.5.1"
      )
    )
  .dependsOn(silkMacros)

lazy val silkCui = Project(id = "silk-cui", base = file("silk-cui"))
                   .settings(commonSettings)
                   .dependsOn(silkCore % "test->test;compile->compile")

pomExtra in Global := {
  <url>http://xerial.org/silk</url>
    <licenses>
      <license>
        <name>Apache 2</name>
        <url>http://www.apache.org/licenOses/LICENSE-2.0.txt</url>
      </license>
    </licenses>
    <scm>
      <connection>scm:git:github.com/xerial/silk.git</connection>
      <developerConnection>scm:git:<EMAIL>:xerial/silk.git</developerConnection>
      <url>github.com/xerial/silk.git</url>
    </scm>
    <properties>
      <scala.version>
        {scalaVersion.value}
      </scala.version>
      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>
    <developers>
      <developer>
        <id>leo</id>
        <name><NAME></name>
        <url>http://xerial.org/leo</url>
      </developer>
    </developers>
}
{'fraction_non_alphanumeric': 0.16876440347456126, 'fraction_numerical': 0.013472788512675058, 'mean_word_length': 2.2669368847712796, 'pattern_counts': {'":': 0, '<': 74, '<?xml version=': 0, '>': 80, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 3, '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': '2576736', 'n_tokens_mistral': 2020, 'n_tokens_neox': 1945, 'n_words': 293}