<commit_before>var target = Argument("target", "Default");
var testFailed = false;
var solutionDir = System.IO.Directory.GetCurrentDirectory();
var testResultDir = System.IO.Path.Combine(solutionDir, "test-results");
var artifactDir = "./artifacts";

Information("Solution Directory: {0}", solutionDir);
Information("Test Results Directory: {0}", testResultDir);

Task("PrepareDirectories")
	.Does(() =>
	{
		EnsureDirectoryExists(testResultDir);
		EnsureDirectoryExists(artifactDir);
	});

Task("Clean")
	.IsDependentOn("PrepareDirectories")
	.Does(() =>
	{
		CleanDirectory(testResultDir);
		CleanDirectory(artifactDir);

		var binDirs = GetDirectories("./**/bin");
		var objDirs = GetDirectories("./**/obj");
		var testResDirs = GetDirectories("./**/TestResults");
		
		DeleteDirectories(binDirs, true);
		DeleteDirectories(objDirs, true);
		DeleteDirectories(testResDirs, true);
	});

Task("Restore")
	.Does(() =>
	{
		Exception exception = null;
		
		// We have to retry the restore a few
		// times since on docker it does not work 
		// on the first time :(

		for(var i = 0; i < 5; i++)
		{
			try
			{
				exception = null;
				DotNetCoreRestore();	  
			}
			catch(Exception e)
			{
				exception = e;
				continue;
			}

			break;
		}<commit_msg>Fixed wrong test folder name<commit_after>var target = Argument("target", "Default");
var testFailed = false;
var solutionDir = System.IO.Directory.GetCurrentDirectory();
var testResultDir = System.IO.Path.Combine(solutionDir, "test-results");
var artifactDir = "./artifacts";

Information("Solution Directory: {0}", solutionDir);
Information("Test Results Directory: {0}", testResultDir);

Task("PrepareDirectories")
	.Does(() =>
	{
		EnsureDirectoryExists(testResultDir);
		EnsureDirectoryExists(artifactDir);
	});

Task("Clean")
	.IsDependentOn("PrepareDirectories")
	.Does(() =>
	{
		CleanDirectory(testResultDir);
		CleanDirectory(artifactDir);

		var binDirs = GetDirectories("./**/bin");
		var objDirs = GetDirectories("./**/obj");
		var testResDirs = GetDirectories("./**/test-results");
		
		DeleteDirectories(binDirs, true);
		DeleteDirectories(objDirs, true);
		DeleteDirectories(testResDirs, true);
	});

Task("Restore")
	.Does(() =>
	{
		Exception exception = null;
		
		// We have to retry the restore a few
		// times since on docker it does not work 
		// on the first time :(

		for(var i = 0; i < 5; i++)
		{
			try
			{
				exception = null;
				DotNetCoreRestore();	  
			}
			catch(Exception e)
			{
				exception = e;
				continue;
			}

			break;
		}
{'fraction_non_alphanumeric': 0.15217391304347827, 'fraction_numerical': 0.0031620553359683794, 'mean_word_length': 4.082329317269076, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '1277824', 'n_tokens_mistral': 932, 'n_tokens_neox': 806, 'n_words': 186}