<commit_before>var input = document.getElementsByTagName('li')[0];


input.addEventListener('mouseenter', incoming);
input.addEventListener('mouseleave', exit);

function incoming (evt) {
  evt.target.style.backgroundColor = 'white';
  evt.target.style.color = 'black';
}

function exit (evt) {
  evt.target.style.backgroundColor = 'black';
  evt.target.style.color = 'white';
}<commit_msg>added loop to nav<commit_after>var input = document.getElementsByTagName('li');


for (var i = 0; i < input.length; i++) {

  input[i].addEventListener('mouseenter', incoming);
  input[i].addEventListener('mouseleave', exit);
 }

function incoming (evt) {
  evt.target.style.backgroundColor = 'white';
  evt.target.style.color = 'black';
}

function exit (evt) {
  evt.target.style.backgroundColor = 'black';
  evt.target.style.color = 'white';
}
{'fraction_non_alphanumeric': 0.1638755980861244, 'fraction_numerical': 0.0023923444976076554, 'mean_word_length': 5.246268656716418, 'pattern_counts': {'":': 0, '<': 4, '<?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': '4071722', 'n_tokens_mistral': 268, 'n_tokens_neox': 274, 'n_words': 52}