<commit_before>
/**
 * Module dependencies
 */

var express = require('express'),
  routes = require('./routes'),
  http = require('http'),
  path = require('path'),
  i18n = require("i18n");

var app = module.exports = express();

var env = process.env.NODE_ENV || 'development';

/**
 * Configuration
 */

//i18n : https://github.com/mashpie/i18n-node
i18n.configure({
    locales:['en', 'de'],
    directory: __dirname + '/locales'
});

// default: using 'accept-language' header to guess language settings
app.use(i18n.init); // Should always before app.route


// all environments
app.set('port', process.env.PORT || 3000);
app.set('views', __dirname + '/views');
app.set('view engine', 'jade');
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(express.static(path.join(__dirname, 'app')));
app.use(app.router);

//process.env.NODE_ENV
//Development
app.configure('development', function(){
	console.log(':: Development Mode');
  app.use(express.logger('dev'));
  app.use(express.errorHandler({ dumpExceptions: true, showStack: true }));
});


//Production
app.configure('production', function(){
  app.use(express.errorHandler());
});


/**
 * Routes
 */
<commit_msg>Compress content served with gzip<commit_after>
/**
 * Module dependencies
 */

var express = require('express'),
  routes = require('./routes'),
  http = require('http'),
  path = require('path'),
  i18n = require("i18n");

var app = module.exports = express();

var env = process.env.NODE_ENV || 'development';

/**
 * Configuration
 */

//i18n : https://github.com/mashpie/i18n-node
i18n.configure({
    locales:['en', 'de'],
    directory: __dirname + '/locales'
});

// default: using 'accept-language' header to guess language settings
app.use(i18n.init); // Should always before app.route


// all environments
app.set('port', process.env.PORT || 3000);
app.set('views', __dirname + '/views');
app.set('view engine', 'jade');
app.use(express.compress()); //Gzip
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(express.static(path.join(__dirname, 'app')));
app.use(app.router);

//process.env.NODE_ENV
//Development
app.configure('development', function(){
	console.log(':: Development Mode');
  app.use(express.logger('dev'));
  app.use(express.errorHandler({ dumpExceptions: true, showStack: true }));
});


//Production
app.configure('production', function(){
  app.use(express.errorHandler());
});


/**
 * Routes
 */

{'fraction_non_alphanumeric': 0.20106035889070148, 'fraction_numerical': 0.013050570962479609, 'mean_word_length': 4.639080459770115, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5761000', 'n_tokens_mistral': 817, 'n_tokens_neox': 784, 'n_words': 162}