<commit_before>/*
 * Copyright (C) 2009-2015 Typesafe Inc. <http://www.typesafe.com>
 */
import sbt._
import buildinfo.BuildInfo

object Dependencies {

  val specsVersion = "3.1"
  val specsBuild = Seq(
    "specs2-core",
    "specs2-junit",
    "specs2-mock"
  ).map("org.specs2" %% _ % specsVersion)

  val specsMatcherExtra = "org.specs2" %% "specs2-matcher-extra" % specsVersion

  val specsSbt = specsBuild

  val jacksons = Seq(
    "com.fasterxml.jackson.core" % "jackson-core",
    "com.fasterxml.jackson.core" % "jackson-annotations",
    "com.fasterxml.jackson.core" % "jackson-databind",
    "com.fasterxml.jackson.datatype" % "jackson-datatype-jdk8",
    "com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310"
  ).map(_ % "2.5.1")

  val guava = "com.google.guava" % "guava" % "18.0"
  val findBugs = "com.google.code.findbugs" % "jsr305" % "2.0.3" // Needed by guava
  val mockitoAll = "org.mockito" % "mockito-all" % "1.10.8"

  val h2database = "com.h2database" % "h2" % "1.4.186"

  val acolyteVersion = "1.0.32"
  val acolyte = "org.eu.acolyte" % "jdbc-driver" % acolyteVersion

  val jdbcDeps = Seq(
    "com.jolbox" % "bonecp" % "0.8.0.RELEASE",
    "com.zaxxer" % "HikariCP" % "2.3.3",
    h2database,
    acolyte % Test,
    "tyrex" % "tyrex" % "1.0.1") ++ specsBuild.map(_ % Test)

  val javaJdbcDeps = Seq(acolyte % Test)

  val jpaDeps = Seq(
    "org.hibernate.javax.persistence" % "hibernate-jpa-2.1-api" % "1.0.0.Final",
    "org.hibernate" % "hibernate-entitymanager" % "4.3.8.Final" % "test"
  )

  val link = Seq(
    "org.javassist" % "javassist" % "3.19.0-GA"
  )
  val javassist = link

  val scalaJava8Compat = "org.scala-lang.modules" %% "scala-java8-compat" % "0.3.0"

  val javaDeps = Seq(
    scalaJava8Compat,

    "org.yaml" % "snakeyaml" % "1.13",
    // 5.1.0 upgrade notes: need to add JEE dependencies, eg EL
    "org.hibernate" % "hibernate-validator" % "5.0.3.Final",
    // This is depended on by hibernate validator, we upgrade to 3.2.0 to avoid LGPL license of 3.1.x
    "org.jboss.logging" % "jboss-logging" % "3.2.0.Final",

    ("org.springframework" % "spring-context" % "4.1.1.RELEASE" notTransitive ())
      .exclude("org.springframework", "spring-aop")
      .exclude("org.springframework", "spring-beans")
      .exclude("org.springframework", "spring-core")
      .exclude("org.springframework", "spring-expression")
      .exclude("org.springframework", "spring-asm"),

    ("org.springframework" % "spring-core" % "4.1.1.RELEASE" notTransitive ())
      .exclude("org.springframework", "spring-asm")
      .exclude("commons-logging", "commons-logging"),

    ("org.springframework" % "spring-beans" % "4.1.1.RELEASE" notTransitive ())
      .exclude("org.springframework", "spring-core"),

    ("org.reflections" % "reflections" % "0.9.9" notTransitive ())
      .exclude("javassist", "javassist"),

    // Used by the Java routing DSL
    "net.jodah" % "typetools" % "0.4.0",

    guava,
    findBugs,

    "org.apache.tomcat" % "tomcat-servlet-api" % "8.0.14"
  ) ++ javassist ++ specsBuild.map(_ % Test)

  val junitInterface = "com.novocode" % "junit-interface" % "0.11"
  val junit = "junit" % "junit" % "4.12"

