<commit_before>module Scrabble
  ( scoreLetter
  , scoreWord
  ) where

import Data.Char (toLower)

scoreLetter :: Char -> Integer
scoreLetter l =
  case toLower l of
    'a' -> 1
    'z' -> 10
    _ -> 0

scoreWord :: String -> Integer
scoreWord = sum . map scoreLetter<commit_msg>solved some more cases<commit_after>module Scrabble
  ( scoreLetter
  , scoreWord
  ) where

import Data.Char (toLower)

scoreLetter :: Char -> Integer
scoreLetter l =
  case toLower l of
    'a' -> 1
    't' -> 1
    'f' -> 4
    'z' -> 10
    _ -> 0

scoreWord :: String -> Integer
scoreWord = sum . map scoreLetter
{'fraction_non_alphanumeric': 0.11352253756260434, 'fraction_numerical': 0.01669449081803005, 'mean_word_length': 2.658536585365854, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '1352228', 'n_tokens_mistral': 221, 'n_tokens_neox': 201, 'n_words': 64}