<commit_before>(function(){
  'use strict';

  $(document).ready(init);

  function init(){

    $('.category_dropdown').change(function(){
      // render the varieties
      var category = $('.category_dropdown :selected').val();
      var url = "/api/categories/"+category+"/varieties";
      $.ajax({ url: url,
        type: "GET",
        dataType: "html",
        success: function(html){
            $('#varieties_list').replaceWith(html);
            // if(varieties.length) {
            //   $('#varieties_list').empty();
            //   varieties.forEach (function(variety){
            //     var variety_link = $("<a>");
            //     $(variety_link).attr("href", "#").append(variety.name + " (" + variety.description +")");
            //     $('#varieties_list').append(variety_link);
            //   });
            // }
            // else {
            //   $('#varieties_list').append("<p>No varieties exist</p>")
            // }
        }
      });
    });
  }
})();<commit_msg>Removed commented JS from `garden_edit.js`<commit_after>(function(){
  'use strict';

  $(document).ready(init);

  function init(){

    $('.category_dropdown').change(function(){
      // render the varieties
      var category = $('.category_dropdown :selected').val();
      var url = "/api/categories/"+category+"/varieties";
      $.ajax({ url: url,
        type: "GET",
        dataType: "html",
        success: function(html){
          $('#varieties_list').replaceWith(html);
        }
      });
    });
  }
})();
{'fraction_non_alphanumeric': 0.2014388489208633, 'fraction_numerical': 0.0, 'mean_word_length': 2.0297029702970297, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '6422476', 'n_tokens_mistral': 436, 'n_tokens_neox': 434, 'n_words': 73}