<commit_before>(function(Modules) {
  "use strict";
  Modules.Parts = function() {
    this.start = function(element) {

      makePartsSortable();

      function makePartsSortable() {
        var accordionSelector = ".js-sort-handle",
            sortableOptions = {
              axis: "y",
              handle: accordionSelector,
              stop: function(event, ui) {
                element.find('.part').each(function (i, elem) {
                  $(elem).find('input.order').val(i + 1);
                  ui.item.find(accordionSelector).addClass("yellow-fade");
                });
              }
            };

        element.sortable(sortableOptions);
      }
    }
  };
})(window.GOVUKAdmin.Modules);<commit_msg>Only apply the yellow-fade once, at the end<commit_after>(function(Modules) {
  "use strict";
  Modules.Parts = function() {
    this.start = function(element) {

      makePartsSortable();

      function makePartsSortable() {
        var accordionSelector = ".js-sort-handle",
            sortableOptions = {
              axis: "y",
              handle: accordionSelector,
              stop: function(event, ui) {
                element.find('.part').each(function (i, elem) {
                  $(elem).find('input.order').val(i + 1);
                });

                ui.item.find(accordionSelector).addClass("yellow-fade");
              }
            };

        element.sortable(sortableOptions);
      }
    }
  };
})(window.GOVUKAdmin.Modules);
{'fraction_non_alphanumeric': 0.14103425117528542, 'fraction_numerical': 0.001343183344526528, 'mean_word_length': 1.7902621722846441, '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': '6598986', 'n_tokens_mistral': 427, 'n_tokens_neox': 404, 'n_words': 64}