<commit_before>var mailer = require('../config/nodemailer');
var utils = require('./utils');
<<<<<<< HEAD
var User = require('../models/schemas/user');
var async = require('async');
=======
var parser = require('../parser');
var songEmpty = {
		title: '',
		artist: '',
		genre: '',
		_id: ''
		};
>>>>>>> c80f95513ca4af36f6fc8d4f5c681d3a0716f299

module.exports = function(app, passport, db) {

	db.mongoose.once('open', function callback() {
		app.get('/', function(req, res){
	 		res.render('index', { title: 'Enchord' });
		});

		app.get('/home', function(req, res){
			res.render('home.ejs');
		})
		
		app.get('/about', function(req, res){
			res.render('about.ejs', {title:"enchord"});
		});

		app.get('/login', protectLogin, function(req, res){
			res.render('login.ejs', {title: "enchord", message: req.flash('loginMessage')});
		});
		app.post('/login', passport.authenticate('local-login', {
			successRedirect: '/members', 
			failureRedirect: '/login',
			failureFlash : true // allow flash messages
		}));<commit_msg>Fix merge conflict in routes<commit_after>var mailer = require('../config/nodemailer');
var utils = require('./utils');
var User = require('../models/schemas/user');
var async = require('async');
var parser = require('../parser');
var songEmpty = {
		title: '',
		artist: '',
		genre: '',
		_id: ''
		};

module.exports = function(app, passport, db) {

	db.mongoose.once('open', function callback() {
		app.get('/', function(req, res){
	 		res.render('index', { title: 'Enchord' });
		});

		app.get('/home', function(req, res){
			res.render('home.ejs');
		})
		
		app.get('/about', function(req, res){
			res.render('about.ejs', {title:"enchord"});
		});

		app.get('/login', protectLogin, function(req, res){
			res.render('login.ejs', {title: "enchord", message: req.flash('loginMessage')});
		});
		app.post('/login', passport.authenticate('local-login', {
			successRedirect: '/members', 
			failureRedirect: '/login',
			failureFlash : true // allow flash messages
		}));
{'fraction_non_alphanumeric': 0.22526106414719047, 'fraction_numerical': 0.012431626056688214, 'mean_word_length': 4.185567010309279, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '1019636', 'n_tokens_mistral': 769, 'n_tokens_neox': 675, 'n_words': 132}