<commit_before><?php

class PlasticConnectionTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @test
     */
    public function it_returns_a_map_builder()
    {
        $connection = $this->getConnectionMock();

        $this->assertInstanceOf(Sleimanx2\Plastic\Map\Builder::class, $connection->getMapBuilder());
    }

    /**
     * @test
     */
    public function it_sets_the_default_index()
    {
        $connection = $this->getConnectionMock();

        $connection->setIndex("custom-index");

        $this->assertEquals("custom-index", $connection->index);
    }

    /**
     * @test
     */
    public function it_returns_a_map_grammar()
    {
        $connection = $this->getConnectionMock();

        $this->assertInstanceOf(Sleimanx2\Plastic\Map\Grammar::class, $connection->getMapGrammar());
    }

    /**
     * @test
     */<commit_msg>Applied fixes from StyleCI<commit_after><?php

class PlasticConnectionTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @test
     */
    public function it_returns_a_map_builder()
    {
        $connection = $this->getConnectionMock();

        $this->assertInstanceOf(Sleimanx2\Plastic\Map\Builder::class, $connection->getMapBuilder());
    }

    /**
     * @test
     */
    public function it_sets_the_default_index()
    {
        $connection = $this->getConnectionMock();

        $connection->setIndex('custom-index');

        $this->assertEquals('custom-index', $connection->index);
    }

    /**
     * @test
     */
    public function it_returns_a_map_grammar()
    {
        $connection = $this->getConnectionMock();

        $this->assertInstanceOf(Sleimanx2\Plastic\Map\Grammar::class, $connection->getMapGrammar());
    }

    /**
     * @test
     */
{'fraction_non_alphanumeric': 0.14589316484778864, 'fraction_numerical': 0.0022975301550832855, 'mean_word_length': 2.6751054852320677, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, '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': '7464121', 'n_tokens_mistral': 543, 'n_tokens_neox': 528, 'n_words': 65}