<commit_before>'use strict';

export default class Router {
    constructor($stateProvider, $urlRouterProvider) {
        this.$stateProvider = $stateProvider;
        this.$urlRouterProvider = $urlRouterProvider;
    }

    registerRoutes() {
        this.$stateProvider
            .state({
                name: 'today',
                url: '/today',
                component: 'today',
                resolve: {
                    todaysData: todayService => todayService.getTodaysData()
                }
            }).state({
                name: 'tommorow',
                url: '/tommorow',
                component: 'tommorow',
                resolve: {
                    //todoData: TodoService => TodoService.getTodos()
                }
            }).state({
                name: 'next7Days',
                url: '/next-7-days',
                component: 'next7Days',
                resolve: {
                    //todoData: TodoService => TodoService.getTodos()
                }
            }).state({
                name: 'later',
                url: '/later',
                component: 'later',
                resolve: {
                    laterData: laterService => laterService.getLaterData()
                }
            });

        this.$urlRouterProvider.otherwise('/today');
    }
}<commit_msg>added 'ngInject' into route resolves<commit_after>'use strict';

export default class Router {
    constructor($stateProvider, $urlRouterProvider) {
        this.$stateProvider = $stateProvider;
        this.$urlRouterProvider = $urlRouterProvider;
    }

    registerRoutes() {
        this.$stateProvider
            .state({
                name: 'today',
                url: '/today',
                component: 'today',
                resolve: {
                    todaysData: todayService => { 'ngInject'; return todayService.getTodaysData(); }
                }
            }).state({
                name: 'tommorow',
                url: '/tommorow',
                component: 'tommorow',
                resolve: {
                    //todoData: TodoService => TodoService.getTodos()
                }
            }).state({
                name: 'next7Days',
                url: '/next-7-days',
                component: 'next7Days',
                resolve: {
                    //todoData: TodoService => TodoService.getTodos()
                }
            }).state({
                name: 'later',
                url: '/later',
                component: 'later',
                resolve: {
                    laterData: laterService => { 'ngInject'; laterService.getLaterData(); }
                }
            });

        this.$urlRouterProvider.otherwise('/today');
    }
}
{'fraction_non_alphanumeric': 0.11824817518248175, 'fraction_numerical': 0.0021897810218978104, 'mean_word_length': 1.210483870967742, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '2594525', 'n_tokens_mistral': 726, 'n_tokens_neox': 655, 'n_words': 125}