<commit_before>import Koa from 'koa';
import bodyParser from 'koa-bodyparser';
import logger from 'koa-logger';
import session from 'koa-session';
import views from 'koa-views';
import convert from 'koa-convert';
import finalHandler from './lib/middlewares/finalHandler';
import router from './router';

const app = new Koa();

app.use(finalHandler());
app.use(views(`${__dirname}/views`, {
  map: {
    html: 'nunjucks'
  }
}));
app.use(logger());
app.use(bodyParser());
app.keys = ['some secret hurr'];
app.use(convert(session(app)));
app.use(serve('public'));
app
  .use(router.routes())
  .use(router.allowedMethods());
<commit_msg>fix get "static path" <commit_after>import Koa from 'koa';
import bodyParser from 'koa-bodyparser';
import logger from 'koa-logger';
import session from 'koa-session';
import views from 'koa-views';
import convert from 'koa-convert';
import finalHandler from './lib/middlewares/finalHandler';
import router from './router';

const app = new Koa();

app.use(finalHandler());
app.use(views(`${__dirname}/views`, {
  map: {
    html: 'nunjucks'
  }
}));
app.use(logger());
app.use(bodyParser());
app.keys = ['some secret hurr'];
app.use(convert(session(app)));
app.use(convert(require('koa-static')(__dirname + '/public')));
app
  .use(router.routes())
  .use(router.allowedMethods());

{'fraction_non_alphanumeric': 0.18574677786201668, 'fraction_numerical': 0.0, 'mean_word_length': 5.633165829145729, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3913248', 'n_tokens_mistral': 440, 'n_tokens_neox': 442, 'n_words': 109}