<commit_before><?php

/*
 * This file is part of HtmlCompress.
 *
 ** (c) 2014 <NAME>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace WyriHaximus\HtmlCompress\Tests\SpecialFormats;

use WyriHaximus\HtmlCompress\Compressor;

class LdJsonTest extends \PHPUnit_Framework_TestCase
{
    public function javascriptCompressorProvider()
    {
        return [
            [
                new Compressor\JSMinCompressor(),
            ],
            [
                new Compressor\JavaScriptPackerCompressor(),
            ],
            /*[ // This compressor results in invalid JSON
                new Compressor\JSqueezeCompressor(),
            ],*/
            [
                new Compressor\MMMJSCompressor(),
            ],
            [
                new Compressor\JShrinkCompressor(),
            ],
            [
                new Compressor\ReturnCompressor(),
            ],
        ];
    }

    /**<commit_msg>Test ld+json against YUI JS compressor<commit_after><?php

/*
 * This file is part of HtmlCompress.
 *
 ** (c) 2014 <NAME>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace WyriHaximus\HtmlCompress\Tests\SpecialFormats;

use WyriHaximus\HtmlCompress\Compressor;

class LdJsonTest extends \PHPUnit_Framework_TestCase
{
    public function javascriptCompressorProvider()
    {
        return [
            [
                new Compressor\JSMinCompressor(),
            ],
            [
                new Compressor\JavaScriptPackerCompressor(),
            ],
            /*[ // This compressor results in invalid JSON
                new Compressor\JSqueezeCompressor(),
            ],*/
            [
                new Compressor\MMMJSCompressor(),
            ],
            [
                new Compressor\JShrinkCompressor(),
            ],
            [
                new Compressor\YUIJSCompressor(),
            ],
            [
                new Compressor\ReturnCompressor(),
            ],
        ];
    }

    /**
{'fraction_non_alphanumeric': 0.08736059479553904, 'fraction_numerical': 0.0037174721189591076, 'mean_word_length': 1.5971049457177322, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '1991671', 'n_tokens_mistral': 604, 'n_tokens_neox': 540, 'n_words': 125}