<commit_before><?php

declare(strict_types=1);

use Cortex\Foundation\Http\Middleware\Clockwork;
use Illuminate\Database\Eloquent\Relations\Relation;

return function () {
    // Bind route models and constrains
    Route::pattern('locale', '[a-z]{2}');
    Route::pattern('accessarea', '[a-zA-Z0-9-_]+');
    Route::model('media', config('medialibrary.media_model'));
    Route::model('accessarea', config('cortex.foundation.models.accessarea'));

    // Map relations
    Relation::morphMap([
        'media' => config('medialibrary.media_model'),
        'accessarea' => config('cortex.foundation.models.accessarea'),<commit_msg>Fix media deletion issues and media model implicit binding<commit_after><?php

declare(strict_types=1);

use Cortex\Foundation\Http\Middleware\Clockwork;
use Illuminate\Database\Eloquent\Relations\Relation;

return function () {
    // Bind route models and constrains
    Route::pattern('locale', '[a-z]{2}');
    Route::pattern('media', '[a-zA-Z0-9-_]+');
    Route::pattern('accessarea', '[a-zA-Z0-9-_]+');
    Route::model('media', config('media-library.media_model'));
    Route::model('accessarea', config('cortex.foundation.models.accessarea'));

    // Map relations
    Relation::morphMap([
        'media' => config('media-library.media_model'),
        'accessarea' => config('cortex.foundation.models.accessarea'),
{'fraction_non_alphanumeric': 0.17893961708394698, 'fraction_numerical': 0.007363770250368188, 'mean_word_length': 4.832618025751073, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '192944', 'n_tokens_mistral': 432, 'n_tokens_neox': 425, 'n_words': 65}