<commit_before>import com.typesafe.sbt.site.SitePlugin.autoImport._
import microsites.MicrositeKeys._
import org.scalajs.sbtplugin.ScalaJSPlugin.autoImport._
import sbt.Keys._
import sbt.ScriptedPlugin.autoImport._
import sbt._
import sbtorgpolicies.model.{sbtV, scalac}
import sbtorgpolicies.OrgPoliciesPlugin
import sbtorgpolicies.OrgPoliciesPlugin.autoImport._
import sbtorgpolicies.runnable.syntax._
import KazariBuild._

object ProjectPlugin extends AutoPlugin {

  override def trigger: PluginTrigger = allRequirements

  override def requires: Plugins = OrgPoliciesPlugin

  object autoImport {

    lazy val pluginSettings = Seq(
      sbtPlugin := true,
      crossSbtVersions := Seq(sbtV.`0.13`, sbtV.`1.0`),
      resolvers ++= Seq(
        Resolver.sonatypeRepo("snapshots"),
        "jgit-repo" at "http://download.eclipse.org/jgit/maven"),
      addSbtPlugin(%("sbt-ghpages", true)),
      addSbtPlugin(%("sbt-site", true)),
      libraryDependencies ++= Seq(
        %%("org-policies-core", "0.8.17"),
        %%("moultingyaml"),
        %%("scalatags"),
        %%("scalactic"),
        %%("scalatest")  % "test",
        %%("scalacheck") % "test"
      ),
      libraryDependencies ++= {
        val sbtBinaryVersionValue   = (sbtBinaryVersion in pluginCrossBuild).value
        val scalaBinaryVersionValue = (scalaBinaryVersion in update).value

        val (tutPluginVersion, scrimageVersion) = sbtBinaryVersionValue match {
          case "0.13" => ("0.5.6", "2.1.7")
          case "1.0"  => ("0.6.2", "2.1.8")
        }

        Seq(
          Defaults.sbtPluginExtra(
            "org.tpolecat" % "tut-plugin" % tutPluginVersion,
            sbtBinaryVersionValue,
            scalaBinaryVersionValue),
          "com.sksamuel.scrimage" %% "scrimage-core" % scrimageVersion
        )
      }
    )

    lazy val testScriptedSettings: Seq[(Def.Setting[_])] =
      Seq(<commit_msg>Update tut to 0.6.4 for incomplete input fix (#262)<commit_after>import com.typesafe.sbt.site.SitePlugin.autoImport._
import microsites.MicrositeKeys._
import org.scalajs.sbtplugin.ScalaJSPlugin.autoImport._
import sbt.Keys._
import sbt.ScriptedPlugin.autoImport._
import sbt._
import sbtorgpolicies.model.{sbtV, scalac}
import sbtorgpolicies.OrgPoliciesPlugin
import sbtorgpolicies.OrgPoliciesPlugin.autoImport._
import sbtorgpolicies.runnable.syntax._
import KazariBuild._

object ProjectPlugin extends AutoPlugin {

  override def trigger: PluginTrigger = allRequirements

  override def requires: Plugins = OrgPoliciesPlugin

  object autoImport {

    lazy val pluginSettings = Seq(
      sbtPlugin := true,
      crossSbtVersions := Seq(sbtV.`0.13`, sbtV.`1.0`),
      resolvers ++= Seq(
        Resolver.sonatypeRepo("snapshots"),
        "jgit-repo" at "http://download.eclipse.org/jgit/maven"),
      addSbtPlugin(%("sbt-ghpages", true)),
      addSbtPlugin(%("sbt-site", true)),
      libraryDependencies ++= Seq(
        %%("org-policies-core", "0.8.17"),
        %%("moultingyaml"),
        %%("scalatags"),
        %%("scalactic"),
        %%("scalatest")  % "test",
        %%("scalacheck") % "test"
      ),
      libraryDependencies ++= {
        val sbtBinaryVersionValue   = (sbtBinaryVersion in pluginCrossBuild).value
        val scalaBinaryVersionValue = (scalaBinaryVersion in update).value

        val (tutPluginVersion, scrimageVersion) = sbtBinaryVersionValue match {
          case "0.13" => ("0.5.6", "2.1.7")
          case "1.0"  => ("0.6.4", "2.1.8")
        }

        Seq(
          Defaults.sbtPluginExtra(
            "org.tpolecat" % "tut-plugin" % tutPluginVersion,
            sbtBinaryVersionValue,
            scalaBinaryVersionValue),
          "com.sksamuel.scrimage" %% "scrimage-core" % scrimageVersion
        )
      }
    )

    lazy val testScriptedSettings: Seq[(Def.Setting[_])] =
      Seq(
{'fraction_non_alphanumeric': 0.13241415192507805, 'fraction_numerical': 0.015088449531737774, 'mean_word_length': 2.959835221421215, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '636126', 'n_tokens_mistral': 1300, 'n_tokens_neox': 1256, 'n_words': 223}