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

var UserSchema = new mongoose.Schema({
    _id: {type: String, required: true, unique: true, 'default': shortid.generate},
    username: {type: String, unique: true, sparse: true, trim: true, lowercase: true},
    name: {type: String, required: true},
    email: {type: String},
    password: {type: String},
    is_active: {type: Boolean, 'default': true},
    is_admin: {type: Boolean, 'default': false},
    created: {type: Date, required: true, 'default': Date.now},
    google_id: {type: String}
});

var User = mongoose.model('User', UserSchema);

module.exports = {<commit_msg>Return id, not _id or __v.<commit_after>var mongoose = require('mongoose'),
    shortid = require('shortid');

var UserSchema = new mongoose.Schema({
    _id: {type: String, required: true, unique: true, 'default': shortid.generate},
    username: {type: String, unique: true, sparse: true, trim: true, lowercase: true},
    name: {type: String, required: true},
    email: {type: String},
    password: {type: String},
    is_active: {type: Boolean, 'default': true},
    is_admin: {type: Boolean, 'default': false},
    created: {type: Date, required: true, 'default': Date.now},
    google_id: {type: String}
});

UserSchema.set('toObject', {
    transform: function (document, ret, options) {
        ret.id = ret._id;
        delete ret._id;
        delete ret.__v;
    }
});

var User = mongoose.model('User', UserSchema);

module.exports = {
{'fraction_non_alphanumeric': 0.16337285902503293, 'fraction_numerical': 0.0, 'mean_word_length': 4.0633333333333335, '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': '5294533', 'n_tokens_mistral': 482, 'n_tokens_neox': 487, 'n_words': 147}