<commit_before>package org.proshin.blog.textprocessing;

import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
import org.junit.Test;

public class MarkdownTextTest {
    @Test
    public void testThatMarkdownIsConvertedToHtml() throws Exception {
        assertThat(new MarkdownText("This is *Sparta*").getAsHtml(),
            is("<p>This is <em>Sparta</em></p>\n"));
    }
}<commit_msg>Tests "just for fun" :D<commit_after>package org.proshin.blog.textprocessing;

import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
import org.junit.Test;

public class MarkdownTextTest {
    @Test
    public void testThatMarkdownIsConvertedToHtml() throws Exception {
        assertThat(new MarkdownText("This is *Sparta*").getAsHtml(),
            is("<p>This is <em>Sparta</em></p>\n"));
    }

    @Test(expected = IllegalArgumentException.class)
    public void testThatMarkdownDoesNotAllowNull() throws Exception {
        new MarkdownText(null);
    }
}
{'fraction_non_alphanumeric': 0.12003968253968254, 'fraction_numerical': 0.0, 'mean_word_length': 4.174358974358975, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '1918884', 'n_tokens_mistral': 313, 'n_tokens_neox': 312, 'n_words': 65}