<commit_before>import sbt._
import Keys._
//import ls.Plugin._

object SquerylBuild extends Build {

  lazy val squeryl = Project(
    id = "squeryl",
    base = file("."),
    settings = Project.defaultSettings /* ++ lsSettings */ ++ Seq(
      description := "A Scala ORM and DSL for talking with Databases using minimum verbosity and maximum type safety",
      organization := "org.squeryl",
      version := "0.9.6-M1",
	  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.10.0-M7", "2.9.2", "2.9.1", "2.9.0-1", "2.9.0"),
      licenses := Seq("Apache 2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")),
      homepage := Some(url("http://squeryl.org")),
      pomExtra := (<scm>
                     <url><EMAIL>:max-l/squeryl.git</url>
                     <connection>scm:git:<EMAIL>:max-l/squeryl.git</connection>
                   </scm>
                   <developers>
                     <developer>
                       <id>max-l</id>
                       <name><NAME></name>
                       <url>https://github.com/max-l</url>
                     </developer>
                     <developer>
                       <id>davewhittaker</id>
                       <name><NAME></name>
                       <url>https://github.com/davewhittaker</url>
                     </developer>
                   </developers>),
      publishTo <<= version { v => //add credentials to ~/.sbt/sonatype.sbt
        val nexus = "https://oss.sonatype.org/"
        if (v.trim.endsWith("SNAPSHOT"))<commit_msg>Changed build setting so that scala 2.10 builds will include the milestone identifier<commit_after>import sbt._
import Keys._
//import ls.Plugin._

object SquerylBuild extends Build {

  lazy val squeryl = Project(
    id = "squeryl",
    base = file("."),
    settings = Project.defaultSettings /* ++ lsSettings */ ++ Seq(
      description := "A Scala ORM and DSL for talking with Databases using minimum verbosity and maximum type safety",
      organization := "org.squeryl",
      version := "0.9.6-M1",
	  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.10.0-M7", "2.9.2", "2.9.1", "2.9.0-1", "2.9.0"),
      crossVersion := CrossVersion.full,
      licenses := Seq("Apache 2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")),
      homepage := Some(url("http://squeryl.org")),
      pomExtra := (<scm>
                     <url>git<EMAIL>:max-l/squeryl.git</url>
                     <connection>scm:git:<EMAIL>:max-l/squeryl.git</connection>
                   </scm>
                   <developers>
                     <developer>
                       <id>max-l</id>
                       <name><NAME></name>
                       <url>https://github.com/max-l</url>
                     </developer>
                     <developer>
                       <id>davewhittaker</id>
                       <name><NAME></name>
                       <url>https://github.com/davewhittaker</url>
                     </developer>
                   </developers>),
      publishTo <<= version { v => //add credentials to ~/.sbt/sonatype.sbt
        val nexus = "https://oss.sonatype.org/"
        if (v.trim.endsWith("SNAPSHOT"))
{'fraction_non_alphanumeric': 0.1631578947368421, 'fraction_numerical': 0.014874141876430207, 'mean_word_length': 1.7911877394636015, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 71, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, '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': '3596266', 'n_tokens_mistral': 1499, 'n_tokens_neox': 1405, 'n_words': 301}