<commit_before><?php // @codeCoverageIgnoreStart

/*
 * 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;

/**
 * Class Patterns
 *
 * @package WyriHaximus\HtmlCompress
 */
class Patterns
{
    const MATCH_PRE        = '!(<pre[^>]*>?)(.*?)(</pre>)!is';
    const MATCH_TEXTAREA   = '!(<textarea[^>]*>?)(.*?)(</textarea>)!is';
    const MATCH_STYLE      = '!(<style>|<style[^>]*>?)(.*?)(</style>)!is';
    const MATCH_JSCRIPT    = '!(<script>)(.*?)(</script>)!is';
    const MATCH_JSCRIPT2   = '!(<script[^>]*type="text/javascript"[^>]*>)(.*?)(</script>)!is';
    const MATCH_JSCRIPT3   = '!(<script[^>]*type=\'text/javascript\'[^>]*>)(.*?)(</script>)!is';
    const MATCH_SCRIPT     = '!(<script[^>]*>?)(.*?)(</script>)!is';
    const MATCH_NOCOMPRESS = '!(<nocompress>)(.*?)(</nocompress>)!is';
}<commit_msg>Need a better way to fix this<commit_after><?php // @codeCoverageIgnoreStart

/*
 * 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;

/**
 * Class Patterns
 *
 * @package WyriHaximus\HtmlCompress
 */
class Patterns
{
    const MATCH_PRE        = '!(<pre[^>]*>?)(.*?)(</pre>)!is';
    const MATCH_TEXTAREA   = '!(<textarea[^>]*>?)(.*?)(</textarea>)!is';
    const MATCH_STYLE      = '!(<style>|<style[^>]*>?)(.*?)(</style>)!is';
    const MATCH_JSCRIPT    = '!(<script>|<script[^>]*type="text/javascript"[^>]*>|<script[^>]*type=\'text/javascript\'[^>]*>)(.*?)(</script>)!is';
    const MATCH_SCRIPT     = '!(<script[^>]*>?)(.*?)(</script>)!is';
    const MATCH_NOCOMPRESS = '!(<nocompress>)(.*?)(</nocompress>)!is';
}
{'fraction_non_alphanumeric': 0.255047821466525, 'fraction_numerical': 0.005313496280552604, 'mean_word_length': 4.334277620396601, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 53, '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': '6048338', 'n_tokens_mistral': 735, 'n_tokens_neox': 695, 'n_words': 124}