<commit_before>(() => {

    'use strict';

    angular
        .module('app')
        .controller('LoginController', LoginController);

    LoginController.$inject = ['$log', '$route', 'LoginService'];
    function LoginController($log, $window, LoginService, TokenService) {
        const vm = this;

        vm.data = {};
        vm.login = login;

        activate();

        ///

        function activate() {
            $log.debug('Init LoginController ...');
        }

        function login() {
            let afterSend = function (res) {
                if (res.token) {
                    TokenService.save(res.token);
                    $window.location.pathname = '/app/';
                }
            };

            let req = {
                email: vm.data.email,
                password: <PASSWORD>
            };

            LoginService.login(req, afterSend);
        }
    }<commit_msg>Update login.controller.js<commit_after>(() => {

    'use strict';

    angular
        .module('app')
        .controller('LoginController', LoginController);

    LoginController.$inject = ['$log', '$route', 'LoginService', 'TokenService'];
    function LoginController($log, $window, LoginService, TokenService) {
        const vm = this;

        vm.data = {};
        vm.login = login;

        activate();

        ///

        function activate() {
            $log.debug('Init LoginController ...');
        }

        function login() {
            let afterSend = function (res) {
                if (res.token) {
                    TokenService.save(res.token);
                    $window.location.pathname = '/app/';
                }
            };

            let req = {
                email: vm.data.email,
                password: <PASSWORD>
            };

            LoginService.login(req, afterSend);
        }
    }
{'fraction_non_alphanumeric': 0.13609467455621302, 'fraction_numerical': 0.0, 'mean_word_length': 1.4, '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': '4250224', 'n_tokens_mistral': 494, 'n_tokens_neox': 460, 'n_words': 94}