<commit_before>'use strict';

angular.module('arachne.controllers')

    .controller('WelcomePageController', ['$rootScope', '$scope', '$http', 'arachneSettings', 'messageService', '$timeout',
        function ($rootScope, $scope, $http, arachneSettings, messages, $timeout) {

            $rootScope.hideFooter = false;
            $scope.position = 3;

            $http.get('con10t/front.json').success(function (projectsMenu) {
                var projslides = $scope.projslides = [];
                for (var key in projectsMenu) {
                    projslides.push({
                        image: "con10t/frontimages/" + projectsMenu[key].id + ".jpg",
                        title: projectsMenu[key].text,
                        id: projectsMenu[key].id
                    });
                }
                $scope.activeSlides = $scope.projslides.slice(0,4);

            });

            $http.get(arachneSettings.dataserviceUri + "/entity/count").success(function (data) {
                $scope.entityCount = data.entityCount;
            }).error(function (data) {
                $timeout(function(){
                    messages.add("backend_missing");<commit_msg>reduced projectcarousel active slide number to 3, to compensate design<commit_after>'use strict';

angular.module('arachne.controllers')

    .controller('WelcomePageController', ['$rootScope', '$scope', '$http', 'arachneSettings', 'messageService', '$timeout',
        function ($rootScope, $scope, $http, arachneSettings, messages, $timeout) {

            $rootScope.hideFooter = false;
            $scope.position = 3;

            $http.get('con10t/front.json').success(function (projectsMenu) {
                var projslides = $scope.projslides = [];
                for (var key in projectsMenu) {
                    projslides.push({
                        image: "con10t/frontimages/" + projectsMenu[key].id + ".jpg",
                        title: projectsMenu[key].text,
                        id: projectsMenu[key].id
                    });
                }
                $scope.activeSlides = $scope.projslides.slice(0,3);

            });

            $http.get(arachneSettings.dataserviceUri + "/entity/count").success(function (data) {
                $scope.entityCount = data.entityCount;
            }).error(function (data) {
                $timeout(function(){
                    messages.add("backend_missing");
{'fraction_non_alphanumeric': 0.13544668587896252, 'fraction_numerical': 0.006175380815150268, 'mean_word_length': 1.8928571428571428, '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': '5091032', 'n_tokens_mistral': 672, 'n_tokens_neox': 618, 'n_words': 110}