<commit_before>#tool nuget:?package=NUnit.ConsoleRunner&version=3.4.0
#tool "nuget:?package=vswhere"
//////////////////////////////////////////////////////////////////////
// ARGUMENTS
//////////////////////////////////////////////////////////////////////

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

//////////////////////////////////////////////////////////////////////
// PREPARATION
//////////////////////////////////////////////////////////////////////

// Define directories.
var buildDir = Directory(configuration);

//////////////////////////////////////////////////////////////////////
// TASKS
//////////////////////////////////////////////////////////////////////

Task("Clean")
    .Does(() =>
{
    CleanDirectories("./**/bin");
});

Task("Restore-NuGet-Packages")
    .Does(() =>
{
    NuGetRestore("./Draughts.sln");
});

Task("Build")
    .IsDependentOn("Restore-NuGet-Packages")
    .Does(() =>
{
    if(IsRunningOnWindows())
    {
		DirectoryPath vsLatest  = VSWhereLatest();
		FilePath msBuildPathX64 = (vsLatest==null)
								? null
								: vsLatest.CombineWithFilePath("./MSBuild/15.0/Bin/MSBuild.exe");

		MSBuild("Draughts.sln", new MSBuildSettings {
		Verbosity = Verbosity.Minimal,
		Configuration = configuration,
		PlatformTarget = PlatformTarget.MSIL,
		ToolPath = msBuildPathX64
		});
    }
});

Task("Run-Unit-Tests")
    .IsDependentOn("Build")
    .Does(() =>
{
    NUnit3($"./**/bin/{buildDir}/*.Tests.dll", new NUnit3Settings {
        NoResults = true
    });
});

Task("Train")
    .IsDependentOn("Build")
    .Does(() =>
{<commit_msg>Added msbuiold log line.<commit_after>#tool nuget:?package=NUnit.ConsoleRunner&version=3.4.0
#tool "nuget:?package=vswhere"
//////////////////////////////////////////////////////////////////////
// ARGUMENTS
//////////////////////////////////////////////////////////////////////

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

//////////////////////////////////////////////////////////////////////
// PREPARATION
//////////////////////////////////////////////////////////////////////

// Define directories.
var buildDir = Directory(configuration);

//////////////////////////////////////////////////////////////////////
// TASKS
//////////////////////////////////////////////////////////////////////

Task("Clean")
    .Does(() =>
{
    CleanDirectories("./**/bin");
});

Task("Restore-NuGet-Packages")
    .Does(() =>
{
    NuGetRestore("./Draughts.sln");
});

Task("Build")
    .IsDependentOn("Restore-NuGet-Packages")
    .Does(() =>
{
    if(IsRunningOnWindows())
    {

		DirectoryPath vsLatest  = VSWhereLatest();
		FilePath msBuildPathX64 = (vsLatest==null)
								? null
								: vsLatest.CombineWithFilePath("./MSBuild/15.0/Bin/MSBuild.exe");

		Information($"MS Build Path: {msBuildPathX64}");
		MSBuild("Draughts.sln", new MSBuildSettings {
		Verbosity = Verbosity.Minimal,
		Configuration = configuration,
		PlatformTarget = PlatformTarget.MSIL,
		ToolPath = msBuildPathX64
		});
    }
});

Task("Run-Unit-Tests")
    .IsDependentOn("Build")
    .Does(() =>
{
    NUnit3($"./**/bin/{buildDir}/*.Tests.dll", new NUnit3Settings {
        NoResults = true
    });
});

Task("Train")
    .IsDependentOn("Build")
    .Does(() =>
{
{'fraction_non_alphanumeric': 0.39050765995794534, 'fraction_numerical': 0.007810153199158907, 'mean_word_length': 1.4200581395348837, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '1613375', 'n_tokens_mistral': 969, 'n_tokens_neox': 893, 'n_words': 127}