<commit_before>var lines = document.querySelectorAll('.diff-line-code');

for (var i = 0; i < lines.length; i++) {
  var line = lines[i],
      lineContent = line.innerText,
      firstChar = lineContent[0],
      restContent = lineContent.slice(1);
  
  var first = document.createElement('span');
  first.classList.add('clean-diff-sheker');
  first.setAttribute('data-char', firstChar);

  var rest = document.createElement('span');
  rest.innerText = restContent;

  line.innerText = '';
  line.appendChild(first);
  line.appendChild(rest);
}<commit_msg>Fix comment button being removed<commit_after>var lines = document.querySelectorAll('.diff-line-code');

for (var i = 0; i < lines.length; i++) {
  var line = lines[i],
      commentButton = line.firstChild,
      lineContent = line.innerText,
      firstChar = lineContent[0],
      restContent = lineContent.slice(1);
  
  var first = document.createElement('span');
  first.classList.add('clean-diff-sheker');
  first.setAttribute('data-char', firstChar);

  var rest = document.createElement('span');
  rest.innerText = restContent;

  line.innerText = '';
  line.appendChild(commentButton);
  line.appendChild(first);
  line.appendChild(rest);
}
{'fraction_non_alphanumeric': 0.1499585749792875, 'fraction_numerical': 0.004971002485501243, 'mean_word_length': 4.184549356223176, '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': '6771807', 'n_tokens_mistral': 368, 'n_tokens_neox': 366, 'n_words': 73}