<commit_before>var 
	mongoose = require('mongoose'),
	mailer = require('../app/mailer'),
	LocalStrategy = require('passport-local').Strategy,
	FacebookTokenStrategy = require('passport-facebook-token').Strategy,
	GoogleStrategy = require('passport-google-oauth').OAuth2Strategy,
	BearerStrategy = require('passport-http-bearer').Strategy,
	User = mongoose.model('User'),
	AccessToken = mongoose.model('AccessToken');

module.exports = function (passport, config) {
	// require('./initializer')

	// serialize sessions
	passport.serializeUser(function(user, done) {
		done(null, user.id)
	})

	passport.deserializeUser(function(id, done) {
		User.findOne({ _id: id }, function (err, user) {
			done(err, user)<commit_msg>clean up passport strategies<commit_after>var 
	mongoose = require('mongoose'),
	mailer = require('../app/mailer'),
	LocalStrategy = require('passport-local').Strategy,
	BearerStrategy = require('passport-http-bearer').Strategy,
	User = mongoose.model('User'),
	AccessToken = mongoose.model('AccessToken');

module.exports = function (passport, config) {
	// require('./initializer')

	// serialize sessions
	passport.serializeUser(function(user, done) {
		done(null, user.id)
	})

	passport.deserializeUser(function(id, done) {
		User.findOne({ _id: id }, function (err, user) {
			done(err, user)
{'fraction_non_alphanumeric': 0.16084977238239756, 'fraction_numerical': 0.0007587253414264037, 'mean_word_length': 5.52970297029703, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6049553', 'n_tokens_mistral': 431, 'n_tokens_neox': 421, 'n_words': 74}