<commit_before>FactoryGirl.define do
  factory :default, class: User do
    email                 '<EMAIL>'
    password              '<PASSWORD>'
    password_confirmation '<PASSWORD>'
    type                  'Member'
    after(:create) do |u|
      create(:preference, user: u, key: 'key1')
      create(:preference, user: u, key: 'key2')
    end
  end

  factory :member, class: User do
    sequence(:email) { |n| "<EMAIL>" }
    password              '<PASSWORD>'
    password_confirmation '<PASSWORD>'
    type                  'Member'
  end

  factory :preference, class: Preference do
    key   'key'
    value 'value'<commit_msg>Add admin user factory<commit_after>FactoryGirl.define do
  factory :default, class: User do
    email                 '<EMAIL>'
    password              '<PASSWORD>'
    password_confirmation '<PASSWORD>'
    type                  'Member'
    after(:create) do |u|
      create(:preference, user: u, key: 'key1')
      create(:preference, user: u, key: 'key2')
    end
  end

  factory :member, class: User do
    sequence(:email) { |n| "<EMAIL>" }
    password              '<PASSWORD>'
    password_confirmation '<PASSWORD>'
    type                  'Member'
  end

  factory :admin, class: User do
    sequence(:email) { |n| "<EMAIL>" }
    password              '<PASSWORD>'
    password_confirmation '<PASSWORD>'
    type                  'Admin'
  end

  factory :preference, class: Preference do
    key   'key'
    value 'value'
{'fraction_non_alphanumeric': 0.11756756756756757, 'fraction_numerical': 0.002702702702702703, 'mean_word_length': 2.059917355371901, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, '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': '1339003', 'n_tokens_mistral': 437, 'n_tokens_neox': 431, 'n_words': 125}