<commit_before>﻿#I @"../tools/FAKE/tools"
#r @"FakeLib.dll"
open Fake 

type FrameworkName = { MSBuild: string; Nuget: string; }
type ProjectName(msbuild: string) = 
    member this.Nuget = regex_replace @"^.*\\" "" msbuild
    member this.MSBuild = if isMono then this.Nuget else msbuild
    member this.Location = msbuild
    
    member this.NugetDescription = 
        match this.Nuget.ToLowerInvariant() with
        | f when f = "elasticsearch.net" -> 
            Some "Elasticsearch.Net - oficial low level elasticsearch client"
        | f when f = "nest" -> 
            Some "NEST - oficial high level elasticsearch client"
        | f when f = "elasticsearch.net.jsonnet" -> 
            Some "IElasticsearchSerializer implementation that allows you to use Json.NET with the lowlevel client"
        | _ -> None

type DotNetFramework = 
    | NET40 
    static member All = [NET40] 
    member this.Identifier = 
        match this with
        | NET40 -> { MSBuild = "v4.0"; Nuget = "net40"; }
    
type DotNet40Project =
    | Nest
    | ElasticsearchNet
    | ElasticsearchNetJsonNet
    static member All = [ElasticsearchNet; ElasticsearchNetJsonNet;  Nest] 

type DotNetProject = 
    | DotNet40Project of DotNet40Project
    static member All =
        Seq.concat [
            DotNet40Project.All |> List.map(fun p -> DotNet40Project p);
        ]

    member this.ProjectName =
        match this with
        | DotNet40Project net40 ->
            match net40 with
            | Nest -> ProjectName "Nest"
            | ElasticsearchNet -> ProjectName "Elasticsearch.Net"
            | ElasticsearchNetJsonNet -> ProjectName "Elasticsearch.Net.JsonNet"
   
    static member TryFindName (name: string) =
        DotNetProject.All
        |> Seq.map(fun p -> p.ProjectName)
        |> Seq.tryFind(fun p -> p.Nuget.ToLowerInvariant() = name.ToLowerInvariant())<commit_msg>fixed build<commit_after>﻿#I @"../tools/FAKE/tools"
#r @"FakeLib.dll"
open Fake 

type FrameworkName = { MSBuild: string; Nuget: string; }
type ProjectName(msbuild: string) = 
    member this.Nuget = regex_replace @"^.*\\" "" msbuild
    member this.MSBuild = if isMono then this.Nuget else msbuild
    member this.Location = msbuild
    
    member this.NugetDescription = 
        match this.Nuget.ToLowerInvariant() with
        | f when f = "elasticsearch.net" -> 
            Some "Elasticsearch.Net - oficial low level elasticsearch client"
        | f when f = "nest" -> 
            Some "NEST - oficial high level elasticsearch client"
        | _ -> None

type DotNetFramework = 
    | NET40 
    static member All = [NET40] 
    member this.Identifier = 
        match this with
        | NET40 -> { MSBuild = "v4.0"; Nuget = "net40"; }
    
type DotNet40Project =
    | Nest
    | ElasticsearchNet
    static member All = [ElasticsearchNet;  Nest] 

type DotNetProject = 
    | DotNet40Project of DotNet40Project
    static member All =
        Seq.concat [
            DotNet40Project.All |> List.map(fun p -> DotNet40Project p);
        ]

    member this.ProjectName =
        match this with
        | DotNet40Project net40 ->
            match net40 with
            | Nest -> ProjectName "Nest"
            | ElasticsearchNet -> ProjectName "Elasticsearch.Net"
   
    static member TryFindName (name: string) =
        DotNetProject.All
        |> Seq.map(fun p -> p.ProjectName)
        |> Seq.tryFind(fun p -> p.Nuget.ToLowerInvariant() = name.ToLowerInvariant())
{'fraction_non_alphanumeric': 0.09899280575539568, 'fraction_numerical': 0.014964028776978418, 'mean_word_length': 2.316793893129771, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 31, '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': '4007958', 'n_tokens_mistral': 1114, 'n_tokens_neox': 1030, 'n_words': 276}