<commit_before>$(function() {
  $(document).on('keyup', function(event) {
    var $panel          = $('.snapshot-review-panel'),
        $activeSnapshot = $panel.find('.snapshot-card-active'),
        $goTo;
    if (event.which == 37) { // Left arrow
      $goTo = $activeSnapshot.prev();
    } else if (event.which == 39) { // Right arrow
      $goTo = $activeSnapshot.next();
    } else {
      return;
    }

    if ($goTo.length) {
      Turbolinks.visit($goTo.find('a').first().attr('href'));
    }
  });
});<commit_msg>Fix keyboard navigation on snapshot page<commit_after>$(function() {
  $(document).on('keyup', function(event) {
    var $panel          = $('.snapshot-review-panel'),
        $activeSnapshot = $panel.find('.snapshot-card-active'),
        $goTo;
    if (event.which == 37) { // Left arrow
      $goTo = $activeSnapshot.prev();
    } else if (event.which == 39) { // Right arrow
      $goTo = $activeSnapshot.next();
    } else {
      return;
    }

    if ($goTo.length) {
      Turbolinks.visit($goTo.attr('href'));
    }
  });
});
{'fraction_non_alphanumeric': 0.19830028328611898, 'fraction_numerical': 0.007554296506137866, 'mean_word_length': 2.4640522875816995, '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': '2363275', 'n_tokens_mistral': 350, 'n_tokens_neox': 343, 'n_words': 63}