<commit_before>#tool "nuget:?package=GitVersion.CommandLine"
var target = Argument("Target", "Default");
var nuGetApiKey = Argument("NuGetApiKey", "SET_API_KEY");
var buildDirectory = Directory("./bin");

Task("Clean")
  .Does(() => {
    CleanDirectory(buildDirectory);
  });

Task("Build")
  .IsDependentOn("Clean")
  .Does(() => {
    DownloadFile("http://download.red-gate.com/SQLCodeGuardCmdLine.zip", "./bin/SqlCodeGuard.zip");
    Unzip("./bin/SQLCodeGuard.zip", "./bin/SQLCodeGuard");
  });

Task("Package")
  .IsDependentOn("Build")
  .Does(() => {
    var version = GitVersion();
<commit_msg>Added version task for build server<commit_after>#tool "nuget:?package=GitVersion.CommandLine"
var target = Argument("Target", "Default");
var nuGetApiKey = Argument("NuGetApiKey", "SET_API_KEY");
var buildDirectory = Directory("./bin");

Task("Clean")
  .Does(() => {
    CleanDirectory(buildDirectory);
  });

Task("Version")
  .Does(() => {
    GitVersion(new GitVersionSettings { OutputType = GitVersionOutput.BuildServer});
  });

Task("Build")
  .IsDependentOn("Clean")
  .IsDependentOn("Version")
  .Does(() => {
    DownloadFile("http://download.red-gate.com/SQLCodeGuardCmdLine.zip", "./bin/SqlCodeGuard.zip");
    Unzip("./bin/SQLCodeGuard.zip", "./bin/SQLCodeGuard");
  });

Task("Package")
  .IsDependentOn("Build")
  .Does(() => {
    var version = GitVersion();

{'fraction_non_alphanumeric': 0.20319303338171263, 'fraction_numerical': 0.0, 'mean_word_length': 4.943965517241379, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1290296', 'n_tokens_mistral': 458, 'n_tokens_neox': 451, 'n_words': 70}