<commit_before><?php

class HTMLClass
{
    use \Dxw\Assertions\HTML;

    public function assertEquals()
    {
        $this->args = func_get_args();
    }
}

class HTMLTest extends PHPUnit_Framework_TestCase
{
    public function testPlainText()
    {
        $h = new HTMLClass();
        $h->assertHTMLEqualsStrictWhitespace('a', 'b');

        $this->assertEquals([
            'a',
            'b',
        ], $h->args);
    }

    public function testSimpleHtml()
    {
        $h = new HTMLClass();
        $h->assertHTMLEqualsStrictWhitespace('<a href="aaa">bbb</a>', '<a href ="aaa"  >bbb</a >');

        $this->assertEquals([
            '<a href="aaa">bbb</a>',
            '<a href="aaa">bbb</a>',
        ], $h->args);
    }

    public function testDoNotIgnoreWhitespace()
    {
        $h = new HTMLClass();
        $h->assertHTMLEqualsStrictWhitespace("<a href='aaa'>\nbbb   <br>\t</a>", '<a href="aaa">bbb<br></a>');

        $this->assertEquals([
            "<a href=\"aaa\">\nbbb   <br>\t</a>",
            '<a href="aaa">bbb<br></a>',
        ], $h->args);
    }

    public function testIgnoreWhitespace()
    {
        $h = new HTMLClass();
        $h->assertHTMLEquals("<a href='aaa'>\nbbb   <br>\t</a>", '<a href="aaa">bbb<br></a>');

        $this->assertEquals([
            '<a href="aaa">bbb<br></a>',
            '<a href="aaa">bbb<br></a>',
        ], $h->args);
    }

    public function testNewerElements()
    {
        $h = new HTMLClass();
        $h->assertHTMLEqualsStrictWhitespace('<article></article>', '<article></article>');

        $this->assertEquals([
            '<article></article>',
            '<article></article>',
        ], $h->args);
    }
}
<commit_msg>Make tests slightly more readable<commit_after><?php

class HTMLClass
{
    use \Dxw\Assertions\HTML;

    public function assertEquals()
    {
        $this->args = func_get_args();
    }
}

class HTMLTest extends PHPUnit_Framework_TestCase
{
    public function testPlainText()
    {
        $h = new HTMLClass();
        $h->assertHTMLEqualsStrictWhitespace(
            'a',
            'b'
        );

        $this->assertEquals([
            'a',
            'b',
        ], $h->args);
    }

    public function testSimpleHtml()
    {
        $h = new HTMLClass();
        $h->assertHTMLEqualsStrictWhitespace(
            '<a href="aaa">bbb</a>',
            '<a href ="aaa"  >bbb</a >'
        );

        $this->assertEquals([
            '<a href="aaa">bbb</a>',
            '<a href="aaa">bbb</a>',
        ], $h->args);
    }

    public function testDoNotIgnoreWhitespace()
    {
        $h = new HTMLClass();
        $h->assertHTMLEqualsStrictWhitespace(
            "<a href='aaa'>\nbbb   <br>\t</a>",
            '<a href="aaa">bbb<br></a>'
        );

        $this->assertEquals([
            "<a href=\"aaa\">\nbbb   <br>\t</a>",
            '<a href="aaa">bbb<br></a>',
        ], $h->args);
    }

    public function testIgnoreWhitespace()
    {
        $h = new HTMLClass();
        $h->assertHTMLEquals(
            "<a href='aaa'>\nbbb   <br>\t</a>",
            '<a href="aaa">bbb<br></a>'
        );

        $this->assertEquals([
            '<a href="aaa">bbb<br></a>',
            '<a href="aaa">bbb<br></a>',
        ], $h->args);
    }

    public function testNewerElements()
    {
        $h = new HTMLClass();
        $h->assertHTMLEqualsStrictWhitespace(
            '<article></article>',
            '<article></article>'
        );

        $this->assertEquals([
            '<article></article>',
            '<article></article>',
        ], $h->args);
    }
}

{'fraction_non_alphanumeric': 0.1956882255389718, 'fraction_numerical': 0.0, 'mean_word_length': 1.8608695652173912, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 115, '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': '1506561', 'n_tokens_mistral': 1213, 'n_tokens_neox': 1223, 'n_words': 191}