<commit_before>/*
 * Copyright Lightbend, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

addSbtPlugin("org.scalariform"       % "sbt-scalariform" % "1.8.3")
addSbtPlugin("de.heikoseeberger"     % "sbt-header"      % "5.3.0")
addSbtPlugin("com.lightbend.paradox" % "sbt-paradox"     % "0.6.7")
addSbtPlugin("com.lightbend.paradox" % "sbt-paradox-project-info" % "1.1.3")
addSbtPlugin("com.geirsson"          % "sbt-ci-release"  % "1.3.2")

libraryDependencies += "org.scala-sbt" %% "scripted-plugin" % sbtVersion.value

lazy val metaroot = (project in file(".")).
  dependsOn(metaThemePlugin)

lazy val metaThemePlugin = (project in file("theme-plugin"))
  .settings(
    sbtPlugin := true,
    scalaVersion := "2.12.10",
    addSbtPlugin("com.typesafe.sbt" % "sbt-web" % "1.4.4"),
    unmanagedSourceDirectories in Compile :=
      mirrorScalaSource((baseDirectory in ThisBuild).value.getParentFile / "theme-plugin")
  )

// http://stackoverflow.com/a/37513852/3827
def mirrorScalaSource(baseDirectory: File): Seq[File] = {
  val scalaSourceDir = baseDirectory / "src" / "main" / "scala"<commit_msg>Update sbt-header to 5.3.1 (#391)<commit_after>/*
 * Copyright Lightbend, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

addSbtPlugin("org.scalariform"       % "sbt-scalariform" % "1.8.3")
addSbtPlugin("de.heikoseeberger"     % "sbt-header"      % "5.3.1")
addSbtPlugin("com.lightbend.paradox" % "sbt-paradox"     % "0.6.7")
addSbtPlugin("com.lightbend.paradox" % "sbt-paradox-project-info" % "1.1.3")
addSbtPlugin("com.geirsson"          % "sbt-ci-release"  % "1.3.2")

libraryDependencies += "org.scala-sbt" %% "scripted-plugin" % sbtVersion.value

lazy val metaroot = (project in file(".")).
  dependsOn(metaThemePlugin)

lazy val metaThemePlugin = (project in file("theme-plugin"))
  .settings(
    sbtPlugin := true,
    scalaVersion := "2.12.10",
    addSbtPlugin("com.typesafe.sbt" % "sbt-web" % "1.4.4"),
    unmanagedSourceDirectories in Compile :=
      mirrorScalaSource((baseDirectory in ThisBuild).value.getParentFile / "theme-plugin")
  )

// http://stackoverflow.com/a/37513852/3827
def mirrorScalaSource(baseDirectory: File): Seq[File] = {
  val scalaSourceDir = baseDirectory / "src" / "main" / "scala"
{'fraction_non_alphanumeric': 0.13776137761377613, 'fraction_numerical': 0.025830258302583026, 'mean_word_length': 3.8697604790419162, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '766332', 'n_tokens_mistral': 1116, 'n_tokens_neox': 1082, 'n_words': 283}