<commit_before>#addin nuget:?package=NuGet.Core&version=2.12.0
#addin "Cake.ExtendedNuGet"

var MyGetKey = EnvironmentVariable("MYGET_KEY");
string BuildNumber = EnvironmentVariable("TRAVIS_BUILD_NUMBER");

Task("Restore")
    .Does(() =>
{
    var settings = new DotNetCoreRestoreSettings
    {
        Sources = new[] { "https://www.myget.org/F/discord-net/api/v2", "https://www.nuget.org/api/v2" }
    };
    DotNetCoreRestore(settings);
});
Task("CodeGen")
    .Does(() =>
{
    using (var process = StartAndReturnProcess("python3", new ProcessSettings { Arguments = "generator.py" }))
    {
        process.WaitForExit();
        var code = process.GetExitCode();
        if (code != 0)
        {
            throw new Exception(string.Format("Code Generation script failed! Exited {0}", code));
        }
    }
});
Task("Build")
    .Does(() =>
{
    var suffix = BuildNumber.PadLeft(5,'0');
    var settings = new DotNetCorePackSettings
    {
        Configuration = "Release",
        OutputDirectory = "./artifacts/",
        VersionSuffix = suffix
    };
    DotNetCorePack("./src/Discord.Addons.InteractiveCommands/", settings);
});
Task("Test")
    .Does(() =>
{
    DotNetCoreTest("./test/");
});
Task("Deploy")
    .Does(() =>
{
    var settings = new NuGetPushSettings
    {
        Source = "https://www.myget.org/F/discord-net/api/v2/package",
        ApiKey = MyGetKey
    };
    var packages = GetFiles("./artifacts/*.nupkg");
    NuGetPush(packages, settings);
});

Task("Default")
    .IsDependentOn("Restore")
    .IsDependentOn("CodeGen")
    .IsDependentOn("Build")
    .IsDependentOn("Test")
    .IsDependentOn("Deploy")
    .Does(() => 
{
    Information("Build Succeeded");
});

RunTarget("Default");<commit_msg>Fix typo from copy-pasted build template<commit_after>#addin nuget:?package=NuGet.Core&version=2.12.0
#addin "Cake.ExtendedNuGet"

var MyGetKey = EnvironmentVariable("MYGET_KEY");
string BuildNumber = EnvironmentVariable("TRAVIS_BUILD_NUMBER");

Task("Restore")
    .Does(() =>
{
    var settings = new DotNetCoreRestoreSettings
    {
        Sources = new[] { "https://www.myget.org/F/discord-net/api/v2", "https://www.nuget.org/api/v2" }
    };
    DotNetCoreRestore(settings);
});
Task("CodeGen")
    .Does(() =>
{
    using (var process = StartAndReturnProcess("python3", new ProcessSettings { Arguments = "generator.py" }))
    {
        process.WaitForExit();
        var code = process.GetExitCode();
        if (code != 0)
        {
            throw new Exception(string.Format("Code Generation script failed! Exited {0}", code));
        }
    }
});
Task("Build")
    .Does(() =>
{
    var suffix = BuildNumber.PadLeft(5,'0');
    var settings = new DotNetCorePackSettings
    {
        Configuration = "Release",
        OutputDirectory = "./artifacts/",
        VersionSuffix = suffix
    };
    DotNetCorePack("./src/Discord.Addons.EmojiTools/", settings);
});
Task("Test")
    .Does(() =>
{
    DotNetCoreTest("./test/");
});
Task("Deploy")
    .Does(() =>
{
    var settings = new NuGetPushSettings
    {
        Source = "https://www.myget.org/F/discord-net/api/v2/package",
        ApiKey = MyGetKey
    };
    var packages = GetFiles("./artifacts/*.nupkg");
    NuGetPush(packages, settings);
});

Task("Default")
    .IsDependentOn("Restore")
    .IsDependentOn("CodeGen")
    .IsDependentOn("Build")
    .IsDependentOn("Test")
    .IsDependentOn("Deploy")
    .Does(() => 
{
    Information("Build Succeeded");
});

RunTarget("Default");
{'fraction_non_alphanumeric': 0.17362700228832953, 'fraction_numerical': 0.006864988558352402, 'mean_word_length': 3.071012805587893, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 6, 'lorem ipsum': 0, 'www.': 6, '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': '7334513', 'n_tokens_mistral': 1172, 'n_tokens_neox': 1149, 'n_words': 188}