<commit_before>// include Fake lib
#r @"FakeLib.dll"
#load @"InheritDoc.fsx"
open Fake 
open System
open InheritDoc
open SemVerHelper
open AssemblyInfoFile
open System.Text.RegularExpressions
open System.Linq

// Properties
let buildDir = "build/output/"
let nugetOutDir = "build/output/_packages"

// Default target
Target "Build" (fun _ -> traceHeader "STARTING BUILD")

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

let gitLink = fun _ ->
    let exe = "build/tools/gitlink/lib/net45/GitLink.exe"
    let command = if isMono then (sprintf "mono %s" exe) else exe
    let branch = if isMono then "develop" else "develop"
    ExecProcess(fun p ->
      p.FileName <- command
      p.Arguments <- sprintf @". -u https://github.com/elasticsearch/elasticsearch-net -b %s" branch
    ) (TimeSpan.FromMinutes 5.0) |> ignore
 
Target "BuildApp" (fun _ ->
    let binDirs = !! "src/**/bin/**"
                  |> Seq.map DirectoryName
                  |> Seq.distinct
                  |> Seq.filter (fun f -> (f.EndsWith("Debug") || f.EndsWith("Release")) && not (f.Contains "CodeGeneration"))

    CleanDirs binDirs

    //Override the prebuild event because it just calls a fake task BuildApp depends on anyways
    let msbuildProperties = [
      ("Configuration","Release"); 
      ("PreBuildEvent","echo"); 
    ]

    MSBuild null "Rebuild" msbuildProperties (seq { yield "src/Elasticsearch.sln" }) 
    gitLink()<commit_msg>updated build to remove conditional branch name should always be develop<commit_after>// include Fake lib
#r @"FakeLib.dll"
#load @"InheritDoc.fsx"
open Fake 
open System
open InheritDoc
open SemVerHelper
open AssemblyInfoFile
open System.Text.RegularExpressions
open System.Linq

// Properties
let buildDir = "build/output/"
let nugetOutDir = "build/output/_packages"

// Default target
Target "Build" (fun _ -> traceHeader "STARTING BUILD")

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

let gitLink = fun _ ->
    let exe = "build/tools/gitlink/lib/net45/GitLink.exe"
    let command = if isMono then (sprintf "mono %s" exe) else exe
    ExecProcess(fun p ->
      p.FileName <- command
      p.Arguments <- sprintf @". -u https://github.com/elasticsearch/elasticsearch-net -b develop" 
    ) (TimeSpan.FromMinutes 5.0) |> ignore
 
Target "BuildApp" (fun _ ->
    let binDirs = !! "src/**/bin/**"
                  |> Seq.map DirectoryName
                  |> Seq.distinct
                  |> Seq.filter (fun f -> (f.EndsWith("Debug") || f.EndsWith("Release")) && not (f.Contains "CodeGeneration"))

    CleanDirs binDirs

    //Override the prebuild event because it just calls a fake task BuildApp depends on anyways
    let msbuildProperties = [
      ("Configuration","Release"); 
      ("PreBuildEvent","echo"); 
    ]

    MSBuild null "Rebuild" msbuildProperties (seq { yield "src/Elasticsearch.sln" }) 
    gitLink()
{'fraction_non_alphanumeric': 0.12556679455877223, 'fraction_numerical': 0.0027903732124171608, 'mean_word_length': 2.9833333333333334, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 23, 'https://': 2, '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': '5647271', 'n_tokens_mistral': 932, 'n_tokens_neox': 889, 'n_words': 254}