<commit_before>- classes = %w[snapshot-card thumbnail]
- classes << 'snapshot-card-active' if local_assigns[:active]
= link_to snapshot_path(snapshot, review_list: local_assigns[:review_list]),
          class: classes do
  - if snapshot.image?
    = image_tag snapshot.image.url(:thumb)
  - else
    .glyphicon.glyphicon-time.snapshot-card-pending

  .snapshot-indicator.snapshot-color-icon.glyphicon{ class: glyphicon_for(snapshot) }

  .caption
    .time-ago
      = time_tag snapshot.created_at do
        = time_ago_in_words(snapshot.created_at) + ' ago'
    - if snapshot.diff_from_previous
      .diff
        = number_to_percentage(snapshot.diff_from_previous)
        diff<commit_msg>Show page title as tooltip for snapshot cards<commit_after>- classes = %w[snapshot-card thumbnail]
- classes << 'snapshot-card-active' if local_assigns[:active]
= link_to snapshot_path(snapshot, review_list: local_assigns[:review_list]),
          class: classes, title: snapshot.title do
  - if snapshot.image?
    = image_tag snapshot.image.url(:thumb)
  - else
    .glyphicon.glyphicon-time.snapshot-card-pending

  .snapshot-indicator.snapshot-color-icon.glyphicon{ class: glyphicon_for(snapshot) }

  .caption
    .time-ago
      = time_tag snapshot.created_at do
        = time_ago_in_words(snapshot.created_at) + ' ago'
    - if snapshot.diff_from_previous
      .diff
        = number_to_percentage(snapshot.diff_from_previous)
        diff
{'fraction_non_alphanumeric': 0.10617626648161, 'fraction_numerical': 0.0, 'mean_word_length': 3.577777777777778, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3855196', 'n_tokens_mistral': 461, 'n_tokens_neox': 464, 'n_words': 80}