<commit_before>// Author: <NAME> <<EMAIL>>

#r "build/FAKE/tools/FakeLib.dll"

open Fake

// Common directories
let rootDir = FileUtils.pwd()
let sourceDir = rootDir @@ "src"
let buildDir = rootDir @@ "build"
let outputDir = buildDir @@ "output"

Target "Clean" (fun _ ->
    // Does what it says on the tin.
    CleanDir outputDir
)

Target "Build" (fun _ ->
    // Find all solution files in the source folder or any subdirectory
    let solutions = !!(sourceDir @@ "**" @@ "*.sln")

    // Build all solutions, result is a list of file paths.
    let outputFiles = solutions |> MSBuildRelease outputDir "Build"

    // We do not use these file paths for anything, so just discard them.
    outputFiles |> ignore
)

"Clean" ==> "Build"

RunTargetOrDefault "Build"<commit_msg>Added test target to build script<commit_after>// Author: <NAME> <<EMAIL>>

#r "build/FAKE/tools/FakeLib.dll"

open Fake

// Common directories
let rootDir = FileUtils.pwd()
let sourceDir = rootDir @@ "src"
let buildDir = rootDir @@ "build"
let outputDir = buildDir @@ "output"

Target "Clean" (fun _ ->
    // Does what it says on the tin.
    CleanDir outputDir
)

Target "Build" (fun _ ->
    // Find all solution files in the source folder or any subdirectory
    let solutions = !!(sourceDir @@ "**" @@ "*.sln")

    // Build all solutions, result is a list of file paths.
    let outputFiles = solutions |> MSBuildRelease outputDir "Build"

    // We do not use these file paths for anything, so just discard them.
    outputFiles |> ignore
)

Target "Test" (fun _ ->
    !!(outputDir @@ "*.Tests.dll")
    |> FixieHelper.Fixie id
)

"Clean" ==> "Build" ==> "Test"

RunTargetOrDefault "Build"
{'fraction_non_alphanumeric': 0.1319402985074627, 'fraction_numerical': 0.0, 'mean_word_length': 3.286445012787724, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 22, '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': '2512517', 'n_tokens_mistral': 546, 'n_tokens_neox': 525, 'n_words': 192}