<commit_before>object Scrabble {
    fun scoreWord(input: String): Int {
        if (input.isNullOrBlank()) {
            return 0
        }

        return input
                .map { Letter(it).score() }
                .sum()
    }

}

class Letter(value: Char) {
    private val normalizedValue = value.toLowerCase()

    fun score(): Int {
        return when (normalizedValue) {
            'a', 'e', 'i', 'o', 'n', 'r', 's', 't', 'u' -> 1
            'b', 'p' -> 3
            'f', 'h', 'y' -> 4
            'k' -> 5
            'x' -> 8
            'q', 'z' -> 10
            else -> {
                throw IllegalArgumentException("invalid letter '$normalizedValue'")
            }
        }
    }

}<commit_msg>all tests are running, but the test suite is incomplete<commit_after>object Scrabble {
    fun scoreWord(input: String): Int {
        if (input.isNullOrBlank()) {
            return 0
        }

        return input
                .map { Letter(it).score() }
                .sum()
    }

}

class Letter(value: Char) {
    private val normalizedValue = value.toLowerCase()

    fun score(): Int {
        return when (normalizedValue) {
            'a', 'e', 'i', 'l', 'n', 'o', 'r', 's', 't', 'u' -> 1
            'b', 'c', 'p' -> 3
            'f', 'h', 'y' -> 4
            'k' -> 5
            'x' -> 8
            'q', 'z' -> 10
            else -> {
                throw IllegalArgumentException("invalid letter '$normalizedValue'")
            }
        }
    }

}
{'fraction_non_alphanumeric': 0.16221628838451269, 'fraction_numerical': 0.010680907877169559, 'mean_word_length': 1.3495297805642634, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7653118', 'n_tokens_mistral': 482, 'n_tokens_neox': 457, 'n_words': 125}