<commit_before><?php

return [
    /*
    |--------------------------------------------------------------------------
    | Displayed name
    |--------------------------------------------------------------------------
    |
    */
    'name' => 'CRUD',

    /*
    |--------------------------------------------------------------------------
    | Displayed icon
    |--------------------------------------------------------------------------
    |
    */
    'icon' => 'fa-database',

    /*
    |--------------------------------------------------------------------------
    | Enabled actions
    |--------------------------------------------------------------------------
    |
    */
    'actions' => ['create', 'read', 'update', 'delete'],

    /*
    |--------------------------------------------------------------------------
    | Paginate lists by
    |--------------------------------------------------------------------------
    |
    */
    'list_max_results' => 15,

    /*
    |--------------------------------------------------------------------------
    | Formats
    |--------------------------------------------------------------------------
    |
    */
    'formats' => [
        'date'     => 'd/m/Y',
        'time'     => 'H:i',
        'datetime' => 'd/m/Y H:i:s',
        'number'   => '%.2f'
    ],

    /*
    |--------------------------------------------------------------------------
    | File uploads path
    |--------------------------------------------------------------------------
    |
    */
    'uploads_path' => '/public/uploads/',

    /*
    |--------------------------------------------------------------------------
    | Text Editor
    |--------------------------------------------------------------------------
    | ckeditor, bootstrap-wysihtml5
    */
    'text_editor' => 'ckeditor',

    /*
    |--------------------------------------------------------------------------
    | Configured models
    |--------------------------------------------------------------------------
    |
    */
    'models' => [
        /*
        'Users' => 'App\User',

        // or

        'Users' => [
            'model' => 'App\User',
            'icon' => 'fa-database',
            'soft_deletes' => true,
            'fields_presentation' => [
                'active' => 'Is Active?',
                'role_id' => 'Role'
            ],
            'relations' => [
                // Types: select, select-multiple, check, mini-crud
                'posts' => 'select-multiple',
                'translations'
            ],
            'list' => [
                'display' => ['id', 'username', 'fullname', 'active'],
                'hide'    => []
            ],
            'detail' => [
                'display' => ['id', 'username', 'password', 'fullname', 'info', 'active'],
                'hide'    => []
            ],
            'edit' => [
                'display' => ['id', 'username', 'password'],
                'hide'    => [],
                'form_types' => [
                    'username' => 'email',
                    'password' => 'password'
                ],
                'validation' => [
                    'username' => 'required|email',
                    'password' => '<PASSWORD>'
                ],
                'functions' => [
                    'fullname' => 'slugify',
                    'password' => '<PASSWORD>'
                ]
            ]
        ]
        */
    ],

];<commit_msg>Added new model examples and the modelsGroups key  Related to #11<commit_after><?php

return [
    /*
    |--------------------------------------------------------------------------
    | Displayed name
    |--------------------------------------------------------------------------
    |
    */
    'name' => 'CRUD',

    /*
    |--------------------------------------------------------------------------
    | Displayed icon
    |--------------------------------------------------------------------------
    |
    */
    'icon' => 'fa-database',

    /*
    |--------------------------------------------------------------------------
    | Enabled actions
    |--------------------------------------------------------------------------
    |
    */
    'actions' => ['create', 'read', 'update', 'delete'],

    /*
    |--------------------------------------------------------------------------
    | Paginate lists by
    |--------------------------------------------------------------------------
    |
    */
    'list_max_results' => 15,

    /*
    |--------------------------------------------------------------------------
    | Formats
    |--------------------------------------------------------------------------
    |
    */
    'formats' => [
        'date'     => 'd/m/Y',
        'time'     => 'H:i',
        'datetime' => 'd/m/Y H:i:s',
        'number'   => '%.2f'
    ],

    /*
    |--------------------------------------------------------------------------
    | File uploads path
    |--------------------------------------------------------------------------
    |
    */
    'uploads_path' => '/public/uploads/',

    /*
    |--------------------------------------------------------------------------
    | Text Editor
    |--------------------------------------------------------------------------
    | ckeditor, bootstrap-wysihtml5
    */
    'text_editor' => 'ckeditor',

    /*
    |--------------------------------------------------------------------------
    | Configured models
    |--------------------------------------------------------------------------
    |
    */
    'models' => [
        /*
        'Users' => 'App\User',

        // or

        'Users' => [
            'model' => 'App\User',
            'icon' => 'fa-database',
            'soft_deletes' => true,
            'fields_presentation' => [
                'active' => 'Is Active?',
                'role_id' => 'Role'
            ],
            'relations' => [
                // Types: select, select-multiple, check, mini-crud
                'posts' => 'select-multiple',
                'translations'
            ],
            'list' => [
                'display' => ['id', 'username', 'fullname', 'active'],
                'hide'    => []
            ],
            'detail' => [
                'display' => ['id', 'username', 'password', 'fullname', 'info', 'active'],
                'hide'    => []
            ],
            'edit' => [
                'display' => ['id', 'username', 'password'],
                'hide'    => [],
                'form_types' => [
                    'username' => 'email',
                    'password' => 'password'
                ],
                'validation' => [
                    'username' => 'required|email',
                    'password' => '<PASSWORD>'
                ],
                'functions' => [
                    'fullname' => 'slugify',
                    'password' => '<PASSWORD>'
                ]
            ]
        ]

        // And much more
          'Blog Posts'      => [
            'model'      => '\App\Database\Models\Post',
            'controller' => '\App\Http\Controllers\Admin\BlogPostController',
            'authorize'  => false,
            'list'       => [
                'display' => ['id', 'slug', 'title', 'publication_date'],
            ],
            'edit'       => [
                'form_types' => [
                    'image' => 'file',
                ]
            ],
            'relations'  => [
                'tags'   => [
                    'name'    => 'tags',
                    'display' => 'name'
                ],
                'author' => [
                    'name'    => 'author',
                    'display' => 'name'
                ],
            ]
        ],
        'Blog Tags'       => [
            'model'     => '\App\Database\Models\PostTag',
            'authorize' => false,
        ]
        */
    ],
    'modelsGroups' =>
        [/*'Blog' => ['Blog Posts', 'Blog Tags']*/]

];
{'fraction_non_alphanumeric': 0.4224685515008096, 'fraction_numerical': 0.0012454851164528584, 'mean_word_length': 0.5353728489483748, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 108, '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': '2093532', 'n_tokens_mistral': 1806, 'n_tokens_neox': 1695, 'n_words': 272}