<commit_before>var managedDll = Directory("./tests/managed/generic/bin") + Directory(configuration) + File("managed.dll");

/// ---------------------------
/// Managed test projects
/// ---------------------------

Task("Build-Managed")
    .IsDependentOn("Clean")
    .IsDependentOn("NuGet-Restore")
    .Does(() =>
    {
        MSBuild("./tests/managed/generic/managed-generic.csproj", settings =>
            settings.SetConfiguration(configuration).SetVerbosity(Verbosity.Minimal));
    });

Task("Build-Android")
    .IsDependentOn("Clean")
    .IsDependentOn("NuGet-Restore")
    .Does(() =>
    {
        MSBuild("./tests/managed/android/managed-android.csproj", settings =>
            settings.SetConfiguration(configuration).SetPlatformTarget(PlatformTarget.MSIL).SetVerbosity(Verbosity.Minimal));
    });

Task("Build-FSharp-Android")
    .IsDependentOn("Clean")
    .IsDependentOn("NuGet-Restore")
    .Does(() =>
    {
        MSBuild("./tests/managed/fsharp-android/fsharp-android.fsproj", settings =>
            settings.SetConfiguration(configuration).SetPlatformTarget(PlatformTarget.MSIL).SetVerbosity(Verbosity.Minimal));
    });

Task("Build-PCL")
    .IsDependentOn("Clean")
    .IsDependentOn("NuGet-Restore")
    .Does(() =>
    {
        MSBuild("./tests/managed/pcl/managed-pcl.csproj", settings =>
            settings.SetConfiguration(configuration).SetPlatformTarget(PlatformTarget.MSIL).SetVerbosity(Verbosity.Minimal));
    });

Task("Build-NetStandard")
    .IsDependentOn("Clean")
    .IsDependentOn("NuGet-Restore")
    .Does(() =>
    {
        var project = "./tests/managed/netstandard/managed-netstandard.csproj";
        DotNetCoreRestore(project);
        MSBuild(project, settings => settings.SetConfiguration(configuration).SetPlatformTarget(PlatformTarget.MSIL).SetVerbosity(Verbosity.Minimal));
    });

Task("Build-CSharp-Tests")
    .IsDependentOn("Build-Binder")
    .IsDependentOn("Build-Managed")
    .Does(() =>
    {
        MSBuild("./tests/MonoEmbeddinator4000.Tests/MonoEmbeddinator4000.Tests.csproj", settings => settings.SetConfiguration(configuration).SetVerbosity(Verbosity.Minimal));
    });

Task("Run-CSharp-Tests")
    .IsDependentOn("Build-CSharp-Tests")
    .Does(() =>
    {
        NUnit3($"./tests/MonoEmbeddinator4000.Tests/bin/{configuration}/MonoEmbeddinator4000.Tests.dll", new NUnit3Settings
        {
            NoResults = true
        });
    });

/// ---------------------------
/// C tests
/// ---------------------------

var commonDir = Directory("./tests/common");
var mkDir = commonDir + Directory("mk");

Task("Generate-C")
    .IsDependentOn("Build-Binder")
    .IsDependentOn("Build-Managed")
    .Does(() =>
    {
        var platform = IsRunningOnWindows() ? "Windows" : "macOS";
        var output = commonDir + Directory("c");
        Exec(embeddinator, $"-gen=c -out={output} -platform={platform} -compile -target=shared {managedDll}");
    });

