<commit_before>var path = require('path');
var express = require('express');
var consolidate = require('consolidate');
var morgan = require('morgan');
var winston = require('winston');
var config = require('./config');


var app = express();

app.use(morgan('dev'));

app.engine('html', consolidate.nunjucks);
app.set('view engine', 'html');
app.set('views', path.join(__dirname, 'views'));

app.listen(config.get('PORT'), function() {
    winston.info('Server is now running at port ' + config.get('PORT'));
});


if (config.get('NODE_ENV') === 'production') {
    app.use('/static', express.static(path.join(__dirname, 'build')));
} else {
    app.use('/static', express.static(path.join(__dirname, 'static')));
}<commit_msg>convert server.js to use es6 syntax<commit_after>const path = require('path');
const express = require('express');
const consolidate = require('consolidate');
const morgan = require('morgan');
const winston = require('winston');
const config = require('./config');


const app = express();

app.use(morgan('dev'));

app.engine('html', consolidate.nunjucks);
app.set('views', path.join(__dirname, 'views'));

app.listen(config.get('PORT'),
    () => winston.info(`Server is now running at port ${config.get('PORT')}`));


if (config.get('NODE_ENV') === 'production') {
    app.use('/static', express.static(path.join(__dirname, 'build')));
} else {
    app.use('/static', express.static(path.join(__dirname, 'static')));
}
{'fraction_non_alphanumeric': 0.21477900552486187, 'fraction_numerical': 0.0006906077348066298, 'mean_word_length': 5.966346153846154, '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': '1107283', 'n_tokens_mistral': 458, 'n_tokens_neox': 451, 'n_words': 99}