<commit_before>#search
  = form_tag phrasing_phrases_path, :method => :get do
    - locale_options = options_for_select([nil] + @locale_names.map{|l| [l,l]}, params[:locale])
    = select_tag 'locale', locale_options
    = text_field_tag :search, params[:search], :placeholder => 'Search for keys or values', :size => 40
    = submit_tag 'Search'
- if @phrasing_phrases.any?
  %table
    %tr
      %th Key
      %th Value
    - @phrasing_phrases.each do |t|
      %tr
        %td.key
          = link_to "#{t.key}", edit_phrasing_phrase_path(t)
        %td.value
          - if t.value
            = t.value.html_safe
          - else
            = t.value<commit_msg>Added .try method to value instead of if else<commit_after>#search
  = form_tag phrasing_phrases_path, :method => :get do
    - locale_options = options_for_select([nil] + @locale_names.map{|l| [l,l]}, params[:locale])
    = select_tag 'locale', locale_options
    = text_field_tag :search, params[:search], :placeholder => 'Search for keys or values', :size => 40
    = submit_tag 'Search'
- if @phrasing_phrases.any?
  %table
    %tr
      %th Key
      %th Value
    - @phrasing_phrases.each do |t|
      %tr
        %td.key
          = link_to "#{t.key}", edit_phrasing_phrase_path(t)
        %td.value
          = t.value.try(:html_safe)
{'fraction_non_alphanumeric': 0.13511450381679388, 'fraction_numerical': 0.0030534351145038168, 'mean_word_length': 2.672268907563025, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '5702799', 'n_tokens_mistral': 466, 'n_tokens_neox': 459, 'n_words': 101}