<commit_before>#I "packages/FAKE/tools/"
#r "FakeLib"

open Fake

let docDir = "./doc"
let resultsDir = "./results"
let docOutputDir = resultsDir @@ "Documentation"
let nugetTemp = "./nugetTemp/"

Target "Clean" (fun _ -> 
    CleanDirs [resultsDir; nugetTemp]
)

Target "Build" (fun _ ->
    !! "/**/*.sln"
    |> MSBuild resultsDir "Build" ["Configuration", "Testing"]
    |> Log "Build-Output (testing): "

    !! "/**/*.sln"
    |> MSBuildRelease "" "Build"
    |> Log "Build-Output (nuget): "
)

Target "FSharp.Tools Nuget" (fun _ ->
    
    let grahamInfo = !! @"/**/Graham.nuspec" |> Seq.exactlyOne
    let grahamInfo = (ReadFileAsString >> getNuspecProperties) grahamInfo
    
    let fsharpToolsNuget = !! "/**/Fsharp.Tools.nuspec" |> Seq.exactlyOne
    
    let nugetVersion = grahamInfo.Version
    let workingDir = nugetTemp @@ (filenameWithouExt fsharpToolsNuget)
    
    ensureDirectory (workingDir @@ "build")<commit_msg>Fixed another filename casing issue in the FAKE script.<commit_after>#I "packages/FAKE/tools/"
#r "FakeLib"

open Fake

let docDir = "./doc"
let resultsDir = "./results"
let docOutputDir = resultsDir @@ "Documentation"
let nugetTemp = "./nugetTemp/"

Target "Clean" (fun _ -> 
    CleanDirs [resultsDir; nugetTemp]
)

Target "Build" (fun _ ->
    !! "/**/*.sln"
    |> MSBuild resultsDir "Build" ["Configuration", "Testing"]
    |> Log "Build-Output (testing): "

    !! "/**/*.sln"
    |> MSBuildRelease "" "Build"
    |> Log "Build-Output (nuget): "
)

Target "FSharp.Tools Nuget" (fun _ ->
    
    let grahamInfo = !! @"/**/Graham.nuspec" |> Seq.exactlyOne
    let grahamInfo = (ReadFileAsString >> getNuspecProperties) grahamInfo
    
    let fsharpToolsNuget = !! "/**/FSharp.Tools.nuspec" |> Seq.exactlyOne
    
    let nugetVersion = grahamInfo.Version
    let workingDir = nugetTemp @@ (filenameWithouExt fsharpToolsNuget)
    
    ensureDirectory (workingDir @@ "build")
{'fraction_non_alphanumeric': 0.16006256517205422, 'fraction_numerical': 0.0, 'mean_word_length': 3.3613636363636363, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 25, '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': '3450522', 'n_tokens_mistral': 691, 'n_tokens_neox': 657, 'n_words': 149}