<commit_before><?php
/**
 * ReplitTest.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 Replit Provider
 */
final class ReplitTest extends ProviderTester
{
    protected $tasks = [
        'valid_urls' => [
            'https://repl.it/repls/GloriousMotherlyButton',
            'https://repl.it/repls/HurtfulTrimDimension',
        ],
        'invalid_urls' => [
            'http://repl.it/',
            'http://repl.it/@timmy_i_chen',
        ],
        'fake_response' => [
            'type' => 'rich',
            'html' => '<iframe'
        ]
    ];

    public function testProvider()
    {
        $this->markTestSkipped('Replit no longer supports Anonymous repls ');
        //$this->validateProvider('Replit', [ 'width' => 480, 'height' => 270]);
    }
}<commit_msg>Enabled Tests for Replit. Found a public url to test.<commit_after><?php
/**
 * ReplitTest.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 Replit Provider
 */
final class ReplitTest extends ProviderTester
{
    protected $tasks = [
        'valid_urls' => [
            'https://replit.com/@stewieoO/ClosePitifulConstant',
        ],
        'invalid_urls' => [
            'http://repl.it/',
            'http://repl.it/@timmy_i_chen',
        ],
        'fake_response' => [
            'type' => 'rich',
            'html' => '<iframe'
        ]
    ];

    public function testProvider()
    {
        $this->validateProvider('Replit', [ 'width' => 480, 'height' => 270]);
    }
}
{'fraction_non_alphanumeric': 0.15134586084306756, 'fraction_numerical': 0.006094464195022855, 'mean_word_length': 2.294314381270903, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 26, 'https://': 3, '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': '4537591', 'n_tokens_mistral': 640, 'n_tokens_neox': 620, 'n_words': 138}