<commit_before>FactoryGirl.define do
  factory :group_membership do
    group
    user
    role "member"

    trait :committee do
      role "committee"
    end

    # Site admin but not committee member
    factory :stewie_at_quahogcc do
      group :quahogcc
      user :stewie
    end

    # Committee member
    factory :brian_at_quahogcc do
      group :quahogcc
      user :brian
      committee
    end
  end
end
<commit_msg>Fix membership factory.<commit_after>FactoryGirl.define do
  factory :group_membership do
    group
    user
    role "member"

    trait :committee do
      role "committee"
    end

    # Site admin but not committee member
    factory :stewie_at_quahogcc do
      association :group, factory: :quahogcc
      association :user, factory: :stewie
    end

    # Committee member
    factory :brian_at_quahogcc do
      association :group, factory: :quahogcc
      association :user, factory: :brian
      committee
    end
  end
end

{'fraction_non_alphanumeric': 0.050724637681159424, 'fraction_numerical': 0.0, 'mean_word_length': 2.503623188405797, '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': '5198577', 'n_tokens_mistral': 307, 'n_tokens_neox': 300, 'n_words': 94}