<commit_before><?php
/*
 * This file is part of the TubeLink package.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @licence MIT
 */

require __DIR__ . '/src/autoload.php';

$t = new TubeLink\TubeLink();
$t->registerService(new TubeLink\Service\Youtube());
$t->registerService(new TubeLink\Service\Dailymotion());
$t->registerService(new TubeLink\Service\Vimeo());

?>
<!DOCTYPE html>
<html>
<head><title>Videos</title></head>
<body>
    <h1>Youtube</h1>
    <?php echo $t->parse('http://youtu.be/gHYfY9lZaRE')->render() ?>
    <?php echo $t->parse('http://www.youtube.com/embed/gHYfY9lZaRE')->render() ?>

    <h1>Dailymotion</h1>
    <?php echo $t->parse('http://www.dailymotion.com/video/xr9av5')->render() ?>

    <h1>Vimeo</h1>
    <?php echo $t->parse('http://vimeo.com/15247292')->render() ?>
</body>
</html><commit_msg>Fix demo HTML<commit_after><?php
/*
 * This file is part of the TubeLink package.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @licence MIT
 */

require __DIR__ . '/src/autoload.php';

$t = new TubeLink\TubeLink();
$t->registerService(new TubeLink\Service\Youtube());
$t->registerService(new TubeLink\Service\Dailymotion());
$t->registerService(new TubeLink\Service\Vimeo());

?>
<!DOCTYPE html>
<html>
<head><title>Videos</title></head>
<body>
    <h1>Youtube</h1>
    <?php echo $t->parse('http://youtu.be/gHYfY9lZaRE')->render() ?>

    <h1>Dailymotion</h1>
    <?php echo $t->parse('http://www.dailymotion.com/video/xr9av5')->render() ?>

    <h1>Vimeo</h1>
    <?php echo $t->parse('http://vimeo.com/15247292')->render() ?>
</body>
</html>
{'fraction_non_alphanumeric': 0.1997716894977169, 'fraction_numerical': 0.01997716894977169, 'mean_word_length': 4.328267477203648, 'pattern_counts': {'":': 0, '<': 42, '<?xml version=': 0, '>': 62, 'https://': 0, 'lorem ipsum': 0, 'www.': 3, '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': '3118502', 'n_tokens_mistral': 675, 'n_tokens_neox': 649, 'n_words': 126}