Task("Build-C-Tests")
    .IsDependentOn("Generate-C")
    .Does(() =>
    {
        // Generate native project build files using Premake.
        var os = IsRunningOnWindows() ? "--os=windows" : "--os=macosx";
        var action = IsRunningOnWindows() ? "vs2015" : "gmake";
        Premake(commonDir + File("premake5.lua"), os, action);
<commit_msg>[tests] Add extra verbosity to C tests compilation.<commit_after>var managedDll = Directory("./tests/managed/generic/bin") + Directory(configuration) + File("managed.dll");

/// ---------------------------
/// Managed test projects
/// ---------------------------

Task("Build-Managed")
    .IsDependentOn("Clean")
    .IsDependentOn("NuGet-Restore")
    .Does(() =>
    {
        MSBuild("./tests/managed/generic/managed-generic.csproj", settings =>
            settings.SetConfiguration(configuration).SetVerbosity(Verbosity.Minimal));
    });

Task("Build-Android")
    .IsDependentOn("Clean")
    .IsDependentOn("NuGet-Restore")
    .Does(() =>
    {
        MSBuild("./tests/managed/android/managed-android.csproj", settings =>
            settings.SetConfiguration(configuration).SetPlatformTarget(PlatformTarget.MSIL).SetVerbosity(Verbosity.Minimal));
    });

Task("Build-FSharp-Android")
    .IsDependentOn("Clean")
    .IsDependentOn("NuGet-Restore")
    .Does(() =>
    {
        MSBuild("./tests/managed/fsharp-android/fsharp-android.fsproj", settings =>
            settings.SetConfiguration(configuration).SetPlatformTarget(PlatformTarget.MSIL).SetVerbosity(Verbosity.Minimal));
    });

Task("Build-PCL")
    .IsDependentOn("Clean")
    .IsDependentOn("NuGet-Restore")
    .Does(() =>
    {
        MSBuild("./tests/managed/pcl/managed-pcl.csproj", settings =>
            settings.SetConfiguration(configuration).SetPlatformTarget(PlatformTarget.MSIL).SetVerbosity(Verbosity.Minimal));
    });

Task("Build-NetStandard")
    .IsDependentOn("Clean")
    .IsDependentOn("NuGet-Restore")
    .Does(() =>
    {
        var project = "./tests/managed/netstandard/managed-netstandard.csproj";
        DotNetCoreRestore(project);
        MSBuild(project, settings => settings.SetConfiguration(configuration).SetPlatformTarget(PlatformTarget.MSIL).SetVerbosity(Verbosity.Minimal));
    });

Task("Build-CSharp-Tests")
    .IsDependentOn("Build-Binder")
    .IsDependentOn("Build-Managed")
    .Does(() =>
    {
        MSBuild("./tests/MonoEmbeddinator4000.Tests/MonoEmbeddinator4000.Tests.csproj", settings => settings.SetConfiguration(configuration).SetVerbosity(Verbosity.Minimal));
    });

Task("Run-CSharp-Tests")
    .IsDependentOn("Build-CSharp-Tests")
    .Does(() =>
    {
        NUnit3($"./tests/MonoEmbeddinator4000.Tests/bin/{configuration}/MonoEmbeddinator4000.Tests.dll", new NUnit3Settings
        {
            NoResults = true
        });
    });

/// ---------------------------
/// C tests
/// ---------------------------

var commonDir = Directory("./tests/common");
var mkDir = commonDir + Directory("mk");

Task("Generate-C")
    .IsDependentOn("Build-Binder")
    .IsDependentOn("Build-Managed")
    .Does(() =>
    {
        var platform = IsRunningOnWindows() ? "Windows" : "macOS";
        var output = commonDir + Directory("c");
        Exec(embeddinator, $"-gen=c -out={output} -platform={platform} -compile -target=shared -verbose {managedDll}");
    });

Task("Build-C-Tests")
    .IsDependentOn("Generate-C")
    .Does(() =>
    {
        // Generate native project build files using Premake.
        var os = IsRunningOnWindows() ? "--os=windows" : "--os=macosx";
        var action = IsRunningOnWindows() ? "vs2015" : "gmake";
        Premake(commonDir + File("premake5.lua"), os, action);

{'fraction_non_alphanumeric': 0.1960428938226854, 'fraction_numerical': 0.006947590998338619, 'mean_word_length': 2.916026020106446, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 33, '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': '6766258', 'n_tokens_mistral': 2085, 'n_tokens_neox': 1989, 'n_words': 238}