<commit_before>.input.simple_captcha.required.hancock_feedback_contact_message_captcha
  - if Hancock::Feedback.config.captcha and Hancock::Feedback.config.simple_captcha_support
    ruby:
      options = {
        label: t('hancock.feedback_plugin.fields.captcha.label'),
        placeholder: t('hancock.feedback_plugin.fields.captcha.placeholder'),
        update_captcha: link_to(' (обн)', hancock_feedback_update_captcha_path, class: 'update_captcha_link'),
        object: Hancock::Feedback::ContactMessage.new
      }
      
    - if Hancock::Feedback.config.model_settings_support
      - options[:label] = settings_scope.simple_captcha_label(default: options[:label], label: "Заголовок поля Код проверки")
      - options[:placeholder] = settings_scope.simple_captcha_placeholder(default: options[:placeholder], label: "Placeholder поля Код проверки")
      = show_simple_captcha options
    - else
      = show_simple_captcha options
<commit_msg>update_captcha fix<commit_after>.input.simple_captcha.required.hancock_feedback_contact_message_captcha
  - if Hancock::Feedback.config.captcha and Hancock::Feedback.config.simple_captcha_support
    ruby:
      if Hancock::Feedback.config.model_settings_support
        settings_scope ||= Hancock::Feedback::ContactMessage.settings
      elsif defined?(Settings)
        settings_scope ||= Settings.ns('feedback')
      end
      options = {
        label: t('hancock.feedback_plugin.fields.captcha.label'),
        placeholder: t('hancock.feedback_plugin.fields.captcha.placeholder'),
        update_captcha: link_to(' (обн)', hancock_feedback_update_captcha_path, class: 'update_captcha_link'),
        object: Hancock::Feedback::ContactMessage.new
      }
      
    - if Hancock::Feedback.config.model_settings_support
      - options[:label] = settings_scope.simple_captcha_label(default: options[:label], label: "Заголовок поля Код проверки")
      - options[:placeholder] = settings_scope.simple_captcha_placeholder(default: options[:placeholder], label: "Placeholder поля Код проверки")
      = show_simple_captcha options
    - else
      = show_simple_captcha options

{'fraction_non_alphanumeric': 0.10356138706654171, 'fraction_numerical': 0.0, 'mean_word_length': 4.4884318766066835, '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': '6718519', 'n_tokens_mistral': 684, 'n_tokens_neox': 632, 'n_words': 94}