<commit_before>document.addEventListener('DOMContentLoaded', function() {
  const acc = document.getElementsByClassName("expandButton");
  let i;

  for (i = 0; i < acc.length; i++) {
      acc[i].onclick = function(){
          console.log(this);
          let panel = this.nextElementSibling;
          if (panel.style.display === "block") {
              panel.style.display = "none";
              this.getElementsByTagName('span')[0].className = 'icon';
          } else {
              panel.style.display = "block";
              this.getElementsByTagName('span')[0].className = 'iconOpen';
          }
      }
  }
}, false);
<commit_msg>Added active background color<commit_after>document.addEventListener('DOMContentLoaded', function() {
  const acc = document.getElementsByClassName("expandButton");
  let i;

  for (i = 0; i < acc.length; i++) {
      acc[i].onclick = function(){
          console.log(this);
          let panel = this.nextElementSibling;
          if (panel.style.display === "block") {
              panel.style.display = "none";
              this.getElementsByTagName('span')[0].className = 'icon';
              this.style.backgroundColor = '#efefef';
          } else {
              panel.style.display = "block";
              this.getElementsByTagName('span')[0].className = 'iconOpen';
              this.style.backgroundColor = '#d4d2d2';

          }
      }
  }
}, false);

{'fraction_non_alphanumeric': 0.14840989399293286, 'fraction_numerical': 0.0063604240282685515, 'mean_word_length': 2.28538283062645, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1926576', 'n_tokens_mistral': 406, 'n_tokens_neox': 402, 'n_words': 71}