<commit_before>module ApplicationHelper
  def facet_options(form, facet)
    form.object.facet_options(facet)
  end

  def locale_codes
    I18n.t('language_names').keys
  end

  def map_locale_names
    locale_codes.index_by { |l| [t("language_names.#{l}", locale: "en")] }
  end
end<commit_msg>Fix locale select form options<commit_after>module ApplicationHelper
  def facet_options(form, facet)
    form.object.facet_options(facet)
  end

  def locale_codes
    I18n.t('language_names').keys
  end

  def map_locale_names
    locale_codes.map { |l| [t("language_names.#{l}", locale: "en"), l] }.to_h
  end
end
{'fraction_non_alphanumeric': 0.11764705882352941, 'fraction_numerical': 0.006535947712418301, 'mean_word_length': 4.424778761061947, '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': '343252', 'n_tokens_mistral': 225, 'n_tokens_neox': 216, 'n_words': 45}