<commit_before>(function($m) {

    "use strict";

    /**
     * @controller CategoryController
     * @contributors <NAME>
     */
    $m.controller('CategoryController',

        ['$rootScope', '$scope', '$routeParams', '$categoryHelper', '$timeout',

        function CategoryController($rootScope, $scope, $routeParams, $categoryHelper, $timeout) {

        $categoryHelper.hasLoaded().then(function() {

            var subCategory = $routeParams.subCategory || null,
                details     = $categoryHelper.find($routeParams.category, subCategory);

            $scope.category     = details.category;
            $scope.subCategory  = details.subCategory;

            // Find whether we're after the sub-category ID or the category ID.
            var id = (!$scope.subCategory) ? $scope.category.id : $scope.subCategory.id;

            $scope.$watch('$viewContentLoaded', function() {

                // Broadcast the event once the content has loaded to ensure the event
                // to handle the broadcast has been set-up.
                $scope.$broadcast('switchedCategory', id);

            });

        });

    }]);

})(window.mao);<commit_msg>Removed  dependency<commit_after>(function($m) {

    "use strict";

    /**
     * @controller CategoryController
     * @contributors <NAME>
     */
    $m.controller('CategoryController',

        ['$rootScope', '$scope', '$routeParams', '$categoryHelper',

        function CategoryController($rootScope, $scope, $routeParams, $categoryHelper) {

        $categoryHelper.hasLoaded().then(function() {

            var subCategory = $routeParams.subCategory || null,
                details     = $categoryHelper.find($routeParams.category, subCategory);

            $scope.category     = details.category;
            $scope.subCategory  = details.subCategory;

            // Find whether we're after the sub-category ID or the category ID.
            var id = (!$scope.subCategory) ? $scope.category.id : $scope.subCategory.id;

            $scope.$watch('$viewContentLoaded', function() {

                // Broadcast the event once the content has loaded to ensure the event
                // to handle the broadcast has been set-up.
                $scope.$broadcast('switchedCategory', id);

            });

        });

    }]);

})(window.mao);
{'fraction_non_alphanumeric': 0.1317365269461078, 'fraction_numerical': 0.0, 'mean_word_length': 2.280504908835905, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4543824', 'n_tokens_mistral': 618, 'n_tokens_neox': 581, 'n_words': 140}