<commit_before>import sbt._
import Keys._
//import bintray.Plugin._
//import bintray.Keys._
import com.typesafe.sbt.SbtSite.site
import com.typesafe.sbt.site.SphinxSupport.Sphinx
import net.virtualvoid.sbt.graph.Plugin.graphSettings // For dependency-graph
import sbtassembly.Plugin._
import AssemblyKeys._

object Scrooge extends Build {
  val libVersion = "3.17.0-VDNA-2"
  val utilVersion = "6.22.0"
  val finagleVersion = "6.22.0"

credentials in ThisBuild ++= {
 val sonatype = ("Sonatype Nexus Repository Manager", "maven.visualdna.com")
 def loadMavenCredentials(file: java.io.File): Seq[Credentials] = {
 xml.XML.loadFile(file) \ "servers" \ "server" map (s => {
 val host = (s \ "id").text
 val realm = sonatype._1
 val hostToUse = "maven.visualdna.com"
 Credentials(realm, hostToUse, (s \ "username").text, (s \ "password").text)
 })
 }
 val ivyCredentials = Path.userHome / ".ivy2" / ".credentials"
 val mavenCredentials = Path.userHome / ".m2" / "settings.xml"
 (ivyCredentials.asFile, mavenCredentials.asFile) match {
 case (ivy, _) if ivy.canRead => Credentials(ivy) :: Nil
 case (_, mvn) if mvn.canRead => loadMavenCredentials(mvn)
 case _ => Nil
 }
 }

  def util(which: String) = "com.twitter" %% ("util-"+which) % utilVersion
  def finagle(which: String) = "com.twitter" %% ("finagle-"+which) % finagleVersion

  val compileThrift = TaskKey[Seq[File]](
    "compile-thrift", "generate thrift needed for tests")

  lazy val publishM2Configuration =
    TaskKey[PublishConfiguration]("publish-m2-configuration",
      "Configuration for publishing to the .m2 repository.")

  lazy val publishM2 =
    TaskKey[Unit]("publish-m2",
      "Publishes artifacts to the .m2 repository.")

//  lazy val m2Repo =
//    Resolver.file("publish-m2-local",
//      Path.userHome / ".m2" / "repository")

  val dumpClasspath = TaskKey[File](
    "dump-classpath", "generate a file containing the full classpath")

  val dumpClasspathSettings: Seq[Setting[_]] = Seq(
    dumpClasspath <<= (
      baseDirectory,
      fullClasspath in Runtime
    ) map { (base, cp) =>
      val file = new File((base / ".classpath.txt").getAbsolutePath)<commit_msg>attempt to strip out more<commit_after>import sbt._
import Keys._
//import bintray.Plugin._
//import bintray.Keys._
import com.typesafe.sbt.SbtSite.site
import com.typesafe.sbt.site.SphinxSupport.Sphinx
import net.virtualvoid.sbt.graph.Plugin.graphSettings // For dependency-graph
import sbtassembly.Plugin._
import AssemblyKeys._

object Scrooge extends Build {
  val libVersion = "3.17.0-VDNA-2"
  val utilVersion = "6.22.0"
  val finagleVersion = "6.22.0"

credentials in ThisBuild += {
 val sonatype = ("Sonatype Nexus Repository Manager", "maven.visualdna.com")
 def loadMavenCredentials(file: java.io.File): Seq[Credentials] = {
 xml.XML.loadFile(file) \ "servers" \ "server" map (s => {
 val host = (s \ "id").text
 val realm = sonatype._1
 val hostToUse = "maven.visualdna.com"
 Credentials(realm, hostToUse, (s \ "username").text, (s \ "password").text)
 })
 }
 val mavenCredentials = Path.userHome / ".m2" / "settings.xml"
 loadMavenCredentials(mavenCredentials.asFile)
 }

  def util(which: String) = "com.twitter" %% ("util-"+which) % utilVersion
  def finagle(which: String) = "com.twitter" %% ("finagle-"+which) % finagleVersion

  val compileThrift = TaskKey[Seq[File]](
    "compile-thrift", "generate thrift needed for tests")

  lazy val publishM2Configuration =
    TaskKey[PublishConfiguration]("publish-m2-configuration",
      "Configuration for publishing to the .m2 repository.")

  lazy val publishM2 =
    TaskKey[Unit]("publish-m2",
      "Publishes artifacts to the .m2 repository.")

//  lazy val m2Repo =
//    Resolver.file("publish-m2-local",
//      Path.userHome / ".m2" / "repository")

  val dumpClasspath = TaskKey[File](
    "dump-classpath", "generate a file containing the full classpath")

  val dumpClasspathSettings: Seq[Setting[_]] = Seq(
    dumpClasspath <<= (
      baseDirectory,
      fullClasspath in Runtime
    ) map { (base, cp) =>
      val file = new File((base / ".classpath.txt").getAbsolutePath)
{'fraction_non_alphanumeric': 0.14111625639775774, 'fraction_numerical': 0.011942481111381915, 'mean_word_length': 3.8857142857142857, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '2714948', 'n_tokens_mistral': 1398, 'n_tokens_neox': 1363, 'n_words': 325}