<commit_before><?php
namespace Bolt\Configuration;

use Bolt\Application;
use Symfony\Component\HttpFoundation\Request;

class Composer extends Standard
{

    /**
     * Constructor initialises on the app root path.
     *
     * @param string $path
     */
    public function __construct($loader, Request $request = null)
    {
        parent::__construct($loader, $request);
        $this->setPath("composer", $this->root);
        $this->setUrl("app", "/bolt-public/");
    }

    public function compat()
    {
        if (! defined("BOLT_COMPOSER_INSTALLED")) {
            define('BOLT_COMPOSER_INSTALLED', true);
        }
        parent::compat();
    }

    public function getVerifier()
    {
        if (! $this->verifier) {
            $this->verifier = new ComposerChecks($this);
        }

        return $this->verifier;
    }

    /**
     * This currently gets special treatment because of the processing order.
     * The theme path is needed before the app has constructed, so this is a shortcut to
     * allow the Application constructor to pre-provide a theme path.
     *
     * @return void
     *
     */
    public function setThemePath($generalConfig)
    {
        $theme = isset($generalConfig['theme']) ? $generalConfig['theme'] : '';
        $theme_path = isset($generalConfig['theme_path']) ? $generalConfig['theme_path'] : '/theme';
        $theme_url = isset($generalConfig['theme_path']) ? $generalConfig['theme_path'] : $this->getUrl('root') . 'theme';
        $this->setPath("themepath", sprintf('%s%s/%s', $this->getPath("composer"), $theme_path, $theme));
        $this->setUrl("theme", sprintf('%s/%s/', $theme_url, $theme));
    }
}<commit_msg>remove the composer override, we dont want to support running themes witin the vendor dir<commit_after><?php
namespace Bolt\Configuration;

use Bolt\Application;
use Symfony\Component\HttpFoundation\Request;

class Composer extends Standard
{

    /**
     * Constructor initialises on the app root path.
     *
     * @param string $path
     */
    public function __construct($loader, Request $request = null)
    {
        parent::__construct($loader, $request);
        $this->setPath("composer", $this->root);
        $this->setUrl("app", "/bolt-public/");
    }

    public function compat()
    {
        if (! defined("BOLT_COMPOSER_INSTALLED")) {
            define('BOLT_COMPOSER_INSTALLED', true);
        }
        parent::compat();
    }

    public function getVerifier()
    {
        if (! $this->verifier) {
            $this->verifier = new ComposerChecks($this);
        }

        return $this->verifier;
    }

    
}
{'fraction_non_alphanumeric': 0.1408987052551409, 'fraction_numerical': 0.0, 'mean_word_length': 2.705218617771509, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '4997376', 'n_tokens_mistral': 777, 'n_tokens_neox': 762, 'n_words': 177}