<commit_before>package katas.kotlin.leetcode.unique_email_addresses

import kotlincommon.test.shouldEqual
import org.junit.Test

class UniqueEmailAddressesTests {
    @Test fun `check how many different addresses receive mails`() {
        numUniqueEmails(arrayOf("<EMAIL>")) shouldEqual 1
    }
}

private fun numUniqueEmails(emails: Array<String>): Int {
    return 1
}<commit_msg>unique email addresses<commit_after>package katas.kotlin.leetcode.unique_email_addresses

import kotlincommon.test.shouldEqual
import org.junit.Test

class UniqueEmailAddressesTests {
    @Test fun `check how many different addresses receive mails`() {
        numUniqueEmails(arrayOf("<EMAIL>")) shouldEqual 1
        numUniqueEmails(arrayOf("<EMAIL>", "<EMAIL>")) shouldEqual 2
    }
}

private fun numUniqueEmails(emails: Array<String>): Int {
    return emails.size
}
{'fraction_non_alphanumeric': 0.09836065573770492, 'fraction_numerical': 0.00468384074941452, 'mean_word_length': 5.107142857142857, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6650652', 'n_tokens_mistral': 268, 'n_tokens_neox': 258, 'n_words': 60}