<commit_before>import sbt._
import Keys._
import org.scalatra.sbt._
import org.scalatra.sbt.PluginKeys._
import com.mojolly.scalate.ScalatePlugin._
import ScalateKeys._

object SkinnyFrameworkBuild extends Build {

  val Organization = "com.github.seratch"
  val Version = "0.1.2-SNAPSHOT"
  val ScalatraVersion = "2.2.1"
  val ScalikeJDBCVersion = "1.6.10-SNAPSHOT"

  lazy val framework = Project (id = "framework", base = file("framework"), 
   settings = Defaults.defaultSettings ++ Seq(
      organization := Organization,
      name := "skinny-framework",
      version := Version,
      scalaVersion := "2.10.0",
      resolvers ++= Seq(
        "sonatype releases"  at "http://oss.sonatype.org/content/repositories/releases",
        "sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots"
      ),
      libraryDependencies ++= scalatraDependencies ++ testDependencies,
      publishTo <<= version { (v: String) => _publishTo(v) },
      publishMavenStyle := true,
      sbtPlugin := false,
      scalacOptions ++= _scalacOptions,
      publishMavenStyle := true,
      publishArtifact in Test := false,
      pomIncludeRepository := { x => false },
      pomExtra := _pomExtra
    ) ++ _jettyOrbitHack
  ) dependsOn(validator, orm)

  lazy val orm = Project (id = "orm", base = file("orm"), 
    settings = Defaults.defaultSettings ++ Seq(
      organization := Organization,
      name := "skinny-orm",
      version := Version,
      scalaVersion := "2.10.0",
      resolvers ++= Seq(
        "sonatype releases"  at "http://oss.sonatype.org/content/repositories/releases",
        "sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots"
      ),
      libraryDependencies ++= scalikejdbcDependencies ++ Seq(
        "org.hibernate"  %  "hibernate-core"  % "4.1.12.Final" % "compile",
        "com.h2database" %  "h2"              % "1.3.173"      % "test",
        "ch.qos.logback" %  "logback-classic" % "1.0.13"       % "test"
      ) ++ testDependencies,
      publishTo <<= version { (v: String) => _publishTo(v) },
      publishMavenStyle := true,
      sbtPlugin := false,
      scalacOptions ++= _scalacOptions,
      publishMavenStyle := true,
      publishArtifact in Test := false,
      pomIncludeRepository := { x => false },
      pomExtra := _pomExtra
    )
  )

  lazy val freemarker = Project (id = "freemarker", base = file("freemarker"),
    settings = Defaults.defaultSettings ++ Seq(
      organization := Organization,
      name := "skinny-freemarker",
      version := Version,
      scalaVersion := "2.10.0",
      resolvers ++= Seq(
        "sonatype releases"  at "http://oss.sonatype.org/content/repositories/releases",
        "sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots"
      ),
      libraryDependencies ++= scalatraDependencies ++ Seq(
        "commons-beanutils" %  "commons-beanutils"  % "1.8.3"   % "compile",
        "org.freemarker"    %  "freemarker"         % "2.3.20"  % "compile"
      ) ++ testDependencies,
      publishTo <<= version { (v: String) => _publishTo(v) },
      publishMavenStyle := true,
      sbtPlugin := false,
      scalacOptions ++= _scalacOptions,
      publishMavenStyle := true,
      publishArtifact in Test := false,
      pomIncludeRepository := { x => false },
      pomExtra := _pomExtra
    ) ++ _jettyOrbitHack
  ) dependsOn(framework)

  lazy val validator = Project (id = "validator", base = file("validator"),
    settings = Defaults.defaultSettings ++ Seq(
      organization := Organization,
      name := "skinny-validator",
      version := Version,
      scalaVersion := "2.10.0",
      libraryDependencies ++= Seq(
        "com.typesafe" %  "config"       % "1.0.2" % "compile",
        "joda-time"    %  "joda-time"    % "2.3"   % "test",
        "org.joda"     %  "joda-convert" % "1.4"   % "test"
      ) ++ testDependencies,
      publishTo <<= version { (v: String) => _publishTo(v) },
      publishMavenStyle := true,
      sbtPlugin := false,
      scalacOptions ++= _scalacOptions,
      publishMavenStyle := true,
      publishArtifact in Test := false,
      pomIncludeRepository := { x => false },
      pomExtra := _pomExtra
    )
  )

