<commit_before>'use strict';
module.exports = {
  up: function (queryInterface, Sequelize) {
    return queryInterface.createTable('lists', {
      id: {
        allowNull: false,
        autoIncrement: true,
        primaryKey: true,
        type: Sequelize.INTEGER
      },
      kk: {type: Sequelize.STRING(64)},
      value: {type: Sequelize.STRING(256)},
      created_at: {
        allowNull: false,
        type: Sequelize.DATE
      }
    }).then(function () {
      queryInterface.addIndex('lists', ['kk']);
    });<commit_msg>add unique index to lists table<commit_after>'use strict';
module.exports = {
  up: function (queryInterface, Sequelize) {
    return queryInterface.createTable('lists', {
      id: {
        allowNull: false,
        autoIncrement: true,
        primaryKey: true,
        type: Sequelize.INTEGER
      },
      kk: {type: Sequelize.STRING(64)},
      value: {type: Sequelize.STRING(256)},
      created_at: {
        allowNull: false,
        type: Sequelize.DATE
      }
    }).then(function () {
      queryInterface.addIndex('lists', ['kk']);
      queryInterface.addIndex(
          'lists',
          ['kk', 'value'],
          {
            indexName: 'KeyValue',
            indicesType: 'UNIQUE'
          }
      )
    });
{'fraction_non_alphanumeric': 0.13801261829652997, 'fraction_numerical': 0.007886435331230283, 'mean_word_length': 2.156716417910448, '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': '6976190', 'n_tokens_mistral': 389, 'n_tokens_neox': 380, 'n_words': 77}