<commit_before>unless Rails.env.test?
  default_url_options = {
    host:        Gitlab.config.gitlab.host,
    protocol:    Gitlab.config.gitlab.protocol,
    script_name: Gitlab.config.gitlab.relative_url_root
  }

  unless Gitlab.config.gitlab_on_standard_port?
    default_url_options[:port] = Gitlab.config.gitlab.port
  end

  Rails.application.routes.default_url_options = default_url_options
end
<commit_msg>Set default_url_options in test environments too<commit_after>default_url_options = {
  host:        Gitlab.config.gitlab.host,
  protocol:    Gitlab.config.gitlab.protocol,
  script_name: Gitlab.config.gitlab.relative_url_root
}

unless Gitlab.config.gitlab_on_standard_port?
  default_url_options[:port] = Gitlab.config.gitlab.port
end

Rails.application.routes.default_url_options = default_url_options

{'fraction_non_alphanumeric': 0.08637469586374696, 'fraction_numerical': 0.0, 'mean_word_length': 4.836879432624113, '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': '6429384', 'n_tokens_mistral': 280, 'n_tokens_neox': 276, 'n_words': 36}