<commit_before>'use strict';

/**Module dependencies*/
var mongoose = require('mongoose'),  
  Schema = mongoose.Schema;

/**Siso Schema*/
var SisoSchema = new Schema({
  fname: { type: String, required: true },
  mname: { type: String, trim: true },
  lname: { type: String, trim: true },
  mfname: { type: String, trim: true },
  mlname: { type: String, trim: true },
  contact: { type: String, trim: true },  
  /* contact: { type: String, trim: true,
        validate: {
          validator: function(v) {
            return /\(\d{3}\)[ ]\d{3}-\d{4}/.test(v);
          },
          message: '{VALUE} is not a valid phone number!'
        },
        required: [true, 'Contact phone number required']
  }, // TODO TEST THIS )*/
  location: { type: String, trim: true },
  time: { type: String, trim: true } 
});

SisoSchema.set('collection', 'siso');

mongoose.model('siso', SisoSchema);<commit_msg>Try adding a date attribute the easy way.<commit_after>'use strict';

/**Module dependencies*/
var mongoose = require('mongoose'),  
  Schema = mongoose.Schema;

/**Siso Schema*/
var SisoSchema = new Schema({
  fname: { type: String, required: true },
  mname: { type: String, trim: true },
  lname: { type: String, trim: true },
  mfname: { type: String, trim: true },
  mlname: { type: String, trim: true },
  contact: { type: String, trim: true },  
  /* contact: { type: String, trim: true,
        validate: {
          validator: function(v) {
            return /\(\d{3}\)[ ]\d{3}-\d{4}/.test(v);
          },
          message: '{VALUE} is not a valid phone number!'
        },
        required: [true, 'Contact phone number required']
  }, // TODO TEST THIS )*/
  location: { type: String, trim: true },
  time: { type: String, trim: true },
  date: { type: Date, default: Date.now }  
});

SisoSchema.set('collection', 'siso');

mongoose.model('siso', SisoSchema);
{'fraction_non_alphanumeric': 0.17643923240938167, 'fraction_numerical': 0.0031982942430703624, 'mean_word_length': 2.878099173553719, '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': '1558600', 'n_tokens_mistral': 607, 'n_tokens_neox': 610, 'n_words': 185}