<commit_before>$(function() {
  // $('nav ul li a').on('click', function(e) {
  //   e.preventDefault();
  //   var selected = $(this).attr('href');
  //   var $links = $(this).parent().parent().find('a');
  //   $($links).removeClass('active');
  //   $(this).addClass('active');
  //   var $charts = $(this).parent().parent().parent().parent().find('.panes div');
  //   $charts.removeClass('active');
  //   var $theChart = $(this).parent().parent().parent().parent().find('.panes '+selected);
  //   $theChart.addClass('active');
  // });

  $('.question.popular-vote nav ul li a').on('click', function(e) {
    e.preventDefault();
    var selected = $(this).attr('href');
    var $links = $(this).parent().parent().find('a');
    $($links).removeClass('active');
    $(this).addClass('active');

    if (selected === "#students-faculty") {
      var clinton = 76;
      var trump = 13;
      var stein = 73;
      var johnson = 15;
      $('.candidate.clinton .text h1').text(`${clinton}%`);
      $('.candidate.trump .text h1').text(`${trump}%`);
      $('.other-candidates .stein h1').text(`${stein}%`);
      $('.other-candidates .johnson h1').text(`${johnson}%`);
      $('.bar').removeClass().addClass('bar');
      $('.bar').addClass('student-faculty-popular');
    }
    else if (selected === "#students") {
      var clinton = 73;
      var trump = 15;
      var stein = 5;
      var johnson = 7;
      $('.candidate.clinton .text h1').text(`${clinton}%`);
      $('.candidate.trump .text h1').text(`${trump}%`);<commit_msg>Fixed percentages for Johnson and Stein<commit_after>$(function() {
  // $('nav ul li a').on('click', function(e) {
  //   e.preventDefault();
  //   var selected = $(this).attr('href');
  //   var $links = $(this).parent().parent().find('a');
  //   $($links).removeClass('active');
  //   $(this).addClass('active');
  //   var $charts = $(this).parent().parent().parent().parent().find('.panes div');
  //   $charts.removeClass('active');
  //   var $theChart = $(this).parent().parent().parent().parent().find('.panes '+selected);
  //   $theChart.addClass('active');
  // });

  $('.question.popular-vote nav ul li a').on('click', function(e) {
    e.preventDefault();
    var selected = $(this).attr('href');
    var $links = $(this).parent().parent().find('a');
    $($links).removeClass('active');
    $(this).addClass('active');

    if (selected === "#students-faculty") {
      var clinton = 76;
      var trump = 13;
      var stein = 6;
      var johnson = 4;
      $('.candidate.clinton .text h1').text(`${clinton}%`);
      $('.candidate.trump .text h1').text(`${trump}%`);
      $('.other-candidates .stein h1').text(`${stein}%`);
      $('.other-candidates .johnson h1').text(`${johnson}%`);
      $('.bar').removeClass().addClass('bar');
      $('.bar').addClass('student-faculty-popular');
    }
    else if (selected === "#students") {
      var clinton = 73;
      var trump = 15;
      var stein = 5;
      var johnson = 7;
      $('.candidate.clinton .text h1').text(`${clinton}%`);
      $('.candidate.trump .text h1').text(`${trump}%`);
{'fraction_non_alphanumeric': 0.2569399612653325, 'fraction_numerical': 0.012265978050355068, 'mean_word_length': 3.0142487046632125, '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': '590072', 'n_tokens_mistral': 1057, 'n_tokens_neox': 1017, 'n_words': 186}