  lazy val example = Project (id = "example", base = file("example"),
    settings = Defaults.defaultSettings ++ ScalatraPlugin.scalatraWithJRebel ++ scalateSettings ++ Seq(
      organization := Organization,
      name := "skinny-framework-example",
      version := "0.0.0",
      scalaVersion := "2.10.3",
      resolvers ++= Seq(
        "sonatype releases"  at "http://oss.sonatype.org/content/repositories/releases",
        "sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots"
      ),
      libraryDependencies ++= Seq(
        "org.scalatra"       %% "scalatra-specs2"    % ScalatraVersion % "test",
        "org.scalatra"       %% "scalatra-scalatest" % ScalatraVersion % "test",
        "com.h2database"     %  "h2"                 % "1.3.173",
        "ch.qos.logback"     % "logback-classic"     % "1.0.13",
        "org.eclipse.jetty"  % "jetty-webapp"        % "8.1.8.v20121106" % "container",
        "org.eclipse.jetty"  % "jetty-plus"          % "8.1.8.v20121106" % "container",
        "org.eclipse.jetty.orbit" % "javax.servlet"  % "3.0.0.v201112011016" % "container;provided;test" 
           artifacts (Artifact("javax.servlet", "jar", "jar"))
      )
      // TODO enabling only for testing...
      , unmanagedResourceDirectories in Test <+= (baseDirectory) { _ / "src/main/webapp" }<commit_msg>Fixed testing scalate issue<commit_after>import sbt._
import Keys._
import org.scalatra.sbt._
import org.scalatra.sbt.PluginKeys._
import com.mojolly.scalate.ScalatePlugin._
import ScalateKeys._

object SkinnyFrameworkBuild extends Build {

  val Organization = "com.github.seratch"
  val Version = "0.1.2-SNAPSHOT"
  val ScalatraVersion = "2.2.1"
  val ScalikeJDBCVersion = "1.6.10-SNAPSHOT"

  lazy val framework = Project (id = "framework", base = file("framework"), 
   settings = Defaults.defaultSettings ++ Seq(
      organization := Organization,
      name := "skinny-framework",
      version := Version,
      scalaVersion := "2.10.0",
      resolvers ++= Seq(
        "sonatype releases"  at "http://oss.sonatype.org/content/repositories/releases",
        "sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots"
      ),
      libraryDependencies ++= scalatraDependencies ++ testDependencies,
      publishTo <<= version { (v: String) => _publishTo(v) },
      publishMavenStyle := true,
      sbtPlugin := false,
      scalacOptions ++= _scalacOptions,
      publishMavenStyle := true,
      publishArtifact in Test := false,
      pomIncludeRepository := { x => false },
      pomExtra := _pomExtra
    ) ++ _jettyOrbitHack
  ) dependsOn(validator, orm)

  lazy val orm = Project (id = "orm", base = file("orm"), 
    settings = Defaults.defaultSettings ++ Seq(
      organization := Organization,
      name := "skinny-orm",
      version := Version,
      scalaVersion := "2.10.0",
      resolvers ++= Seq(
        "sonatype releases"  at "http://oss.sonatype.org/content/repositories/releases",
        "sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots"
      ),
      libraryDependencies ++= scalikejdbcDependencies ++ Seq(
        "org.hibernate"  %  "hibernate-core"  % "4.1.12.Final" % "compile",
        "com.h2database" %  "h2"              % "1.3.173"      % "test",
        "ch.qos.logback" %  "logback-classic" % "1.0.13"       % "test"
      ) ++ testDependencies,
      publishTo <<= version { (v: String) => _publishTo(v) },
      publishMavenStyle := true,
      sbtPlugin := false,
      scalacOptions ++= _scalacOptions,
      publishMavenStyle := true,
      publishArtifact in Test := false,
      pomIncludeRepository := { x => false },
      pomExtra := _pomExtra
    )
  )

  lazy val freemarker = Project (id = "freemarker", base = file("freemarker"),
    settings = Defaults.defaultSettings ++ Seq(
      organization := Organization,
      name := "skinny-freemarker",
      version := Version,
      scalaVersion := "2.10.0",
      resolvers ++= Seq(
        "sonatype releases"  at "http://oss.sonatype.org/content/repositories/releases",
        "sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots"
      ),
      libraryDependencies ++= scalatraDependencies ++ Seq(
        "commons-beanutils" %  "commons-beanutils"  % "1.8.3"   % "compile",
        "org.freemarker"    %  "freemarker"         % "2.3.20"  % "compile"
      ) ++ testDependencies,
      publishTo <<= version { (v: String) => _publishTo(v) },
      publishMavenStyle := true,
      sbtPlugin := false,
      scalacOptions ++= _scalacOptions,
      publishMavenStyle := true,
      publishArtifact in Test := false,
      pomIncludeRepository := { x => false },
      pomExtra := _pomExtra
    ) ++ _jettyOrbitHack
  ) dependsOn(framework)

  lazy val validator = Project (id = "validator", base = file("validator"),
    settings = Defaults.defaultSettings ++ Seq(
      organization := Organization,
      name := "skinny-validator",
      version := Version,
      scalaVersion := "2.10.0",
      libraryDependencies ++= Seq(
        "com.typesafe" %  "config"       % "1.0.2" % "compile",
        "joda-time"    %  "joda-time"    % "2.3"   % "test",
        "org.joda"     %  "joda-convert" % "1.4"   % "test"
      ) ++ testDependencies,
      publishTo <<= version { (v: String) => _publishTo(v) },
      publishMavenStyle := true,
      sbtPlugin := false,
      scalacOptions ++= _scalacOptions,
      publishMavenStyle := true,
      publishArtifact in Test := false,
      pomIncludeRepository := { x => false },
      pomExtra := _pomExtra
    )
  )

  lazy val example = Project (id = "example", base = file("example"),
    settings = Defaults.defaultSettings ++ ScalatraPlugin.scalatraWithJRebel ++ scalateSettings ++ Seq(
      organization := Organization,
      name := "skinny-framework-example",
      version := "0.0.0",
      scalaVersion := "2.10.3",
      resolvers ++= Seq(
        "sonatype releases"  at "http://oss.sonatype.org/content/repositories/releases",
        "sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots"
      ),
      libraryDependencies ++= Seq(
        "org.scalatra"       %% "scalatra-specs2"    % ScalatraVersion % "test",
        "org.scalatra"       %% "scalatra-scalatest" % ScalatraVersion % "test",
        "com.h2database"     %  "h2"                 % "1.3.173",
        "ch.qos.logback"     % "logback-classic"     % "1.0.13",
        "org.eclipse.jetty"  % "jetty-webapp"        % "8.1.8.v20121106" % "container",
        "org.eclipse.jetty"  % "jetty-plus"          % "8.1.8.v20121106" % "container",
        "org.eclipse.jetty.orbit" % "javax.servlet"  % "3.0.0.v201112011016" % "container;provided;test" 
           artifacts (Artifact("javax.servlet", "jar", "jar"))
      )
      , unmanagedClasspath in Test <+= (baseDirectory) map { bd =>  Attributed.blank(bd / "src/main/webapp") } 
{'fraction_non_alphanumeric': 0.14770279971284997, 'fraction_numerical': 0.019921033740129216, 'mean_word_length': 2.633844147375285, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 20, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '5131566', 'n_tokens_mistral': 3709, 'n_tokens_neox': 3575, 'n_words': 693}