<commit_before>module.exports = (function(){
    "use strict";

    var mongoose = require('mongoose'),
        validate = require('mongoose-validator').validate,
        Schema = mongoose.Schema,
        ObjectId = Schema.ObjectId,
        schema = new Schema({
            label : { type: String, required : true, trim: true },
            slug : { type : String, required : true, unique: true, validate: validate('notContains', ' ') },
            type : [{type: ObjectId, ref: 'contentTypes'}],
            nonce: { type: String },
            status : [{type: String}],
            node : {
                _id: {type: ObjectId, ref: 'nodes'},
                displayOrder: {type: Number}
            },
            fields: {},
            author : {
                _id:  {type: ObjectId, ref: 'users'},
                name: {type: String}
            },
            changelog: [{
                _id: {type: ObjectId},
                name: {type: String},
                action: {type: String},
                date: { type: Date, default: Date.now }
            }],
            validTo: { type: Date, default: Date.now },
            validFrom: { type: Date, default: Date.now }
        },{collection: 'content'});

    return schema;
})();<commit_msg>Fixed the content schema.<commit_after>module.exports = (function(){
    "use strict";

    var mongoose = require('mongoose'),
        validate = require('mongoose-validator').validate,
        Schema = mongoose.Schema,
        ObjectId = Schema.ObjectId,
        schema = new Schema({
            label : { type: String, required : true, trim: true },
            slug : { type : String, required : true, unique: true, validate: validate('notContains', ' ') },
            type : {type: ObjectId, ref: 'contentTypes'},
            nonce: { type: String },
            status : {type: String},
            node : {
                _id: {type: ObjectId, ref: 'nodes'},
                displayOrder: {type: Number}
            },
            fields: {},
            author : {
                _id:  {type: ObjectId, ref: 'users'},
                name: {type: String}
            },
            changelog: [{
                _id: {type: ObjectId},
                name: {type: String},
                action: {type: String},
                date: { type: Date, default: Date.now }
            }],
            validTo: { type: Date, default: Date.now },
            validFrom: { type: Date, default: Date.now }
        },{collection: 'content'});

    return schema;
})();
{'fraction_non_alphanumeric': 0.14167324388318864, 'fraction_numerical': 0.0, 'mean_word_length': 1.59467758444217, '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': '3377358', 'n_tokens_mistral': 684, 'n_tokens_neox': 671, 'n_words': 185}