<commit_before>#tool "nuget:?package=GitVersion.CommandLine"

//////////////////////////////////////////////////////////////////////
// CONFIGURATIONS
//////////////////////////////////////////////////////////////////////

var versionPropsTemplate = "./Version.props.template";
var versionProps = "./../Version.props";
var sln = "SAHB.GraphQL.Client.sln";

//////////////////////////////////////////////////////////////////////
// ARGUMENTS
//////////////////////////////////////////////////////////////////////

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

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

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

GitVersion versionInfo = null;
Task("Version")
    .Does(() => 
{
	GitVersion(new GitVersionSettings{
		UpdateAssemblyInfo = false,
		OutputType = GitVersionOutput.BuildServer,
		WorkingDirectory = "."
	});
	versionInfo = GitVersion(new GitVersionSettings{
		UpdateAssemblyInfo = false,
		OutputType = GitVersionOutput.Json,
		WorkingDirectory = "."
	});
		
	// Update version
	var updatedVersionProps = System.IO.File.ReadAllText(versionPropsTemplate)
		.Replace("1.0.0", versionInfo.NuGetVersion);

	System.IO.File.WriteAllText(versionProps, updatedVersionProps);
});

Task("Restore-NuGet-Packages")
    .Does(() =><commit_msg>Fixed paths<commit_after>#tool "nuget:?package=GitVersion.CommandLine"

//////////////////////////////////////////////////////////////////////
// CONFIGURATIONS
//////////////////////////////////////////////////////////////////////

var versionPropsTemplate = "./Version.props.template";
var versionProps = "./Version.props";
var sln = "SAHB.GraphQL.Client.sln";

//////////////////////////////////////////////////////////////////////
// ARGUMENTS
//////////////////////////////////////////////////////////////////////

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

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

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

GitVersion versionInfo = null;
Task("Version")
    .Does(() => 
{
	GitVersion(new GitVersionSettings{
		UpdateAssemblyInfo = false,
		OutputType = GitVersionOutput.BuildServer,
		WorkingDirectory = "."
	});
	versionInfo = GitVersion(new GitVersionSettings{
		UpdateAssemblyInfo = false,
		OutputType = GitVersionOutput.Json,
		WorkingDirectory = "."
	});
		
	// Update version
	var updatedVersionProps = System.IO.File.ReadAllText(versionPropsTemplate)
		.Replace("1.0.0", versionInfo.NuGetVersion);

	System.IO.File.WriteAllText(versionProps, updatedVersionProps);
});

Task("Restore-NuGet-Packages")
    .Does(() =>
{'fraction_non_alphanumeric': 0.39349952666456295, 'fraction_numerical': 0.0018933417481855476, 'mean_word_length': 1.5218774860779634, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3452159', 'n_tokens_mistral': 789, 'n_tokens_neox': 746, 'n_words': 119}