<commit_before>// The code in add.js handles what happens when the user clicks the "Add a book" button.

// When user clicks add-btn
$("#ID to add user Denis").on("submit", function(event) {
  event.preventDefault();

  // Make a newBook object
  var newUser = {
    firstName: $("#ID frirstname Denis").val().trim(),
    lastName: $("#ID lastname Denis").val().trim(),
    email: $("#ID email Denis").val().trim(),
    phone: $("#ID phone Denis").val().trim()
  };


  // Send an AJAX POST-request with jQuery
  $.post("/api/books", newUser)
    // On success, run the following code
    .done(function(data) {
      // Log the data we found
      console.log(data);
    });

  // Empty each input box by replacing the value with an empty string
  $("#ID frirstname Denis").val("");
  $("#ID lastname Denis").val("");
  $("#ID email Denis").val("");
  $("#ID phone Denis").val("");

});<commit_msg>update models and routes<commit_after>//Wes update

// The code in add.js handles what happens when the user clicks the "Add a book" button.

// When user clicks add-btn
$("#ID to add user Denis").on("submit", function(event) {
  event.preventDefault();

  // Make a newBook object
  var newUser = {
    firstName: $("#ID frirstname Denis").val().trim(),
    lastName: $("#ID lastname Denis").val().trim(),
    email: $("#ID email Denis").val().trim(),
    phone: $("#ID phone Denis").val().trim()
  };


  // Send an AJAX POST-request with jQuery
  $.post("/api/users", newUser)
    // On success, run the following code
    .done(function(data) {
      // Log the data we found
      console.log(data);
    });

  // Empty each input box by replacing the value with an empty string
  $("#ID frirstname Denis").val("");
  $("#ID lastname Denis").val("");
  $("#ID email Denis").val("");
  $("#ID phone Denis").val("");

});
{'fraction_non_alphanumeric': 0.19089413055403182, 'fraction_numerical': 0.0, 'mean_word_length': 3.212471131639723, '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': '5860228', 'n_tokens_mistral': 560, 'n_tokens_neox': 543, 'n_words': 194}