<commit_before><?php
/**
 * Created by PhpStorm.
 * User: loick
 * Date: 30/12/14
 * Time: 18:01
 */

namespace SwagFramework\Config;


class DatabaseConfig
{
    /**
     * @var instance
     */
    private static $instance;

    /**
     * @var host
     */
    private $host = 'localhost';

    /**
     * @var user
     */
    private $user = 'root';

    /**
     * @var password
     */
    private $password = '';

    /**
     * @var database
     */
    private $database = 'afs';


    /**
     * Disable construction of object.
     */
    private function __construct()
    {
    }

    public static function getInstance()
    {
        if (!(self::$instance instanceof self))
            self::$instance = new self();

        return self::$instance;
    }

    /**
     * generate Data source name string (connection string)
     * @return string data source name string
     */
    public function dsn()
    {
        $dsn = 'mysql:';<commit_msg>Reformat code<commit_after><?php
/**
 * Created by PhpStorm.
 * User: loick
 * Date: 30/12/14
 * Time: 18:01
 */

namespace SwagFramework\Config;


class DatabaseConfig
{
    /**
     * @var instance
     */
    private static $instance;

    /**
     * @var host
     */
    private $host = 'localhost';

    /**
     * @var user
     */
    private $user = 'root';

    /**
     * @var password
     */
    private $password = '';

    /**
     * @var database
     */
    private $database = 'afs';


    /**
     * Disable construction of object.
     */
    private function __construct()
    {
    }

    public static function getInstance()
    {
        if (!(self::$instance instanceof self)) {
            self::$instance = new self();
        }

        return self::$instance;
    }

    /**
     * generate Data source name string (connection string)
     * @return string data source name string
     */
    public function dsn()
    {
        $dsn = 'mysql:';
{'fraction_non_alphanumeric': 0.13946280991735538, 'fraction_numerical': 0.010330578512396695, 'mean_word_length': 1.7592592592592593, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '6945775', 'n_tokens_mistral': 597, 'n_tokens_neox': 570, 'n_words': 152}