<commit_before>'use strict';
var crypto = require('crypto');

function encryptPassword(password, salt){
  return crypto.createHmac('sha1', salt).update(password).digest('hex');
}
module.exports = {
  up: function (queryInterface, Sequelize) {
    return queryInterface.bulkInsert('Users',[
      { username: 'admin',
        password: encryptPassword('<PASSWORD>','<PASSWORD>'),
        salt:'aaaa',
        isAdmin:true,
        loginAt: new Date(),
        createdAt: new Date(), 
        updatedAt: new Date() },
      { username: 'pepe',
        password: encryptPassword('<PASSWORD>','<PASSWORD>'),
        salt:'bbbb',
        loginAt: new Date(),
        createdAt: new Date(), 
        updatedAt: new Date(),
         }
    ]);
  },

  down: function (queryInterface, Sequelize) {<commit_msg>P12: segunda version<commit_after>'use strict';
var crypto = require('crypto');

function encryptPassword(password, salt){
  return crypto.createHmac('sha1', salt).update(password).digest('hex');
}
module.exports = {
  up: function (queryInterface, Sequelize) {
    return queryInterface.bulkInsert('Users',[
      { username: 'admin',
        password: encryptPassword('<PASSWORD>','<PASSWORD>'),
        salt:'aaaa',
        isAdmin:true,
        expiredAt: new Date().getTime(),
        createdAt: new Date(), 
        updatedAt: new Date() },
      { username: 'pepe',
        password: encryptPassword('<PASSWORD>','<PASSWORD>'),
        salt:'bbbb',
        expiredAt: new Date().getTime(),
        createdAt: new Date(), 
        updatedAt: new Date(),
         }
    ]);
  },

  down: function (queryInterface, Sequelize) {
{'fraction_non_alphanumeric': 0.161250766400981, 'fraction_numerical': 0.002452483139178418, 'mean_word_length': 3.110831234256927, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '2259561', 'n_tokens_mistral': 482, 'n_tokens_neox': 467, 'n_words': 104}