<commit_before>'use strict';

class PageController {
    constructor() {
        this._viewPath = '../../../views/';
    }

    getHome (req, res) {
        return res.render('home');
    }

    getMenu (req, res) {
        return res.render('menu');
    }

    getMenuForms (req, res) {
        return res.render('menu');
    }

    getOrders (req, res) {
        return res.render('orders');
    }

    getProfile (req, res) {
        return res.render('user.profile.pug');
    }
}

const init = () => {
    return new PageController();
};

module.exports = { init };<commit_msg>added promises<commit_after>'use strict';

class PageController {
    getHome (req, res) {
        return Promise.resolve()
            .then(() => {
                res.render('home');
            });
    }

    getMenu (req, res) {
        return Promise.resolve()
            .then(() => {
                res.render('menu');
            });
    }

    getMenuForms (req, res) {
        return Promise.resolve()
            .then(() => {
                res.render('menu');
            });
    }

    getOrders (req, res) {
        return Promise.resolve()
            .then(() => {
                res.render('orders');
            });
    }

    getProfile (req, res) {
        return Promise.resolve()
            .then(() => {
                res.render('user.profile.pug');
            });
    }
}

const init = () => {
    return new PageController();
};

module.exports = { init };
{'fraction_non_alphanumeric': 0.1671195652173913, 'fraction_numerical': 0.0, 'mean_word_length': 1.544041450777202, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, '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': '2962596', 'n_tokens_mistral': 440, 'n_tokens_neox': 426, 'n_words': 86}