<commit_before>const path = require('path');
require('app-module-path').addPath(path.join(process.cwd(), 'src'));
require('./globals')
const cors = require('cors');

require('babel-core/register');
['.css', '.less', '.sass', '.ttf', '.woff', '.woff2', '.scss'].forEach((ext) => require.extensions[ext] = () => {
});

const port = process.env.PORT || 8080;

const express = require('express')
const application = express()

var corsOptions = {
  origin: 'https://s3-eu-west-1.amazonaws.com/',
  optionsSuccessStatus: 200 // some legacy browsers (IE11, various SmartTVs) choke on 204
}

application.use(cors(corsOptions));

application.use(express.static('static'));

application.set('views', __dirname)
application.set('view engine', 'ejs')

if (__DEVELOPMENT__) {
  const webpack = require('webpack');
  const config = require('../../webpack.config.js').default;
  const webpackDev = require('webpack-dev-middleware')
  const webpackHot = require('webpack-hot-middleware')
  const compiler = webpack(config)

  application.use(
    webpackDev(
      compiler,
      {
        hot: true,
        publicPath: config.output.publicPath,
        stats: {colors: true}
      }
    )
  )

  application.use(webpackHot(compiler))
}

if(process.env.NO_SSR){
  application.get('*', require('./noSSR').default)
}else{
  application.get('*', require('./render').default)
}

application.listen(port, (err) => {
  if (err) console.log(err);
})<commit_msg>fix initalizers<commit_after>const path = require('path');
require('app-module-path').addPath(path.join(process.cwd(), 'src'));
require('./globals')

require('babel-core/register');
['.css', '.less', '.sass', '.ttf', '.woff', '.woff2', '.scss'].forEach((ext) => require.extensions[ext] = () => {
});

const port = process.env.PORT || 8080;

const express = require('express')
const application = express()

application.use(express.static('static'));

application.set('views', __dirname)
application.set('view engine', 'ejs')

if (__DEVELOPMENT__) {
  const webpack = require('webpack');
  const config = require('../../webpack.config.js').default;
  const webpackDev = require('webpack-dev-middleware')
  const webpackHot = require('webpack-hot-middleware')
  const compiler = webpack(config)

  application.use(
    webpackDev(
      compiler,
      {
        hot: true,
        publicPath: config.output.publicPath,
        stats: {colors: true}
      }
    )
  )

  application.use(webpackHot(compiler))
}

if(process.env.NO_SSR){
  application.get('*', require('./noSSR').default)
}else{
  application.get('*', require('./render').default)
}

application.listen(port, (err) => {
  if (err) console.log(err);
})
{'fraction_non_alphanumeric': 0.1951035781544256, 'fraction_numerical': 0.007532956685499058, 'mean_word_length': 4.280318091451292, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 1, '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': '1334353', 'n_tokens_mistral': 878, 'n_tokens_neox': 853, 'n_words': 160}