<commit_before><?php
/**
 * Package prefix for autoloader.
 */
$loader->add('Aura\Framework\\', dirname(__DIR__) . DIRECTORY_SEPARATOR . 'src');

/**
 * Instance params and setter values.
 */

$di->setter['Aura\Framework\Cli\AbstractCommand']['setSignal'] = $di->lazyGet('signal_manager');

$di->setter['Aura\Framework\Cli\CacheClassmap\Command'] = [
    'setSystem'  => $di->lazyGet('framework_system'),
];

$di->setter['Aura\Framework\Cli\CacheConfig\Command'] = [
    'setSystem'  => $di->lazyGet('framework_system'),
];

$di->setter['Aura\Framework\Cli\Server\Command'] = [
    'setSystem'  => $di->lazyGet('framework_system'),
];

$di->params['Aura\Framework\Web\Controller\Factory'] = [
    'forge' => $di->getForge(),
    'not_found' => 'Aura\Framework\Web\NotFound\Page',
];

$di->params['Aura\Framework\Web\Controller\Front'] = [
    'signal'    => $di->lazyGet('signal_manager'),
    'context'   => $di->lazyGet('web_context'),
    'router'    => $di->lazyGet('router_map'),
    'factory'   => $di->lazyNew('Aura\Framework\Web\Controller\Factory'),
    'response'  => $di->lazyNew('Aura\Http\Message\Response'),
    'session'   => $di->lazyGet('session_manager'),
];

$di->setter['Aura\Framework\Web\Controller\AbstractPage'] = [
    'setRouter'  => $di->lazyGet('router_map'),
    'setSystem'  => $di->lazyGet('framework_system'),
];

$di->setter['Aura\Framework\View\Helper\AssetHref']['setBase'] = '/asset';

$di->params['Aura\View\HelperLocator']['registry']['assetHref'] = function() use ($di) {
    return $di->newInstance('Aura\Framework\View\Helper\AssetHref');
};

$di->params['Aura\Framework\View\Helper\Route'] = [
    'router' => $di->lazyGet('router_map'),
];

$di->params['Aura\View\HelperLocator']['registry']['route'] = function() use ($di) {
    return $di->newInstance('Aura\Framework\View\Helper\Route');
};

$di->params['Aura\Framework\Web\Renderer\AuraViewTwoStep'] = [
    'twostep' => $di->lazyNew('Aura\View\TwoStep'),
    'inflect' => $di->lazyGet('framework_inflect'),
    'accept'  => $di->lazyGet('web_accept'),
];

$di->params['Aura\Framework\Cli\Factory']['forge'] = $di->getForge();

$di->params['Aura\Framework\Bootstrap\Cli']['factory'] = $di->lazyNew('Aura\Framework\Cli\Factory');
$di->params['Aura\Framework\Bootstrap\Cli']['context'] = $di->lazyGet('cli_context');

$di->params['Aura\Framework\Bootstrap\Web']['front_controller'] = $di->lazyGet('web_front');
$di->params['Aura\Framework\Bootstrap\Web']['http_transport'] = $di->lazyGet('http_transport');

$di->params['Aura\Framework\Cli\Factory']['map']["$system/package/Aura.Framework/cli/cache-classmap"] = 'Aura\Framework\Cli\CacheClassmap\Command';
$di->params['Aura\Framework\Cli\Factory']['map']["$system/package/Aura.Framework/cli/cache-config"] = 'Aura\Framework\Cli\CacheConfig\Command';
$di->params['Aura\Framework\Cli\Factory']['map']["$system/package/Aura.Framework/cli/server"] = 'Aura\Framework\Cli\Server\Command';


// override the factory for translator locator
$di->params['Aura\Intl\TranslatorLocator']['factory'] = $di->lazyNew('Aura\Framework\Intl\TranslatorFactory');

$di->params['Aura\Framework\Web\Controller\Factory']['map']['aura.framework.asset'] = 'Aura\Framework\Web\Asset\Page';

$di->setter['Aura\Framework\Web\Asset\Page'] = [
    'setSystem'           => $di->lazyGet('framework_system'),
    'setWebCacheDir'      => 'cache/asset',
    'setCacheConfigModes' => ['prod', 'staging'],
];

$di->params['Aura\Router\Map']['attach']['/asset'] = [
    'routes' => [
        [
            'path' => '/{:package}/{:file:(.*?)}{:format:(\..+)?}',
            'values' => [
                'controller' => 'aura.framework.asset',
                'action' => 'index',
            ],
        ]
    ]
];


/**
 * Dependency services.
 */
$di->set('framework_inflect', $di->lazyNew('Aura\Framework\Inflect'));
$di->set('web_front', $di->lazyNew('Aura\Framework\Web\Controller\Front'));

// override the service for signal manager
$di->set('signal_manager', $di->lazyNew('Aura\Framework\Signal\Manager'));<commit_msg>standardize config file<commit_after><?php
/**
 * Loader
 */
$loader->add('Aura\Framework\\', dirname(__DIR__) . DIRECTORY_SEPARATOR . 'src');

/**
 * Services
 */
$di->set('framework_inflect', $di->lazyNew('Aura\Framework\Inflect'));
$di->set('web_front', $di->lazyNew('Aura\Framework\Web\Controller\Front'));
// override the service for signal manager
$di->set('signal_manager', $di->lazyNew('Aura\Framework\Signal\Manager'));

/**
 * Aura\Router\Map
 */
