<commit_before>'use strict';

angular.module('theLawFactory')
.directive('home', ['$rootScope', 'api',
function ($rootScope, api) {
    return {
        restrict: 'A',
        replace: false,
        templateUrl: 'modules/home/home.html',
        controller: function ($scope) {
            $scope.colonnes = [];
            api.getHome().then(function (data) {
                $scope.total = data.total;
                $scope.maximum = data.maximum;
                $scope.colonnes = [data.recent, data.focus];
            });
        }
    };
}]);<commit_msg>Add live texts column in the homepage (!!!) #212<commit_after>'use strict';

angular.module('theLawFactory')
.directive('home', ['$rootScope', 'api',
function ($rootScope, api) {
    return {
        restrict: 'A',
        replace: false,
        templateUrl: 'modules/home/home.html',
        controller: function ($scope) {
            $scope.colonnes = [];
            api.getHome().then(function (data) {
                $scope.total = data.total;
                $scope.maximum = data.maximum;
                $scope.colonnes = [data.live, data.recent, data.focus];
            });
        }
    };
}]);
{'fraction_non_alphanumeric': 0.1623931623931624, 'fraction_numerical': 0.002564102564102564, 'mean_word_length': 2.0102827763496145, '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': '6482779', 'n_tokens_mistral': 351, 'n_tokens_neox': 335, 'n_words': 66}