<commit_before>var path = require('path');

var settings = {
  debugMaxLength: 10000000,
  autoInstallModules: true,
  httpAdminRoot: '/red',
  httpNodeRoot: '/',
  nodesDir: path.join(__dirname, 'nodes'),
  functionGlobalContext: { },    // enables global context
  httpNodeCors: {
    origin: "*",
    methods: "GET,PUT,POST,DELETE"
  }
};

if (process.env.MONGO_URI || process.env.MONGOLAB_URI) {
  settings.storageModule = require('./mongostorage');
  settings.mongoUrl = process.env.MONGO_URI || process.env.MONGOLAB_URI;
  settings.mongoAppname = 'enebular';
} else {
  settings.userDir = path.join(__dirname);
}

module.exports = settings;<commit_msg>check MONGODB_URI env #6<commit_after>var path = require('path');

var settings = {
  debugMaxLength: 10000000,
  autoInstallModules: true,
  httpAdminRoot: '/red',
  httpNodeRoot: '/',
  nodesDir: path.join(__dirname, 'nodes'),
  functionGlobalContext: { },    // enables global context
  httpNodeCors: {
    origin: "*",
    methods: "GET,PUT,POST,DELETE"
  }
};

if (process.env.MONGO_URI || process.env.MONGOLAB_URI || process.env.MONGODB_URI) {
  settings.storageModule = require('./mongostorage');
  settings.mongoUrl = process.env.MONGO_URI || process.env.MONGOLAB_URI || process.env.MONGODB_URI;
  settings.mongoAppname = 'enebular';
} else {
  settings.userDir = path.join(__dirname);
}

module.exports = settings;
{'fraction_non_alphanumeric': 0.1498913830557567, 'fraction_numerical': 0.012309920347574221, 'mean_word_length': 4.57258064516129, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '285897', 'n_tokens_mistral': 492, 'n_tokens_neox': 474, 'n_words': 80}