<commit_before>(function(){

    angular
        .module("eventapp")
        .controller("SignupController", SignupController);

    function SignupController($scope, $location, $rootScope, UserService)
    {

        console.log("Inside Signup controller");

        $scope.signup = function (user)
        {
            UserService.createUser(user, function(user)
            {
                console.log(user + "from user service controller    ");
                if(user != null)
                {
                    $rootScope.currentUser = user;
                    console.log("user from signup contorller " + $rootScope.currentUser);
                    //$location.url('/profile'+user.username); // work on this and its routing in config.js
                    $location.url('/profile/'+user.username);
                }
                else
                    {
                        alert("User Already Exists");
                    }

            });
        }
            //console.log(user);


    }

})();

<commit_msg>correcting unique user alert message<commit_after>(function(){

    angular
        .module("eventapp")
        .controller("SignupController", SignupController);

    function SignupController($scope, $location, $rootScope, UserService)
    {

        console.log("Inside Signup controller");

        $scope.signup = function (user)
        {
            UserService.createUser(user, function(user)
            {
                console.log(user + "from user service controller    ");
                if(user != null)
                {
                    $rootScope.currentUser = user;
                    console.log("user from signup contorller " + $rootScope.currentUser);
                    //$location.url('/profile'+user.username); // work on this and its routing in config.js
                    $location.url('/profile/'+user.username);
                }
                else
                    {
                        alert("User Already Exists. Please use a unique username and email!");
                    }

            });
        }
            //console.log(user);


    }

})();


{'fraction_non_alphanumeric': 0.11391223155929038, 'fraction_numerical': 0.0, 'mean_word_length': 1.4105736782902136, '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': '2887929', 'n_tokens_mistral': 544, 'n_tokens_neox': 496, 'n_words': 105}