  val javaTestDeps = Seq(
    junit,
    junitInterface,
    "org.easytesting" % "fest-assert"     % "1.4",
    mockitoAll
  ).map(_ % Test)

  val jodatime = "joda-time" % "joda-time" % "2.6"
  val jodaConvert = "org.joda" % "joda-convert" % "1.7"

  def runtime(scalaVersion: String) =
    Seq("slf4j-api", "jul-to-slf4j", "jcl-over-slf4j").map("org.slf4j" % _ % "1.7.6") ++
    Seq("logback-core", "logback-classic").map("ch.qos.logback" % _ % "1.1.1") ++
    Seq("akka-actor", "akka-slf4j").map("com.typesafe.akka" %% _ % "2.3.7") ++
    jacksons ++
    Seq(
      "org.scala-stm" %% "scala-stm" % "0.7",
      "commons-codec" % "commons-codec" % "1.9",

      jodatime,
      jodaConvert,

      "org.apache.commons" % "commons-lang3" % "3.3.2",

      "xerces" % "xercesImpl" % "2.11.0",

      "javax.transaction" % "jta" % "1.1",

      // Since we don't use any of the AOP features of guice, we exclude cglib.
      // This solves issues later where cglib depends on an older version of asm,
      // and other libraries (pegdown) depend on a newer version with a different groupId,
      // and this causes binary issues.
      "com.google.inject" % "guice" % "3.0" exclude("org.sonatype.sisu.inject", "cglib"),

      guava % Test,

      "org.scala-lang" % "scala-reflect" % scalaVersion
    ) ++
    specsBuild.map(_ % Test) ++
    javaTestDeps

  val netty = Seq(
    "io.netty"           % "netty"                 % "3.9.3.Final",
    "com.typesafe.netty" % "netty-http-pipelining" % "1.1.2"
  ) ++ specsBuild.map(_ % Test)
<commit_msg>Switched to no_aop classified Guice<commit_after>/*
 * Copyright (C) 2009-2015 Typesafe Inc. <http://www.typesafe.com>
 */
import sbt._
import buildinfo.BuildInfo

object Dependencies {

  val specsVersion = "3.1"
  val specsBuild = Seq(
    "specs2-core",
    "specs2-junit",
    "specs2-mock"
  ).map("org.specs2" %% _ % specsVersion)

  val specsMatcherExtra = "org.specs2" %% "specs2-matcher-extra" % specsVersion

  val specsSbt = specsBuild

  val jacksons = Seq(
    "com.fasterxml.jackson.core" % "jackson-core",
    "com.fasterxml.jackson.core" % "jackson-annotations",
    "com.fasterxml.jackson.core" % "jackson-databind",
    "com.fasterxml.jackson.datatype" % "jackson-datatype-jdk8",
    "com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310"
  ).map(_ % "2.5.1")

  val guava = "com.google.guava" % "guava" % "18.0"
  val findBugs = "com.google.code.findbugs" % "jsr305" % "2.0.3" // Needed by guava
  val mockitoAll = "org.mockito" % "mockito-all" % "1.10.8"

  val h2database = "com.h2database" % "h2" % "1.4.186"

  val acolyteVersion = "1.0.32"
  val acolyte = "org.eu.acolyte" % "jdbc-driver" % acolyteVersion

  val jdbcDeps = Seq(
    "com.jolbox" % "bonecp" % "0.8.0.RELEASE",
    "com.zaxxer" % "HikariCP" % "2.3.3",
    h2database,
    acolyte % Test,
    "tyrex" % "tyrex" % "1.0.1") ++ specsBuild.map(_ % Test)

  val javaJdbcDeps = Seq(acolyte % Test)

  val jpaDeps = Seq(
    "org.hibernate.javax.persistence" % "hibernate-jpa-2.1-api" % "1.0.0.Final",
    "org.hibernate" % "hibernate-entitymanager" % "4.3.8.Final" % "test"
  )

  val link = Seq(
    "org.javassist" % "javassist" % "3.19.0-GA"
  )
  val javassist = link

