<commit_before>// include Fake lib
#r @"Tools\FAKE\FakeLib.dll"
open Fake
open System;

// common path properties
let sourceDir = @"./src/"
let buildDir = @"./Build/"
let buildMetricsDir = @"./BuildMetrics/"
let publishDir = @"./Publish/"
let solutionFile = sourceDir @@ "Portable.Licensing.sln"

// tools path properties
let toolsDir = @"./Tools/"
let nunitPath = toolsDir @@ "NUnit/"

// common assembly info properties
let assemblyVersion = "0.0.0.0"
let assemblyFileVersion = "0.0.0.0"
let assemblyInformationalVersion = "0.0.0-devel"

// Targets
Target "All" DoNothing

Target "Clean" (fun _ ->
    CleanDir buildDir
    CleanDir buildMetricsDir
    CleanDir publishDir
)

Target "CreateAssemblyInfo" (fun _ ->
    AssemblyInfo 
      (fun asm -> 
        {asm with
          CodeLanguage = CSharp;
          AssemblyCompany = "Nauck IT KG";
          AssemblyProduct = "Portable.Licensing";
          AssemblyCopyright = String.Format("Copyright  2012 - {0} Nauck IT KG", DateTime.Now.Year);
          AssemblyTrademark = String.Empty;
          AssemblyVersion = assemblyVersion;
          AssemblyFileVersion = assemblyFileVersion;
          AssemblyInformationalVersion = assemblyInformationalVersion;
          OutputFileName = @"./src/CommonAssemblyInfo.cs"
          }
        )
)

Target "Build" (fun _ ->
    build (fun msbuild ->
        {msbuild with
            Targets = ["Build"]
            Properties = ["Configuration","Release"]
        }
    ) solutionFile
)

Target "Test" (fun _ ->
    !! (buildDir + @"\*Tests.dll") 
      |> NUnit (fun p ->
          {p with
             ToolPath = nunitPath;
             //DisableShadowCopy = true;<commit_msg>Use the Path.Combine() function "@@"<commit_after>// include Fake lib
#r @"Tools\FAKE\FakeLib.dll"
open Fake
open System;

// common path properties
let sourceDir = @"./src/"
let buildDir = @"./Build/"
let buildMetricsDir = @"./BuildMetrics/"
let publishDir = @"./Publish/"
let solutionFile = sourceDir @@ "Portable.Licensing.sln"

// tools path properties
let toolsDir = @"./Tools/"
let nunitPath = toolsDir @@ "NUnit/"

// common assembly info properties
let assemblyVersion = "0.0.0.0"
let assemblyFileVersion = "0.0.0.0"
let assemblyInformationalVersion = "0.0.0-devel"

// Targets
Target "All" DoNothing

Target "Clean" (fun _ ->
    CleanDir buildDir
    CleanDir buildMetricsDir
    CleanDir publishDir
)

Target "CreateAssemblyInfo" (fun _ ->
    AssemblyInfo 
      (fun asm -> 
        {asm with
          CodeLanguage = CSharp;
          AssemblyCompany = "Nauck IT KG";
          AssemblyProduct = "Portable.Licensing";
          AssemblyCopyright = String.Format("Copyright  2012 - {0} Nauck IT KG", DateTime.Now.Year);
          AssemblyTrademark = String.Empty;
          AssemblyVersion = assemblyVersion;
          AssemblyFileVersion = assemblyFileVersion;
          AssemblyInformationalVersion = assemblyInformationalVersion;
          OutputFileName = @"./src/CommonAssemblyInfo.cs"
          }
        )
)

Target "Build" (fun _ ->
    build (fun msbuild ->
        {msbuild with
            Targets = ["Build"]
            Properties = ["Configuration","Release"]
        }
    ) solutionFile
)

Target "Test" (fun _ ->
    !! (buildDir @@ @"*Tests.dll") 
      |> NUnit (fun p ->
          {p with
             ToolPath = nunitPath;
             //DisableShadowCopy = true;
{'fraction_non_alphanumeric': 0.12132898249777514, 'fraction_numerical': 0.009492732126965293, 'mean_word_length': 2.487073422957601, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '1480565', 'n_tokens_mistral': 1028, 'n_tokens_neox': 984, 'n_words': 255}