<commit_before>object Raindrops {
    fun convert(input: Int): String {
        val rules = sequenceOf(
                3 to "Pling",
                5 to "Plang"
        )

        val result = rules
                .filter { (denominator, _) -> input.isDivisibleBy(denominator) }
                .map { (_, result) -> result }
                .joinToString("")
        return if (result.isNotEmpty()) result else input.toString()
    }

    private fun Int.isDivisibleBy(denominator: Int) = this % denominator == 0

}<commit_msg>all tests pass<commit_after>object Raindrops {
    fun convert(input: Int): String {
        val rules = sequenceOf(
                3 to "Pling",
                5 to "Plang",
                7 to "Plong"
        )

        val result = rules
                .filter { (denominator, _) -> input.isDivisibleBy(denominator) }
                .map { (_, result) -> result }
                .joinToString("")
        return if (result.isNotEmpty()) result else input.toString()
    }

    private fun Int.isDivisibleBy(denominator: Int) = this % denominator == 0

}
{'fraction_non_alphanumeric': 0.11253430924062215, 'fraction_numerical': 0.006404391582799634, 'mean_word_length': 1.7079207920792079, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '244192', 'n_tokens_mistral': 319, 'n_tokens_neox': 303, 'n_words': 81}