<commit_before>import sbt._
import Keys._
import Tests._
import com.typesafe.sbt.SbtSite.site
import com.typesafe.sbt.site.SphinxSupport.Sphinx

object TwitterServer extends Build {
  val libVersion = "1.9.0"
  val utilVersion = "6.23.0"
  val finagleVersion = "6.24.0"
  val mustacheVersion = "0.8.12.1"

  // The following won't be necessary once we've upgraded internally to 2.4.
  def jacksonVersion(scalaVersion: String) =
    CrossVersion.partialVersion(scalaVersion) match {
      case Some((2, 11)) => "2.4.4"
      case _ => "2.3.1"
    }
  def jacksonLibs(scalaVersion: String) = Seq(
    "com.fasterxml.jackson.core" % "jackson-core" % jacksonVersion(scalaVersion),
    "com.fasterxml.jackson.core" % "jackson-databind" % jacksonVersion(scalaVersion),
    "com.fasterxml.jackson.module" %% "jackson-module-scala" % jacksonVersion(scalaVersion) exclude("com.google.guava", "guava"),<commit_msg>csl: Use snapshot versions in sbt while off master<commit_after>import sbt._
import Keys._
import Tests._
import com.typesafe.sbt.SbtSite.site
import com.typesafe.sbt.site.SphinxSupport.Sphinx

object TwitterServer extends Build {
  val branch = Process("git" :: "symbolic-ref" :: "--short" :: "HEAD" :: Nil).!!.trim
  val suffix = if (branch == "master") "" else "-SNAPSHOT"

  val libVersion = "1.9.0" + suffix
  val utilVersion = "6.23.0" + suffix
  val finagleVersion = "6.24.0" + suffix
  val mustacheVersion = "0.8.12.1"

  // The following won't be necessary once we've upgraded internally to 2.4.
  def jacksonVersion(scalaVersion: String) =
    CrossVersion.partialVersion(scalaVersion) match {
      case Some((2, 11)) => "2.4.4"
      case _ => "2.3.1"
    }
  def jacksonLibs(scalaVersion: String) = Seq(
    "com.fasterxml.jackson.core" % "jackson-core" % jacksonVersion(scalaVersion),
    "com.fasterxml.jackson.core" % "jackson-databind" % jacksonVersion(scalaVersion),
    "com.fasterxml.jackson.module" %% "jackson-module-scala" % jacksonVersion(scalaVersion) exclude("com.google.guava", "guava"),
{'fraction_non_alphanumeric': 0.14370664023785926, 'fraction_numerical': 0.026759167492566897, 'mean_word_length': 4.098484848484849, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 2, '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': '2182075', 'n_tokens_mistral': 748, 'n_tokens_neox': 675, 'n_words': 150}