<commit_before>.snapshot-status-block
  %table.table
    %tr
      %th
        %abbr.initialism{ title: 'Uniform Resource Locator' } URL
      %td
        = link_to simplified_url(@snapshot.url.address), @snapshot.url.address,
          class: 'url-multiline'
    %tr
      %th Viewport
      %td= @snapshot.viewport
    %tr
      %th When
      %td
        = time_tag @snapshot.created_at do
          = time_ago_in_words(@snapshot.created_at) + ' ago'
    %tr
      %th Status
      %td= snapshot_status(@snapshot)

  .snapshot-buttons
    - if @snapshot.under_review? || @snapshot.accepted? || @snapshot.rejected?
      = form_tag accept_snapshot_path(@snapshot),
                 data: { replace: '.snapshot-status-block' },
                 method: :post do
        %button.btn{ disabled: @snapshot.accepted? }
          %span.snapshot-button-enabled  Accept
          %span.snapshot-button-disabled Accepted

      = form_tag reject_snapshot_path(@snapshot),
                 data: { replace: '.snapshot-status-block' },
                 method: :post do
        %button.btn{ disabled: @snapshot.rejected? }
          %span.snapshot-button-enabled  Reject
          %span.snapshot-button-disabled Rejected

    = button_to 'Delete',
      @snapshot, method: :delete,
      data: { confirm: 'Are you sure?' },
      class: 'btn btn-danger'<commit_msg>Improve styling of Accept/Reject buttons<commit_after>.snapshot-status-block
  %table.table
    %tr
      %th
        %abbr.initialism{ title: 'Uniform Resource Locator' } URL
      %td
        = link_to simplified_url(@snapshot.url.address), @snapshot.url.address,
          class: 'url-multiline'
    %tr
      %th Viewport
      %td= @snapshot.viewport
    %tr
      %th When
      %td
        = time_tag @snapshot.created_at do
          = time_ago_in_words(@snapshot.created_at) + ' ago'
    %tr
      %th Status
      %td= snapshot_status(@snapshot)

  .snapshot-buttons
    - if @snapshot.under_review? || @snapshot.accepted? || @snapshot.rejected?
      = form_tag accept_snapshot_path(@snapshot),
                 data: { replace: '.snapshot-status-block' },
                 method: :post do
        %button.btn{ disabled: @snapshot.accepted?,
                     class: ('btn-success' if @snapshot.accepted?) }
          %i.glyphicon.glyphicon-ok-sign
          %span.snapshot-button-enabled  Accept
          %span.snapshot-button-disabled Accepted

      = form_tag reject_snapshot_path(@snapshot),
                 data: { replace: '.snapshot-status-block' },
                 method: :post do
        %button.btn{ disabled: @snapshot.rejected?,
                     class: ('btn-danger' if @snapshot.rejected?)}
          %i.glyphicon.glyphicon-remove-sign
          %span.snapshot-button-enabled  Reject
          %span.snapshot-button-disabled Rejected

    = button_to 'Delete',
      @snapshot, method: :delete,
      data: { confirm: 'Are you sure?' },
      class: 'btn btn-danger'
{'fraction_non_alphanumeric': 0.12064886786076377, 'fraction_numerical': 0.0, 'mean_word_length': 2.165775401069519, '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': '7648788', 'n_tokens_mistral': 884, 'n_tokens_neox': 910, 'n_words': 179}