<commit_before>- title "Traducciones"

= form_tag translations_path do
  - @translations.keys("#{I18n.locale}.public.*").each do |key|
    - clave = key.sub("#{I18n.locale}.public.", "")
    - campo = "translations[#{clave}]"
    %p
      = label_tag campo, clave.humanize
      = text_field_tag campo, @translations[key]
  %p= submit_tag "Submit"
<commit_msg>Menos duplicación.<commit_after>- title "Traducciones"

= form_tag translations_path do
  - scope = "#{I18n.locale}.public."
  - @translations.keys("#{scope}*").each do |key|
    - clave = key.sub scope, ""
    - campo = "translations[#{clave}]"
    %p
      = label_tag campo, clave.humanize
      = text_field_tag campo, @translations[key]
  %p= submit_tag "Submit"

{'fraction_non_alphanumeric': 0.16758241758241757, 'fraction_numerical': 0.008241758241758242, 'mean_word_length': 3.6139240506329116, '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': '4923591', 'n_tokens_mistral': 270, 'n_tokens_neox': 269, 'n_words': 50}