<commit_before><?php

use Composer\Package\Package;

class ComposerTestCase extends \PHPUnit_Framework_TestCase
{
    private static $composer;

    public function getComposer()
    {
        if (null === self::$composer) {
            self::$composer = new \Composer\Composer();
            $this->stubComposer();
        }

        return self::$composer;
    }

    private function stubComposer()
    {
        $localRepository = new \Composer\Repository\InstalledArrayRepository($this->getInstalledPackages());

        $composer = $this->getComposer();
        $config = $this->getComposerConfig();
        $composer->setConfig($config);
        $composer->setRepositoryManager($this->createRepositoryManager($config));
        $composer->getRepositoryManager()->setLocalRepository($localRepository);
        $composer->setInstallationManager(new \Composer\Installer\InstallationManager());
        $composer->getInstallationManager()->addInstaller(new \Composer\Installer\LibraryInstaller(new \Composer\IO\NullIO(), $composer, 'symfony-bundle'));
    }

    private function createRepositoryManager(\Composer\Config $config)
    {
        $manager = new \Composer\Repository\RepositoryManager(new \Composer\IO\NullIo(), $config);
        $manager->addRepository(new \Composer\Repository\ArrayRepository(array()));<commit_msg>Case sensitivity error<commit_after><?php

use Composer\Package\Package;

class ComposerTestCase extends \PHPUnit_Framework_TestCase
{
    private static $composer;

    public function getComposer()
    {
        if (null === self::$composer) {
            self::$composer = new \Composer\Composer();
            $this->stubComposer();
        }

        return self::$composer;
    }

    private function stubComposer()
    {
        $localRepository = new \Composer\Repository\InstalledArrayRepository($this->getInstalledPackages());

        $composer = $this->getComposer();
        $config = $this->getComposerConfig();
        $composer->setConfig($config);
        $composer->setRepositoryManager($this->createRepositoryManager($config));
        $composer->getRepositoryManager()->setLocalRepository($localRepository);
        $composer->setInstallationManager(new \Composer\Installer\InstallationManager());
        $composer->getInstallationManager()->addInstaller(new \Composer\Installer\LibraryInstaller(new \Composer\IO\NullIO(), $composer, 'symfony-bundle'));
    }

    private function createRepositoryManager(\Composer\Config $config)
    {
        $manager = new \Composer\Repository\RepositoryManager(new \Composer\IO\NullIO(), $config);
        $manager->addRepository(new \Composer\Repository\ArrayRepository(array()));
{'fraction_non_alphanumeric': 0.13383177570093457, 'fraction_numerical': 0.0, 'mean_word_length': 3.770053475935829, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 29, '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': '5739817', 'n_tokens_mistral': 717, 'n_tokens_neox': 716, 'n_words': 107}