<commit_before>const express = require('express');
const helmet = require('helmet');
const morgan = require('morgan');
const createRenderer = require('vue-server-renderer').createRenderer;
const Vue = require('vue');

const server = express();

server.use(helmet());
server.use(morgan('combined'));

const PORT = 3000;

const renderer = createRenderer({
    template: require('fs').readFileSync('./src/templates/index.template.html', 'utf-8')
});

server.get('*', (req, res) => {
    const app = new Vue({
        data: {
            url: req.url
        },
        template: `<div>The visited URL is: {{ url }}</div>`
    })

    renderer.renderToString(app, (err, html) => {
        if (err) {
            res<commit_msg>add template folder constant<commit_after>const express = require('express');
const helmet = require('helmet');
const morgan = require('morgan');
const createRenderer = require('vue-server-renderer').createRenderer;
const Vue = require('vue');
const path = require('path');

const server = express();

server.use(helmet());
server.use(morgan('combined'));

const PORT = 3000;
const TEMPLATES = path.join(__dirname, 'src', 'templates');

const renderer = createRenderer({
    template: require('fs').readFileSync(path.join(TEMPLATES, 'index.template.html'), 'utf-8')
});

server.get('*', (req, res) => {
    const app = new Vue({
        data: {
            url: req.url
        },
        template: `<div>The visited URL is: {{ url }}</div>`
    })

    renderer.renderToString(app, (err, html) => {
        if (err) {
            res
{'fraction_non_alphanumeric': 0.17790622992935132, 'fraction_numerical': 0.006422607578676943, 'mean_word_length': 3.542274052478134, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5843631', 'n_tokens_mistral': 488, 'n_tokens_neox': 474, 'n_words': 115}