<commit_before>ArrayComponent = function (array) {
  var arrayElement = document.createElement("ol");
  arrayElement.classList.add("array");
  array.forEach(function (item) {
    var itemElement = document.createElement("li");
    itemElement.classList.add("item");
    itemElement.innerText = item;
    arrayElement.appendChild(itemElement);
  });
  return arrayElement;
};<commit_msg>Add valueComponent<commit_after>ArrayComponent = function (array, valueComponent) {
  var valueComponent = valueComponent || function (value) {
    var valueElement = document.createElement("span");
    valueElement.innerText = value;
    return valueElement;
  };
  var arrayElement = document.createElement("ol");
  arrayElement.classList.add("array");
  array.forEach(function (value) {
    var itemElement = document.createElement("li");
    itemElement.classList.add("item");
    itemElement.appendChild(valueComponent(value));
    arrayElement.appendChild(itemElement);
  });
  return arrayElement;
};
{'fraction_non_alphanumeric': 0.1299093655589124, 'fraction_numerical': 0.0, 'mean_word_length': 5.3312101910828025, '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': '3759562', 'n_tokens_mistral': 261, 'n_tokens_neox': 264, 'n_words': 49}