<commit_before><?php
/**
 * This file is part of the BEAR.Package package
 *
 * @license http://opensource.org/licenses/bsd-license.php BSD
 */
namespace BEAR\Package;

use BEAR\Package\Provide\Error\VndError;
use BEAR\Package\Provide\Router\AuraRouterModule;
use BEAR\Package\Provide\Router\WebRouterModule;
use BEAR\Package\Provide\Transfer\EtagResponseModule;
use BEAR\QueryRepository\QueryRepositoryModule;
use BEAR\Sunday\Extension\Application\AppInterface;
use BEAR\Sunday\Extension\Error\ErrorInterface;
use BEAR\Sunday\Module\SundayModule;
use Ray\Di\AbstractModule;
use Ray\Di\Scope;

class PackageModule extends AbstractModule
{
    /**
     * @var AbstractAppMeta
     */
    private $appMeta;

    public function __construct(AbstractAppMeta $appMeta)
    {
        $this->appMeta = $appMeta;
    }

    /**
     * {@inheritdoc}
     */
    protected function configure()
    {
        $this->bind(AbstractAppMeta::class)->toInstance($this->appMeta);
        $this->bind(AppInterface::class)->to($this->appMeta->name . '\Module\App');
        $this->bind('')->annotatedWith('app_name')->toInstance($this->appMeta->name);
        $this->bind(ErrorInterface::class)->to(VndError::class);
        $this->install(new SundayModule);
        $this->bindResources();
        $this->install(new QueryRepositoryModule($this->appMeta->name));
        $this->install(new EtagResponseModule);
        $this->install(new AuraRouterModule());
        $this->install(new WebRouterModule);<commit_msg>fix qualifier for app name<commit_after><?php
/**
 * This file is part of the BEAR.Package package
 *
 * @license http://opensource.org/licenses/bsd-license.php BSD
 */
namespace BEAR\Package;

use BEAR\Package\Provide\Error\VndError;
use BEAR\Package\Provide\Router\AuraRouterModule;
use BEAR\Package\Provide\Router\WebRouterModule;
use BEAR\Package\Provide\Transfer\EtagResponseModule;
use BEAR\QueryRepository\QueryRepositoryModule;
use BEAR\Resource\Annotation\AppName;
use BEAR\Sunday\Extension\Application\AppInterface;
use BEAR\Sunday\Extension\Error\ErrorInterface;
use BEAR\Sunday\Module\SundayModule;
use Ray\Di\AbstractModule;
use Ray\Di\Scope;

class PackageModule extends AbstractModule
{
    /**
     * @var AbstractAppMeta
     */
    private $appMeta;

    public function __construct(AbstractAppMeta $appMeta)
    {
        $this->appMeta = $appMeta;
    }

    /**
     * {@inheritdoc}
     */
    protected function configure()
    {
        $this->bind(AbstractAppMeta::class)->toInstance($this->appMeta);
        $this->bind(AppInterface::class)->to($this->appMeta->name . '\Module\App');
        $this->bind('')->annotatedWith(AppName::class)->toInstance($this->appMeta->name);
        $this->bind(ErrorInterface::class)->to(VndError::class);
        $this->install(new SundayModule);
        $this->bindResources();
        $this->install(new QueryRepositoryModule($this->appMeta->name));
        $this->install(new EtagResponseModule);
        $this->install(new AuraRouterModule());
        $this->install(new WebRouterModule);
{'fraction_non_alphanumeric': 0.14562151525090195, 'fraction_numerical': 0.0, 'mean_word_length': 3.9035369774919615, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 49, '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': '1641172', 'n_tokens_mistral': 929, 'n_tokens_neox': 908, 'n_words': 141}