<commit_before>﻿namespace Legivel.Internals

open Legivel.Common
open System.Diagnostics

module internal ParserMonads =
    [<Struct;NoEquality; NoComparison>]
    type EitherResult<'a,'b> = {
        Context : 'a
        Result'  : FallibleOption<'b>*ParseMessage
        HasErrorOccurred : bool
    }
    with
        static member Create c r = { Context = c; Result' = r; HasErrorOccurred = false}
        member this.SetContext c = { this with Context = c}<commit_msg>Fix appveyor<commit_after>﻿namespace Legivel.Internals

open Legivel.Common
open System.Diagnostics

module internal ParserMonads =
    [<NoEquality; NoComparison>]
    type EitherResult<'a,'b> = {
        Context : 'a
        Result'  : FallibleOption<'b>*ParseMessage
        HasErrorOccurred : bool
    }
    with
        static member Create c r = { Context = c; Result' = r; HasErrorOccurred = false}
        member this.SetContext c = { this with Context = c}
{'fraction_non_alphanumeric': 0.09488272921108742, 'fraction_numerical': 0.0, 'mean_word_length': 3.0474137931034484, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5978821', 'n_tokens_mistral': 282, 'n_tokens_neox': 280, 'n_words': 76}