<commit_before><?php

// Configure our Slim instance.
$configuration = [
    'settings'             => [
        'displayErrorDetails' => env('SLIM_DEBUG', false),
    ],
    // Register factory for creating MigrationController.
    'migration_controller' => new \Lchski\Factories\MigrationControllerFactory,
];

// Create our custom Slim container.
$c = new \Slim\Container($configuration);

$c['cache'] = function () {
    return new \Slim\HttpCache\CacheProvider();
};

// Boot up our Slim instance.
$app = new \Slim\App($c);

// Add our global middleware.
$app->add(new \Lchski\TrailingSlashMiddleware);

$app->add(new \Slim\HttpCache\Cache('public', 86400));
<commit_msg>Cache to 5 minutes only, and encourage revalidation<commit_after><?php

// Configure our Slim instance.
$configuration = [
    'settings'             => [
        'displayErrorDetails' => env('SLIM_DEBUG', false),
    ],
    // Register factory for creating MigrationController.
    'migration_controller' => new \Lchski\Factories\MigrationControllerFactory,
];

// Create our custom Slim container.
$c = new \Slim\Container($configuration);

$c['cache'] = function () {
    return new \Slim\HttpCache\CacheProvider();
};

// Boot up our Slim instance.
$app = new \Slim\App($c);

// Add our global middleware.
$app->add(new \Lchski\TrailingSlashMiddleware);

$app->add(new \Slim\HttpCache\Cache('private', 300, true));

{'fraction_non_alphanumeric': 0.15197132616487455, 'fraction_numerical': 0.0064516129032258064, 'mean_word_length': 3.668896321070234, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '7353514', 'n_tokens_mistral': 439, 'n_tokens_neox': 435, 'n_words': 104}