<commit_before>import SonatypeKeys._


name := "renesca"


version := "0.2.4"

scalaVersion := "2.11.6"

crossScalaVersions := Seq("2.10.5", "2.11.6")

resolvers ++= Seq(
  "Local Maven Repository" at "file://" + Path.userHome.absolutePath + "/.m2/repository",
  "Scalaz Bintray Repo" at "http://dl.bintray.com/scalaz/releases", // to fix specs2 dependency
  "Sonatype" at "https://oss.sonatype.org/content/repositories/releases"
)

libraryDependencies ++= Seq(
  "io.spray" %% "spray-client" % "1.3.3",
  "io.spray" %% "spray-json" % "1.3.2",
  "com.typesafe.akka" %% "akka-actor" % "2.3.11",
  "org.specs2" %% "specs2" % "2.4.17" % "test,test-integration",
  "com.github.httpmock" % "mock-http-server-webapp" % "1.1.9" artifacts (Artifact("mock-http-server-webapp", "jar", "jar")) classifier "",
  "com.github.httpmock" %% "httpmock-specs" % "0.6.1" % "test,test-integration")


// Scoverage
scalacOptions in Test ++= Seq("-Yrangepos")

// publishing
pgpSecretRing := file("local.secring.gpg")

pgpPublicRing := file("local.pubring.gpg")

sonatypeSettings

organization := "com.github.renesca"

pomExtra := {
  <url>https://github.com/renesca/renesca</url>
    <licenses>
      <license>
        <name>Apache 2</name>
        <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      </license>
    </licenses>
    <scm>
      <url>https://github.com/renesca/renesca</url>
      <connection>scm:git:<EMAIL>:renesca/renesca.git</connection>
    </scm>
    <developers>
      <developer>
        <id>fdietze</id>
        <name><NAME></name>
        <url>https://github.com/fdietze</url>
      </developer>
      <developer>
        <id>snordquist</id>
        <name><NAME></name>
        <url>https://github.com/snordquist</url>
      </developer>
      <developer>
        <id>jkaroff</id>
        <name><NAME></name>
        <url>https://github.com/cornerman</url>
      </developer>
    </developers>
}

scalacOptions ++= Seq(
  "-encoding", "UTF-8",
  "-unchecked",
  "-deprecation",
  "-feature",
  "-Yinline", "-Yinline-warnings",
  "-language:_"
  //,"-Xdisable-assertions", "-optimize"
)

// support source folders for version specific code
unmanagedSourceDirectories in Compile <+= (sourceDirectory in Compile, scalaBinaryVersion) {
  (s, v) => s / ("scala_" + v)
}

<commit_msg>initial commands for console to connect to rest server and imports<commit_after>import SonatypeKeys._


name := "renesca"


version := "0.2.4"

scalaVersion := "2.11.6"

crossScalaVersions := Seq("2.10.5", "2.11.6")

resolvers ++= Seq(
  "Local Maven Repository" at "file://" + Path.userHome.absolutePath + "/.m2/repository",
  "Scalaz Bintray Repo" at "http://dl.bintray.com/scalaz/releases", // to fix specs2 dependency
  "Sonatype" at "https://oss.sonatype.org/content/repositories/releases"
)

libraryDependencies ++= Seq(
  "io.spray" %% "spray-client" % "1.3.3",
  "io.spray" %% "spray-json" % "1.3.2",
  "com.typesafe.akka" %% "akka-actor" % "2.3.11",
  "org.specs2" %% "specs2" % "2.4.17" % "test,test-integration",
  "com.github.httpmock" % "mock-http-server-webapp" % "1.1.9" artifacts (Artifact("mock-http-server-webapp", "jar", "jar")) classifier "",
  "com.github.httpmock" %% "httpmock-specs" % "0.6.1" % "test,test-integration")


// Scoverage
scalacOptions in Test ++= Seq("-Yrangepos")

// publishing
pgpSecretRing := file("local.secring.gpg")

pgpPublicRing := file("local.pubring.gpg")

sonatypeSettings

organization := "com.github.renesca"

pomExtra := {
  <url>https://github.com/renesca/renesca</url>
    <licenses>
      <license>
        <name>Apache 2</name>
        <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      </license>
    </licenses>
    <scm>
      <url>https://github.com/renesca/renesca</url>
      <connection>scm:git:git@github.com:renesca/renesca.git</connection>
    </scm>
    <developers>
      <developer>
        <id>fdietze</id>
        <name><NAME></name>
        <url>https://github.com/fdietze</url>
      </developer>
      <developer>
        <id>snordquist</id>
        <name><NAME></name>
        <url>https://github.com/snordquist</url>
      </developer>
      <developer>
        <id>jkaroff</id>
        <name><NAME></name>
        <url>https://github.com/cornerman</url>
      </developer>
    </developers>
}

scalacOptions ++= Seq(
  "-encoding", "UTF-8",
  "-unchecked",
  "-deprecation",
  "-feature",
  "-Yinline", "-Yinline-warnings",
  "-language:_"
  //,"-Xdisable-assertions", "-optimize"
)

// support source folders for version specific code
unmanagedSourceDirectories in Compile <+= (sourceDirectory in Compile, scalaBinaryVersion) {
  (s, v) => s / ("scala_" + v)
}

initialCommands in console := """
import renesca.graph._
import renesca.parameter._
import renesca.parameter.implicits._
import renesca._
import spray.http.BasicHttpCredentials

val credentials = BasicHttpCredentials("neo4j", "<PASSWORD>")
val restService = new RestService("http://localhost:7474", Some(credentials))

val db = new DbService
db.restService = restService
"""

{'fraction_non_alphanumeric': 0.1925144336054151, 'fraction_numerical': 0.018116663348596455, 'mean_word_length': 3.3385146804835926, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 97, 'https://': 12, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 1, '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': '1390211', 'n_tokens_mistral': 1942, 'n_tokens_neox': 1850, 'n_words': 304}