<commit_before>var mongoose = require('mongoose')

var blogSchema = mongoose.Schema({
  created: {
    type: Date,
    default: Date.now
  },
  title: {
    type: String,
    trim: true
  },
  content: {
    type: String,
    trim: true
  },
  user: {
    type: mongoose.Schema.ObjectId,
    ref: 'user'
  }
})

var Blog = mongoose.model('Blog', blogSchema)

module.exports = {
  Blog: Blog
}<commit_msg>#13 fix the User Ref for the blog Model<commit_after>var mongoose = require('mongoose')

var blogSchema = mongoose.Schema({
  created: {
    type: Date,
    default: Date.now
  },
  title: {
    type: String,
    trim: true
  },
  content: {
    type: String,
    trim: true
  },
  user: {
    type: mongoose.Schema.ObjectId,
    ref: 'User'
  }
})

var Blog = mongoose.model('Blog', blogSchema)

module.exports = {
  Blog: Blog
}
{'fraction_non_alphanumeric': 0.14028776978417265, 'fraction_numerical': 0.002398081534772182, 'mean_word_length': 2.7782805429864252, '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': '648957', 'n_tokens_mistral': 303, 'n_tokens_neox': 308, 'n_words': 74}