<commit_before><?php

class Bugsnag_Error
{
    private static $VALID_SEVERITIES = array(
        'fatal',
        'error',
        'warning',
        'info'
    );

    public $name;
    public $message;
    public $severity = "error";
    public $stacktrace;
    public $metaData = array();
    public $config;
    public $diagnostics;
    public $code;
    public $previous;

    // Static error creation methods, to ensure that Error object is always complete
    public static function fromPHPError(Bugsnag_Configuration $config, Bugsnag_Diagnostics $diagnostics, $code, $message, $file, $line, $fatal=false)
    {
        $error = new Bugsnag_Error($config, $diagnostics);
        $error->setPHPError($code, $message, $file, $line, $fatal);

        return $error;
    }

    public static function fromPHPException(Bugsnag_Configuration $config, Bugsnag_Diagnostics $diagnostics, Exception $exception)<commit_msg>Remove 'fatal' from $VALID_SEVERITIES<commit_after><?php

class Bugsnag_Error
{
    private static $VALID_SEVERITIES = array(
        'error',
        'warning',
        'info'
    );

    public $name;
    public $message;
    public $severity = "error";
    public $stacktrace;
    public $metaData = array();
    public $config;
    public $diagnostics;
    public $code;
    public $previous;

    // Static error creation methods, to ensure that Error object is always complete
    public static function fromPHPError(Bugsnag_Configuration $config, Bugsnag_Diagnostics $diagnostics, $code, $message, $file, $line, $fatal=false)
    {
        $error = new Bugsnag_Error($config, $diagnostics);
        $error->setPHPError($code, $message, $file, $line, $fatal);

        return $error;
    }

    public static function fromPHPException(Bugsnag_Configuration $config, Bugsnag_Diagnostics $diagnostics, Exception $exception)
{'fraction_non_alphanumeric': 0.10720086626962642, 'fraction_numerical': 0.0, 'mean_word_length': 3.431654676258993, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6776148', 'n_tokens_mistral': 551, 'n_tokens_neox': 537, 'n_words': 151}