<commit_before>$(function() {

  if ($('body').hasClass('students') || $('body').hasClass('homerooms')) {

    window.datepicker_options = {
      showOn: "button",
      buttonImage: $("#calendar-icon-path").data('path'),
      buttonImageOnly: true,
      buttonText: "Select date",
      dateFormat: 'yy-mm-dd'
    }

    $(".datepicker").datepicker(window.datepicker_options);
<commit_msg>Suggest valid end date range in jQuery datepicker<commit_after>$(function() {

  if ($('body').hasClass('students') || $('body').hasClass('homerooms')) {

    window.datepicker_options = {
      showOn: "button",
      buttonImage: $("#calendar-icon-path").data('path'),
      buttonImageOnly: true,
      buttonText: "Select date",
      dateFormat: 'yy-mm-dd',
      minDate: 0    // intervention end date cannot be earlier than today
    }

    $(".datepicker").datepicker(window.datepicker_options);

{'fraction_non_alphanumeric': 0.17837235228539577, 'fraction_numerical': 0.0011148272017837235, 'mean_word_length': 3.6770833333333335, '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': '2215097', 'n_tokens_mistral': 277, 'n_tokens_neox': 258, 'n_words': 52}