<commit_before><?php
namespace Phalcana\Exceptions;

use Phalcon\Mvc\Dispatcher;
use Phalcana\Phalcana;

/**
 * Handle 500 errors
 *
 * @package     Phalcana
 * @category    Exceptions
 */
class HTTP500 extends HTTP
{
    protected $code = 500;

    protected $message = "Internal Server Error";

    protected $debug = "";

    protected $forwards = array(
        'controller' => 'error',
        'action' => 'show500',
    );

    /**
     * Get the debugging response from the error handler
     *
     * @param   string  HTML response from the debugger to send on.
     * @return  void
     **/
    public function __construct($message = "", $code = 500, $severity = 1, $filename = __FILE__, $lineno = __LINE__, \Exception $previous = null)
    {
        if ($previous != null) {
            $this->debug = $message;
            $message = "";
        }

        parent::__construct($message, $code, $severity, $filename, $lineno, $previous);
    }

    /**
     * undocumented function
     *
     * @return  void
     * @author  <NAME>
     **/
    public function initialize()
    {

        if (Phalcana\Phalcana::$mode <= Phalcana\Phalcana::STAGING) {

            // do stuff with the error handler here


        } else {
            echo $this->debug;
            die();
        }

        parent::initialize();
    }
}<commit_msg>fix for error handler 500 namespacing<commit_after><?php
namespace Phalcana\Exceptions;

use Phalcon\Mvc\Dispatcher;
use Phalcana\Phalcana;

/**
 * Handle 500 errors
 *
 * @package     Phalcana
 * @category    Exceptions
 */
class HTTP500 extends HTTP
{
    protected $code = 500;

    protected $message = "Internal Server Error";

    protected $debug = "";

    protected $forwards = array(
        'controller' => 'error',
        'action' => 'show500',
    );

    /**
     * Get the debugging response from the error handler
     *
     * @param   string  HTML response from the debugger to send on.
     * @return  void
     **/
    public function __construct(
        $message = "",
        $code = 500,
        $severity = 1,
        $filename = __FILE__,
        $lineno = __LINE__,
        \Exception $previous = null
    ) {
        if ($previous != null) {
            $this->debug = $message;
            $message = "";
        }

        parent::__construct($message, $code, $severity, $filename, $lineno, $previous);
    }

    /**
     * undocumented function
     *
     * @return  void
     * @author  <NAME>
     **/
    public function initialize()
    {

        if (Phalcana::$mode <= Phalcana::STAGING) {
            // do stuff with the error handler here


        } else {
            echo $this->debug;
            die();
        }

        parent::initialize();
    }
}
{'fraction_non_alphanumeric': 0.12686839227123586, 'fraction_numerical': 0.012759752096244987, 'mean_word_length': 1.953713670613563, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, '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': '5976792', 'n_tokens_mistral': 863, 'n_tokens_neox': 789, 'n_words': 216}