<commit_before>var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
var buildDir = Directory("msgpack/bin/net452");

Task("Clean").Does(() => { CleanDirectory(buildDir); });

Task("Restore-NuGet-Packages").IsDependentOn("Clean").Does(() => { NuGetRestore("msgpack/MsgPack.sln"); });

Task("Build").IsDependentOn("Restore-NuGet-Packages").Does(() =>
{
 if(IsRunningOnWindows())
 {
  MSBuild("msgpack/MsgPack.sln", settings => settings.SetConfiguration(configuration).WithTarget("MsgPack_NET45:Rebuild"));
 }
 else
 {
  XBuild("msgpack/MsgPack.sln", settings => settings.SetConfiguration(configuration).WithTarget("MsgPack_NET45:Rebuild"));
 }
});

Task("Pack").IsDependentOn("Build").Does(() =>
{
 var nuGetPackSettings   = new NuGetPackSettings
 {
  BasePath = "msgpack",
 };
 NuGetPack("msgpack/MsgPack.nuspec", nuGetPackSettings);
});

Task("Patch").Does(() =>
{
 var settings=new ProcessSettings()
 {
  WorkingDirectory = new DirectoryPath("msgpack"),
  Arguments = new ProcessArgumentBuilder().Append("-p1").Append("-i").Append("../msgpack-nuspec.patch"),
 };
<commit_msg>msgpack build example: fix cake build script for windows<commit_after>var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
var buildDir = Directory("msgpack/bin/net452");

Task("Clean").Does(() => { CleanDirectory(buildDir); });

Task("Restore-NuGet-Packages").IsDependentOn("Clean").Does(() => { NuGetRestore("msgpack/MsgPack.sln"); });

Task("Build").IsDependentOn("Restore-NuGet-Packages").Does(() =>
{
 if(IsRunningOnWindows())
 {
  MSBuild("msgpack/MsgPack.sln", settings => settings.SetConfiguration(configuration).WithTarget("src\\_NET45\\MsgPack_Net45:Rebuild"));
 }
 else
 {
  XBuild("msgpack/MsgPack.sln", settings => settings.SetConfiguration(configuration).WithTarget("MsgPack_NET45:Rebuild"));
 }
});

Task("Pack").IsDependentOn("Build").Does(() =>
{
 var nuGetPackSettings   = new NuGetPackSettings
 {
  BasePath = "msgpack",
 };
 NuGetPack("msgpack/MsgPack.nuspec", nuGetPackSettings);
});

Task("Patch").Does(() =>
{
 var settings=new ProcessSettings()
 {
  WorkingDirectory = new DirectoryPath("msgpack"),
  Arguments = new ProcessArgumentBuilder().Append("-p1").Append("-i").Append("../msgpack-nuspec.patch"),
 };

{'fraction_non_alphanumeric': 0.19731136166522117, 'fraction_numerical': 0.007805724197745013, 'mean_word_length': 6.873720136518771, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '620229', 'n_tokens_mistral': 730, 'n_tokens_neox': 714, 'n_words': 94}