<commit_before>'use strict';
const options = {freezeTableName: true};

module.exports = function(sequelize, DataTypes) {
  return sequelize.define('Users', {
    'nameNumber': {
      type: DataTypes.STRING,
      primaryKey: true,
      autoIncrement: false
    },
    name: {
      type: DataTypes.STRING,
      allowNull: false
    },
    instrument: {
      type: DataTypes.ENUM('Trumpet', 'Mellophone', 'Trombone', 'Baritone', 'Snare', 'Tenor', 'Cymbals', 'Bass', 'Sousaphone'),
      allowNull: true
    },
    part: {
      type: DataTypes.ENUM('Efer', 'First', 'Second', 'Flugel', 'Bass', 'Solo'),
      allowNull: true,
      validate: {
        correctInstrument: function(value) {
          let instrumentMatchesPart = true;
          switch(this.instrument) {
          case 'Trumpet':
            instrumentMatchesPart = (value === 'Solo' || value === 'First' || value === 'Second' || value === 'Flugel' || value === 'Effer');
            break;
          case 'Trombone':
            instrumentMatchesPart = (value === 'First' || value === 'Second' || value === 'Bass');
            break;
          default:
            instrumentMatchesPart = true;
          }
          if (!instrumentMatchesPart) throw new Error(`Instrument: ${this.instrument} can't have part ${value}`);
        }
      }
    },
    admin: {
      type: DataTypes.BOOLEAN,
      allowNull: false,
      defaultValue: false
    },
    squadLeader: {
      type: DataTypes.BOOLEAN,
      allowNull: false,
      defaultValue: false
    },
    eligible: {
      type: DataTypes.BOOLEAN,
      allowNull: false,
      defaultValue: false
    },
    alternate: {
      type: DataTypes.BOOLEAN,
      allowNull: true
    }
  }, options);
};
<commit_msg>Added password attribute to user<commit_after>'use strict';
const options = {freezeTableName: true};

module.exports = function(sequelize, DataTypes) {
  return sequelize.define('Users', {
    'nameNumber': {
      type: DataTypes.STRING,
      primaryKey: true,
      autoIncrement: false
    },
    name: {
      type: DataTypes.STRING,
      allowNull: false
    },
    password: {
      type: DataTypes.STRING,
      allowNull: false
    },
    instrument: {
      type: DataTypes.ENUM('Trumpet', 'Mellophone', 'Trombone', 'Baritone', 'Snare', 'Tenor', 'Cymbals', 'Bass', 'Sousaphone'),
      allowNull: true
    },
    part: {
      type: DataTypes.ENUM('Efer', 'First', 'Second', 'Flugel', 'Bass', 'Solo'),
      allowNull: true,
      validate: {
        correctInstrument: function(value) {
          let instrumentMatchesPart = true;
          switch(this.instrument) {
          case 'Trumpet':
            instrumentMatchesPart = (value === 'Solo' || value === 'First' || value === 'Second' || value === 'Flugel' || value === 'Effer');
            break;
          case 'Trombone':
            instrumentMatchesPart = (value === 'First' || value === 'Second' || value === 'Bass');
            break;
          default:
            instrumentMatchesPart = true;
          }
          if (!instrumentMatchesPart) throw new Error(`Instrument: ${this.instrument} can't have part ${value}`);
        }
      }
    },
    admin: {
      type: DataTypes.BOOLEAN,
      allowNull: false,
      defaultValue: false
    },
    squadLeader: {
      type: DataTypes.BOOLEAN,
      allowNull: false,
      defaultValue: false
    },
    eligible: {
      type: DataTypes.BOOLEAN,
      allowNull: false,
      defaultValue: false
    },
    alternate: {
      type: DataTypes.BOOLEAN,
      allowNull: true
    }
  }, options);
};

{'fraction_non_alphanumeric': 0.14426045467302834, 'fraction_numerical': 0.0, 'mean_word_length': 2.3091922005571033, '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': '4960255', 'n_tokens_mistral': 1094, 'n_tokens_neox': 1103, 'n_words': 243}