<commit_before>GenericEdition = Class.new(Edition)

Rails.application.routes.url_helpers.module_eval do
  def generic_edition_path(id)
    "/government/generic-documents/#{id}"
  end

  def admin_generic_edition_editorial_remarks_path(*args)
    admin_edition_editorial_remarks_path(*args)
  end
end

FactoryGirl.define do
  factory :edition, class: GenericEdition do
    creator
    title "edition-title"
    body "edition-body"

    trait(:draft) { state "draft" }<commit_msg>Make generic_edition_path consistent with real routes.<commit_after>GenericEdition = Class.new(Edition)

Rails.application.routes.url_helpers.module_eval do
  def generic_edition_path(id)
    "/government/generic-editions/#{id}"
  end

  def admin_generic_edition_editorial_remarks_path(*args)
    admin_edition_editorial_remarks_path(*args)
  end
end

FactoryGirl.define do
  factory :edition, class: GenericEdition do
    creator
    title "edition-title"
    body "edition-body"

    trait(:draft) { state "draft" }
{'fraction_non_alphanumeric': 0.09136546184738956, 'fraction_numerical': 0.0, 'mean_word_length': 4.970059880239521, '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': '2330831', 'n_tokens_mistral': 333, 'n_tokens_neox': 335, 'n_words': 61}