<commit_before>include "support_funcs.boo"



solution = "MarkEmbling.Utils.sln"

configuration = "release"

test_assembly = "MarkEmbling.Utils.Tests/bin/${configuration}/MarkEmbling.Utils.Tests.dll"

bin_path = "build/bin"

package_path = "build/nuget"



target default, (compile, test, prep):

  pass



desc "Compiles the solution"

target compile:

  msbuild(file: solution, configuration: configuration, version: "4.0")



desc "Executes the tests"

target test, (compile):

  with nunit(assembly: test_assembly, toolPath: "packages/NUnit.Runners.2.6.2/tools/nunit-console.exe")

  

desc "Copies the binaries to the 'build/bin' directory"

target prep, (compile, test):

  rmdir(bin_path)

  

  with FileList("MarkEmbling.Utils/bin/${configuration}"):

    .Include("*.{dll,exe,config}")

    .ForEach def(file):

      file.CopyToDirectory(bin_path)



  with FileList("MarkEmbling.Utils.Forms/bin/${configuration}"):

    .Include("*.{dll,exe,config}")

    .ForEach def(file):

      file.CopyToDirectory(bin_path)



desc "Creates the NuGet packages"

target package, (prep):

  with nuget_pack():

    .toolPath = "packages/NuGet.CommandLine.2.6.1/tools/NuGet.exe"

    .nuspecFile = "build/nuget/MarkEmbling.Utils.nuspec"

    .outputDirectory = package_path



  with nuget_pack():

    .toolPath = "packages/NuGet.CommandLine.2.6.1/tools/NuGet.exe"

    .nuspecFile = "build/nuget/MarkEmbling.Utils.Forms.nuspec"

    .outputDirectory = package_path



desc "Publishes the NuGet packages"

target publish, (package):

  api_key = read_nuget_api_key()

  

  with FileList(package_path):

    .Include("*.nupkg")

    .ForEach def(file):

      filename = Path.GetFileName(file.FullName)

      if prompt("Publish ${filename}...?"):

        with nuget_push():

          .toolPath =  "packages/NuGet.CommandLine.2.6.1/tools/NuGet.exe"

          .packagePath = file.FullName

          .apiKey = api_key

<commit_msg>Delete all old .nupkg files before generating new ones<commit_after>include "support_funcs.boo"



solution = "MarkEmbling.Utils.sln"

configuration = "release"

test_assembly = "MarkEmbling.Utils.Tests/bin/${configuration}/MarkEmbling.Utils.Tests.dll"

bin_path = "build/bin"

package_path = "build/nuget"



target default, (compile, test, prep):

  pass



desc "Compiles the solution"

target compile:

  msbuild(file: solution, configuration: configuration, version: "4.0")



desc "Executes the tests"

target test, (compile):

  with nunit(assembly: test_assembly, toolPath: "packages/NUnit.Runners.2.6.2/tools/nunit-console.exe")

  

desc "Copies the binaries to the 'build/bin' directory"

target prep, (compile, test):

  rmdir(bin_path)

  

  with FileList("MarkEmbling.Utils/bin/${configuration}"):

    .Include("*.{dll,exe,config}")

    .ForEach def(file):

      file.CopyToDirectory(bin_path)



  with FileList("MarkEmbling.Utils.Forms/bin/${configuration}"):

    .Include("*.{dll,exe,config}")

    .ForEach def(file):

      file.CopyToDirectory(bin_path)



desc "Creates the NuGet packages"

target package, (prep):

  with FileList(package_path):

    .Include("*.nupkg")

    .ForEach def(file):

      file.Delete()



  with nuget_pack():

    .toolPath = "packages/NuGet.CommandLine.2.6.1/tools/NuGet.exe"

    .nuspecFile = "build/nuget/MarkEmbling.Utils.nuspec"

    .outputDirectory = package_path



  with nuget_pack():

    .toolPath = "packages/NuGet.CommandLine.2.6.1/tools/NuGet.exe"

    .nuspecFile = "build/nuget/MarkEmbling.Utils.Forms.nuspec"

    .outputDirectory = package_path



desc "Publishes the NuGet packages"

target publish, (package):

  api_key = read_nuget_api_key()

  

  with FileList(package_path):

    .Include("*.nupkg")

    .ForEach def(file):

      filename = Path.GetFileName(file.FullName)

      if prompt("Publish ${filename}...?"):

        with nuget_push():

          .toolPath =  "packages/NuGet.CommandLine.2.6.1/tools/NuGet.exe"

          .packagePath = file.FullName

          .apiKey = api_key


{'fraction_non_alphanumeric': 0.5631227140875268, 'fraction_numerical': 0.0035313406482532475, 'mean_word_length': 7.772123893805309, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3254407', 'n_tokens_mistral': 7862, 'n_tokens_neox': 7861, 'n_words': 252}