<commit_before><?php
return [
    'request' => [
        'class' => \blink\http\Request::class,
        'middleware' => [\App\Http\Middleware\AuthMiddleware::class],
        'sessionKey' => function (\blink\http\Request $request) {
                $cookie = $request->cookies->get('SESSIONID');
                if ($cookie) {
                    return $cookie->value;
                }
        }
    ],
    'response' => [
        'class' => \blink\http\Response::class,
        'middleware' => [],
    ],
    'session' => [
        'class' => 'blink\session\Manager',
        'expires' => 3600 * 24 * 15,
        'storage' => [
            'class' => 'blink\session\FileStorage',
            'path' => __DIR__ . '/../../runtime/sessions'
        ]
    ],
    'auth' => [
        'class' => 'blink\auth\Auth',
        'model' => 'App\Models\User',
    ],
    'log' => [
        'class' => 'blink\log\Logger',
        'targets' => [
            'file' => [
                'class' => 'blink\log\StreamTarget',
                'enabled' => true,
                'stream' => 'php://stderr',
                'level' => 'info',
            ]
        ],<commit_msg>Added support to create new session if no session exists<commit_after><?php
return [
    'request' => [
        'class' => \blink\http\Request::class,
        'middleware' => [\app\http\middleware\AuthMiddleware::class],
        'sessionKey' => function (\blink\http\Request $request) {
            $cookie = $request->cookies->get('SESSIONID');
            if ($cookie) {
                return $cookie->value;
            }
            $session = session()->put([]);
            response()->cookies->add(new \blink\http\Cookie([
                'name' => 'SESSIONID',
                'value' => $session->id,
            ]));
            return $session->id;
        }
    ],
    'response' => [
        'class' => \blink\http\Response::class,
        'middleware' => [],
    ],
    'session' => [
        'class' => 'blink\session\Manager',
        'expires' => 3600 * 24 * 15,
        'storage' => [
            'class' => 'blink\session\FileStorage',
            'path' => __DIR__ . '/../../runtime/sessions'
        ]
    ],
    'auth' => [
        'class' => 'blink\auth\Auth',
        'model' => app\models\User::class,
    ],
    'log' => [
        'class' => 'blink\log\Logger',
        'targets' => [
            'file' => [
                'class' => 'blink\log\StreamTarget',
                'enabled' => true,
                'stream' => 'php://stderr',
                'level' => 'info',
            ]
        ],
{'fraction_non_alphanumeric': 0.19482025512176265, 'fraction_numerical': 0.006184770003865481, 'mean_word_length': 1.474187380497132, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 64, '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': '1516092', 'n_tokens_mistral': 800, 'n_tokens_neox': 780, 'n_words': 123}