<commit_before>name := "scalac-scapegoat-plugin"

organization := "com.sksamuel.scapegoat"

version := "0.93.1"

scalaVersion := "2.11.2"

scalacOptions := Seq("-unchecked", "-deprecation", "-feature", "-encoding", "utf8")

publishMavenStyle := true

fullClasspath in console in Compile ++= (fullClasspath in Test).value // because that's where "PluginRunner" is

initialCommands in console := s"""
import com.sksamuel.scapegoat._
def check(code: String) = {
  val runner = new PluginRunner { val inspections = ScapegoatConfig.inspections }
  // Not sufficient for reuse, not sure why.
  // runner.reporter.reset
  val c = runner compileCodeSnippet code
  val feedback = c.scapegoat.feedback
  feedback.warnings map (x => "%-40s  %s".format(x.text, x.snippet getOrElse "")) foreach println
  feedback
}
"""

javacOptions ++= Seq("-source", "1.6", "-target", "1.6")

libraryDependencies ++= Seq(
  "org.scala-lang"                  %     "scala-reflect"         % "2.11.1",
  "org.scala-lang.modules"          %     "scala-xml_2.11"        % "1.0.2",
  "org.scala-lang"                  %     "scala-compiler"        % "2.11.1"      % "test",
  "commons-io"                      %     "commons-io"            % "2.4"         % "test",
  "org.scalatest"                   %%    "scalatest"             % "2.1.6"       % "test",
  "com.typesafe.scala-logging"      %%    "scala-logging-slf4j"   % "2.1.2"       % "test",
  "org.mockito"                     %     "mockito-all"           % "1.9.5"       % "test",
  "joda-time"                       %     "joda-time"             % "2.3"         % "test",
  "org.joda"                        %     "joda-convert"          % "1.3.1"       % "test",
  "org.slf4j"                       %     "slf4j-api"             % "1.7.7"       % "test",
  "org.scala-lang.modules"          %%    "scala-async"           % "0.9.2"       % "test",
  "com.typesafe.akka"               %%    "akka-actor"            % "2.3.4"       % "test",
  "org.scaldi"                      %%    "scaldi"                % "0.4"
)

libraryDependencies += {
  "org.scala-lang" % "scala-compiler" % scalaVersion.value % "provided"
}<commit_msg>Fixed scala version discrepency<commit_after>import sbt.Keys._

name := "scalac-scapegoat-plugin"

organization := "com.sksamuel.scapegoat"

version := "0.93.1"

scalaVersion := "2.11.2"

scalacOptions := Seq("-unchecked", "-deprecation", "-feature", "-encoding", "utf8")

publishMavenStyle := true

fullClasspath in console in Compile ++= (fullClasspath in Test).value // because that's where "PluginRunner" is

initialCommands in console := s"""
import com.sksamuel.scapegoat._
def check(code: String) = {
  val runner = new PluginRunner { val inspections = ScapegoatConfig.inspections }
  // Not sufficient for reuse, not sure why.
  // runner.reporter.reset
  val c = runner compileCodeSnippet code
  val feedback = c.scapegoat.feedback
  feedback.warnings map (x => "%-40s  %s".format(x.text, x.snippet getOrElse "")) foreach println
  feedback
}
"""

javacOptions ++= Seq("-source", "1.6", "-target", "1.6")

libraryDependencies ++= Seq(
  "org.scala-lang"                  %     "scala-reflect"         % scalaVersion.value,
  "org.scala-lang"                  %     "scala-compiler"        % scalaVersion.value      % "provided",
  "org.scala-lang.modules"          %     "scala-xml_2.11"        % "1.0.2",
  "org.scala-lang"                  %     "scala-compiler"        % scalaVersion.value      % "test",
  "commons-io"                      %     "commons-io"            % "2.4"         % "test",
  "org.scalatest"                   %%    "scalatest"             % "2.1.6"       % "test",
  "com.typesafe.scala-logging"      %%    "scala-logging-slf4j"   % "2.1.2"       % "test",
  "org.mockito"                     %     "mockito-all"           % "1.9.5"       % "test",
  "joda-time"                       %     "joda-time"             % "2.3"         % "test",
  "org.joda"                        %     "joda-convert"          % "1.3.1"       % "test",
  "org.slf4j"                       %     "slf4j-api"             % "1.7.7"       % "test",
  "org.scala-lang.modules"          %%    "scala-async"           % "0.9.2"       % "test",
  "com.typesafe.akka"               %%    "akka-actor"            % "2.3.4"       % "test",
  "org.scaldi"                      %%    "scaldi"                % "0.4"
)
{'fraction_non_alphanumeric': 0.16518163125428376, 'fraction_numerical': 0.02513136851724926, 'mean_word_length': 1.6613981762917933, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '4057945', 'n_tokens_mistral': 1578, 'n_tokens_neox': 1479, 'n_words': 268}