<commit_before># Read about factories at https://github.com/thoughtbot/factory_girl

FactoryGirl.define do
  
  factory :user do
    phone 999999999
    password '<PASSWORD>'
    association :organization, :factory => :organization
    
    factory :guest do
      first_name "bob"
      last_name  "guest"
      email '<EMAIL>'

      after(:build) do |u|
        u.add_role :guest
      end
    end

    factory :normal_user do
      first_name "joe"
      last_name  "normal"
      sequence(:email) {|n| "<EMAIL>"}

      after(:build) do |u|
        u.add_role :user
      end
    end

    factory :manager do
      first_name "kate"
      last_name  "manager"
      sequence(:email) {|n| "<EMAIL>#{<EMAIL>"}

      after(:build) do |u|
        u.add_role :manager
      end
    end

    factory :admin do
      first_name "jill"
      last_name  "admin"
      email '<EMAIL>'

      after(:build) do |u|
        u.add_role :admin
      end
    end  
  end
  
end<commit_msg>make sure users for testing are active<commit_after># Read about factories at https://github.com/thoughtbot/factory_girl

FactoryGirl.define do

  factory :user do
    phone 999999999
    password '<PASSWORD>'
    association :organization, :factory => :organization
    active true

    factory :guest do
      first_name "bob"
      last_name  "guest"
      email '<EMAIL>'

      after(:build) do |u|
        u.add_role :guest
      end
    end

    factory :normal_user do
      first_name "joe"
      last_name  "normal"
      sequence(:email) {|n| "<EMAIL>"}

      after(:build) do |u|
        u.add_role :user
      end
    end

    factory :manager do
      first_name "kate"
      last_name  "manager"
      sequence(:email) {|n| "<EMAIL>"}

      after(:build) do |u|
        u.add_role :manager
      end
    end

    factory :admin do
      first_name "jill"
      last_name  "admin"
      email '<EMAIL>'

      after(:build) do |u|
        u.add_role :admin
      end
    end
  end

end
{'fraction_non_alphanumeric': 0.10303030303030303, 'fraction_numerical': 0.00909090909090909, 'mean_word_length': 2.061823802163833, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 16, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '203099', 'n_tokens_mistral': 688, 'n_tokens_neox': 646, 'n_words': 181}