<commit_before>window.test.create({
  name: 'one',

  before: function() {
    this.$list = $('<ul></ul>');
    this.lis = new Array(10000);
    for(var i=0; i<this.lis.length; i++) {
      var $li = $('<li>hi</li>').addClass('l'+i);
      this.lis[i] = $li;
      this.$list.append($li);
    }
    test.$el.append(this.$list);

    this.$listClone = this.$list.clone();
  },

  test: function() {
    this.$list.contents().detach();

    var self = this;
    this.$listClone.children().each(function(index, li) {
      $(li).replaceWith(self.lis[index]);
    });

    test.$el.find('ul').append(this.$listClone.contents());
  }
});<commit_msg>Update test one<commit_after>window.test.create({
  name: 'one',

  before: function() {
    this.$list = $('<ul></ul>');
    this.lis = new Array(10000);
    for(var i=0; i<this.lis.length; i++) {
      var $li = $('<li>hi</li>').addClass('l'+i);
      this.lis[i] = $li;
      this.$list.append($li);
    }
    test.$el.append(this.$list);

    this.$listClone = this.$list.clone();
  },

  test: function() {
    this.$list.contents().detach();

    var self = this;
    this.$listClone.children().each(function(index, li) {
      $(li).replaceWith(self.lis[index]);
    });

    this.$list.append(this.$listClone.contents());
  }
});
{'fraction_non_alphanumeric': 0.23965651834504292, 'fraction_numerical': 0.00936768149882904, 'mean_word_length': 2.95679012345679, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 11, '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': '4071674', 'n_tokens_mistral': 485, 'n_tokens_neox': 464, 'n_words': 68}