<commit_before>import static org.junit.Assert.assertEquals;

import org.junit.Ignore;
import org.junit.Test;

public class MicroBlogTest {

    private final MicroBlog microBlog = new MicroBlog();
    
    @Test
    public void englishLanguageShort() {
        String expected = "Hi";
        assertEquals(expected, microBlog.truncate("Hi"));
    }

    @Ignore("Remove to run test")
    @Test
    public void englishLanguageLong() {
        String expected = "Hello";
        assertEquals(expected, microBlog.truncate("Hello there"));
    }
    
    @Ignore("Remove to run test")
    @Test
    public void germanLanguageShort_broth() {
        String expected = "brühe";
        assertEquals(expected, microBlog.truncate("brühe"));
    }

    @Ignore("Remove to run test")
    @Test
    public void germanLanguageLong_bearCarpet_to_beards() {
        String expected = "Bärte";
        assertEquals(expected, microBlog.truncate("Bärteppich"));
    }
    
    @Ignore("Remove to run test")
    @Test
    public void bulgarianLanguageShort_good() {
        String expected = "Добър";
        assertEquals(expected, microBlog.truncate("Добър"));
    }

    @Ignore("Remove to run test")
    @Test
    public void greekLanguageShort_health() {
        String expected = "υγειά";
        assertEquals(expected, microBlog.truncate("υγειά"));
    }
    
    @Ignore("Remove to run test")
    @Test
    public void mathsShort() {
        String expected = "a=πr²";
        assertEquals(expected, microBlog.truncate("a=πr²"));
    }

    @Ignore("Remove to run test")
    @Test
    public void mathsLong() {
        String expected = "∅⊊ℕ⊊ℤ";
        assertEquals(expected, microBlog.truncate("∅⊊ℕ⊊ℤ⊊ℚ⊊ℝ⊊ℂ"));
    }
    
    @Ignore("Remove to run test")
    @Test
    public void englishAndEmojiShort() {
        String expected = "Fly 🛫";
        assertEquals(expected, microBlog.truncate("Fly 🛫"));
    }
    
    @Ignore("Remove to run test")
    @Test
    public void emojiShort() {
        String expected = "💇";
        assertEquals(expected, microBlog.truncate("💇"));
    }
    
    @Ignore("Remove to run test")
    @Test
    public void emojiLong() {
        String expected = "❄🌡🤧🤒🏥";
        assertEquals(expected, microBlog.truncate("❄🌡🤧🤒🏥🕰😀"));
    }
    
    @Ignore("Remove to run test")
    @Test
    public void royalFlush() {
        String expected = "🃎🂸🃅🃋🃍";
        assertEquals(expected, microBlog.truncate("🃎🂸🃅🃋🃍🃁🃊"));
    }
}<commit_msg>Naive solution passes 8 tests<commit_after>import static org.junit.Assert.assertEquals;

import org.junit.Ignore;
import org.junit.Test;

public class MicroBlogTest {

    private final MicroBlog microBlog = new MicroBlog();

    @Test
    public void englishLanguageShort() {
        String expected = "Hi";
        assertEquals(expected, microBlog.truncate("Hi"));
    }

    @Test
    public void englishLanguageLong() {
        String expected = "Hello";
        assertEquals(expected, microBlog.truncate("Hello there"));
    }

    @Test
    public void germanLanguageShort_broth() {
        String expected = "brühe";
        assertEquals(expected, microBlog.truncate("brühe"));
    }

    @Test
    public void germanLanguageLong_bearCarpet_to_beards() {
        String expected = "Bärte";
        assertEquals(expected, microBlog.truncate("Bärteppich"));
    }

    @Test
    public void bulgarianLanguageShort_good() {
        String expected = "Добър";
        assertEquals(expected, microBlog.truncate("Добър"));
    }

    @Test
    public void greekLanguageShort_health() {
        String expected = "υγειά";
        assertEquals(expected, microBlog.truncate("υγειά"));
    }

    @Test
    public void mathsShort() {
        String expected = "a=πr²";
        assertEquals(expected, microBlog.truncate("a=πr²"));
    }

    @Test
    public void mathsLong() {
        String expected = "∅⊊ℕ⊊ℤ";
        assertEquals(expected, microBlog.truncate("∅⊊ℕ⊊ℤ⊊ℚ⊊ℝ⊊ℂ"));
    }

    @Ignore("Remove to run test")
    @Test
    public void englishAndEmojiShort() {
        String expected = "Fly 🛫";
        assertEquals(expected, microBlog.truncate("Fly 🛫"));
    }

    @Ignore("Remove to run test")
    @Test
    public void emojiShort() {
        String expected = "💇";
        assertEquals(expected, microBlog.truncate("💇"));
    }

    @Ignore("Remove to run test")
    @Test
    public void emojiLong() {
        String expected = "❄🌡🤧🤒🏥";
        assertEquals(expected, microBlog.truncate("❄🌡🤧🤒🏥🕰😀"));
    }

    @Ignore("Remove to run test")
    @Test
    public void royalFlush() {
        String expected = "🃎🂸🃅🃋🃍";
        assertEquals(expected, microBlog.truncate("🃎🂸🃅🃋🃍🃁🃊"));
    }
}
{'fraction_non_alphanumeric': 0.13386334336055006, 'fraction_numerical': 0.00021486892995272884, 'mean_word_length': 2.769230769230769, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2005572', 'n_tokens_mistral': 1693, 'n_tokens_neox': 1540, 'n_words': 318}