<commit_before>import bintray.BintrayKeys
import com.typesafe.sbt.GitPlugin
import com.typesafe.sbt.SbtScalariform
import de.heikoseeberger.sbtheader.{ HeaderKey, HeaderPlugin }
import de.heikoseeberger.sbtheader.license.Apache2_0
import sbt._
import sbt.Keys._
import scalariform.formatter.preferences.{ AlignSingleLineCaseStatements, DoubleIndentClassDeclaration }

object Build extends AutoPlugin {

  override def requires = plugins.JvmPlugin && HeaderPlugin && GitPlugin

  override def trigger = allRequirements

  override def projectSettings =
    List(
      // Core settings
      organization := "de.heikoseeberger",
      licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0")),
      homepage := Some(url("https://github.com/hseeberger/constructr")),
      pomIncludeRepository := (_ => false),
      pomExtra := <scm>
                    <url>https://github.com/hseeberger/constructr</url>
                    <connection>scm:git:git@github.com:hseeberger/constructr.git</connection>
                  </scm>
                  <developers>
                    <developer>
                      <id>hseeberger</id>
                      <name><NAME></name>
                      <url>http://heikoseeberger.de</url>
                    </developer>
                  </developers>,
      scalaVersion := Version.Scala,
      crossScalaVersions := List(scalaVersion.value),
      scalacOptions ++= List(
        "-unchecked",
        "-deprecation",
        "-language:_",
        "-target:jvm-1.8",
        "-encoding", "UTF-8"
      ),
      unmanagedSourceDirectories.in(Compile) := List(scalaSource.in(Compile).value),
      unmanagedSourceDirectories.in(Test) := List(scalaSource.in(Test).value),

      // Scalariform settings
      SbtScalariform.autoImport.preferences := SbtScalariform.autoImport.preferences.value
        .setPreference(AlignSingleLineCaseStatements, true)
        .setPreference(AlignSingleLineCaseStatements.MaxArrowIndent, 100)
        .setPreference(DoubleIndentClassDeclaration, true),

      // Git settings
      GitPlugin.autoImport.git.baseVersion := "0.7.0",

      // Header settings
      HeaderKey.headers := Map("scala" -> Apache2_0("2015", "<NAME>")),

      // Bintray settings
      BintrayKeys.bintrayPackage := "constructr"
    )
}<commit_msg>Add git.useGitDescribe to build (closes #33)<commit_after>import bintray.BintrayKeys
import com.typesafe.sbt.GitPlugin
import com.typesafe.sbt.SbtScalariform
import de.heikoseeberger.sbtheader.{ HeaderKey, HeaderPlugin }
import de.heikoseeberger.sbtheader.license.Apache2_0
import sbt._
import sbt.Keys._
import scalariform.formatter.preferences.{ AlignSingleLineCaseStatements, DoubleIndentClassDeclaration }

object Build extends AutoPlugin {

  override def requires = plugins.JvmPlugin && HeaderPlugin && GitPlugin

  override def trigger = allRequirements

  override def projectSettings =
    List(
      // Core settings
      organization := "de.heikoseeberger",
      licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0")),
      homepage := Some(url("https://github.com/hseeberger/constructr")),
      pomIncludeRepository := (_ => false),
      pomExtra := <scm>
                    <url>https://github.com/hseeberger/constructr</url>
                    <connection>scm:git:git@github.com:hseeberger/constructr.git</connection>
                  </scm>
                  <developers>
                    <developer>
                      <id>hseeberger</id>
                      <name><NAME></name>
                      <url>http://heikoseeberger.de</url>
                    </developer>
                  </developers>,
      scalaVersion := Version.Scala,
      crossScalaVersions := List(scalaVersion.value),
      scalacOptions ++= List(
        "-unchecked",
        "-deprecation",
        "-language:_",
        "-target:jvm-1.8",
        "-encoding", "UTF-8"
      ),
      unmanagedSourceDirectories.in(Compile) := List(scalaSource.in(Compile).value),
      unmanagedSourceDirectories.in(Test) := List(scalaSource.in(Test).value),

      // Scalariform settings
      SbtScalariform.autoImport.preferences := SbtScalariform.autoImport.preferences.value
        .setPreference(AlignSingleLineCaseStatements, true)
        .setPreference(AlignSingleLineCaseStatements.MaxArrowIndent, 100)
        .setPreference(DoubleIndentClassDeclaration, true),

      // Git settings
      GitPlugin.autoImport.git.useGitDescribe := true,

      // Header settings
      HeaderKey.headers := Map("scala" -> Apache2_0("2015", "<NAME>")),

      // Bintray settings
      BintrayKeys.bintrayPackage := "constructr"
    )
}
{'fraction_non_alphanumeric': 0.1223529411764706, 'fraction_numerical': 0.008770053475935829, 'mean_word_length': 2.650273224043716, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 43, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, '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': '3175523', 'n_tokens_mistral': 1407, 'n_tokens_neox': 1339, 'n_words': 207}