  val scalaJava8Compat = "org.scala-lang.modules" %% "scala-java8-compat" % "0.3.0"

  val javaDeps = Seq(
    scalaJava8Compat,

    "org.yaml" % "snakeyaml" % "1.13",
    // 5.1.0 upgrade notes: need to add JEE dependencies, eg EL
    "org.hibernate" % "hibernate-validator" % "5.0.3.Final",
    // This is depended on by hibernate validator, we upgrade to 3.2.0 to avoid LGPL license of 3.1.x
    "org.jboss.logging" % "jboss-logging" % "3.2.0.Final",

    ("org.springframework" % "spring-context" % "4.1.1.RELEASE" notTransitive ())
      .exclude("org.springframework", "spring-aop")
      .exclude("org.springframework", "spring-beans")
      .exclude("org.springframework", "spring-core")
      .exclude("org.springframework", "spring-expression")
      .exclude("org.springframework", "spring-asm"),

    ("org.springframework" % "spring-core" % "4.1.1.RELEASE" notTransitive ())
      .exclude("org.springframework", "spring-asm")
      .exclude("commons-logging", "commons-logging"),

    ("org.springframework" % "spring-beans" % "4.1.1.RELEASE" notTransitive ())
      .exclude("org.springframework", "spring-core"),

    ("org.reflections" % "reflections" % "0.9.9" notTransitive ())
      .exclude("javassist", "javassist"),

    // Used by the Java routing DSL
    "net.jodah" % "typetools" % "0.4.0",

    guava,
    findBugs,

    "org.apache.tomcat" % "tomcat-servlet-api" % "8.0.14"
  ) ++ javassist ++ specsBuild.map(_ % Test)

  val junitInterface = "com.novocode" % "junit-interface" % "0.11"
  val junit = "junit" % "junit" % "4.12"

  val javaTestDeps = Seq(
    junit,
    junitInterface,
    "org.easytesting" % "fest-assert"     % "1.4",
    mockitoAll
  ).map(_ % Test)

  val jodatime = "joda-time" % "joda-time" % "2.6"
  val jodaConvert = "org.joda" % "joda-convert" % "1.7"

  def runtime(scalaVersion: String) =
    Seq("slf4j-api", "jul-to-slf4j", "jcl-over-slf4j").map("org.slf4j" % _ % "1.7.6") ++
    Seq("logback-core", "logback-classic").map("ch.qos.logback" % _ % "1.1.1") ++
    Seq("akka-actor", "akka-slf4j").map("com.typesafe.akka" %% _ % "2.3.7") ++
    jacksons ++
    Seq(
      "org.scala-stm" %% "scala-stm" % "0.7",
      "commons-codec" % "commons-codec" % "1.9",

      jodatime,
      jodaConvert,

      "org.apache.commons" % "commons-lang3" % "3.3.2",

      "xerces" % "xercesImpl" % "2.11.0",

      "javax.transaction" % "jta" % "1.1",

      // Since we don't use any of the AOP features of guice, we exclude cglib.
      // This solves issues later where cglib depends on an older version of asm,
      // and other libraries (pegdown) depend on a newer version with a different groupId,
      // and this causes binary issues.
      "com.google.inject" % "guice" % "3.0" classifier "no_aop",

      guava % Test,

      "org.scala-lang" % "scala-reflect" % scalaVersion
    ) ++
    specsBuild.map(_ % Test) ++
    javaTestDeps

  val netty = Seq(
    "io.netty"           % "netty"                 % "3.9.3.Final",
    "com.typesafe.netty" % "netty-http-pipelining" % "1.1.2"
  ) ++ specsBuild.map(_ % Test)

{'fraction_non_alphanumeric': 0.18417995564473547, 'fraction_numerical': 0.03379448727426339, 'mean_word_length': 2.9035449299258036, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 10}, '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': '4106601', 'n_tokens_mistral': 3963, 'n_tokens_neox': 3659, 'n_words': 696}