<commit_before>/*global alphabet, logo_data */
(function ($) {
  "use strict";

  var document,
    hmm_logo;

  $(document).ready(function () {
    if (typeof logo_data !== 'undefined') {
      hmm_logo = $('#logo_graphic').hmm_logo({height_toggle: 1, column_width: 34, data: logo_data, alphabet: alphabet, scaled_max: true});
    }

    $('#model_type').on('click', function () {
      $('.ali_calc').attr('disabled', 'disabled');
      $('.model_calc').attr('disabled', false);
      $('#emission_calc').click();
    });
    $('#ali_type').on('click', function () {
      $('.model_calc').attr('disabled', 'disabled');
      $('.ali_calc').attr('disabled', false);
      $('#emission_calc').click();
    });

    // disable the alignment calculations by default.
    if ($('.logo_type:checked').attr('value') === 'model') {
      $('.ali_calc').attr('disabled', 'disabled');
    } else {
      $('.model_calc').attr('disabled', 'disabled');
    }

    if ($("#joyRideTipContent").length > 0) {
      $("#joyRideTipContent").joyride({
        'autoStart' : true,
        'localStorage' : false,
        'localStorageKey' : 'joyride',
        'postRideCallback' : function () {
          $('.tour_control').show('slow');
        },
        'preRideCallback' : function () {
          $('.tour_control').hide();
        }
      });

      $('#restart').on('click', function () {
        $("#joyRideTipContent").joyride('restart');
      });
    }
  });

})(jQuery);<commit_msg>Auto start the carousel on the front page<commit_after>/*global alphabet, logo_data */
(function ($) {
  "use strict";

  var document,
    hmm_logo;

  $(document).ready(function () {
    if (typeof logo_data !== 'undefined') {
      hmm_logo = $('#logo_graphic').hmm_logo({height_toggle: 1, column_width: 34, data: logo_data, alphabet: alphabet, scaled_max: true});
    }

    $('#model_type').on('click', function () {
      $('.ali_calc').attr('disabled', 'disabled');
      $('.model_calc').attr('disabled', false);
      $('#emission_calc').click();
    });
    $('#ali_type').on('click', function () {
      $('.model_calc').attr('disabled', 'disabled');
      $('.ali_calc').attr('disabled', false);
      $('#emission_calc').click();
    });


    // disable the alignment calculations by default.
    if ($('.logo_type:checked').attr('value') === 'model') {
      $('.ali_calc').attr('disabled', 'disabled');
    } else {
      $('.model_calc').attr('disabled', 'disabled');
    }

    if ($("#joyRideTipContent").length > 0) {
      $("#joyRideTipContent").joyride({
        'autoStart' : true,
        'localStorage' : false,
        'localStorageKey' : 'joyride',
        'postRideCallback' : function () {
          $('.tour_control').show('slow');
        },
        'preRideCallback' : function () {
          $('.tour_control').hide();
        }
      });

      $('#restart').on('click', function () {
        $("#joyRideTipContent").joyride('restart');
      });
    }


    // start up the carousel.
    $('#showcase').carousel();
  });

})(jQuery);
{'fraction_non_alphanumeric': 0.2242284963887065, 'fraction_numerical': 0.0026263952724885093, 'mean_word_length': 2.9214929214929213, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1336918', 'n_tokens_mistral': 960, 'n_tokens_neox': 925, 'n_words': 157}