<commit_before>%h2
  = @resolution.title

%p
  A
  - if @resolution.draft?
    draft
  resolution
  submitted by
  = image_tag(@resolution.proposer.gravatar_url(24), :alt => @resolution.proposer.name, :class => 'gravatar', :width => '24', :height => '24')
  = link_to(@resolution.proposer.name, @resolution.proposer)
  = @resolution.creation_date.to_s(:at_on)

- if @resolution.description?
  %h3 Description
  = render 'description', :proposal => @resolution

%h3 Voting

%p
  Votes:
  = render 'vote_count', :proposal => @resolution

- if @resolution.open?
  %p
    Voting ends in
    %strong
      = distance_of_time_in_words_to_now(@resolution.end_date)
    = "(" + @resolution.end_date.to_s(:at_on) + ")"

- if @resolution.open?
  - if can?(:create, Vote)
    %p
      = render 'vote', :proposal => @resolution
  - else
    %p
      You cannot vote on this proposal.
- else
  %p
    This proposal
    -if @resolution.accepted?
      %strong succeeded
    -else
      %strong failed

%h3 Comments
- @comments.each do |comment|
  .comment
    %p.attribution
      = image_tag(comment.author.gravatar_url(24), :alt => comment.author.name, :class => 'gravatar', :width => '24', :height => '24')
      = link_to(comment.author.name, member_path(comment.author))
      = comment.created_at.to_s(:at_on) + ':'
    = simple_format(html_escape(comment.body))
= form_for(@comment, :url => resolution_comments_path(:resolution_id => @resolution)) do |f|
  %p
    = f.label :body, "Add a comment to this resolution:"
    = f.text_area :body
  %p
    = f.submit "Save comment"<commit_msg>Don't show voting information for a proposal where voting hasn't started yet.<commit_after>%h2
  = @resolution.title

%p
  A
  - if @resolution.draft?
    draft
  resolution
  submitted by
  = image_tag(@resolution.proposer.gravatar_url(24), :alt => @resolution.proposer.name, :class => 'gravatar', :width => '24', :height => '24')
  = link_to(@resolution.proposer.name, @resolution.proposer)
  = @resolution.creation_date.to_s(:at_on)

- if @resolution.description?
  %h3 Description
  = render 'description', :proposal => @resolution

- if @resolution.open? || @resolution.closed?

  %h3 Voting

  %p
    Votes:
    = render 'vote_count', :proposal => @resolution

  - if @resolution.open?
    %p
      Voting ends in
      %strong
        = distance_of_time_in_words_to_now(@resolution.end_date)
      = "(" + @resolution.end_date.to_s(:at_on) + ")"

    - if can?(:create, Vote)
      %p
        = render 'vote', :proposal => @resolution
    - else
      %p
        You cannot vote on this proposal.
  - elsif
    %p
      This proposal
      -if @resolution.accepted?
        %strong succeeded
      -else
        %strong failed

%h3 Comments
- @comments.each do |comment|
  .comment
    %p.attribution
      = image_tag(comment.author.gravatar_url(24), :alt => comment.author.name, :class => 'gravatar', :width => '24', :height => '24')
      = link_to(comment.author.name, member_path(comment.author))
      = comment.created_at.to_s(:at_on) + ':'
    = simple_format(html_escape(comment.body))
= form_for(@comment, :url => resolution_comments_path(:resolution_id => @resolution)) do |f|
  %p
    = f.label :body, "Add a comment to this resolution:"
    = f.text_area :body
  %p
    = f.submit "Save comment"
{'fraction_non_alphanumeric': 0.14749620637329286, 'fraction_numerical': 0.009711684370257967, 'mean_word_length': 3.2749675745784694, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 29, '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': '4134790', 'n_tokens_mistral': 1181, 'n_tokens_neox': 1126, 'n_words': 247}