<commit_before>import sbt._
import Keys._


object GooseBuild extends Build {

    lazy val goose = Project(
        id = "goose",
        base = file("."),
        settings = Project.defaultSettings ++ Seq(
            description := "Html Content / Article Extractor in Scala",
            organization := "com.gravity",
            version := "2.1.21-SNAPSHOT",
            version <<= version { v => //only release *if* -Drelease=true is passed to JVM
                val release = Option(System.getProperty("release")) == Some("true")
                if (release) {
                    v
                } else {
                    val suffix = Option(System.getProperty("suffix"))
                    val i = (v.indexOf('-'), v.length) match {
                        case (x, l) if x < 0 => l
                        case (x, l) if v substring (x + 1) matches """\d+""" => l //patch level, not RCx
                        case (x, _) => x
                    }
                    v.substring(0, i) + "-" + (suffix getOrElse "SNAPSHOT")
                }
            },
            parallelExecution := false,
            publishMavenStyle := true,
            scalaVersion := "2.9.2",
            crossScalaVersions := Seq("2.9.2", "2.9.1", "2.9.0"),
            licenses := Seq("Apache 2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")),
            homepage := Some(url("http://github.com/jaytaylor/goose")),
            pomExtra := (
                <scm>
                    <url>git@github.com:jaytaylor/goose.git</url>
                    <connection>scm:git:git@github.com:jaytaylor/goose.git</connection>
                </scm>
                <developers>
                    <developer>
                        <id>jaytaylor</id>
                        <name><NAME></name>
                        <url>https://github.com/jaytaylor</url>
                    </developer>
                </developers>
            ),
            publishTo <<= version { v => //add credentials to ~/.sbt/sonatype.sbt
                /*val nexus = "https://oss.sonatype.org/"
                if (v.trim.endsWith("SNAPSHOT")) 
                  Some("snapshots" at nexus + "content/repositories/snapshots") 
                 else
                   Some("releases"  at nexus + "service/local/staging/deploy/maven2")*/
                Some(Resolver.sftp(
                    "Scala.sh Repository",
                    "scala.sh",<commit_msg>Version bumped to 2.1.22.<commit_after>import sbt._
import Keys._


object GooseBuild extends Build {

    lazy val goose = Project(
        id = "goose",
        base = file("."),
        settings = Project.defaultSettings ++ Seq(
            description := "Html Content / Article Extractor in Scala",
            organization := "com.gravity",
            version := "2.1.22-SNAPSHOT",
            version <<= version { v => //only release *if* -Drelease=true is passed to JVM
                val release = Option(System.getProperty("release")) == Some("true")
                if (release) {
                    v
                } else {
                    val suffix = Option(System.getProperty("suffix"))
                    val i = (v.indexOf('-'), v.length) match {
                        case (x, l) if x < 0 => l
                        case (x, l) if v substring (x + 1) matches """\d+""" => l //patch level, not RCx
                        case (x, _) => x
                    }
                    v.substring(0, i) + "-" + (suffix getOrElse "SNAPSHOT")
                }
            },
            parallelExecution := false,
            publishMavenStyle := true,
            scalaVersion := "2.9.2",
            crossScalaVersions := Seq("2.9.2", "2.9.1", "2.9.0"),
            licenses := Seq("Apache 2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")),
            homepage := Some(url("http://github.com/jaytaylor/goose")),
            pomExtra := (
                <scm>
                    <url><EMAIL>:jaytaylor/goose.git</url>
                    <connection>scm:git:git@github.com:jaytaylor/goose.git</connection>
                </scm>
                <developers>
                    <developer>
                        <id>jaytaylor</id>
                        <name><NAME></name>
                        <url>https://github.com/jaytaylor</url>
                    </developer>
                </developers>
            ),
            publishTo <<= version { v =>
                Some(Resolver.sftp(
                    "Scala.sh Repository",
                    "scala.sh",
{'fraction_non_alphanumeric': 0.13966235474676605, 'fraction_numerical': 0.010743258057443543, 'mean_word_length': 1.2617749132374814, 'pattern_counts': {'":': 0, '<': 48, '<?xml version=': 0, '>': 50, 'https://': 3, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 3, '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': '2849815', 'n_tokens_mistral': 1345, 'n_tokens_neox': 1233, 'n_words': 264}