<commit_before><?php

return [

    /*
    |--------------------------------------------------------------------------
    | Models
    |--------------------------------------------------------------------------
    |
    | Which models to analyze and include model information for.
    |
    */

    'models' => [
    ],

    /*
    |--------------------------------------------------------------------------
    | Routing
    |--------------------------------------------------------------------------
    |
    | The base route prefix to prepend for all CMS model module routes.
    |
    */

    'route' => [

        'prefix'      => 'model',
        'name-prefix' => 'models.',

        'meta' => [
            'prefix'      => 'models-meta',
            'name-prefix' => 'models-meta.',
        ],

        // Meta-information endpoint(s) for modelinformation
        'api' => [
            'meta' => [
                'information' => 'models',
            ]
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Repository
    |--------------------------------------------------------------------------
    |
    | Settings that concern the behaviour of the model information repository.
    |
    */

    'repository' => [

        // Whether the mode information should be cached
        'cache' => false,

    ],

    /*
    |--------------------------------------------------------------------------
    | Collector
    |--------------------------------------------------------------------------
    |
    | Model information is collected by a dedicated class defined here.
    |
    */

    'collector' => [

        // The main collector that will be bound to the collector interface
        'class' => \Czim\CmsModels\Repositories\Collectors\ModelInformationCollector::class,

        'source' => [

            // The directory that contains the model representations
            'dir' => app_path('Cms/Models'),

            // The base directory that contains the application's models,
            // and the corresponding namespace
            'models-dir'       => app_path('Models'),
            'models-namespace' => 'App\\Models\\',
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Model Analyzer
    |--------------------------------------------------------------------------
    |
    | Settings for the analyzer that builds model information based on
    | Eloquent models.
    |
    */

    'analyzer' => [

        'attributes' => [

        ],

        'scopes' => [

            // Scopes (without the scope prefix) to always ignore
            'ignore' => [
                // translatable
                'translatedIn',
                'notTranslatedIn',
                'translated',
                'listsTranslations',
                'withTranslation',
                'whereTranslation',
                'whereTranslationLike',
                // listify
                'name',
                'listifyScope',
                'inList',
            ],
        ],

        'relations' => [

            // Relations to always ignore
            'ignore' => [
                'translations',
            ],
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Controllers
    |--------------------------------------------------------------------------
    |
    | The controllers that handle the model routes for web and API requests.
    |
    */

    'controllers' => [
        'models' => [
            'web' => Czim\CmsModels\Http\Controllers\DefaultModelController::class,
            'api' => Czim\CmsModels\Http\Controllers\Api\DefaultModelController::class,
        ],
        'meta' => [
            'web' => Czim\CmsModels\Http\Controllers\ModelMetaController::class,
            'api' => Czim\CmsModels\Http\Controllers\Api\ModelMetaController::class,
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Display Strategies
    |--------------------------------------------------------------------------
    |
    | Strategies for displaying list and form field content.
    |
    */

    'strategies' => [

        // Strategies for default context/criteria on the repository
        'repository' => [

            // The default namespace to prefix for relative strategy class names
            'default-namespace' => 'Czim\\CmsModels\\Repositories\\ContextStrategies\\',
            'default-strategy'  => null,

            // Aliases for repository context strategy classes
            'aliases' => [
            ],
        ],

        // Strategies for making model reference strings
        'reference' => [

            // The default namespace to prefix for relative strategy class names
            'default-namespace' => 'Czim\\CmsModels\\View\\ReferenceStrategies\\',
            'default-strategy'  => null,

            // Aliases for reference display strategy classes
            'aliases' => [
            ],
        ],

        'list' => [

            // The default page size and selectable page size options
            'page-size'         => 25,
            'page-size-options' => [ 25, 50, 100 ],

            // The default namespace to prefix for relative strategy class names
            'default-namespace' => 'Czim\\CmsModels\\View\\ListStrategies\\',
            'default-strategy'  => Czim\CmsModels\View\ListStrategies\DefaultStrategy::class,

            // The default strategy for sorting columns
            'default-sort-namespace' => 'Czim\\CmsModels\\Repositories\\SortStrategies\\',
            'default-sort-strategy'  => Czim\CmsModels\Repositories\SortStrategies\NullLast::class,

            // Aliases for list display strategy classes
            'aliases' => [
                Czim\CmsModels\Support\Enums\ListDisplayStrategy::CHECK              => 'Check',
                Czim\CmsModels\Support\Enums\ListDisplayStrategy::CHECK_NULLABLE     => 'CheckNullable',
                Czim\CmsModels\Support\Enums\ListDisplayStrategy::DATE               => 'Date',
                Czim\CmsModels\Support\Enums\ListDisplayStrategy::TIME               => 'Time',
                Czim\CmsModels\Support\Enums\ListDisplayStrategy::DATETIME           => 'DateTime',
                Czim\CmsModels\Support\Enums\ListDisplayStrategy::STAPLER_THUMBNAIL  => 'StaplerImage',
                Czim\CmsModels\Support\Enums\ListDisplayStrategy::STAPLER_FILENAME   => 'StaplerFile',
                Czim\CmsModels\Support\Enums\ListDisplayStrategy::RELATION_COUNT     => 'RelationCount',
                Czim\CmsModels\Support\Enums\ListDisplayStrategy::RELATION_REFERENCE => 'RelationReference',
            ],

            // Aliases for sort strategy classes<commit_msg>Updated config for default reference strategy values<commit_after><?php

return [

    /*
    |--------------------------------------------------------------------------
    | Models
    |--------------------------------------------------------------------------
    |
    | Which models to analyze and include model information for.
    |
    */

    'models' => [
    ],

    /*
    |--------------------------------------------------------------------------
    | Routing
    |--------------------------------------------------------------------------
    |
    | The base route prefix to prepend for all CMS model module routes.
    |
    */

    'route' => [

        'prefix'      => 'model',
        'name-prefix' => 'models.',

        'meta' => [
            'prefix'      => 'models-meta',
            'name-prefix' => 'models-meta.',
        ],

        // Meta-information endpoint(s) for modelinformation
        'api' => [
            'meta' => [
                'information' => 'models',
            ]
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Repository
    |--------------------------------------------------------------------------
    |
    | Settings that concern the behaviour of the model information repository.
    |
    */

    'repository' => [

        // Whether the mode information should be cached
        'cache' => false,

    ],

    /*
    |--------------------------------------------------------------------------
    | Collector
    |--------------------------------------------------------------------------
    |
    | Model information is collected by a dedicated class defined here.
    |
    */

    'collector' => [

        // The main collector that will be bound to the collector interface
        'class' => \Czim\CmsModels\Repositories\Collectors\ModelInformationCollector::class,

        'source' => [

            // The directory that contains the model representations
            'dir' => app_path('Cms/Models'),

            // The base directory that contains the application's models,
            // and the corresponding namespace
            'models-dir'       => app_path('Models'),
            'models-namespace' => 'App\\Models\\',
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Model Analyzer
    |--------------------------------------------------------------------------
    |
    | Settings for the analyzer that builds model information based on
    | Eloquent models.
    |
    */

    'analyzer' => [

        'attributes' => [

        ],

        'scopes' => [

            // Scopes (without the scope prefix) to always ignore
            'ignore' => [
                // translatable
                'translatedIn',
                'notTranslatedIn',
                'translated',
                'listsTranslations',
                'withTranslation',
                'whereTranslation',
                'whereTranslationLike',
                // listify
                'name',
                'listifyScope',
                'inList',
            ],
        ],

        'relations' => [

            // Relations to always ignore
            'ignore' => [
                'translations',
            ],
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Controllers
    |--------------------------------------------------------------------------
    |
    | The controllers that handle the model routes for web and API requests.
    |
    */

    'controllers' => [
        'models' => [
            'web' => Czim\CmsModels\Http\Controllers\DefaultModelController::class,
            'api' => Czim\CmsModels\Http\Controllers\Api\DefaultModelController::class,
        ],
        'meta' => [
            'web' => Czim\CmsModels\Http\Controllers\ModelMetaController::class,
            'api' => Czim\CmsModels\Http\Controllers\Api\ModelMetaController::class,
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Display Strategies
    |--------------------------------------------------------------------------
    |
    | Strategies for displaying list and form field content.
    |
    */

    'strategies' => [

        // Strategies for default context/criteria on the repository
        'repository' => [

            // The default namespace to prefix for relative strategy class names
            'default-namespace' => 'Czim\\CmsModels\\Repositories\\ContextStrategies\\',
            'default-strategy'  => null,

            // Aliases for repository context strategy classes
            'aliases' => [
            ],
        ],

        // Strategies for making model reference strings
        'reference' => [

            // The default namespace to prefix for relative strategy class names
            'default-namespace' => 'Czim\\CmsModels\\View\\ReferenceStrategies\\',
            'default-strategy'  => Czim\CmsModels\View\ReferenceStrategies\DefaultReference::class,

            // Aliases for reference display strategy classes
            'aliases' => [
                'default' => Czim\CmsModels\View\ReferenceStrategies\DefaultReference::class,
            ],
        ],

        'list' => [

            // The default page size and selectable page size options
            'page-size'         => 25,
            'page-size-options' => [ 25, 50, 100 ],

            // The default namespace to prefix for relative strategy class names
            'default-namespace' => 'Czim\\CmsModels\\View\\ListStrategies\\',
            'default-strategy'  => Czim\CmsModels\View\ListStrategies\DefaultStrategy::class,

            // The default strategy for sorting columns
            'default-sort-namespace' => 'Czim\\CmsModels\\Repositories\\SortStrategies\\',
            'default-sort-strategy'  => Czim\CmsModels\Repositories\SortStrategies\NullLast::class,

            // Aliases for list display strategy classes
            'aliases' => [
                Czim\CmsModels\Support\Enums\ListDisplayStrategy::CHECK              => 'Check',
                Czim\CmsModels\Support\Enums\ListDisplayStrategy::CHECK_NULLABLE     => 'CheckNullable',
                Czim\CmsModels\Support\Enums\ListDisplayStrategy::DATE               => 'Date',
                Czim\CmsModels\Support\Enums\ListDisplayStrategy::TIME               => 'Time',
                Czim\CmsModels\Support\Enums\ListDisplayStrategy::DATETIME           => 'DateTime',
                Czim\CmsModels\Support\Enums\ListDisplayStrategy::STAPLER_THUMBNAIL  => 'StaplerImage',
                Czim\CmsModels\Support\Enums\ListDisplayStrategy::STAPLER_FILENAME   => 'StaplerFile',
                Czim\CmsModels\Support\Enums\ListDisplayStrategy::RELATION_COUNT     => 'RelationCount',
                Czim\CmsModels\Support\Enums\ListDisplayStrategy::RELATION_REFERENCE => 'RelationReference',
            ],

            // Aliases for sort strategy classes
{'fraction_non_alphanumeric': 0.24760063028219453, 'fraction_numerical': 0.001289213579716373, 'mean_word_length': 1.109851919008764, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 118, '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': '729870', 'n_tokens_mistral': 3314, 'n_tokens_neox': 3181, 'n_words': 653}