<commit_before>var mongoose = require('mongoose'),
    bcrypt = require('bcrypt');

var userSchema = new mongoose.Schema({
  email: { type: String, unique: true },
  admin: { type: Boolean, default: false },
  firstName: String,
  lastName: String,
  password: String,
  tokens: {
    facebook: String,
    foursquare: String,
    twitter: String,
    github: String
  },
  provider: String,
  facebook: String,
  google: String
});<commit_msg>Added google token, modified admin attribute, email is now username and old email is just plain email, no longer a primary key, first name and last name are just name now<commit_after>var mongoose = require('mongoose'),
    bcrypt = require('bcrypt');

var userSchema = new mongoose.Schema({
  username: { type: String, unique: true },
  email: String,
  name: String,
  password: <PASSWORD>,
  tokens: {
    google: String,
    facebook: String,
    foursquare: String,
    twitter: String,
    github: String
  },
  provider: String,
  facebook: String,
  google: String,
  isAdmin: Boolean,
});
{'fraction_non_alphanumeric': 0.11527377521613832, 'fraction_numerical': 0.0, 'mean_word_length': 3.869158878504673, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '2828311', 'n_tokens_mistral': 318, 'n_tokens_neox': 315, 'n_words': 109}