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

const noteSchema = new mongoose.Schema({
  tite: String,
  description: String,
author: {
    id: {
      type: mongoose.Schema.Types.ObjectId,
      ref: 'user'
    },
    username: String
  }
});

const note = mongoose.model('Note', noteSchema);

module.exports = note;<commit_msg>Note model validate<commit_after>const mongoose = require('mongoose');

const noteSchema = new mongoose.Schema({
  tite: {type: String, required: true},
  description: {type: String, required: true},
  author: {
    id: {
      type: mongoose.Schema.Types.ObjectId,
      ref: 'user'
        },
    username: String,
    required: true
  }
});

const note = mongoose.model('Note', noteSchema);

module.exports = note;
{'fraction_non_alphanumeric': 0.14058355437665782, 'fraction_numerical': 0.0, 'mean_word_length': 3.5757575757575757, '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': '7340829', 'n_tokens_mistral': 240, 'n_tokens_neox': 248, 'n_words': 59}