<commit_before>import sbt._

object Builds extends Build {
  import Keys._
  import ls.Plugin.LsKeys._

  lazy val buildSettings = Defaults.defaultSettings ++ customLsSettings ++ Seq(
    version := "0.6.9-SNAPSHOT",
    organization := "org.scalaxb",
    homepage := Some(url("http://scalaxb.org")),
    licenses := Seq("MIT License" -> url("https://github.com/eed3si9n/scalaxb/blob/master/LICENSE")),
    description := """scalaxb is an XML data-binding tool for Scala that supports W3C XML Schema (xsd) and wsdl.""",
    scalaVersion := "2.9.1",
    crossScalaVersions := Seq("2.9.1", "2.8.1"), // Scala interpreter bug in 2.9.1
    publishArtifact in (Compile, packageBin) := true,
    publishArtifact in (Test, packageBin) := false,
    publishArtifact in (Compile, packageDoc) := false,
    publishArtifact in (Compile, packageSrc) := false,
    resolvers += ScalaToolsSnapshots,
    publishTo <<= version { (v: String) =>
      val nexus = "http://nexus.scala-tools.org/content/repositories/"
      if(v endsWith "-SNAPSHOT") Some("Scala Tools Nexus" at nexus + "snapshots/")
      else Some("Scala Tools Nexus" at nexus + "releases/")
    },
    credentials += Credentials(Path.userHome / ".ivy2" / ".credentials"),
    publishMavenStyle := true,
    parallelExecution in Test := false
  )

  lazy val customLsSettings = _root_.ls.Plugin.lsSettings ++ Seq(
    licenses in lsync <<= licenses,
    tags in lsync := Seq("xml", "soap", "wsdl", "code-generation")
  )

  val Xsd = config("xsd") extend(Compile)
  val Wsdl = config("wsdl") extend(Compile)
  val Soap11 = config("soap11") extend(Compile)
  val Soap12 = config("soap12") extend(Compile)
  lazy val cliSettings = buildSettings ++ Seq(
    name := "scalaxb",
    libraryDependencies ++= Seq(
      "com.github.scopt" %% "scopt" % "1.1.2",
      "org.scala-tools.sbt" % "launcher-interface" % "0.7.4" % "provided" from (
        "http://databinder.net/repo/org.scala-tools.sbt/launcher-interface/0.7.4/jars/launcher-interface.jar"),
      "com.weiglewilczek.slf4s" %% "slf4s" % "1.0.7",
      "ch.qos.logback" % "logback-classic" % "0.9.29"),
    unmanagedSourceDirectories in Compile <+= baseDirectory( _ / "src_managed" ),
    sourceGenerators in Compile <+= (sourceManaged in Compile, version) map { (dir, version) =>
      val file = dir / "version.scala"
      IO.write(file, """package scalaxb
trait Version { val version = "%s" }
""".format(version))
      Seq(file)<commit_msg>publish to sonatype<commit_after>import sbt._

object Builds extends Build {
  import Keys._
  import ls.Plugin.LsKeys._

  lazy val buildSettings = Defaults.defaultSettings ++ customLsSettings ++ Seq(
    version := "0.6.9-SNAPSHOT",
    organization := "org.scalaxb",
    homepage := Some(url("http://scalaxb.org")),
    licenses := Seq("MIT License" -> url("https://github.com/eed3si9n/scalaxb/blob/master/LICENSE")),
    description := """scalaxb is an XML data-binding tool for Scala that supports W3C XML Schema (xsd) and wsdl.""",
    scalaVersion := "2.9.1",
    crossScalaVersions := Seq("2.9.1", "2.8.1"), // Scala interpreter bug in 2.9.1
    pomExtra := (<scm>
        <url><EMAIL>:eed3si9n/scalaxb.git</url>
        <connection>scm:git:<EMAIL>:eed3si9n/scalaxb.git</connection>
      </scm>
      <developers>
        <developer>
          <id>eed3si9n</id>
          <name><NAME></name>
          <url>http://eed3si9n.com</url>
        </developer>
      </developers>),
    publishArtifact in Test := false,
    resolvers += ScalaToolsSnapshots,
    publishTo <<= version { (v: String) =>
      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")
    },
    credentials += Credentials(Path.userHome / ".ivy2" / ".credentials"),
    publishMavenStyle := true,
    pomIncludeRepository := { x => false },
    parallelExecution in Test := false
  )

  lazy val customLsSettings = _root_.ls.Plugin.lsSettings ++ Seq(
    licenses in lsync <<= licenses,
    tags in lsync := Seq("xml", "soap", "wsdl", "code-generation")
  )

  val Xsd = config("xsd") extend(Compile)
  val Wsdl = config("wsdl") extend(Compile)
  val Soap11 = config("soap11") extend(Compile)
  val Soap12 = config("soap12") extend(Compile)
  lazy val cliSettings = buildSettings ++ Seq(
    name := "scalaxb",
    libraryDependencies ++= Seq(
      "com.github.scopt" %% "scopt" % "1.1.2",
      "org.scala-tools.sbt" % "launcher-interface" % "0.7.4" % "provided" from (
        "http://databinder.net/repo/org.scala-tools.sbt/launcher-interface/0.7.4/jars/launcher-interface.jar"),
      "com.weiglewilczek.slf4s" %% "slf4s" % "1.0.7",
      "ch.qos.logback" % "logback-classic" % "0.9.29"),
    unmanagedSourceDirectories in Compile <+= baseDirectory( _ / "src_managed" ),
    sourceGenerators in Compile <+= (sourceManaged in Compile, version) map { (dir, version) =>
      val file = dir / "version.scala"
      IO.write(file, """package scalaxb
trait Version { val version = "%s" }
""".format(version))
      Seq(file)
{'fraction_non_alphanumeric': 0.16389919906231687, 'fraction_numerical': 0.01933971478804454, 'mean_word_length': 3.368600682593857, 'pattern_counts': {'":': 0, '<': 34, '<?xml version=': 0, '>': 29, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7617166', 'n_tokens_mistral': 1857, 'n_tokens_neox': 1767, 'n_words': 381}