$di->params['Aura\Router\Map']['attach']['/asset'] = [
    'routes' => [
        [
            'path' => '/{:package}/{:file:(.*?)}{:format:(\..+)?}',
            'values' => [
                'controller' => 'aura.framework.asset',
                'action' => 'index',
            ],
        ]
    ]
];

/**
 * Aura\Framework\Bootstrap\Cli
 */
$di->params['Aura\Framework\Bootstrap\Cli']['factory'] = $di->lazyNew('Aura\Framework\Cli\Factory');
$di->params['Aura\Framework\Bootstrap\Cli']['context'] = $di->lazyGet('cli_context');

/**
 * Aura\Framework\Bootstrap\Web
 */
$di->params['Aura\Framework\Bootstrap\Web']['front_controller'] = $di->lazyGet('web_front');
$di->params['Aura\Framework\Bootstrap\Web']['http_transport'] = $di->lazyGet('http_transport');

/**
 * Aura\Framework\Cli\AbstractCommand
 */
$di->setter['Aura\Framework\Cli\AbstractCommand']['setSignal'] = $di->lazyGet('signal_manager');

/**
 * Aura\Framework\Cli\CacheClassmap\Command
 */
$di->setter['Aura\Framework\Cli\CacheClassmap\Command']['setSystem'] = $di->lazyGet('framework_system');

/**
 * Aura\Framework\Cli\CacheConfig\Command
 */
$di->setter['Aura\Framework\Cli\CacheConfig\Command']['setSystem'] = $di->lazyGet('framework_system');

/**
 * Aura\Framework\Cli\Factory
 */
$di->params['Aura\Framework\Cli\Factory']['forge'] = $di->getForge();
$di->params['Aura\Framework\Cli\Factory']['map']["$system/package/Aura.Framework/cli/cache-classmap"] = 'Aura\Framework\Cli\CacheClassmap\Command';
$di->params['Aura\Framework\Cli\Factory']['map']["$system/package/Aura.Framework/cli/cache-config"] = 'Aura\Framework\Cli\CacheConfig\Command';
$di->params['Aura\Framework\Cli\Factory']['map']["$system/package/Aura.Framework/cli/server"] = 'Aura\Framework\Cli\Server\Command';

/**
 * Aura\Framework\Cli\Server\Command
 */
$di->setter['Aura\Framework\Cli\Server\Command']['setSystem'] = $di->lazyGet('framework_system');

/**
 * Aura\Framework\View\Helper\AssetHref
 */
$di->setter['Aura\Framework\View\Helper\AssetHref']['setBase'] = '/asset';

/**
 * Aura\Framework\View\Helper\Route
 */
$di->params['Aura\Framework\View\Helper\Route']['router'] = $di->lazyGet('router_map');

/**
 * Aura\Framework\Web\Asset\Page
 */
$di->setter['Aura\Framework\Web\Asset\Page'] = [
    'setSystem'           => $di->lazyGet('framework_system'),
    'setWebCacheDir'      => 'cache/asset',
    'setCacheConfigModes' => ['prod', 'staging'],
];

/**
 * Aura\Framework\Web\Controller\AbstractPage
 */
$di->setter['Aura\Framework\Web\Controller\AbstractPage'] = [
    'setRouter'  => $di->lazyGet('router_map'),
    'setSystem'  => $di->lazyGet('framework_system'),
];

/**
 * Aura\Framework\Web\Controller\Factory
 */
$di->params['Aura\Framework\Web\Controller\Factory']['forge'] = $di->getForge();
$di->params['Aura\Framework\Web\Controller\Factory']['not_found'] = 'Aura\Framework\Web\NotFound\Page';
$di->params['Aura\Framework\Web\Controller\Factory']['map']['aura.framework.asset'] = 'Aura\Framework\Web\Asset\Page';

/**
 * Aura\Framework\Web\Controller\Front
 */
$di->params['Aura\Framework\Web\Controller\Front'] = [
    'signal'    => $di->lazyGet('signal_manager'),
    'context'   => $di->lazyGet('web_context'),
    'router'    => $di->lazyGet('router_map'),
    'factory'   => $di->lazyNew('Aura\Framework\Web\Controller\Factory'),
    'response'  => $di->lazyNew('Aura\Http\Message\Response'),
    'session'   => $di->lazyGet('session_manager'),
];

/**
 * Aura\Framework\Web\Renderer\AuraViewTwoStep
 */
$di->params['Aura\Framework\Web\Renderer\AuraViewTwoStep'] = [
    'twostep' => $di->lazyNew('Aura\View\TwoStep'),
    'inflect' => $di->lazyGet('framework_inflect'),
    'accept'  => $di->lazyGet('web_accept'),
];

/**
 * Aura\Intl\TranslatorLocator
 */
// override the factory for translator locator
$di->params['Aura\Intl\TranslatorLocator']['factory'] = $di->lazyNew('Aura\Framework\Intl\TranslatorFactory');

/**
 * Aura\View\HelperLocator
 */
$di->params['Aura\View\HelperLocator']['registry']['assetHref'] = $di->lazyNew('Aura\Framework\View\Helper\AssetHref');
$di->params['Aura\View\HelperLocator']['registry']['route'] = $di->lazyNew('Aura\Framework\View\Helper\Route');

{'fraction_non_alphanumeric': 0.23586541796739507, 'fraction_numerical': 0.0, 'mean_word_length': 4.720899470899471, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 162, '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': '4366335', 'n_tokens_mistral': 3069, 'n_tokens_neox': 3024, 'n_words': 254}