<commit_before>.form-group.commit_message-group
  - nonce = SecureRandom.hex
  = label_tag "commit_message-#{nonce}", class: 'control-label' do
    Commit message
  .col-sm-10
    .commit-message-container
      .max-width-marker
      = text_area_tag 'commit_message',
          (params[:commit_message] || local_assigns[:text] || local_assigns[:placeholder]),
          class: 'form-control js-commit-message', placeholder: local_assigns[:placeholder],
          data: local_assigns.slice(:message_with_description, :message_without_description),
          required: true, rows: (local_assigns[:rows] || 3),
          id: "commit_message-#{nonce}"
    - if local_assigns[:hint]
      %p.hint
        Try to keep the first line under 52 characters
        and the others under 72.
    -if local_assigns.slice(:message_with_description, :message_without_description).present?
      %p.hint.with-description-hint
        = link_to "#", class: "with-description-link" do
          Include description in commit message
      %p.hint.without-description-hint.hide
        = link_to "#", class: "without-description-link" do
          Don't include description in commit message
<commit_msg>extract duplicate logic into a variable on _commit_message_container<commit_after>.form-group.commit_message-group
  - nonce = SecureRandom.hex
  - descriptions = local_assigns.slice(:message_with_description, :message_without_description)
  = label_tag "commit_message-#{nonce}", class: 'control-label' do
    Commit message
  .col-sm-10
    .commit-message-container
      .max-width-marker
      = text_area_tag 'commit_message',
          (params[:commit_message] || local_assigns[:text] || local_assigns[:placeholder]),
          class: 'form-control js-commit-message', placeholder: local_assigns[:placeholder],
          data: descriptions,
          required: true, rows: (local_assigns[:rows] || 3),
          id: "commit_message-#{nonce}"
    - if local_assigns[:hint]
      %p.hint
        Try to keep the first line under 52 characters
        and the others under 72.
    - if descriptions.present?
      %p.hint.with-description-hint
        = link_to "#", class: "with-description-link" do
          Include description in commit message
      %p.hint.without-description-hint.hide
        = link_to "#", class: "without-description-link" do
          Don't include description in commit message

{'fraction_non_alphanumeric': 0.11259382819015847, 'fraction_numerical': 0.005838198498748957, 'mean_word_length': 3.1649305555555554, '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': '4148239', 'n_tokens_mistral': 692, 'n_tokens_neox': 679, 'n_words': 156}