<commit_before>if (process.env.NEW_RELIC_LICENSE_KEY && process.env.NEW_RELIC_APP_NAME) {
    require('newrelic');
}

var express = require('express')
  , app = express()
  , server = require('http').createServer(app)
  , BearerStrategy = require('passport-http-bearer').Strategy
  , core = require('nitrogen-core')
  , controllers = require('./controllers')
  , LocalStrategy = require('passport-local').Strategy
  , middleware = require('./middleware')
  , mongodbProviders = require('nitrogen-mongodb-providers')
  , passport = require('passport')
  , path = require('path');

core.config = require('./config');
core.log = require('winston');

core.config.pubsub_provider.services = core.services;

if (process.env.LOGGLY_SUBDOMAIN && process.env.LOGGLY_INPUT_TOKEN &&
    process.env.LOGGLY_USERNAME && process.env.LOGGLY_PASSWORD) {

    core.log.add(Loggly, {
        "subdomain": process.env.LOGGLY_SUBDOMAIN,
        "inputToken": process.env.LOGGLY_INPUT_TOKEN,
        "auth": {
            "username": process.env.LOGGLY_USERNAME,
            "password": <PASSWORD>
        }
    });
}

core.log.remove(core.log.transports.Console);
core.log.add(core.log.transports.Console, { colorize: true, timestamp: true, level: 'info' });

app.use(express.logger(core.config.request_log_format));
app.use(express.compress());
app.use(express.bodyParser());
<commit_msg>Fixing require for custom package.<commit_after>if (process.env.NEW_RELIC_LICENSE_KEY && process.env.NEW_RELIC_APP_NAME) {
    require('newrelic');
}

var express = require('express')
  , app = express()
  , server = require('http').createServer(app)
  , BearerStrategy = require('passport-http-bearer').Strategy
  , core = require('nitrogen-core')
  , controllers = require('./controllers')
  , LocalStrategy = require('passport-local').Strategy
  , middleware = require('./middleware')
  , mongodbProviders = require('@irjudson/nitrogen-mongodb-providers')
  , passport = require('passport')
  , path = require('path');

core.config = require('./config');
core.log = require('winston');

core.config.pubsub_provider.services = core.services;

if (process.env.LOGGLY_SUBDOMAIN && process.env.LOGGLY_INPUT_TOKEN &&
    process.env.LOGGLY_USERNAME && process.env.LOGGLY_PASSWORD) {

    core.log.add(Loggly, {
        "subdomain": process.env.LOGGLY_SUBDOMAIN,
        "inputToken": process.env.LOGGLY_INPUT_TOKEN,
        "auth": {
            "username": process.env.LOGGLY_USERNAME,
            "password": <PASSWORD>
        }
    });
}

core.log.remove(core.log.transports.Console);
core.log.add(core.log.transports.Console, { colorize: true, timestamp: true, level: 'info' });

app.use(express.logger(core.config.request_log_format));
app.use(express.compress());
app.use(express.bodyParser());

{'fraction_non_alphanumeric': 0.16143011917659805, 'fraction_numerical': 0.0, 'mean_word_length': 4.3578336557059965, 'pattern_counts': {'":': 10, '<': 5, '<?xml version=': 0, '>': 5, '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': '7091741', 'n_tokens_mistral': 915, 'n_tokens_neox': 910, 'n_words': 122}