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

var schema = new mongoose.Schema({
  name: { type: String, unique: true, required: true},
  color: { type: String, required: true},
  order: { type: Number, default: 0 }
})

schema.pre('save', function(next) {
  this.path = encodeURI(this.name.toLowerCase().replace(/\//, ''));
  next();
});

module.exports = mongoose.model('Label', schema);<commit_msg>Removing cruft from Label model<commit_after>var mongoose = require('mongoose');

var schema = new mongoose.Schema({
  name: { type: String, unique: true, required: true},
  color: { type: String, required: true},
  order: { type: Number, default: 0 }
});

module.exports = mongoose.model('Label', schema);
{'fraction_non_alphanumeric': 0.17696629213483145, 'fraction_numerical': 0.0028089887640449437, 'mean_word_length': 5.0423728813559325, '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': '5647723', 'n_tokens_mistral': 226, 'n_tokens_neox': 233, 'n_words': 62}