<commit_before>import org.sbuild._
import org.sbuild.ant._
import org.sbuild.ant.tasks._

@version("0.7.9013")
@include("FeatureBuilder.scala")
@classpath("mvn:org.apache.ant:ant:1.8.4",
  "http://sbuild.org/uploads/sbuild/0.7.9010.0-8-0-M1/org.sbuild.ant-0.7.9010.0-8-0-M1.jar")
class SBuild(implicit _project: Project) {

  val namespace = "de.tototec.sbuild.eclipse.plugin"

  val version = "0.4.3.9000-" + java.text.MessageFormat.format("{0,date,yyyy-MM-dd-HH-mm-ss}", new java.util.Date())
  // val version = "0.4.3"

  val featureXml = "target/feature/feature.xml"
  val featureProperties = "target/feature/feature.properties"
  val featureJar = s"target/${namespace}.feature_${version}.jar"

  val pluginModules = Modules("../org.sbuild.eclipse.resolver",
    "../org.sbuild.eclipse.resolver.sbuild07",
    "../org.sbuild.eclipse.resolver.sbuild08",
    "../de.tototec.sbuild.eclipse.plugin"
  )

  val siteJars = pluginModules.map(_.targetRef("jar-main"))

  def extractNameVersion(jar: java.io.File): (String, String) = {
    val parts = jar.getName.split("[-_]", 2)
    val name = parts(0)
    // version part minus the .jar suffix
    val version = parts(1).substring(0, parts(1).length - 4)
    (name, version)
  }

  val scalaLibBundleId = "org.scala-ide.scala.library"
  val scalaLibBundleVersion = "2.10.1.v20130302-092018-VFINAL-33e32179fd"
  val scalaLibBundleName = s"${scalaLibBundleId}_${scalaLibBundleVersion}.jar"
  val scalaLibBundle = s"http://download.scala-ide.org/sdk/e37/scala210/stable/site/plugins/${scalaLibBundleName}"

  val scalaLibFeatureXml = "target/scala-feature/feature.xml"
  val scalaLibFeatureJar = s"target/${namespace}.scala-library.feature_${scalaLibBundleVersion}.jar"

  val updateSiteZip = s"target/${namespace}-update-site-${version}.zip"

  val scalaVersion = "2.10.1"

  Target("phony:all") dependsOn "update-site" ~ updateSiteZip

  Target("phony:clean").evictCache exec {
    AntDelete(dir = Path("target"))
  }

  Target(featureProperties) exec { ctx: TargetContext =>
    // Eclipse Update assume the first line as title, so remove trailing empty lines
    val license = io.Source.fromFile(Path("LICENSE.txt")).getLines.dropWhile(l => l.trim.isEmpty)

    val props = new java.util.Properties()
    props.put("description", "Eclipse Integration for SBuild Buildsystem.")<commit_msg>Added deepClean target.<commit_after>import org.sbuild._
import org.sbuild.ant._
import org.sbuild.ant.tasks._

@version("0.7.9010")
@include("FeatureBuilder.scala")
@classpath("mvn:org.apache.ant:ant:1.8.4",
  "http://sbuild.org/uploads/sbuild/0.7.9010.0-8-0-M1/org.sbuild.ant-0.7.9010.0-8-0-M1.jar")
class SBuild(implicit _project: Project) {

  val namespace = "de.tototec.sbuild.eclipse.plugin"

  val version = "0.4.3.9000-" + java.text.MessageFormat.format("{0,date,yyyy-MM-dd-HH-mm-ss}", new java.util.Date())
  // val version = "0.4.3"

  val featureXml = "target/feature/feature.xml"
  val featureProperties = "target/feature/feature.properties"
  val featureJar = s"target/${namespace}.feature_${version}.jar"

  val pluginModules = Modules("../org.sbuild.eclipse.resolver",
    "../org.sbuild.eclipse.resolver.sbuild07",
    "../org.sbuild.eclipse.resolver.sbuild08",
    "../de.tototec.sbuild.eclipse.plugin"
  )

  val siteJars = pluginModules.map(_.targetRef("jar-main"))

  def extractNameVersion(jar: java.io.File): (String, String) = {
    val parts = jar.getName.split("[-_]", 2)
    val name = parts(0)
    // version part minus the .jar suffix
    val version = parts(1).substring(0, parts(1).length - 4)
    (name, version)
  }

  val scalaLibBundleId = "org.scala-ide.scala.library"
  val scalaLibBundleVersion = "2.10.1.v20130302-092018-VFINAL-33e32179fd"
  val scalaLibBundleName = s"${scalaLibBundleId}_${scalaLibBundleVersion}.jar"
  val scalaLibBundle = s"http://download.scala-ide.org/sdk/e37/scala210/stable/site/plugins/${scalaLibBundleName}"

  val scalaLibFeatureXml = "target/scala-feature/feature.xml"
  val scalaLibFeatureJar = s"target/${namespace}.scala-library.feature_${scalaLibBundleVersion}.jar"

  val updateSiteZip = s"target/${namespace}-update-site-${version}.zip"

  val scalaVersion = "2.10.1"

  Target("phony:all") dependsOn "update-site" ~ updateSiteZip

  Target("phony:clean").evictCache exec {
    AntDelete(dir = Path("target"))
  }

  Target("phony:deepClean") dependsOn "clean" ~ pluginModules.map(_.targetRef("clean"))

  Target(featureProperties) exec { ctx: TargetContext =>
    // Eclipse Update assume the first line as title, so remove trailing empty lines
    val license = io.Source.fromFile(Path("LICENSE.txt")).getLines.dropWhile(l => l.trim.isEmpty)

    val props = new java.util.Properties()
    props.put("description", "Eclipse Integration for SBuild Buildsystem.")
{'fraction_non_alphanumeric': 0.16237167399958097, 'fraction_numerical': 0.03519798868636078, 'mean_word_length': 4.234649122807017, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5969471', 'n_tokens_mistral': 1761, 'n_tokens_neox': 1648, 'n_words': 269}