<commit_before>(function () {
    'use strict';

    const LEFT_MENU_ROOT_ID = 'main';

    /**
     * @param Base
     * @param {StateManager} stateManager
     * @param {ModalManager} modalManager
     * @param {*} $scope
     * @return {LeftMenu}
     */
    const controller = function (Base, stateManager, modalManager, $scope) {

        class LeftMenu extends Base {

            constructor() {
                super();
                this.receive(stateManager.changeRouteState, () => {
                    this.subStateList = stateManager.subStateList;
                    this.rootStateList = stateManager.rootStateList;
                    $scope.$apply();
                });
                this.rootStateList = stateManager.rootStateList;
                this.subStateList = stateManager.subStateList;
                this.menuList = stateManager.getStateTree();
            }

            logout() {
                location.reload();
            }

            avatarClick() {
                modalManager.showAccountInfo();
            }

            settings() {
                modalManager.showSettings();
            }

        }

        return new LeftMenu();
    };

    controller.$inject = ['Base', 'stateManager', 'modalManager', '$scope'];

    angular.module('app.ui').component('wLeftMenu', {
        bindings: {},
        templateUrl: 'modules/ui/directives/leftMenu/leftMenu.html',
        transclude: false,
        controller
    });
})();
<commit_msg>rebirth-responsive: navigation fixes<commit_after>(function () {
    'use strict';

    /**
     * @param Base
     * @param {StateManager} stateManager
     * @param {ModalManager} modalManager
     * @param {*} $scope
     * @param {User} user
     * @return {LeftMenu}
     */
    const controller = function (Base, stateManager, modalManager, $scope, user) {

        class LeftMenu extends Base {

            constructor() {
                super();

                this.address = user.address;
                this.receive(stateManager.changeRouteState, () => {
                    this.subStateList = stateManager.subStateList;
                    this.rootStateList = stateManager.rootStateList;
                    $scope.$apply();
                });
                this.rootStateList = stateManager.rootStateList;
                this.subStateList = stateManager.subStateList;
                this.menuList = stateManager.getStateTree();
            }

            logout() {
                location.reload();
            }

            avatarClick() {
                modalManager.showAccountInfo();
            }

            settings() {
                modalManager.showSettings();
            }

        }

        return new LeftMenu();
    };

    controller.$inject = ['Base', 'stateManager', 'modalManager', '$scope', 'user'];

    angular.module('app.ui').component('wLeftMenu', {
        bindings: {},
        templateUrl: 'modules/ui/directives/leftMenu/leftMenu.html',
        transclude: false,
        controller
    });
})();

{'fraction_non_alphanumeric': 0.1202365308804205, 'fraction_numerical': 0.0, 'mean_word_length': 1.6617132867132867, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5892224', 'n_tokens_mistral': 803, 'n_tokens_neox': 749, 'n_words': 134}