<commit_before>'use strict';

/* Controllers */
var appControllers = angular.module('p2pControllers', ['ui.bootstrap']);

appControllers.controller('QuestionListCtrl', ['$scope', 'Question',
    function($scope, Question) {
        $scope.questions = Question.query();
        $scope.orderProp = 'age';
}]);

appControllers.controller('QuestionDetailCtrl', ['$scope', '$routeParams', 'Question',
    function($scope, $routeParams, Question) {
        $scope.question = Question.get({questionId: $routeParams.questionId}, function(question) {
        $scope.mainImageUrl = question.images[0];
    });
    $scope.setImage = function(imageUrl) {
        $scope.mainImageUrl = imageUrl;
    };
}]);

appControllers.controller('LoginCtrl', [function() {
}]);

appControllers.controller('ButtonsCtrl', ['$scope', '$location',function($scope, $location){
$scope.goNext = function (hash) {
$location.path(hash);
 };

}]);

appControllers.controller('TabsCtrl', ['$scope', function($scope) {

    $scope.tabs = [
        { title:"Questions", content:"", active: true},
        { title:"Users", content:""},
        { title:"Unanswered", content:""},
        { title:"Ask", page:"question-ask.html" }
    ];

    $scope.alertMe = function() {
        setTimeout(function() {
            alert("You've selected the alert tab!");
        });
    };

    $scope.navType = 'pills';

}]);

appControllers.controller('QuestionAskCtrl', ['$scope', '$location',function($scope, $location){
$scope.goNext = function (hash) {
$location.path(hash);
};

}]);

appControllers.controller('RegisterCtrl', ['$scope', '$location',function($scope, $location){
$scope.goNext = function (hash) {
$location.path(hash);
};

}]);

appControllers.controller('ButtonsCtrl', ['$scope', '$location',function($scope, $location){
$scope.goNext = function (hash) {
$location.path(hash);
};

}]);<commit_msg>Removes unnecessary controller.<commit_after>'use strict';

/* Controllers */
var appControllers = angular.module('p2pControllers', ['ui.bootstrap']);

appControllers.controller('QuestionListCtrl', ['$scope', 'Question',
    function($scope, Question) {
        $scope.questions = Question.query();
        $scope.orderProp = 'age';
}]);

appControllers.controller('QuestionDetailCtrl', ['$scope', '$routeParams', 'Question',
    function($scope, $routeParams, Question) {
        $scope.question = Question.get({questionId: $routeParams.questionId}, function(question) {
        $scope.mainImageUrl = question.images[0];
    });
    $scope.setImage = function(imageUrl) {
        $scope.mainImageUrl = imageUrl;
    };
}]);

appControllers.controller('LoginCtrl', [function() {
}]);

appControllers.controller('ButtonsCtrl', ['$scope', '$location',function($scope, $location) {
    $scope.goNext = function (hash) {
        $location.path(hash);
 };

}]);

appControllers.controller('QuestionAskCtrl', ['$scope', '$location',function($scope, $location){
$scope.goNext = function (hash) {
$location.path(hash);
};

}]);

appControllers.controller('RegisterCtrl', ['$scope', '$location',function($scope, $location){
$scope.goNext = function (hash) {
$location.path(hash);
};

}]);
{'fraction_non_alphanumeric': 0.19866497139224412, 'fraction_numerical': 0.0012714558169103624, 'mean_word_length': 4.860335195530726, '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': '1317646', 'n_tokens_mistral': 956, 'n_tokens_neox': 965, 'n_words': 152}