<commit_before>FactoryGirl.define do

  # this user has the default role :user
  factory :user do
    name 'Test User'
    sequence(:email) {|n| "<EMAIL>" }
    phone '+49 30 1234567'
    password '<PASSWORD>'
    password_confirmation '<PASSWORD>'

    factory :admin do
      after(:create) do |user|
        user.remove_role(:user)
        user.add_role(:admin)
      end
    end

    factory :superadmin do
      after(:create) do |user|
        user.remove_role(:user)
        user.add_role(:admin)
        user.add_role(:superadmin)
      end
    end

    after(:create) do |user|
      user.confirm
    end
  end
end<commit_msg>Add origin to test data.<commit_after>FactoryGirl.define do

  # this user has the default role :user
  factory :user do
    name 'Test User'
    sequence(:email) {|n| "<EMAIL>" }
    phone '+49 30 1234567'
    password '<PASSWORD>'
    password_confirmation '<PASSWORD>'
    origin 'http://localhost:8000'

    factory :admin do
      after(:create) do |user|
        user.remove_role(:user)
        user.add_role(:admin)
      end
    end

    factory :superadmin do
      after(:create) do |user|
        user.remove_role(:user)
        user.add_role(:admin)
        user.add_role(:superadmin)
      end
    end

    after(:create) do |user|
      user.confirm
    end
  end
end
{'fraction_non_alphanumeric': 0.11018237082066869, 'fraction_numerical': 0.019756838905775075, 'mean_word_length': 2.411917098445596, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '736399', 'n_tokens_mistral': 442, 'n_tokens_neox': 410, 'n_words': 113}