<commit_before>module Backend
  module DropdownHelper
    def options_for_content_types
      Udongo.config.flexible_content.types.map do |content_type|
        [I18n.t("b.msg.content_types.#{content_type}"), "Content#{content_type.to_s.camelcase}"]
      end
    end

    def options_for_column_widths
      (1..12).to_a.reverse.map do |i|
        ["#{(i.to_f / 12.0 * 100).to_i}%", i]
      end
    end
  end
end<commit_msg>Show the column widths as fractures.<commit_after>module Backend
  module DropdownHelper
    def options_for_content_types
      Udongo.config.flexible_content.types.map do |content_type|
        [I18n.t("b.msg.content_types.#{content_type}"), "Content#{content_type.to_s.camelcase}"]
      end
    end

    def options_for_column_widths
      (1..12).to_a.reverse.map do |i|
        ["#{i}/12", i]
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.12206572769953052, 'fraction_numerical': 0.02112676056338028, 'mean_word_length': 2.985981308411215, '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': '6944844', 'n_tokens_mistral': 323, 'n_tokens_neox': 312, 'n_words': 54}