<commit_before>/**
 * Created by anonymous on 03/12/15 4:55.
 */

(function() {
    'use strict';

    angular
        .module('jwtAuth')
        .controller('JwtAuthController', JwtAuthController);

    JwtAuthController.$inject = ['$http', '$auth', '$rootScope', '$state', 'jwtAuthService'];

    /* @ngInject */
    function JwtAuthController($http, $auth, $rootScope, $state, jwtAuthService) {
        var vm   = this;
        vm.title = 'JwtAuthController';

        vm.users;
        vm.error;

        vm.getUsers = getUsers;
        vm.signout  = signout;

        activate();

        ////////////////

        function activate() {

        }

        function getUsers() {
            return jwtAuthService.getUsers()
                .success(function(users) {
                    vm.users = users;
                    console.log(users);
                })
                .error(function(error) {
                    vm.error = error;
                    console.log(error);
                });
        }

        function signout() {
            jwtAuthService.signout().then(function() {
                $state.go('jwtauth.signin');
            });
            console.log('sign-out');
        }
    }

})();

<commit_msg>Update jwt-auth.controller.js<commit_after>/**
 * Created by anonymous on 03/12/15 4:55.
 */

(function() {
    'use strict';

    angular
        .module('jwtAuth')
        .controller('JwtAuthController', JwtAuthController);

    JwtAuthController.$inject = ['$state', 'jwtAuthService'];

    /* @ngInject */
    function JwtAuthController($state, jwtAuthService) {
        var vm   = this;
        vm.title = 'JwtAuthController';
        vm.signout  = signout;

        activate();

        ////////////////

        function activate() {

        }

        function signout() {
            jwtAuthService.signout().then(function() {
                $state.go('jwtauth.signin');
            });
            console.log('sign-out');
        }
    }

})();


{'fraction_non_alphanumeric': 0.15523284927391087, 'fraction_numerical': 0.009013520280420632, 'mean_word_length': 1.5517241379310345, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7379959', 'n_tokens_mistral': 603, 'n_tokens_neox': 562, 'n_words': 95}