<commit_before>﻿namespace FSharp.ProjectTemplate

open FSharp.ProjectTemplate.Domain
open Serilog
open System

/// Documentation for my library
///
/// ## Example
///
///     let h = Library.hello {"John";"Rambo"}
///     printfn "%s" h
///
module Library = 
  
    Log.Information( "Library FSharp.ProjectTemplate loaded" )

    // the support methods
    type SaveLastHello =
        Person -> unit
    type LoadLastHello =
        Person -> DateTime

    /// Returns Hello firstName lastName, I saw you for the last time on 1.1.1970
    ///
    /// ## Parameters
    ///  - `person` - someone you would like to say hello to
    let hello (loadLastHello:LoadLastHello, saveLastHello:SaveLastHello) (person : Person) = 
        sprintf "Hello %s %s, I saw you for the last time on %O" person.FirstName person.LastName (loadLastHello(person))
        saveLastHello (person)

    let api (loadLastHello:LoadLastHello, saveLastHello:SaveLastHello) = {
        Hello = hello (loadLastHello, saveLastHello)
    }<commit_msg>library fix<commit_after>﻿namespace FSharp.ProjectTemplate

open FSharp.ProjectTemplate.Domain
open Serilog
open System

/// Documentation for my library
///
/// ## Example
///
///     let h = Library.hello {"John";"Rambo"}
///     printfn "%s" h
///
module Library = 
  
    Log.Information( "Library FSharp.ProjectTemplate loaded" )

    // the support methods
    type SaveLastHello =
        Person -> unit
    type LoadLastHello =
        Person -> DateTime

    /// Returns Hello firstName lastName, I saw you for the last time on 1.1.1970
    ///
    /// ## Parameters
    ///  - `person` - someone you would like to say hello to
    let hello (loadLastHello:LoadLastHello, saveLastHello:SaveLastHello) (person : Person) = 
        let result = sprintf "Hello %s %s, I saw you for the last time on %O" person.FirstName person.LastName (loadLastHello(person))
        saveLastHello (person)
        result

    let api (loadLastHello:LoadLastHello, saveLastHello:SaveLastHello) = {
        Hello = hello (loadLastHello, saveLastHello)
    }
{'fraction_non_alphanumeric': 0.10987415295256535, 'fraction_numerical': 0.005808325266214908, 'mean_word_length': 2.704301075268817, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4876257', 'n_tokens_mistral': 614, 'n_tokens_neox': 582, 'n_words': 188}