<commit_before>name := "spray-sample"

organization := "com.mlh"

version := "0.1.0-SNAPSHOT"

homepage := Some(url("https://github.com/mhamrah/spray-sample"))

startYear := Some(2013)

scmInfo := Some(
  ScmInfo(
    url("https://github.com/mhamrah/spray-sample"),
    "scm:git:https://github.com/mhamrah/spray-sample.git",
    Some("scm:git:<EMAIL>:mhamrah/spray-sample.git")
  )
)

/* scala versions and options */
scalaVersion := "2.10.3"

crossScalaVersions := Seq(
/*  "2.9.3-RC1",
  "2.9.2",
  "2.9.1", "2.9.1-1",
  "2.9.0", "2.9.0-1",
  "2.8.0", "2.8.1", "2.8.2" */
)

// These options will be used for *all* versions.
scalacOptions ++= Seq(
  "-deprecation"
  ,"-unchecked"
  ,"-encoding", "UTF-8"
  ,"-target:jvm-1.7"
  // "-optimise"   // this option will slow your build
)

scalacOptions ++= Seq(
  "-Yclosure-elim",
  "-Yinline"
)

// These language flags will be used only for 2.10.x.
// Uncomment those you need, or if you hate SIP-18, all of them.
scalacOptions <++= scalaVersion map { sv =>
  if (sv startsWith "2.10") List(
    "-Xverify"
    ,"-Ywarn-all"
    ,"-feature"
    ,"-language:postfixOps"
    // "-language:reflectiveCalls",
    // "-language:implicitConversions"
    // "-language:higherKinds",
    // "-language:existentials",
    // "-language:experimental.macros",
    // "-language:experimental.dynamics"
  )
  else Nil
}

javacOptions ++= Seq("-Xlint:unchecked", "-Xlint:deprecation")

/* dependencies */
libraryDependencies ++= Seq (
  "com.github.nscala-time" %% "nscala-time" % "0.4.2"
  // -- testing --
  , "org.scalatest" % "scalatest_2.10" % "2.0.M5b" % "test"
  , "org.scalamock" %% "scalamock-scalatest-support" % "3.0.1" % "test" 
  // -- Logging --
  ,"ch.qos.logback" % "logback-classic" % "1.0.13"
  // -- Akka --
  ,"com.typesafe.akka" %% "akka-testkit" % "2.2.3" % "test"
  ,"com.typesafe.akka" %% "akka-actor" % "2.2.3"
  ,"com.typesafe.akka" %% "akka-slf4j" % "2.2.3"
  // -- Spray --
  ,"io.spray" % "spray-routing" % "1.2-RC2"
  ,"io.spray" % "spray-can" % "1.2-RC2"
  ,"io.spray" % "spray-httpx" % "1.2-RC2"
  ,"io.spray" % "spray-testkit" % "1.2-RC2" % "test"
  // -- Json --
  ,"org.json4s" %% "json4s-native" % "3.2.2"
)

/* you may need these repos */
resolvers ++= Seq(
  // Resolver.sonatypeRepo("snapshots")
  // Resolver.typesafeRepo("releases")
  "spray repo" at "http://repo.spray.io"
)

/* assembly plugin */
mainClass in AssemblyKeys.assembly := Some("com.mlh.spray-sample.Main")

assemblySettings

test in AssemblyKeys.assembly := {}<commit_msg>Use specs2 for automated testing<commit_after>name := "spray-sample"

organization := "com.mlh"

version := "0.1.0-SNAPSHOT"

homepage := Some(url("https://github.com/mhamrah/spray-sample"))

startYear := Some(2013)

scmInfo := Some(
  ScmInfo(
    url("https://github.com/mhamrah/spray-sample"),
    "scm:git:https://github.com/mhamrah/spray-sample.git",
    Some("scm:git:<EMAIL>:mhamrah/spray-sample.git")
  )
)

/* scala versions and options */
scalaVersion := "2.10.3"

crossScalaVersions := Seq(
/*  "2.9.3-RC1",
  "2.9.2",
  "2.9.1", "2.9.1-1",
  "2.9.0", "2.9.0-1",
  "2.8.0", "2.8.1", "2.8.2" */
)

// These options will be used for *all* versions.
scalacOptions ++= Seq(
  "-deprecation"
  ,"-unchecked"
  ,"-encoding", "UTF-8"
  ,"-target:jvm-1.7"
  // "-optimise"   // this option will slow your build
)

scalacOptions ++= Seq(
  "-Yclosure-elim",
  "-Yinline"
)

// These language flags will be used only for 2.10.x.
// Uncomment those you need, or if you hate SIP-18, all of them.
scalacOptions <++= scalaVersion map { sv =>
  if (sv startsWith "2.10") List(
    "-Xverify"
    ,"-Ywarn-all"
    ,"-feature"
    ,"-language:postfixOps"
    // "-language:reflectiveCalls",
    // "-language:implicitConversions"
    // "-language:higherKinds",
    // "-language:existentials",
    // "-language:experimental.macros",
    // "-language:experimental.dynamics"
  )
  else Nil
}

javacOptions ++= Seq("-Xlint:unchecked", "-Xlint:deprecation")

/* dependencies */
libraryDependencies ++= Seq (
  "com.github.nscala-time" %% "nscala-time" % "0.4.2"
  // -- testing --
  // , "org.scalatest" % "scalatest_2.10" % "2.0.M5b" % "test"
  // , "org.scalamock" %% "scalamock-scalatest-support" % "3.0.1" % "test" 
  , "org.specs2" %% "specs2" % "2.2.3" % "test"
  // -- Logging --
  ,"ch.qos.logback" % "logback-classic" % "1.0.13"
  // -- Akka --
  ,"com.typesafe.akka" %% "akka-testkit" % "2.2.3" % "test"
  ,"com.typesafe.akka" %% "akka-actor" % "2.2.3"
  ,"com.typesafe.akka" %% "akka-slf4j" % "2.2.3"
  // -- Spray --
  ,"io.spray" % "spray-routing" % "1.2-RC2"
  ,"io.spray" % "spray-can" % "1.2-RC2"
  ,"io.spray" % "spray-httpx" % "1.2-RC2"
  ,"io.spray" % "spray-testkit" % "1.2-RC2" % "test"
  // -- Json --
  ,"org.json4s" %% "json4s-native" % "3.2.2"
)

/* you may need these repos */
resolvers ++= Seq(
  // Resolver.sonatypeRepo("snapshots")
  // Resolver.typesafeRepo("releases")
  "spray repo" at "http://repo.spray.io"
)

/* assembly plugin */
mainClass in AssemblyKeys.assembly := Some("com.mlh.spray-sample.Main")

assemblySettings

test in AssemblyKeys.assembly := {}
{'fraction_non_alphanumeric': 0.22701431091942756, 'fraction_numerical': 0.038423838463046464, 'mean_word_length': 2.967340590979782, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 6, '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': '3561592', 'n_tokens_mistral': 2234, 'n_tokens_neox': 2139, 'n_words': 358}