<commit_before><?php

$params = require(__DIR__ . '/params.php');

$config = [
    'id' => 'aval-private-api',
    'basePath' => dirname(__DIR__),
    'defaultRoute' => 'default/index',
    'components' => [
        'request' => [
            'enableCsrfValidation' => false,
            'cookieValidationKey' => '<KEY>',
            'parsers' => [
                'application/json' => 'yii\web\JsonParser',
            ]
        ],
        'urlManager' => [
            'enablePrettyUrl' => true,
        ],
        'user' => [
            'identityClass' => 'common\models\Conta',
            'enableSession' => false,
            'loginUrl' => null
        ]
    ],
    'modules' => [ 'v1' => [ 'class' => 'app\modules\v1\Module']],
    'params' => $params
];

if (is_file(__DIR__ . '/config.override.php')) {
    include __DIR__ . '/config.override.php';
}

return $config;<commit_msg>Fixes URL rules and plurals for existing controllers.<commit_after><?php

$params = require(__DIR__ . '/params.php');

$config = [
    'id' => 'aval-private-api',
    'basePath' => dirname(__DIR__),
    'defaultRoute' => 'default/index',
    'components' => [
        'request' => [
            'enableCsrfValidation' => false,
            'cookieValidationKey' => '<KEY>',
            'parsers' => [
                'application/json' => 'yii\web\JsonParser',
            ]
        ],
        'urlManager' => [
            'enablePrettyUrl' => true,
            'rules' => [
                    ['class' => 'yii\rest\UrlRule', 'controller' => ['v1/book', 'v1/author', 'v1/collection']],
                    ['class' => 'yii\rest\UrlRule', 'controller' => 'v1/series', 'pluralize' => false],
            ],
        ],
        'user' => [
            'identityClass' => 'common\models\Conta',
            'enableSession' => false,
            'loginUrl' => null
        ]
    ],
    'modules' => ['v1' => ['class' => 'app\modules\v1\Module']],
    'params' => $params
];

return $config;
{'fraction_non_alphanumeric': 0.19534412955465588, 'fraction_numerical': 0.004048582995951417, 'mean_word_length': 1.9116347569955818, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5258544', 'n_tokens_mistral': 624, 'n_tokens_neox': 620, 'n_words': 101}