<commit_before>%main#contents(role="main")
  =h1 "Écrire un commentaire"

  %p
    Des <a href="/regles_de_moderation">règles de modération</a> sont applicables aux commentaires (et au reste du site).

  - if @comment.parent
    %p
      = link_to "Retourner au contenu associé", path_for_content(@comment.content)
    %ul.threads
      %li.comment{comment_attr(@comment.parent)}
        = render @comment.parent
    - if @comment.parent.try(:bound_score) == -10
      .notice
        %strong Do not feed the troll!
  - else
    = render @comment.node.content

  = render "preview", preview: @comment if @preview_mode

  = form_for [@node, @comment], url: "/nodes/#{@node.id}/comments#comment_new" do |form|
    = form.hidden_field :parent_id
    = render form

  = render 'shared/wiki_help'<commit_msg>Add div#comments when composing a new comment<commit_after>%main#contents(role="main")
  =h1 "Écrire un commentaire"

  %p
    Des <a href="/regles_de_moderation">règles de modération</a> sont applicables aux commentaires (et au reste du site).

  - if @comment.parent
    %p
      = link_to "Retourner au contenu associé", path_for_content(@comment.content)
    %div#comments
      %ul.threads
        %li.comment{comment_attr(@comment.parent)}
          = render @comment.parent
          = render "preview", preview: @comment if @preview_mode
      - if @comment.parent.try(:bound_score) == -10
        .notice
          %strong Do not feed the troll!
  - else
    = render @comment.node.content
    %div#comments
      %ul.threads
        = render "preview", preview: @comment if @preview_mode

  = form_for [@node, @comment], url: "/nodes/#{@node.id}/comments#comment_new" do |form|
    = form.hidden_field :parent_id
    = render form

  = render 'shared/wiki_help'
{'fraction_non_alphanumeric': 0.1262683201803833, 'fraction_numerical': 0.0033821871476888386, 'mean_word_length': 3.2161520190023754, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5754728', 'n_tokens_mistral': 581, 'n_tokens_neox': 570, 'n_words': 144}