<commit_before>// include Fake libs
#I "tools\FAKE"
#r "FakeLib.dll"

open Fake

// Directories
let buildDir  = @".\build\"
let testDir   = @".\test\"
let deployDir = @".\deploy\"

// tools
let nunitPath = @".\Tools\NUnit"
let fxCopRoot = @".\Tools\FxCop\FxCopCmd.exe"

// Filesets
let appReferences  = 
    !+ @"src\app\**\*.csproj" 
      ++ @"src\app\**\*.fsproj" 
        |> Scan

let testReferences = 
    !+ @"src\app\**\*.csproj" 
      ++ @"src\app\**\*.fsproj" 
        |> Scan

// version info
let version = "0.2"  // or retrieve from CI server

// Targets
Target? Clean <-
    fun _ -> CleanDirs [buildDir; testDir; deployDir]

Target? BuildApp <-
    fun _ -> 
        AssemblyInfo 
          (fun p -> 
            {p with
              CodeLanguage = CSharp;
              AssemblyVersion = version;
              AssemblyTitle = "Calculator library";
              AssemblyDescription = "Sample project for FAKE - F# MAKE";
              Guid = "EE5621DB-B86B-44eb-987F-9C94BCC98441";
              OutputFileName = @".\src\app\CalculatorLib\Properties\AssemblyInfo.cs"})          
      
        // compile all projects below src\app\
        MSBuildRelease buildDir "Build" appReferences
          |> Log "AppBuild-Output: "

Target? BuildTest <-
    fun _ -> 
        MSBuildDebug testDir "Build" testReferences
          |> Log "TestBuild-Output: "

Target? NUnitTest <-
    fun _ ->  
        !+ (testDir + @"\*.dll") 
          |> Scan
          |> NUnit (fun p -> 
                {p with 
                    ToolPath = nunitPath; 
                    DisableShadowCopy = true; 
                    OutputFile = testDir + @"TestResults.xml"})

Target? Deploy <-
    fun _ ->
        !+ (buildDir + "\**\*.*") 
          -- "*.zip" 
          |> Scan
          |> Zip buildDir (deployDir + "Calculator." + version + ".zip")
<commit_msg>testReferences = appReferences<commit_after>// include Fake libs
#I "tools\FAKE"
#r "FakeLib.dll"

open Fake

// Directories
let buildDir  = @".\build\"
let testDir   = @".\test\"
let deployDir = @".\deploy\"

// tools
let nunitPath = @".\Tools\NUnit"
let fxCopRoot = @".\Tools\FxCop\FxCopCmd.exe"

// Filesets
let appReferences  = 
    !+ @"src\app\**\*.csproj" 
      ++ @"src\app\**\*.fsproj" 
        |> Scan

// version info
let version = "0.2"  // or retrieve from CI server

// Targets
Target? Clean <-
    fun _ -> CleanDirs [buildDir; testDir; deployDir]

Target? BuildApp <-
    fun _ -> 
        AssemblyInfo 
          (fun p -> 
            {p with
              CodeLanguage = CSharp;
              AssemblyVersion = version;
              AssemblyTitle = "Calculator library";
              AssemblyDescription = "Sample project for FAKE - F# MAKE";
              Guid = "EE5621DB-B86B-44eb-987F-9C94BCC98441";
              OutputFileName = @".\src\app\CalculatorLib\Properties\AssemblyInfo.cs"})          
      
        // compile all projects below src\app\
        MSBuildRelease buildDir "Build" appReferences
          |> Log "AppBuild-Output: "

Target? BuildTest <-
    fun _ -> 
        MSBuildDebug testDir "Build" appReferences
          |> Log "TestBuild-Output: "

Target? NUnitTest <-
    fun _ ->  
        !+ (testDir + @"\*.dll") 
          |> Scan
          |> NUnit (fun p -> 
                {p with 
                    ToolPath = nunitPath; 
                    DisableShadowCopy = true; 
                    OutputFile = testDir + @"TestResults.xml"})

Target? Deploy <-
    fun _ ->
        !+ (buildDir + "\**\*.*") 
          -- "*.zip" 
          |> Scan
          |> Zip buildDir (deployDir + "Calculator." + version + ".zip")

{'fraction_non_alphanumeric': 0.143841278589143, 'fraction_numerical': 0.011573436208321852, 'mean_word_length': 1.6730486008836525, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 32, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3507348', 'n_tokens_mistral': 1256, 'n_tokens_neox': 1101, 'n_words': 260}