<commit_before>const router = new require('express').Router();
const { format } = require('date-fns');
const { getFormattedLatestRepositories } = require('../github');
const { getFormattedLatestBlogPosts } = require('../medium');

router.get('/', (req, res) => {
    Promise.all([
        getFormattedLatestRepositories(),
        getFormattedLatestBlogPosts()
    ]).then(([repositories, posts]) => {
        const context = {
            projects: repositories.slice(0, 3),
            latestPost: posts[0]
        };
        res.render('amp/index.html', context);
    });
});

module.exports = router;<commit_msg>update amp routes imports<commit_after>const router = new require('express').Router();
const { getLatestRepositories } = require('../github');
const { getLatestBlogPosts } = require('../medium');

router.get('/', (req, res) => {
    Promise.all([
        getLatestRepositories(),
        getLatestBlogPosts()
    ]).then(([repositories, posts]) => {
        const context = {
            projects: repositories.slice(0, 3),
            latestPost: posts[0]
        };
        res.render('amp/index.html', context);
    });
});

module.exports = router;
{'fraction_non_alphanumeric': 0.1738013698630137, 'fraction_numerical': 0.005136986301369863, 'mean_word_length': 3.0449826989619377, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '574976', 'n_tokens_mistral': 356, 'n_tokens_neox': 335, 'n_words': 63}