<commit_before>name := "l_space"

version := "0.0.1-WORKPRINT"

scalaVersion := "2.11.7"

mainClass := Some("io.mediachain.LSpace")

libraryDependencies ++= Seq(
  "com.michaelpollmeier" % "gremlin-scala_2.11" % "3.1.1-incubating.1",
  "com.michaelpollmeier" % "orientdb-gremlin" % "3.1.0-incubating.1",
  "com.tinkerpop.blueprints" % "blueprints-core" % "2.6.0",
  "org.typelevel" %% "cats" % "0.4.1",
  "com.chuusai" %% "shapeless" % "2.2.5",
  "org.json4s" %% "json4s-jackson" % "3.2.11",
  "com.fasterxml.jackson.dataformat" % "jackson-dataformat-cbor" % "2.4.0",
  "org.bouncycastle" % "bcprov-jdk15on" % "1.54",
  "org.apache.directory.studio" % "org.apache.commons.codec" % "1.8"
)


// see http://stackoverflow.com/a/9901616
//
// instantiating the `SBTSetupHook` and `SBTCleanupHook`
// classes causes code to run that prepares the testing
// environment & works around some classloader issues with
// sbt and orient / gremlin
testOptions in Test += Tests.Setup( loader => {
  println("test setup")
  loader.loadClass("io.mediachain.SBTSetupHook").newInstance
})

testOptions in Test += Tests.Cleanup( loader => {
  println("test cleanup")
  loader.loadClass("io.mediachain.SBTCleanupHook").newInstance
})

initialCommands in console :=
  """
    import com.orientechnologies.orient.core.Orient<commit_msg>exclude groovy and commons-logging from transitive dependencies<commit_after>name := "l_space"

version := "0.0.1-WORKPRINT"

scalaVersion := "2.11.7"

mainClass := Some("io.mediachain.LSpace")

libraryDependencies ++= Seq(
  "com.michaelpollmeier" % "gremlin-scala_2.11" % "3.1.1-incubating.1",
  "com.michaelpollmeier" % "orientdb-gremlin" % "3.1.0-incubating.1",
  "com.tinkerpop.blueprints" % "blueprints-core" % "2.6.0",
  "org.typelevel" %% "cats" % "0.4.1",
  "com.chuusai" %% "shapeless" % "2.2.5",
  "org.json4s" %% "json4s-jackson" % "3.2.11",
  "com.fasterxml.jackson.dataformat" % "jackson-dataformat-cbor" % "2.4.0",
  "org.bouncycastle" % "bcprov-jdk15on" % "1.54",
  "org.apache.directory.studio" % "org.apache.commons.codec" % "1.8"
)

excludeDependencies ++= Seq(
  SbtExclusionRule("commons-logging", "commons-logging"),
  SbtExclusionRule("org.codehaus.groovy", "groovy"),
  SbtExclusionRule("org.codehaus.groovy", "groovy-groovysh"),
  SbtExclusionRule("org.codehaus.groovy", "groovy-console"),
  SbtExclusionRule("org.codehaus.groovy", "groovy-templates"),
  SbtExclusionRule("org.codehaus.groovy", "groovy-xml"),
  SbtExclusionRule("org.codehaus.groovy", "groovy-swing"),
  SbtExclusionRule("org.codehaus.groovy", "groovy-json"),
  SbtExclusionRule("org.codehaus.groovy", "groovy-jsr223")
)

// see http://stackoverflow.com/a/9901616
//
// instantiating the `SBTSetupHook` and `SBTCleanupHook`
// classes causes code to run that prepares the testing
// environment & works around some classloader issues with
// sbt and orient / gremlin
testOptions in Test += Tests.Setup( loader => {
  println("test setup")
  loader.loadClass("io.mediachain.SBTSetupHook").newInstance
})

testOptions in Test += Tests.Cleanup( loader => {
  println("test cleanup")
  loader.loadClass("io.mediachain.SBTCleanupHook").newInstance
})

initialCommands in console :=
  """
    import com.orientechnologies.orient.core.Orient
{'fraction_non_alphanumeric': 0.1771058315334773, 'fraction_numerical': 0.031780314717679725, 'mean_word_length': 4.657940663176265, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 3}, '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': '1409459', 'n_tokens_mistral': 1296, 'n_tokens_neox': 1218, 'n_words': 195}