<commit_before>Stradivari.Form = function () {
  mergeForms = function(form, detached) {
    if (!form.data('merged')) {
      form.data('merged', true);
      detached.find(':input:not(:submit,:button)').each(function() {
        // We do this because on IE input.clone() does not preserve
        // the val() not even on text inputs.
        var input = $(this),
            clone = input.clone();
        debugger
        clone
          .val(input.val())
          .hide()
          .appendTo(form);
      });
      fieldOverrideSorting(form);
    }
  }

  var fieldOverrideSorting = function(form) {
    var field_sorting = form.find('[data-sort]:first');
    var current_sorting = form.find('[name=sort]');

    if (field_sorting.val() && !current_sorting.val()) {<commit_msg>last 2 changes before merging<commit_after>Stradivari.Form = function () {
  mergeForms = function(form, detached) {
    if (!form.data('merged')) {
      form.data('merged', true);
      detached.find(':input:not(:submit,:button)').each(function() {
        // We do this because on IE input.clone() does not preserve
        // the val() not even on text inputs.
        var input = $(this),
            clone = input.clone();
        clone
          .val(input.val())
          .hide()
          .appendTo(form);
      });
      fieldOverrideSorting(form);
    }
  }

  var fieldOverrideSorting = function(form) {
    var field_sorting = form.find('[data-sort]:first');
    var current_sorting = form.find('[name=sort]');

    if (field_sorting.val() && !current_sorting.val()) {
{'fraction_non_alphanumeric': 0.1584664536741214, 'fraction_numerical': 0.0006389776357827476, 'mean_word_length': 2.527027027027027, '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': '5557669', 'n_tokens_mistral': 485, 'n_tokens_neox': 472, 'n_words': 103}