<commit_before><?php

namespace Gobie\Regex\Drivers\Pcre;

use Gobie\Regex\RegexException;

class PcreRegexException extends RegexException
{

    public static $messages = array(
        PREG_INTERNAL_ERROR        => 'Internal error',
        PREG_BACKTRACK_LIMIT_ERROR => 'Backtrack limit was exhausted',
        PREG_RECURSION_LIMIT_ERROR => 'Recursion limit was exhausted',
        PREG_BAD_UTF8_ERROR        => 'Malformed UTF-8 data',<commit_msg>Define PREG_BAD_UTF8_OFFSET_ERROR if it doesn't exist for HHVM<commit_after><?php

namespace Gobie\Regex\Drivers\Pcre;

use Gobie\Regex\RegexException;

// hhvm fix
if (!\defined('PREG_BAD_UTF8_OFFSET_ERROR')) {
    \define('PREG_BAD_UTF8_OFFSET_ERROR', 5);
};

class PcreRegexException extends RegexException
{

    public static $messages = array(
        PREG_INTERNAL_ERROR        => 'Internal error',
        PREG_BACKTRACK_LIMIT_ERROR => 'Backtrack limit was exhausted',
        PREG_RECURSION_LIMIT_ERROR => 'Recursion limit was exhausted',
        PREG_BAD_UTF8_ERROR        => 'Malformed UTF-8 data',
{'fraction_non_alphanumeric': 0.08962264150943396, 'fraction_numerical': 0.007547169811320755, 'mean_word_length': 3.912037037037037, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '1883315', 'n_tokens_mistral': 347, 'n_tokens_neox': 340, 'n_words': 72}