<commit_before>namespace Advent

open NUnit.Framework
open FsUnit
open DayOne

module DayOneSpec =
  [<Test>]
    let ``parses left paren as up`` () =
      floorNumber '(' |> should equal 1

  [<Test>]
    let ``parses right paren as down`` () =
      floorNumber ')' |> should equal -1 

  [<Test>]
    let ``counts parens`` () =
      santaClimbing "(())" |> should equal 0

  [<Test>]
    let ``counts more parens`` () =
      santaClimbing "()()" |> should equal 0<commit_msg>sample test cases covered<commit_after>namespace Advent

open NUnit.Framework
open FsUnit
open DayOne

module DayOneSpec =
  [<Test>]
    let ``parses left paren as up`` () =
      floorNumber '(' |> should equal 1

  [<Test>]
    let ``parses right paren as down`` () =
      floorNumber ')' |> should equal -1 

  [<Test>]
    let ``counts parens`` () =
      santaClimbing "(())" |> should equal 0

  [<Test>]
    let ``counts more parens`` () =
      santaClimbing "()()" |> should equal 0

  [<Test>]
    let ``more than zero`` () =
      santaClimbing "(((" |> should equal 3

  [<Test>]
    let ``more than zero either way`` () =
      santaClimbing "(()(()(" |> should equal 3

  [<Test>]
    let ``does the math`` () =
      santaClimbing "))(((((" |> should equal 3

  [<Test>]
    let ``handles negatives`` () =
      santaClimbing "())" |> should equal -1

  [<Test>]
    let ``handles negatives again`` () =
      santaClimbing ")))" |> should equal -3

  [<Test>]
    let ``handles negatives again again`` () =
      santaClimbing ")())())" |> should equal -3
{'fraction_non_alphanumeric': 0.17696267696267695, 'fraction_numerical': 0.009009009009009009, 'mean_word_length': 2.8206388206388207, 'pattern_counts': {'":': 0, '<': 17, '<?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': '3673992', 'n_tokens_mistral': 566, 'n_tokens_neox': 526, 'n_words': 156}