<commit_before>
const mongoose = require('mongoose');
const Schema = mongoose.Schema;

const schema = new Schema({

    name: {
        type: String,
        required: true
    },
    type: {
        type: String,
        required: true,
        enum: ['login', 'logout', 'signup', 'login failed', 'login blocked', 'signup blocked', 'account locked']
    },
    level: {
        type: String,
        required: true,<commit_msg>added email to event model<commit_after>
const mongoose = require('mongoose');
const Schema = mongoose.Schema;

const schema = new Schema({

    email: {
        type: String,
        required: true
    },
    type: {
        type: String,
        required: true,
        enum: ['login', 'logout', 'signup', 'failed login', 'blocked login', 'signup blocked', 'account locked']
    },
    level: {
        type: String,
        required: true,
{'fraction_non_alphanumeric': 0.135632183908046, 'fraction_numerical': 0.0, 'mean_word_length': 2.4426877470355732, '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': '5679744', 'n_tokens_mistral': 254, 'n_tokens_neox': 257, 'n_words': 79}