<commit_before>// Dependencies
const express       = require('express');
const path          = require('path');
const fs            = require('fs');
const bodyParser    = require('body-parser');
const compression   = require('compression');
const morgan        = require('morgan');
const auth          = require('./auth.js');
const http          = require('http');
const https         = require('https');
const websocket     = require('express-ws');
const app           = express();

/*
 * Load config
 * */
const config        = require('./config.json');
const portHTTP      = config.portHTTP;
const portPROD      = config.portPROD;
const portDEV       = config.portDEV;

/*
 * Initialize webpack related middlewares
 * */
const webpackConfig = require('../webpack.config.js');
let webpack;
let webpackDevMiddleware = ()=>undefined;
let webpackHotMiddleware = ()=>undefined;
let compiler;
if (!webpackConfig.production) {
    webpack               = require('webpack');
    webpackDevMiddleware  = require('webpack-dev-middleware');
    webpackHotMiddleware  = require('webpack-hot-middleware');
    compiler              = webpack(webpackConfig);
}

/*
 * Configure the server
 *
 * In production, use HTTPS
 * In development, use HTTP
 * */
let server;
if (webpackConfig.production) {
    const credentials = {
        key: fs.readFileSync(config.privateKey, 'utf8'),
        cert: fs.readFileSync(config.certificate, 'utf8'),<commit_msg>Fixed linting errors<commit_after>// Dependencies
const express       = require('express');
const path          = require('path');
const fs            = require('fs');
const bodyParser    = require('body-parser');
const compression   = require('compression');
const morgan        = require('morgan');
const auth          = require('./auth.js');
const http          = require('http');
const https         = require('https');
const websocket     = require('express-ws');
const app           = express();

/*
 * Load config
 * */
const config        = require('./config.json');
const portHTTP      = config.portHTTP;
const portPROD      = config.portPROD;
const portDEV       = config.portDEV;

/*
 * Initialize webpack related middlewares
 * */
const webpackConfig = require('../webpack.config.js');
let webpack;
let webpackDevMiddleware = () => undefined;
let webpackHotMiddleware = () => undefined;
let compiler;
if (!webpackConfig.production) {
    webpack               = require('webpack');
    webpackDevMiddleware  = require('webpack-dev-middleware');
    webpackHotMiddleware  = require('webpack-hot-middleware');
    compiler              = webpack(webpackConfig);
}

/*
 * Configure the server
 *
 * In production, use HTTPS
 * In development, use HTTP
 * */
let server;
if (webpackConfig.production) {
    const credentials = {
        key: fs.readFileSync(config.privateKey, 'utf8'),
        cert: fs.readFileSync(config.certificate, 'utf8'),
{'fraction_non_alphanumeric': 0.1361908053923263, 'fraction_numerical': 0.00138264777048047, 'mean_word_length': 3.070323488045007, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1306342', 'n_tokens_mistral': 783, 'n_tokens_neox': 784, 'n_words': 199}