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

var userSchema = new mongoose.Schema({
  username: String,
  auth: {
    basic: {
      username: String,
      password: String
    }
  }
});

userSchema.methods.hashPassword = function(password) {
  var hash = this.auth.basic.password = bcrypt.hashSync(password, 8);
  return hash;
};

userSchema.methods.checkPassword = function(password) {
  return bcrypt.compareSync(password, this.auth.basic.password);
};

module.exports = mongoose.model('User', userSchema);<commit_msg>dang it travis, just do the thing<commit_after>// var mongoose = require('mongoose');
// var bcrypt = require('bcrypt');
// var eat = require('eat');

// var userSchema = new mongoose.Schema({
//   username: String,
//   auth: {
//     basic: {
//       username: String,
//       password: <PASSWORD>
//     }
//   }
// });

// userSchema.methods.hashPassword = function(password) {
//   var hash = this.auth.basic.password = bcrypt.hashSync(password, 8);
//   return hash;
// };

// userSchema.methods.checkPassword = function(password) {
//   return bcrypt.compareSync(password, this.auth.basic.password);
// };

// module.exports = mongoose.model('User', userSchema);
{'fraction_non_alphanumeric': 0.16613672496025436, 'fraction_numerical': 0.001589825119236884, 'mean_word_length': 3.5125448028673834, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '5768129', 'n_tokens_mistral': 395, 'n_tokens_neox': 398, 'n_words': 82}