<commit_before>// include Fake lib
#r "packages/FAKE/tools/FakeLib.dll"

open Fake
open Fake.Paket

// Properties
let buildDir = "./build"
let releaseDir = buildDir @@ "release"
let testDir = buildDir @@ "test"
let deployDir = buildDir @@ "deploy"

// Targets
Target "Clean" (fun _ -> CleanDir buildDir)
Target "Default" (fun _ -> trace "Hello World from FAKE")
Target "BuildRelease" (fun _ -> 
    !!"*.sln"
    |> MSBuildRelease releaseDir "Build"
    |> Log "ReleaseBuild-Output")
Target "BuildDebug" (fun _ -> 
    !!"*.sln"
    |> MSBuildDebug testDir "Build"
    |> Log "DebugBuild-Output: ")
Target "Test" (fun _ -> 
    !!(testDir @@ "Test.dll") |> NUnit(fun p -> 
                                     { p with DisableShadowCopy = true
                                              OutputFile = testDir @@ "TestResults.xml" }))
Target "CreatePackage" (fun _ -> 
    Pack(fun p -> 
        { p with OutputPath = deployDir
                 TemplateFile = "Functional/Functional.paket.template"
                 WorkingDir = "Functional"
                 Version = GetAssemblyVersionString(releaseDir @@ "Pagansoft.Functional.dll")
                 ToolPath = ".paket/paket.exe" }))
// Dependencies
"Clean" ==> "BuildDebug" ==> "Test" ==> "BuildRelease" ==> "CreatePackage" ==> "Default"
// start build
RunTargetOrDefault "Default"
<commit_msg>Formatts build.fsx<commit_after>// include Fake lib
#r "packages/FAKE/tools/FakeLib.dll"

open Fake
open Fake.Paket

// Properties
let buildDir = "./build"
let releaseDir = buildDir @@ "release"
let testDir = buildDir @@ "test"
let deployDir = buildDir @@ "deploy"

// Targets
Target "Clean" (fun _ ->
  CleanDir buildDir
)

Target "Default" (fun _ ->
  trace "Build successful"
)

Target "BuildRelease" (fun _ ->
    !!"*.sln"
    |> MSBuildRelease releaseDir "Build"
    |> Log "ReleaseBuild-Output")

Target "BuildDebug" (fun _ ->
    !!"*.sln"
    |> MSBuildDebug testDir "Build"
    |> Log "DebugBuild-Output: ")

Target "Test" (fun _ ->
    !!(testDir @@ "Test.dll")
      |> NUnit(fun p ->
          { p with DisableShadowCopy = true
                   OutputFile = testDir @@ "TestResults.xml" }))

Target "CreatePackage" (fun _ ->
    Pack(fun p ->
        { p with OutputPath = deployDir
                 TemplateFile = "Functional/Functional.paket.template"
                 WorkingDir = "Functional"
                 Version = GetAssemblyVersionString(releaseDir @@ "Pagansoft.Functional.dll")
                 ToolPath = ".paket/paket.exe" }))

// Dependencies
"Clean"
  ==> "BuildDebug"
  ==> "Test"
  ==> "BuildRelease"
  ==> "CreatePackage"
  ==> "Default"

// start build
RunTargetOrDefault "Default"

{'fraction_non_alphanumeric': 0.145856767904012, 'fraction_numerical': 0.0, 'mean_word_length': 2.5573333333333332, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 39, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '697308', 'n_tokens_mistral': 861, 'n_tokens_neox': 829, 'n_words': 201}