<commit_before>﻿module Bob

module Char =
  let isAlpha c = Seq.exists ((=) c) (['A'..'Z'] @ ['a'..'z'])

  let isLowercase c = Seq.exists ((=) c) {'a'..'z'}

let (|Is|_|) predicate x = if predicate x then Some() else None

type Bob(greeting) =
  let shout str =
    let someAlpha seq = Seq.exists Char.isAlpha seq
    let noneLowercase seq = not <| Seq.exists Char.isLowercase seq
    someAlpha str && noneLowercase str

  let question str =
    not <| Seq.isEmpty str && str |> Seq.last |> ((=) '?')

  let silence str =
    str |> Seq.skipWhile ((=) ' ') |> Seq.isEmpty

  member this.hey() =
    match greeting with
    | Is shout -> "Whoa, chill out!"
    | Is question -> "Sure."
    | Is silence -> "Fine. Be that way!"
    | _ -> "Whatever."<commit_msg>:bird: F# Bob - consistency: 'str' not 'seq'<commit_after>﻿module Bob

module Char =
  let isAlpha c = Seq.exists ((=) c) (['A'..'Z'] @ ['a'..'z'])

  let isLowercase c = Seq.exists ((=) c) {'a'..'z'}

let (|Is|_|) predicate x = if predicate x then Some() else None

type Bob(greeting) =
  let shout str =
    let someAlpha str = Seq.exists Char.isAlpha str
    let noneLowercase str = not <| Seq.exists Char.isLowercase str
    someAlpha str && noneLowercase str

  let question str =
    not <| Seq.isEmpty str && str |> Seq.last |> ((=) '?')

  let silence str =
    str |> Seq.skipWhile ((=) ' ') |> Seq.isEmpty

  member this.hey() =
    match greeting with
    | Is shout -> "Whoa, chill out!"
    | Is question -> "Sure."
    | Is silence -> "Fine. Be that way!"
    | _ -> "Whatever."
{'fraction_non_alphanumeric': 0.17450096587250483, 'fraction_numerical': 0.0, 'mean_word_length': 2.76271186440678, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 19, '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': '1021345', 'n_tokens_mistral': 575, 'n_tokens_neox': 552, 'n_words': 173}