<commit_before>// new relic monitoring
require('newrelic');

// Server config
let path = require('path');
const express = require('express');
let compression = require('compression');
let session = require('express-session');
let cookieParser = require('cookie-parser');
let bodyParser = require('body-parser');

const passport = require('passport');
const localStrategy = require('passport-local').Strategy;
const User = require('./db/user.schema');

// redis
let redis = require('./config/redis.config');
redis.connect();

// logging
let winston = require('winston');
require('winston-loggly-bulk');

redis.client.get('logglyconfig', (err, response) => {
    winston.add(winston.transports.Loggly, JSON.parse(response));
});

// db
let mongoose = require('mongoose');
let db = require('./config/database.connection.js');

// routes
const postRoutes = require('./routes/post.routes');
const fileRoutes = require('./routes/file.routes');
const authenticationRoutes = require('./routes/authentication.routes');
const analyticsRoutes = require('./routes/analytics.routes');
const mongoBackupRoutes = require('./routes/dbbackup.routes');
let app = express();

// prerender.io init
app.use(require('prerender-node').set('prerenderToken', '<PASSWORD>'));

// connect to db
db.connect();

// compress all requests
app.use(compression());
<commit_msg>Fixed prerender config<commit_after>// new relic monitoring
require('newrelic');

// Server config
let path = require('path');
const express = require('express');
let compression = require('compression');
let session = require('express-session');
let cookieParser = require('cookie-parser');
let bodyParser = require('body-parser');

const passport = require('passport');
const localStrategy = require('passport-local').Strategy;
const User = require('./db/user.schema');

// redis
let redis = require('./config/redis.config');
redis.connect();

// logging
let winston = require('winston');
require('winston-loggly-bulk');

redis.client.get('logglyconfig', (err, response) => {
    winston.add(winston.transports.Loggly, JSON.parse(response));
});

// db
let db = require('./config/database.connection.js');

// routes
const postRoutes = require('./routes/post.routes');
const fileRoutes = require('./routes/file.routes');
const authenticationRoutes = require('./routes/authentication.routes');
const analyticsRoutes = require('./routes/analytics.routes');
const mongoBackupRoutes = require('./routes/dbbackup.routes');
let app = express();

// prerender.io init
app.use(require('prerender-node').set('prerenderToken', '<PASSWORD>'));

// connect to db
db.connect();

// compress all requests
app.use(compression());

{'fraction_non_alphanumeric': 0.1796317173994739, 'fraction_numerical': 0.0, 'mean_word_length': 5.60545905707196, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2785195', 'n_tokens_mistral': 775, 'n_tokens_neox': 781, 'n_words': 173}