<commit_before>const mongoose = require('mongoose');
const db = require('../config.js');
const Schema = mongoose.Schema;

let eventSchema = new Schema({
  title: {type: String, required: true},
  description: {type: String, required: false},
  planId: {type: Schema.ObjectId, ref: 'Plan', required: true },
  startTime: {type: String, required: false},
  endTime: {type: String, required: false},
  status: {type: String, required: true},
  upVotes: [{type: Schema.ObjectId, ref: 'User'}],
  downVotes: [{type: Schema.ObjectId, ref: 'User'}],
  imageUrl: { type: String, default: 'https://i.pinimg.com/736x/fe/1f/3f/fe1f3fb578749b1ab731966d33f1104e--awkward-engagement-photos-hilarious-photos.jpg' },
  tags: [String],
}, {timestamps: true});

var PlanEvent = mongoose.model('PlanEvent', eventSchema);
module.exports = PlanEvent;<commit_msg>Add addressText and addressLink to eventSchema<commit_after>const mongoose = require('mongoose');
const db = require('../config.js');
const Schema = mongoose.Schema;

let eventSchema = new Schema({
  title: {type: String, required: true},
  addressText: {type: String, required: false},
  addressLink: {type: String, required: false},
  description: {type: String, required: false},
  planId: {type: Schema.ObjectId, ref: 'Plan', required: true },
  startTime: {type: String, required: false},
  endTime: {type: String, required: false},
  status: {type: String, required: true},
  upVotes: [{type: Schema.ObjectId, ref: 'User'}],
  downVotes: [{type: Schema.ObjectId, ref: 'User'}],
  imageUrl: { type: String, default: 'https://i.pinimg.com/736x/fe/1f/3f/fe1f3fb578749b1ab731966d33f1104e--awkward-engagement-photos-hilarious-photos.jpg' },
  tags: [String],
}, {timestamps: true});

var PlanEvent = mongoose.model('PlanEvent', eventSchema);
module.exports = PlanEvent;
{'fraction_non_alphanumeric': 0.16675869685256764, 'fraction_numerical': 0.02871341800110436, 'mean_word_length': 5.613138686131387, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '7346641', 'n_tokens_mistral': 637, 'n_tokens_neox': 617, 'n_words': 154}