<commit_before><?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It is a breeze. Simply tell Lumen the URIs it should respond to
| and give it the Closure to call when that URI is requested.
|
*/

$api = app('Dingo\Api\Routing\Router');

$api->version('v1', function ($api) {
    $api->post('/auth', 'App\Http\Controllers\Auth\AuthController@backend');

    $api->group(['prefix' => 'users'], function ($api) {
        $api->get('/', 'App\Http\Controllers\UserController@index');
        $api->get('/{username}', 'App\Http\Controllers\UserController@show');
        $api->get('/{username}/friends', 'App\Http\Controllers\UserController@friends');
    });

});

$api->version('v1', ['middleware' => 'api.auth', 'providers' => 'jwt'], function ($api) {
    $api->get('/auth/login', 'App\Http\Controllers\AuthenticatedController@index');
    $api->post('/comments/create', 'App\Http\Controllers\AuthenticatedController@createComment');
});
<commit_msg>Get status update route<commit_after><?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It is a breeze. Simply tell Lumen the URIs it should respond to
| and give it the Closure to call when that URI is requested.
|
*/

$api = app('Dingo\Api\Routing\Router');

$api->version('v1', function ($api) {
    $api->post('/auth', 'App\Http\Controllers\Auth\AuthController@backend');

    $api->group(['prefix' => 'users'], function ($api) {
        $api->get('/', 'App\Http\Controllers\UserController@index');
        $api->get('/{username}', 'App\Http\Controllers\UserController@show');
        $api->get('/{username}/friends', 'App\Http\Controllers\UserController@friends');
        $api->get('/{id}/status_updates', 'App\Http\Controllers\UserController@statusUpdate')
    });

});

$api->version('v1', ['middleware' => 'api.auth', 'providers' => 'jwt'], function ($api) {
    $api->get('/auth/login', 'App\Http\Controllers\AuthenticatedController@index');
    $api->post('/comments/create', 'App\Http\Controllers\AuthenticatedController@createComment');
});

{'fraction_non_alphanumeric': 0.2944582299421009, 'fraction_numerical': 0.0016542597187758478, 'mean_word_length': 2.5262390670553936, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 28, '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': '2804705', 'n_tokens_mistral': 677, 'n_tokens_neox': 681, 'n_words': 143}