<commit_before><?php
/**
 * @package Dao_Exception
 * @author <NAME> (<EMAIL>)
 * @version 0.1
 */
namespace Dao\Exception;

/**
 * @package Dao_Exception
 */
class ConnectionException extends AbstractException
{
    /**
     * The host of the database server
     *
     * @var String
     */
    private $_host;

    /**
     * The database trying to be connected to
     *
     * @var String
     */
    private $_database;

    /**
     * Constructor
     *
     * @param String  $message
     * @param Integer $code
     * @param String  $host
     * @param String  $database
     */
    public function __construct($message, $code, $host, $database) {
        parent::__construct($message, $code);
        $this->_host = $host;
        $this->_database = $database;
    }

    /**
     * @see DbExceptionInterface::getDetails()
     */
    public function getDetails() {
        return $this->formatException(
                sprintf('Host: %s %sDataBase: %s',
                    $this->_host,
                    PHP_EOL,
                    isset($this->_database) ? $this->_database : 'Database is not provided'
                    ).PHP_EOL<commit_msg>* Nuke an undeclared function<commit_after><?php
/**
 * @package Dao_Exception
 * @author <NAME> (<EMAIL>)
 * @version 0.1
 */
namespace Dao\Exception;

/**
 * @package Dao_Exception
 */
class ConnectionException extends AbstractException
{
    /**
     * The host of the database server
     *
     * @var String
     */
    private $_host;

    /**
     * The database trying to be connected to
     *
     * @var String
     */
    private $_database;

    /**
     * Constructor
     *
     * @param String  $message
     * @param Integer $code
     * @param String  $host
     * @param String  $database
     */
    public function __construct($message, $code, $host, $database) {
        parent::__construct($message, $code);
        $this->_host = $host;
        $this->_database = $database;
    }

    /**
     * @see DbExceptionInterface::getDetails()
     */
    public function getDetails() {
        return sprintf('Host: %s %sDataBase: %s',
                $this->_host,
                PHP_EOL,
                isset($this->_database) ? $this->_database : 'Database is not provided'
{'fraction_non_alphanumeric': 0.1314159292035398, 'fraction_numerical': 0.0017699115044247787, 'mean_word_length': 1.994701986754967, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 18, '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': '7474472', 'n_tokens_mistral': 662, 'n_tokens_neox': 644, 'n_words': 165}