<commit_before>var addTodo = document.querySelector('.todoButton');

addTodo.addEventListener('click', function(){
  var
  todoList = document.querySelector('#todoList');
  userInput = document.querySelector('#todoValue').value;
  inputText = document.createTextNode(userInput);
  newTodo = document.createElement('li');
  buttonWrapper = document.createElement('div').classList.add('actionButtons');
  buttons = document.createElement('button');
  // trashIcon = document.createElement('i').classList.add('fa fa-trash');
  // checkIcon = document.createElement('i').classList.add('fa fa-check');
  // CREATE ALL ELEMENTS WHICH WILL BE NESTED WITHIN THE LI ELEMENT
  newTodo.appendChild(inputText);
  todoList.appendChild(newTodo);

});<commit_msg>js file now adds element to todoList<commit_after>var addTodo = document.querySelector('.todoButton');

addTodo.addEventListener('click', function(){
  var
  todoList = document.querySelector('#todoList');
  userInput = document.querySelector('#todoValue').value;
  inputText = document.createTextNode(userInput);
  newTodo = document.createElement('li');
  buttonWrapper = document.createElement('div');
  trashButton = document.createElement('button');
  checkButton = document.createElement('button')
  trashIcon = document.createElement('i');
  checkIcon = document.createElement('i');

//check for user input
  if(userInput === ''){
    return false;
  }

//ADD CLASS NAME TO I ELEMENT FOR FONT AWESOME ICONS
  buttonWrapper.className = 'actionButtons';
  trashIcon.className = 'fa fa-trash';
  checkIcon.className = 'fa fa-check';

//Append Elements
  checkButton.appendChild(checkIcon); //add checkmark icon to button
  trashButton.appendChild(trashIcon); //add tash icon to button
  buttonWrapper.appendChild(trashButton); //add trash button to button wrapper
  buttonWrapper.appendChild(checkButton); // add check button to button wrapper


  newTodo.appendChild(inputText); // ADDS THE USER INPUT AS TEXT INTO LI ELEMENT
  newTodo.appendChild(buttonWrapper);
  todoList.appendChild(newTodo); //ADDS LI TO todoList UL

});
{'fraction_non_alphanumeric': 0.13035113035113036, 'fraction_numerical': 0.0, 'mean_word_length': 5.5, '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': '1114722', 'n_tokens_mistral': 587, 'n_tokens_neox': 596, 'n_words': 137}