<commit_before>import * as Hbs from 'koa-hbs';
import * as Koa from 'koa';
import * as Path from 'path';

const app = new Koa();
const hbs = new Hbs();

app.use(hbs.middleware({
    viewPath: Path.join(__dirname, './views')
}));

app.use(function *(next: any) {
    yield this.render('index', {
        title: 'Hello World!'
    });
});

app.listen(3000);<commit_msg>Update koa-hbs test file<commit_after>import * as Koa from 'koa';
import hbs = require("koa-hbs");
import * as Path from 'path';

const app = new Koa();

app.use(hbs.middleware({
    viewPath: Path.join(__dirname, './views')
}));

app.use(async (ctx, next) => {
    await this.render('index', {
        title: 'Hello World!'
    });
});

app.listen(3000);
{'fraction_non_alphanumeric': 0.19113573407202217, 'fraction_numerical': 0.0110803324099723, 'mean_word_length': 3.664516129032258, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '7523699', 'n_tokens_mistral': 269, 'n_tokens_neox': 263, 'n_words': 68}