<commit_before>(function () {
    define(["angular"], function (angular) {
        var dashboardController = function (currentuser, taskAssemblerService, uiCalendarConfig, moment) {
            var vm = this;
            vm.tasks = {
                page: {
                    size: 10,
                    number: 1
                }
            };
            currentuser.$promise.then(function () {
                vm.tasks = currentuser.resource("task").get(
                        {
                            page: vm.tasks.page.number - 1,
                            size: vm.tasks.page.size
                        }, function (data) {
                    if (data._embedded) {
                        angular.forEach(data._embedded.taskResourceList, taskAssemblerService);
                    }
                    data.page.number++;
                    return data;
                });
            });
            vm.loadCalendarEvent = function (start, end) {
                currentuser.resource("task").query(function (data) {
                    angular.forEach(data, function (task) {
                        task = taskAssemblerService(task);
                        task.title = task.name;
                        task.start = task._start = moment(task.plannedStart);
                        task.end = task._end = moment(task.plannedEnding);
                        if (task._links.category) {
                            task.category.$promise.then(function () {
                                task.backgroundColor = task.category.bgcolor;
                                uiCalendarConfig.calendars.userCalendar.fullCalendar('renderEvent', task);
                            });
                        } else {
                            uiCalendarConfig.calendars.userCalendar.fullCalendar('renderEvent', task);
                        }
                    });
                });
            };

            vm.calendarOptions = {
                height: 450,
                editable: true,
                lang: "fr",
                header: {
                    left: 'title',
                    center: '',
                    right: 'today prev,next'
                },
                viewRender: function (view, element) {
                    vm.loadCalendarEvent(view.start, view.end);
                }
            };
            vm.eventsSource = [];
        };
        dashboardController.$inject = ["currentuser", "taskAssemblerService", "uiCalendarConfig", "moment"];
        return dashboardController;
    });
})();<commit_msg>Calendrier dashboard : gestion navigation date<commit_after>(function () {
    define(["angular"], function (angular) {
        var dashboardController = function (currentuser, taskAssemblerService, uiCalendarConfig, moment) {
            var vm = this;
            vm.tasks = {
                page: {
                    size: 10,
                    number: 1
                }
            };
            currentuser.$promise.then(function () {
                vm.tasks = currentuser.resource("task").get(
                        {
                            page: vm.tasks.page.number - 1,
                            size: vm.tasks.page.size
                        }, function (data) {
                    if (data._embedded) {
                        angular.forEach(data._embedded.taskResourceList, taskAssemblerService);
                    }
                    data.page.number++;
                    return data;
                });
            });
            vm.loadCalendarEvent = function (start, end) {
                currentuser.resource("task").query(function (data) {
                    angular.forEach(data, function (task) {
                        task = taskAssemblerService(task);
                        task.title = task.name;
                        task.start = task._start = moment(task.plannedStart);
                        task.end = task._end = moment(task.plannedEnding);
                        if (task._links.category) {
                            task.category.$promise.then(function () {
                                task.backgroundColor = task.category.bgcolor;
                                uiCalendarConfig.calendars.userCalendar.fullCalendar('renderEvent', task);
                            });
                        } else {
                            uiCalendarConfig.calendars.userCalendar.fullCalendar('renderEvent', task);
                        }
                    });
                });
            };
            vm.calendarOptions = {
                height: 450,
                editable: true,
                lang: "fr",
                header: {
                    left: 'title',
                    center: '',
                    right: 'today prev,next'
                },
                viewRender: function (view, element) {
                    vm.loadCalendarEvent(view.start, view.end);
                }
            };
            vm.eventsSource = [];
        };
        dashboardController.$inject = ["currentuser", "taskAssemblerService", "uiCalendarConfig", "moment"];
        return dashboardController;
    });
})();
{'fraction_non_alphanumeric': 0.10173745173745173, 'fraction_numerical': 0.002702702702702703, 'mean_word_length': 1.0616792678074014, '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': '830928', 'n_tokens_mistral': 1211, 'n_tokens_neox': 1106, 'n_words': 192}