<commit_before><?php
/**
 * This file is part of the TYPO3-Analytics package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace TYPO3Analysis\Tests\Helper;

use PHPUnit_Extensions_Database_DataSet_IDataSet;
use PHPUnit_Extensions_Database_DB_IDatabaseConnection;
use TYPO3Analysis\Helper\Database;
use TYPO3Analysis\Tests\Fixtures\PDOMock;

class DatabaseTest extends \PHPUnit_Extensions_Database_TestCase
{

    /**
     * @var \PDO
     */
    protected $databaseConnection;

    public function __construct()
    {
        $this->databaseConnection = $this->createDatabaseConnectionObject();

        // This is not the same as in Database/database-scheme.sql
        // but we test on SQLLite and for the tests we do not need
        // features like unsigned or auto increment or utf8 charsets
        $query = "<commit_msg>Removed unnecessary use statement of DatabaseTest<commit_after><?php
/**
 * This file is part of the TYPO3-Analytics package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace TYPO3Analysis\Tests\Helper;

use PHPUnit_Extensions_Database_DataSet_IDataSet;
use PHPUnit_Extensions_Database_DB_IDatabaseConnection;
use TYPO3Analysis\Helper\Database;

class DatabaseTest extends \PHPUnit_Extensions_Database_TestCase
{

    /**
     * @var \PDO
     */
    protected $databaseConnection;

    public function __construct()
    {
        $this->databaseConnection = $this->createDatabaseConnectionObject();

        // This is not the same as in Database/database-scheme.sql
        // but we test on SQLLite and for the tests we do not need
        // features like unsigned or auto increment or utf8 charsets
        $query = "
{'fraction_non_alphanumeric': 0.07911392405063292, 'fraction_numerical': 0.004746835443037975, 'mean_word_length': 3.5274463007159906, 'pattern_counts': {'":': 0, '<': 11, '<?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': '3741250', 'n_tokens_mistral': 526, 'n_tokens_neox': 523, 'n_words': 173}