<commit_before>- content_for(:header_title) { "Movals" }

= simple_form_for :movals do |f|
  = bb_panel table: true do
    %thead
      %tr
        %th
        %th Key
        %th Path
        %th Right path
    %tbody
      - @movals.each do |moval|
        - handler_translation = AwesomeTranslations::CacheDatabaseGenerator::HandlerTranslation.find(moval.handler_translation_id)

        %tr
          %td= check_box_tag "m[#{moval.id}]", handler_translation.id, true
          %td= moval.key
          %td= path_without_root_or_locales moval.file_path
          %td= path_without_root_or_locales "#{handler_translation.dir}/#{moval.locale}.yml"

  = bb_panel do
    = f.button :submit, "Move"
<commit_msg>Show message when no movals was found<commit_after>- content_for(:header_title) { "Movals" }

= simple_form_for :movals do |f|
  - count = 0

  = bb_panel table: true do
    %thead
      %tr
        %th
        %th Key
        %th Path
        %th Right path
    %tbody
      - @movals.each do |moval|
        - handler_translation = AwesomeTranslations::CacheDatabaseGenerator::HandlerTranslation.find(moval.handler_translation_id)
        - count += 1

        %tr
          %td= check_box_tag "m[#{moval.id}]", handler_translation.id, true
          %td= moval.key
          %td= path_without_root_or_locales moval.file_path
          %td= path_without_root_or_locales "#{handler_translation.dir}/#{moval.locale}.yml"
      - if count <= 0
        %tr
          %td{colspan: 4} No wrongly placed translations was found

  - if count > 0
    = bb_panel do
      = f.button :submit, "Move"

{'fraction_non_alphanumeric': 0.109375, 'fraction_numerical': 0.003125, 'mean_word_length': 2.5032822757111597, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '6197780', 'n_tokens_mistral': 548, 'n_tokens_neox': 525, 'n_words': 117}