<commit_before><?php
/**
 * PixdorTest.php
 *
 * @package Embera
 * @author <NAME> <<EMAIL>>
 * @link   http://www.michael-pratt.com/
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Embera\Provider;

use Embera\ProviderTester;

/**
 * Test the Pixdor Provider
 */
final class PixdorTest extends ProviderTester
{
    protected $tasks = [
        'valid_urls' => [
            'https://store.pixdor.com/map/10/show',
            'https://store.pixdor.com/place-marker-widget/20/show',
        ],
        'invalid_urls' => [
            'https://pixdor.com/map/10/show',
            'https://store.pixdor.com/map/10/',
        ],
        'fake_response' => [
            'type' => 'rich',
            'html' => '<iframe'
        ]
    ];

    public function testProvider()
    {
        $this->validateProvider('Pixdor', [ 'width' => 480, 'height' => 270]);
    }
}<commit_msg>Updated tests on pixdor provider, since it seems to be down<commit_after><?php
/**
 * PixdorTest.php
 *
 * @package Embera
 * @author <NAME> <<EMAIL>>
 * @link   http://www.michael-pratt.com/
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Embera\Provider;

use Embera\ProviderTester;

/**
 * Test the Pixdor Provider
 */
final class PixdorTest extends ProviderTester
{
    protected $tasks = [
        'valid_urls' => [
            'https://store.pixdor.com/map/10/show',
            'https://store.pixdor.com/place-marker-widget/20/show',
        ],
        'invalid_urls' => [
            'https://pixdor.com/map/10/show',
            'https://store.pixdor.com/map/10/',
        ],
        'fake_response' => [
            'type' => 'rich',
            'html' => '<iframe'
        ]
    ];

    public function testProvider()
    {
        $travis = (bool) getenv('TRAVIS');
        if ($travis) {
            $this->markTestIncomplete('Disabling this provider since it seems to have problems with the endpoint (Pixdor).');
        }

        $this->validateProvider('Pixdor', [ 'width' => 480, 'height' => 270]);
    }
}
{'fraction_non_alphanumeric': 0.15503875968992248, 'fraction_numerical': 0.012767897856817145, 'mean_word_length': 2.231222385861561, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 26, 'https://': 8, 'lorem ipsum': 0, 'www.': 2, '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': '5308300', 'n_tokens_mistral': 733, 'n_tokens_neox': 682, 'n_words': 152}