<commit_before>(function(angular){
    'use strict';
    var app = angular.module('profile.controllers', []);

    app.controller('UserProfileController', ['$scope', '$location', 'UserProfile', 'CurrentUser',
        function ($scope, $location, TimtecUser, CurrentUser) {

            // remove the last slash
            var abs_url = $location.absUrl();
            if (abs_url.slice(-1) === '/') {
                abs_url = abs_url.slice(0, -1);
            }

            var username = abs_url.split('/').pop();
            $location.absUrl().split('/').indexOf("profile")
            if (username !== 'profile' && username !== 'edit') {
                $scope.user_profile = TimtecUser.get({username: username});
            } else {
                $scope.user_profile = TimtecUser.get({userId: CurrentUser.id});
            }
        }
    ]);

})(window.angular);<commit_msg>add sanitaze to profile app<commit_after>(function(angular){
    'use strict';
    var app = angular.module('profile.controllers', ['ngSanitize']);

    app.controller('UserProfileController', ['$scope', '$location', 'UserProfile', 'CurrentUser',
        function ($scope, $location, TimtecUser, CurrentUser) {

            // remove the last slash
            var abs_url = $location.absUrl();
            if (abs_url.slice(-1) === '/') {
                abs_url = abs_url.slice(0, -1);
            }

            var username = abs_url.split('/').pop();
            $location.absUrl().split('/').indexOf("profile")
            if (username !== 'profile' && username !== 'edit') {
                $scope.user_profile = TimtecUser.get({username: username});
            } else {
                $scope.user_profile = TimtecUser.get({userId: CurrentUser.id});
            }
        }
    ]);

})(window.angular);
{'fraction_non_alphanumeric': 0.1714922048997773, 'fraction_numerical': 0.0033407572383073497, 'mean_word_length': 2.15817223198594, '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': '4323435', 'n_tokens_mistral': 510, 'n_tokens_neox': 489, 'n_words': 94}