<commit_before><?php
namespace admin;

use luya\Luya;

class Module extends \admin\base\Module
{
    public static $apis = [
        'api-admin-user' => 'admin\apis\UserController',
        'api-admin-menu' => 'admin\apis\MenuController',
        'api-admin-group' => 'admin\apis\GroupController',
        'api-admin-lang' => 'admin\apis\LangController',
    ];

    public static $urlRules = [
        ['class' => 'admin\components\UrlRule'],
    ];

    public function init()
    {
        foreach (luya::getParams('apis') as $item) {
            $this->controllerMap[$item['alias']] = $item['class'];
        }
        parent::init();
    }

    public static function getAdminUser()
    {
        return new \admin\components\User();
    }

    public static function getAdminUserData()
    {
        return self::getAdminUser()->getIdentity();
    }

    public function getMenu()
    {
        // create menu node
        $node = $this->menu->createNode('admin', 'Administration', 'fa-gears');
        // create menu group
        $this->menu->createGroup($node, 'Authentifizierung', [
            // insert group items
            $this->menu->createItem("user", "Benutzer", "admin-user-index", "fa-user"),
            $this->menu->createItem("group", "Gruppen", "admin-group-index", "fa-users")
        ]);

        $this->menu->createGroup($node, 'Einstellungen', [
            $this->menu->createItem("lang", "Sprachen", "admin-lang-index", "fa-language")
        ]);

        return $this->menu->get();
    }

    public $assets = [
        'admin\AssetAdmin',
        'admin\AssetAngularLoadingBar',
        'admin\AssetAceUi',
        'admin\AssetAce',
    ];
}
<commit_msg>[+] added admin defaults controller<commit_after><?php
namespace admin;

use luya\Luya;

class Module extends \admin\base\Module
{
    public static $apis = [
        'api-admin-defaults' => 'admin\apis\DefaultsController',
        'api-admin-user' => 'admin\apis\UserController',
        'api-admin-menu' => 'admin\apis\MenuController',
        'api-admin-group' => 'admin\apis\GroupController',
        'api-admin-lang' => 'admin\apis\LangController',
    ];

    public static $urlRules = [
        ['class' => 'admin\components\UrlRule'],
    ];

    public function init()
    {
        foreach (luya::getParams('apis') as $item) {
            $this->controllerMap[$item['alias']] = $item['class'];
        }
        parent::init();
    }

    public static function getAdminUser()
    {
        return new \admin\components\User();
    }

    public static function getAdminUserData()
    {
        return self::getAdminUser()->getIdentity();
    }

    public function getMenu()
    {
        // create menu node
        $node = $this->menu->createNode('admin', 'Administration', 'fa-gears');
        // create menu group
        $this->menu->createGroup($node, 'Authentifizierung', [
            // insert group items
            $this->menu->createItem("user", "Benutzer", "admin-user-index", "fa-user"),
            $this->menu->createItem("group", "Gruppen", "admin-group-index", "fa-users")
        ]);

        $this->menu->createGroup($node, 'Einstellungen', [
            $this->menu->createItem("lang", "Sprachen", "admin-lang-index", "fa-language")
        ]);

        return $this->menu->get();
    }

    public $assets = [
        'admin\AssetAdmin',
        'admin\AssetAngularLoadingBar',
        'admin\AssetAceUi',
        'admin\AssetAce',
    ];
}

{'fraction_non_alphanumeric': 0.17152757724516315, 'fraction_numerical': 0.0, 'mean_word_length': 2.3828125, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 46, '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': '5361892', 'n_tokens_mistral': 1058, 'n_tokens_neox': 1033, 'n_words': 182}