<commit_before>// Go to the previous submission with <
Mousetrap.bind('<', function() {
  $('#student_selector>.left>a')[0].click();
});

// Go to next submission with >
Mousetrap.bind('>', function() {
  $('#student_selector>.right>a')[0].click();
});

// When on rubric criterion, use the arrow keys to hover over the next rubric
Mousetrap.bind('up', function(e) {
  $current_criteria = $('.active-criteria');
  if ($current_criteria.length &&
      $current_criteria.hasClass('rubric_criterion') &&
      !$current_criteria.hasClass('unassigned')) {
    e.preventDefault();
    $selected = $('.active-rubric');
    if ($selected.length) {
      $next = $selected.parent().prev();
      if (!$next.length) {
        // if no next element exists, loop back to the last of the list
        $next = $selected.parent().siblings().last();
      }
      $selected.removeClass('active-rubric');
      $next.children().addClass('active-rubric');
    }
    return false;
  }
});

// when on rubric criteria, use the arrow keys to hover over the next rubric
Mousetrap.bind('down', function(e) {<commit_msg>Arrow keys to switch files<commit_after>// Go to the previous submission with <
Mousetrap.bind('shift+left', function() {
  $('#student_selector>.left>a')[0].click();
});

// Go to next submission with >
Mousetrap.bind('shift+right', function() {
  $('#student_selector>.right>a')[0].click();
});

// When on rubric criterion, use the arrow keys to hover over the next rubric
Mousetrap.bind('up', function(e) {
  $current_criteria = $('.active-criteria');
  if ($current_criteria.length &&
      $current_criteria.hasClass('rubric_criterion') &&
      !$current_criteria.hasClass('unassigned')) {
    e.preventDefault();
    $selected = $('.active-rubric');
    if ($selected.length) {
      $next = $selected.parent().prev();
      if (!$next.length) {
        // if no next element exists, loop back to the last of the list
        $next = $selected.parent().siblings().last();
      }
      $selected.removeClass('active-rubric');
      $next.children().addClass('active-rubric');
    }
    return false;
  }
});

// when on rubric criteria, use the arrow keys to hover over the next rubric
Mousetrap.bind('down', function(e) {
{'fraction_non_alphanumeric': 0.1741472172351885, 'fraction_numerical': 0.0017953321364452424, 'mean_word_length': 3.653444676409186, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 14, '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': '4881435', 'n_tokens_mistral': 693, 'n_tokens_neox': 696, 'n_words': 172}