<commit_before>#tool nuget:?package=GitVersion.CommandLine&version=3.6.2
#load "./scripts/version.cake"
#load "./scripts/msbuild.cake"
#load "./scripts/appveyor.cake"

var configuration = Argument("configuration", "Release");
var target = Argument("target", "Default");

var ci = AppVeyorSettings.Initialize(Context);
var version = BuildVersion.Calculate(Context, ci);
var settings = MSBuildHelper.CreateSettings(version);

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

Task("Restore")
    .IsDependentOn("Clean")
    .Does(() =>
{
    DotNetCoreRestore("./src/Spectre.CommandLine.sln");
});

Task("Build")
    .IsDependentOn("Restore")
    .Does(() =>
{
    DotNetCoreBuild("./src/Spectre.CommandLine.sln", new DotNetCoreBuildSettings {
        Configuration = "Release",
        MSBuildSettings = settings
    });
});

Task("Run-Tests")
    .IsDependentOn("Build")
    .Does(() =>
{
    DotNetCoreTest("./src/Spectre.CommandLine.Tests/Spectre.CommandLine.Tests.csproj", new DotNetCoreTestSettings {
        Configuration = "Release"
    });
});

Task("Package")
    .IsDependentOn("Run-Tests")
    .Does(() =>
{
    DotNetCorePack("./src/Spectre.CommandLine/Spectre.CommandLine.csproj", new DotNetCorePackSettings {
        Configuration = "Release",
        OutputDirectory = "./.artifacts",
        MSBuildSettings = settings
    });
});

Task("Upload-AppVeyor-Artifacts")
    .WithCriteria(() => ci.IsRunningOnAppVeyor)
    .Does(() => 
{
    AppVeyor.UploadArtifact(
        new FilePath($"./artifactsSpectre.CommandLine.{version.SemVersion}.nupk")
    );
});

Task("Default")
    .IsDependentOn("Package");

Task("AppVeyor")
    .IsDependentOn("Upload-AppVeyor-Artifacts");

RunTarget(target);<commit_msg>(build) fixed artifact link.<commit_after>#tool nuget:?package=GitVersion.CommandLine&version=3.6.2
#load "./scripts/version.cake"
#load "./scripts/msbuild.cake"
#load "./scripts/appveyor.cake"

var configuration = Argument("configuration", "Release");
var target = Argument("target", "Default");

var ci = AppVeyorSettings.Initialize(Context);
var version = BuildVersion.Calculate(Context, ci);
var settings = MSBuildHelper.CreateSettings(version);

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

Task("Restore")
    .IsDependentOn("Clean")
    .Does(() =>
{
    DotNetCoreRestore("./src/Spectre.CommandLine.sln");
});

Task("Build")
    .IsDependentOn("Restore")
    .Does(() =>
{
    DotNetCoreBuild("./src/Spectre.CommandLine.sln", new DotNetCoreBuildSettings {
        Configuration = "Release",
        MSBuildSettings = settings
    });
});

Task("Run-Tests")
    .IsDependentOn("Build")
    .Does(() =>
{
    DotNetCoreTest("./src/Spectre.CommandLine.Tests/Spectre.CommandLine.Tests.csproj", new DotNetCoreTestSettings {
        Configuration = "Release"
    });
});

Task("Package")
    .IsDependentOn("Run-Tests")
    .Does(() =>
{
    DotNetCorePack("./src/Spectre.CommandLine/Spectre.CommandLine.csproj", new DotNetCorePackSettings {
        Configuration = "Release",
        OutputDirectory = "./.artifacts",
        MSBuildSettings = settings
    });
});

Task("Upload-AppVeyor-Artifacts")
    .WithCriteria(() => ci.IsRunningOnAppVeyor)
    .Does(() => 
{
    AppVeyor.UploadArtifact(
        new FilePath($"./artifacts/Spectre.CommandLine.{version.SemVersion}.nupk")
    );
});

Task("Default")
    .IsDependentOn("Package");

Task("AppVeyor")
    .IsDependentOn("Upload-AppVeyor-Artifacts");

RunTarget(target);
{'fraction_non_alphanumeric': 0.17744705208929593, 'fraction_numerical': 0.0017172295363480253, 'mean_word_length': 3.9786324786324787, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '40742', 'n_tokens_mistral': 1173, 'n_tokens_neox': 1131, 'n_words': 152}