<commit_before>FactoryGirl.define do
  factory :user do
   sequence(:uid) { |n| "uid-#{n}"}
   sequence(:name) { |n| "<NAME> #{n}" }
   sequence(:email) { |n| "<EMAIL>" }
    if defined?(GDS::SSO::Config)
      # Grant permission to signin to the app using the gem
      permissions { ["signin"] }
    end
  end

  factory :editor, parent: :user do
    permissions %w(signin editor)
  end

  factory :cma_editor, parent: :user do
    organisation_slug "competition-and-markets-authority"
    organisation_content_id "957eb4ec-089b-4f71-ba2a-dc69ac8919ea"
  end

  factory :aaib_editor, parent: :user do
    organisation_slug "air-accidents-investigation-branch"
    organisation_content_id "38eb5d8f-2d89-480c-8655-e2e7ac23f8f4"<commit_msg>Add factory for gds_editor User<commit_after>FactoryGirl.define do
  factory :user do
   sequence(:uid) { |n| "uid-#{n}"}
   sequence(:name) { |n| "<NAME> #{n}" }
   sequence(:email) { |n| "<EMAIL>" }
    if defined?(GDS::SSO::Config)
      # Grant permission to signin to the app using the gem
      permissions { ["signin"] }
    end
  end

  factory :editor, parent: :user do
    permissions %w(signin editor)
  end

  factory :gds_editor, parent: :user do
    organisation_slug "government-digital-service"
    organisation_content_id "af07d5a5-df63-4ddc-9383-6a666845ebe9"
  end

  factory :cma_editor, parent: :user do
    organisation_slug "competition-and-markets-authority"
    organisation_content_id "957eb4ec-089b-4f71-ba2a-dc69ac8919ea"
  end

  factory :aaib_editor, parent: :user do
    organisation_slug "air-accidents-investigation-branch"
    organisation_content_id "38eb5d8f-2d89-480c-8655-e2e7ac23f8f4"
{'fraction_non_alphanumeric': 0.12146722790138305, 'fraction_numerical': 0.05592303066746843, 'mean_word_length': 4.042424242424242, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7218337', 'n_tokens_mistral': 651, 'n_tokens_neox': 621, 'n_words': 131}