<commit_before>var mongoose = require('mongoose'),
    message  = require('../models/message')(mongoose),
	account  = require('../models/account')(mongoose),
	findOrCreate = require('mongoose-findorcreate');

mongoose.connect('mongodb://localhost/LineSocial');

//mongoose.connect('mongodb://heroku_app19397517:<EMAIL>:53678/heroku_app19397517');
//mongoose.connect('mongodb://heroku_app19413190:<EMAIL>:53668/heroku_app19413190');


//var db = mongoose.connection;

// foursquare
var foursquare = (require('foursquarevenues'))('Q3Q5R5RIYDOJDS2ACP3XL1WKK5W1RR3SNJULY2VDU2PXNKAB', 'UWBQRUXO0NGPQGZGFFV2WLJGEUTRABRGZKGC5LC25SAUGYDJ');

exports.index = function(req, res){
	  if ( req.session.loggedIn ) {
		  req.session.destroy(function(err){
			  console.log(err);
			  res.render('index', 
						{ title: 'LineSocial',
						  pagename: 'login' });
			 });
		  } else {<commit_msg>fixed db reference<commit_after>var mongoose = require('mongoose'),
    message  = require('../models/message')(mongoose),
	account  = require('../models/account')(mongoose),
	findOrCreate = require('mongoose-findorcreate');

//mongoose.connect('mongodb://localhost/LineSocial');

mongoose.connect('mongodb://heroku_app19397517:<EMAIL>:53678/heroku_app19397517');
//mongoose.connect('mongodb://heroku_app19413190:<EMAIL>:53668/heroku_app19413190');


//var db = mongoose.connection;

// foursquare
var foursquare = (require('foursquarevenues'))('Q3Q5R5RIYDOJDS2ACP3XL1WKK5W1RR3SNJULY2VDU2PXNKAB', 'UWBQRUXO0NGPQGZGFFV2WLJGEUTRABRGZKGC5LC25SAUGYDJ');

exports.index = function(req, res){
	  if ( req.session.loggedIn ) {
		  req.session.destroy(function(err){
			  console.log(err);
			  res.render('index', 
						{ title: 'LineSocial',
						  pagename: 'login' });
			 });
		  } else {
{'fraction_non_alphanumeric': 0.16506500847936686, 'fraction_numerical': 0.06557377049180328, 'mean_word_length': 5.298932384341637, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5238007', 'n_tokens_mistral': 787, 'n_tokens_neox': 670, 'n_words': 68}