<commit_before>.modal-header
  %button.close{"data-dismiss" => "modal"}×
  %h2 Revision history
.modal-header
  .user-profile-fields
    %h3 User Profile Fields
    %p= "Edited about #{time_ago_in_words(@discussion.live? ? @discussion.updated_at : @discussion.version.created_at)} ago by #{@originator.name}"
  .revision-version
    %h3 Version
    %p
      -if @discussion.has_previous_versions?
        =link_to "Prev", preview_version_discussion_path(@discussion, @discussion.previous_version.version), :method => :post, :id => "discussion-previous-version", :remote => true
      -else
        =link_to "Prev", "#", :class => "disabled"
      =" | "
      -if @discussion.next_version.present?
        =link_to "Next", preview_version_discussion_path(@discussion, @discussion.next_version.version), :method => :post, :id => "discussion-next-version", :remote => true
      -elsif !(@discussion.live?)
        =link_to "Next", preview_version_discussion_path(@discussion), :method => :post, :remote => true
      -else
        =link_to "Next", "#", :class => "disabled"<commit_msg>explicitly mention 'current' in the description history when showing current version<commit_after>.modal-header
  %button.close{"data-dismiss" => "modal"}×
  %h2 Revision history
.modal-header
  .user-profile-fields
    %h3 User Profile Fields
    %p
      = "Edited about #{time_ago_in_words(@discussion.last_versioned_at)} ago by #{@originator.name}"
      %em= " (current)" if @discussion.live?
  .revision-version
    %h3 Version
    %p
      -if @discussion.has_previous_versions?
        =link_to "Prev", preview_version_discussion_path(@discussion, @discussion.previous_version.version), :method => :post, :id => "discussion-previous-version", :remote => true
      -else
        =link_to "Prev", "#", :class => "disabled"
      =" | "
      -if @discussion.next_version.present?
        =link_to "Next", preview_version_discussion_path(@discussion, @discussion.next_version.version), :method => :post, :id => "discussion-next-version", :remote => true
      -elsif !(@discussion.live?)
        =link_to "Next", preview_version_discussion_path(@discussion), :method => :post, :remote => true
      -else
        =link_to "Next", "#", :class => "disabled"
{'fraction_non_alphanumeric': 0.15456570155902005, 'fraction_numerical': 0.0026726057906458797, 'mean_word_length': 3.893246187363834, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 25, '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': '7654715', 'n_tokens_mistral': 717, 'n_tokens_neox': 679, 'n_words': 147}