<commit_before>function expect
  set -l expected $argv[1..-3]
  set -l comparison $argv[-2]
  set -l actual $argv[-1]

  switch $comparison
    case 'to_equal'
      if test "$expected" = "$actual"
        emit assertion_success
      else
        emit assertion_failure "Expected: \"$expected\""\n"  Actual: \"$actual\""
      end

    case 'to_include'
      set -l item $actual
      set -l list $expected

      if contains -- "$item" $list
        emit assertion_success
      else
        emit assertion_failure "Expected \"$list\" to include \"$item\""
      end
  end
end<commit_msg>naiive to_not_include implementation<commit_after>function expect
  set -l expected $argv[1..-3]
  set -l comparison $argv[-2]
  set -l actual $argv[-1]

  switch $comparison
    case 'to_equal'
      if test "$expected" = "$actual"
        emit assertion_success
      else
        emit assertion_failure "Expected: \"$expected\""\n"  Actual: \"$actual\""
      end

    case 'to_include'
      set -l item $actual
      set -l list $expected

      if contains -- "$item" $list
        emit assertion_success
      else
        emit assertion_failure "Expected \"$list\" to include \"$item\""
      end

    case 'to_not_include'
      set -l item $actual
      set -l list $expected

      if not contains -- "$item" $list
        emit assertion_success
      else
        emit assertion_failure "Expected \"$list\" to not include \"$item\""
      end
  end
end
{'fraction_non_alphanumeric': 0.1140893470790378, 'fraction_numerical': 0.005498281786941581, 'mean_word_length': 2.185995623632385, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4201833', 'n_tokens_mistral': 454, 'n_tokens_neox': 432, 'n_words': 146}