<commit_before>var express		= require('express'),
	routes      = require('./routes'),
	user        = require('./routes/user'),
	item        = require('./routes/item'),
	http        = require('http'),
	path        = require('path'),
	app         = express(),
	mongoose    = require('mongoose');

app.set('port', process.env.PORT || 3000);
app.set('views', __dirname + '/views');
app.set('view engine', 'mmm');
app.set('layout', 'layout/main');

app.use(express.logger('dev'));
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(express.cookieParser('oh my god, i can\'t tell you what i\'m writing, because it\'s a secret'));
app.use(express.session());
app.use(app.router);
app.use(require('less-middleware')({ src: __dirname + '/public' }));
app.use(express.static(path.join(__dirname, 'public')));

if ('development' == app.get('env')) {
  app.use(express.errorHandler());
}

var mongo_url  = process.env.MONGOHQ_URL || 'mongodb://localhost/drunken-bear',
	database   = mongoose.connect(mongo_url, function(error){
	if(error){
		console.error(error);
		process.kill();
	}
	http.createServer(app).listen(app.get('port'), function(){
		console.log('connected to '+mongo_url);
		console.log('drunken-bear is running perfeclty on port #' + app.get('port'));
		console.log('drunken-bear is currently in ' + app.get('env'));
	});
});

var OperationHelper = require('apac').OperationHelper;

OperationHelper.defaultEndPoint = 'ecs.amazonaws.fr'; // manage locales here

if(!process.env.AWS_ID || !process.env.AWS_SECRET){
	console.log('Search will failed because no Amazon WS credentials was provided');
}

var amazon_credentials = {
	awsId    : process.env.AWS_ID,
	awsSecret: process.env.AWS_SECRET,
	assocId  : process.env.AWS_ASSOC_ID || 'gulianfr-20'<commit_msg>Modification of the apac module to apac-g module, because of the OS dependency of the apac module<commit_after>var express		= require('express'),
	routes      = require('./routes'),
	user        = require('./routes/user'),
	item        = require('./routes/item'),
	http        = require('http'),
	path        = require('path'),
	app         = express(),
	mongoose    = require('mongoose');

app.set('port', process.env.PORT || 3000);
app.set('views', __dirname + '/views');
app.set('view engine', 'mmm');
app.set('layout', 'layout/main');

app.use(express.logger('dev'));
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(express.cookieParser('oh my god, i can\'t tell you what i\'m writing, because it\'s a secret'));
app.use(express.session());
app.use(app.router);
app.use(require('less-middleware')({ src: __dirname + '/public' }));
app.use(express.static(path.join(__dirname, 'public')));

if ('development' == app.get('env')) {
  app.use(express.errorHandler());
}

var mongo_url  = process.env.MONGOHQ_URL || 'mongodb://localhost/drunken-bear',
	database   = mongoose.connect(mongo_url, function(error){
	if(error){
		console.error(error);
		process.kill();
	}
	http.createServer(app).listen(app.get('port'), function(){
		console.log('connected to '+mongo_url);
		console.log('drunken-bear is running perfeclty on port #' + app.get('port'));
		console.log('drunken-bear is currently in ' + app.get('env'));
	});
});

var OperationHelper = require('apac-g').OperationHelper;

OperationHelper.defaultEndPoint = 'ecs.amazonaws.fr'; // manage locales here

if(!process.env.AWS_ID || !process.env.AWS_SECRET){
	console.log('Search will failed because no Amazon WS credentials was provided');
}

var amazon_credentials = {
	awsId    : process.env.AWS_ID,
	awsSecret: process.env.AWS_SECRET,
	assocId  : process.env.AWS_ASSOC_ID || 'gulianfr-20'
{'fraction_non_alphanumeric': 0.1863711001642036, 'fraction_numerical': 0.003284072249589491, 'mean_word_length': 4.684292379471229, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4160873', 'n_tokens_mistral': 1252, 'n_tokens_neox': 1235, 'n_words': 241}