<commit_before><?php
/**
 * Simple test framework.
 *
 * PHP version 5
 *
 * @category Attachmentgenie
 * @package  Testbench
 * @author   <NAME> <<EMAIL>>
 * @license  https://github.com/attachmentgenie/testbench/LICENSE Apache 2.0
 * @link     https://github.com/attachmentgenie/testbench
 */

namespace attachmentgenie\testbench\mongo\aggregate;

use Zumba\PHPUnit\Extensions\Mongo\DataSet\DataSet;
use Zumba\PHPUnit\Extensions\Mongo\TestCase as MongoTestCase;
use Zumba\PHPUnit\Extensions\Mongo\Client\Connector;

/**
 * Simple test framework.
 *
 * @category Attachmentgenie
 * @package  Testbench
 * @author   <NAME> <<EMAIL>>
 * @license  https://github.com/attachmentgenie/testbench/LICENSE Apache 2.0
 * @link     https://github.com/attachmentgenie/testbench
 */
class TestCase extends MongoTestCase
{
    /**
     * Mongo connection.
     *
     * @var Connector
     */
    protected $connection;

    /**
     * Mongo dataset.
     *
     * @var DataSet
     */
    protected $dataset;

    /**
     * Return connection to mongo server.
     *
     * @return Zumba\PHPUnit\Extensions\Mongo\Client\Connector
     */
    public function getConnection()
    {
        if (empty($this->connection)) {
            $this->connection = new Connector(new \MongoClient());
        }
        return $this->connection;
    }

    /**
     * Return mongo dataset.
     *
     * @return Zumba\PHPUnit\Extensions\Mongo\DataSet\DataSet
     */
    public function getDataSet()
    {
        if (empty($this->dataset)) {
            $this->dataSet = new DataSet($this->getConnection());
        }
        return $this->dataset;
    }
}<commit_msg>fixing errors<commit_after><?php
/**
 * Simple test framework.
 *
 * PHP version 5
 *
 * @category Attachmentgenie
 * @package  Testbench
 * @author   <NAME> <<EMAIL>>
 * @license  https://github.com/attachmentgenie/testbench/LICENSE Apache 2.0
 * @link     https://github.com/attachmentgenie/testbench
 */

namespace attachmentgenie\testbench\mongo\aggregate;

use Zumba\PHPUnit\Extensions\Mongo\Client\Connector;
use Zumba\PHPUnit\Extensions\Mongo\DataSet\DataSet;
use Zumba\PHPUnit\Extensions\Mongo\TestCase as MongoTestCase;

/**
 * Simple test framework.
 *
 * @category Attachmentgenie
 * @package  Testbench
 * @author   <NAME> <<EMAIL>>
 * @license  https://github.com/attachmentgenie/testbench/LICENSE Apache 2.0
 * @link     https://github.com/attachmentgenie/testbench
 */
class TestCase extends MongoTestCase
{
    /**
     * Mongo connection.
     *
     * @var Connector
     */
    protected $connection;

    /**
     * Mongo dataset.
     *
     * @var DataSet
     */
    protected $dataset;

    /**
     * Return connection to mongo server.
     *
     * @return Connector
     */
    public function getConnection()
    {
        if (empty($this->connection)) {
            $this->connection = new Connector(new \MongoClient());
        }
        return $this->connection;
    }

    /**
     * Return mongo dataset.
     *
     * @return DataSet
     */
    public function getDataSet()
    {
        if (empty($this->dataset)) {
            $this->dataset = new DataSet($this->getConnection());
        }
        return $this->dataset;
    }
}
{'fraction_non_alphanumeric': 0.13150514178871922, 'fraction_numerical': 0.0031162355874104083, 'mean_word_length': 2.496732026143791, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 29, 'https://': 8, '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': '2011898', 'n_tokens_mistral': 986, 'n_tokens_neox': 975, 'n_words': 191}