<commit_before>﻿// To create the bootstrapper, from within powershell run the following.
// Invoke-WebRequest http://cakebuild.net/bootstrapper/windows -OutFile build.ps1
//
// To execute, run the following within powershell
// ./Build.ps1 -Target "build"

#Addin "Cake.StyleCop"

// When debugging, use instead of the #Addin above.
// Note: VS Build often leaves additional dlls in the /bin/* directory that Stylecop errors when attempting to load. Delete these as necessary.
// #r "Cake.Stylecop/bin/Release/Cake.StyleCop.dll"

const string Configuration = "Release";

    var target = Argument("target", "Build");
    var nugetApiKey = Argument<string>("nugetApi", EnvironmentVariable("NugetApiKey"));
    var nugetSource = Argument<string>("nugetSource", null); // nuget.org

    var solutionFile = File("./Cake.StyleCop.sln");
    var artifactsDir = Directory("./artifacts");
    var nupkgDestDir = artifactsDir + Directory("nuget-package");
    var stylecopResultsDir = artifactsDir + Directory("stylecop");
    var stylecopReportsDir = stylecopResultsDir + Directory("stylecop-reports");


    Task("Clean")
    .Does(() => {
        CleanDirectories(new DirectoryPath[] {
            artifactsDir,
            nupkgDestDir,
            stylecopResultsDir,
            stylecopReportsDir
        });

		try {
			CleanDirectories("./**/bin/**");
		} catch (Exception exception) {
			Warning("Failed to clean one or more directories.");
		}

    });

    Task("Build")
    .IsDependentOn("Clean")<commit_msg>Add publish url.<commit_after>﻿// To create the bootstrapper, from within powershell run the following.
// Invoke-WebRequest http://cakebuild.net/bootstrapper/windows -OutFile build.ps1
//
// To execute, run the following within powershell
// ./Build.ps1 -Target "build"

#Addin "Cake.StyleCop"

// When debugging, use instead of the #Addin above.
// Note: VS Build often leaves additional dlls in the /bin/* directory that Stylecop errors when attempting to load. Delete these as necessary.
// #r "Cake.Stylecop/bin/Release/Cake.StyleCop.dll"

const string Configuration = "Release";

    var target = Argument("target", "Build");
    var nugetApiKey = Argument<string>("nugetApi", EnvironmentVariable("NugetApiKey"));
    var nugetSource = Argument<string>("nugetSource", "https://www.nuget.org/api/v2/package");

    var solutionFile = File("./Cake.StyleCop.sln");
    var artifactsDir = Directory("./artifacts");
    var nupkgDestDir = artifactsDir + Directory("nuget-package");
    var stylecopResultsDir = artifactsDir + Directory("stylecop");
    var stylecopReportsDir = stylecopResultsDir + Directory("stylecop-reports");


    Task("Clean")
    .Does(() => {
        CleanDirectories(new DirectoryPath[] {
            artifactsDir,
            nupkgDestDir,
            stylecopResultsDir,
            stylecopReportsDir
        });

		try {
			CleanDirectories("./**/bin/**");
		} catch (Exception exception) {
			Warning("Failed to clean one or more directories.");
		}

    });

    Task("Build")
    .IsDependentOn("Clean")
{'fraction_non_alphanumeric': 0.1318032786885246, 'fraction_numerical': 0.001639344262295082, 'mean_word_length': 3.434593023255814, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, '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': '7500674', 'n_tokens_mistral': 917, 'n_tokens_neox': 864, 'n_words': 232}