<commit_before><?php

namespace Wizin\Bundle\BaseBundle\Tests;

use Symfony\Bundle\FrameworkBundle\Tests\TestCase;
use Symfony\Component\Finder\Finder;
use Symfony\Component\HttpKernel\KernelInterface;

/**
 * The base class for unit tests.
 *
 * refer to https://gist.github.com/jakzal/1319290 and \Symfony\Bundle\FrameworkBundle\Test\WebTestCase
 *
 * @author <NAME> <<EMAIL>>
 */
abstract class UnitTestCase extends TestCase
{
    protected static $class;

    /**
     * @var KernelInterface
     */
    protected $kernel;

    /**
     * @var \Symfony\Component\DependencyInjection\ContainerAwareInterface
     */
    protected $container;

    /**
     * @return null
     */
    public function setUp()
    {
        $this->kernel = static::createKernel();
        $this->kernel->boot();
        $this->container = $this->kernel->getContainer();

        parent::setUp();
    }

    /**
     * @return null
     */
    public function tearDown()
    {
        $this->kernel->shutdown();

        parent::tearDown();
    }

    /**
     * Finds the directory where the phpunit.xml(.dist) is stored.
     *
     * If you run tests with the PHPUnit CLI tool, everything will work as expected.
     * If not, override this method in your test classes.
     *
     * @return string The directory where phpunit.xml(.dist) is stored
     *
     * @throws \RuntimeException
     */
    protected static function getPhpUnitXmlDir()
    {
        if (!isset($_SERVER['argv']) || false === strpos($_SERVER['argv'][0], 'phpunit')) {
            throw new \RuntimeException('You must override the WebTestCase::createKernel() method.');
        }

        $dir = static::getPhpUnitCliConfigArgument();
        if ($dir === null &&<commit_msg>Change scope of some properties<commit_after><?php

namespace Wizin\Bundle\BaseBundle\Tests;

use Symfony\Bundle\FrameworkBundle\Tests\TestCase;
use Symfony\Component\Finder\Finder;
use Symfony\Component\HttpKernel\KernelInterface;

/**
 * The base class for unit tests.
 *
 * refer to https://gist.github.com/jakzal/1319290 and \Symfony\Bundle\FrameworkBundle\Test\WebTestCase
 *
 * @author <NAME> <<EMAIL>>
 */
abstract class UnitTestCase extends TestCase
{
    protected static $class;

    /**
     * @var KernelInterface
     */
    protected static $kernel;

    /**
     * @var \Symfony\Component\DependencyInjection\ContainerAwareInterface
     */
    protected static $container;

    /**
     * @return null
     */
    public function setUp()
    {
        if (null !== static::$kernel) {
            static::$kernel->shutdown();
        }

        static::$kernel = static::createKernel();
        static::$kernel->boot();
        static::$container = static::$kernel->getContainer();

        parent::setUp();
    }

    /**
     * @return null
     */
    public function tearDown()
    {
        if (null !== static::$kernel) {
            static::$kernel->shutdown();
        }

        parent::tearDown();
    }

    /**
     * Finds the directory where the phpunit.xml(.dist) is stored.
     *
     * If you run tests with the PHPUnit CLI tool, everything will work as expected.
     * If not, override this method in your test classes.
     *
     * @return string The directory where phpunit.xml(.dist) is stored
     *
     * @throws \RuntimeException
     */
    protected static function getPhpUnitXmlDir()
    {
        if (!isset($_SERVER['argv']) || false === strpos($_SERVER['argv'][0], 'phpunit')) {
            throw new \RuntimeException('You must override the WebTestCase::createKernel() method.');
        }

        $dir = static::getPhpUnitCliConfigArgument();
        if ($dir === null &&
{'fraction_non_alphanumeric': 0.1344997266265719, 'fraction_numerical': 0.004373974849644614, 'mean_word_length': 2.5697560975609757, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 21, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '3911142', 'n_tokens_mistral': 1050, 'n_tokens_neox': 1030, 'n_words': 253}