<commit_before><?php

/*
 *-------------------------------------------------------------------------
 * Annotations Configuration
 *-------------------------------------------------------------------------
 *
 * Anything and everything to do with annotations and how they are
 * configured to work within the application can be found here.
 *
 */

use Valkyrja\Config\Enums\ConfigKeyPart as CKP;
use Valkyrja\Config\Enums\EnvKey;

return [
    /*
     *-------------------------------------------------------------------------
     * Annotations Enabled
     *-------------------------------------------------------------------------
     *
     * //
     *
     */
    CKP::ENABLED   => env(EnvKey::ANNOTATIONS_ENABLED, false),

    /*
     *-------------------------------------------------------------------------
     * Annotations Cache Dir
     *-------------------------------------------------------------------------
     *
     * //
     *
     */
    CKP::CACHE_DIR => env(EnvKey::ANNOTATIONS_CACHE_DIR, storagePath('vendor/annotations')),

    /*
     *-------------------------------------------------------------------------
     * Annotations Map
     *-------------------------------------------------------------------------
     *
     * //
     *
     */
    CKP::MAP       => env(
        EnvKey::ANNOTATIONS_MAP,
        [
            'Command'        => Valkyrja\Console\Annotations\Command::class,
            'Listener'       => Valkyrja\Events\Annotations\Listener::class,
            'Route'          => Valkyrja\Routing\Annotations\Route::class,
            'Service'        => Valkyrja\Container\Annotations\Service::class,
            'ServiceAlias'   => Valkyrja\Container\Annotations\ServiceAlias::class,
            'ServiceContext' => Valkyrja\Container\Annotations\ServiceContext::class,
        ]
    ),
];<commit_msg>Updating config to use Enum constant values to safeguard for future namespace/class changes.<commit_after><?php

/*
 *-------------------------------------------------------------------------
 * Annotations Configuration
 *-------------------------------------------------------------------------
 *
 * Anything and everything to do with annotations and how they are
 * configured to work within the application can be found here.
 *
 */

use Valkyrja\Annotation\Enums\Annotation;
use Valkyrja\Config\Enums\ConfigKeyPart as CKP;
use Valkyrja\Config\Enums\EnvKey;

return [
    /*
     *-------------------------------------------------------------------------
     * Annotations Enabled
     *-------------------------------------------------------------------------
     *
     * //
     *
     */
    CKP::ENABLED   => env(EnvKey::ANNOTATIONS_ENABLED, false),

    /*
     *-------------------------------------------------------------------------
     * Annotations Cache Dir
     *-------------------------------------------------------------------------
     *
     * //
     *
     */
    CKP::CACHE_DIR => env(EnvKey::ANNOTATIONS_CACHE_DIR, storagePath('vendor/annotations')),

    /*
     *-------------------------------------------------------------------------
     * Annotations Map
     *-------------------------------------------------------------------------
     *
     * //
     *
     */
    CKP::MAP       => env(
        EnvKey::ANNOTATIONS_MAP,
        [
            CKP::COMMAND         => Annotation::COMMAND,
            CKP::LISTENER        => Annotation::LISTENER,
            CKP::ROUTE           => Annotation::ROUTE,
            CKP::SERVICE         => Annotation::SERVICE,
            CKP::SERVICE_ALIAS   => Annotation::SERVICE_ALIAS,
            CKP::SERVICE_CONTEXT => Annotation::SERVICE_CONTEXT,
        ]
    ),
];
{'fraction_non_alphanumeric': 0.3990280777537797, 'fraction_numerical': 0.0, 'mean_word_length': 0.8233267716535433, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '5863011', 'n_tokens_mistral': 820, 'n_tokens_neox': 800, 'n_words': 132}