<commit_before>class DiamondPrinter {
    fun printToList(limit: Char): List<String> {
        return range(limit).map { line(it, limit) }
    }

    private fun range(limit: Char) = (('A'..limit) + (limit - 1 downTo 'A'))

    private fun line(current: Char, limit: Char): String {
        val numberOfEdgeSpaces = limit - current
        val numberOfMiddleSpaces = 2 * (current - 'A') - 1<commit_msg>just calculate the upper half<commit_after>class DiamondPrinter {
    fun printToList(limit: Char): List<String> {
        val upperHalf = (('A'..limit)).map { line(it, limit) }
        return upperHalf + upperHalf.reversed().drop(1)
    }

    private fun line(current: Char, limit: Char): String {
        val numberOfEdgeSpaces = limit - current
        val numberOfMiddleSpaces = 2 * (current - 'A') - 1
{'fraction_non_alphanumeric': 0.13102595797280595, 'fraction_numerical': 0.007416563658838072, 'mean_word_length': 3.029850746268657, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3427179', 'n_tokens_mistral': 259, 'n_tokens_neox': 244, 'n_words': 70}