<commit_before><?php
class ImagesBlacklistTest extends PHPUnit_Framework_TestCase
{
    public function testPlainText()
    {
        $info = Embed\Embed::create('https://github.com/oscarotero/Embed', [
            'adapter'       => [
                'config'        => [
                    'imagesBlacklist' => [
                        'https://avatars1.githubusercontent.com/u/377873?v=3&s=400',
                    ],
                ],
            ]
        ]);

        $this->assertEquals('https://assets-cdn.github.com/assets/spinners/octocat-spinner-32-e513294efa576953719e4e2de888dd9cf929b7d62ed8d05f25e731d02452ab6c.gif', $info->image);
    }

    public function testPlainUrlMatch()
    {
        $info = Embed\Embed::create('https://github.com/oscarotero/Embed', [
            'adapter'       => [
                'config'        => [
                    'imagesBlacklist' => [
                        '*.githubusercontent.com*',
                    ],
                ],
            ]
        ]);

        $this->assertEquals('https://assets-cdn.github.com/assets/spinners/octocat-spinner-32-e513294efa576953719e4e2de888dd9cf929b7d62ed8d05f25e731d02452ab6c.gif', $info->image);
    }

    public function testAuthorizedImage()
    {
        $info = Embed\Embed::create('https://github.com/oscarotero/Embed', [<commit_msg>Updated tests<commit_after><?php
class ImagesBlacklistTest extends PHPUnit_Framework_TestCase
{
    public function testPlainText()
    {
        $info = Embed\Embed::create('https://github.com/oscarotero/Embed', [
            'adapter'       => [
                'config'        => [
                    'imagesBlacklist' => [
                        'https://avatars1.githubusercontent.com/u/377873?v=3&s=400',
                    ],
                ],
            ]
        ]);

        $this->assertEquals('https://assets-cdn.github.com/images/spinners/octocat-spinner-32.gif', $info->image);
    }

    public function testPlainUrlMatch()
    {
        $info = Embed\Embed::create('https://github.com/oscarotero/Embed', [
            'adapter'       => [
                'config'        => [
                    'imagesBlacklist' => [
                        '*.githubusercontent.com*',
                    ],
                ],
            ]
        ]);

        $this->assertEquals('https://assets-cdn.github.com/images/spinners/octocat-spinner-32.gif', $info->image);
    }

    public function testAuthorizedImage()
    {
        $info = Embed\Embed::create('https://github.com/oscarotero/Embed', [
{'fraction_non_alphanumeric': 0.14229559748427673, 'fraction_numerical': 0.0440251572327044, 'mean_word_length': 1.6789473684210525, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, 'https://': 12, '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': '5260974', 'n_tokens_mistral': 850, 'n_tokens_neox': 750, 'n_words': 65}