<commit_before>'use strict';

//to initialize __dirname
require('./base-init');

const logger = require('koa-logger');
const serve = require('koa-static');
const mount = require('koa-mount');
const koa = require('koa');
const path = require('path');
const factRoutes = require('./routes/facts');
const categoryRoutes = require('./routes/categories');

const app = koa();
const clientProjectRoot = path.join(__dirname, '../..', 'client');

app.use(logger());
app.use(serve(path.join(clientProjectRoot, 'dist')));
app.use(mount('/bower_components', serve(path.join(clientProjectRoot, 'bower_components'))));

factRoutes(app);
categoryRoutes(app);

app.listen(3000, function () {
    console.log('Listening on port', 3000);
});<commit_msg>added issue sync initialization to startup<commit_after>'use strict';

//to initialize __dirname
require('./base-init');

const logger = require('koa-logger');
const serve = require('koa-static');
const mount = require('koa-mount');
const koa = require('koa');
const path = require('path');
const factRoutes = require('./routes/facts');
const categoryRoutes = require('./routes/categories');
let issueSync = require('./issue-sync');

const app = koa();
const clientProjectRoot = path.join(__dirname, '../..', 'client');

app.use(logger());
app.use(serve(path.join(clientProjectRoot, 'dist')));
app.use(mount('/bower_components', serve(path.join(clientProjectRoot, 'bower_components'))));

factRoutes(app);
categoryRoutes(app);

app.listen(3000, function () {
    console.log('Listening on port', 3000);
});

issueSync.initialize();
{'fraction_non_alphanumeric': 0.19336311423101468, 'fraction_numerical': 0.01021059349074665, 'mean_word_length': 6.39622641509434, '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': '7515541', 'n_tokens_mistral': 488, 'n_tokens_neox': 475, 'n_words': 105}