<commit_before>function deleteUser(email) {
  $.ajax({
    url: "/zebedee/users?email=" + email,
    dataType: 'json',
    contentType: 'application/json',
    type: 'DELETE',
    success: function () {
      console.log('User deleted');
      viewController('users');
    },
    error: function (response) {
      if (response.status === 403 || response.status === 401) {
        alert("You are not permitted to delete users.")
      } else {
        handleApiError(response);
      }
    }
  });
}<commit_msg>alert user when they have successfully deleted a user.<commit_after>function deleteUser(email) {
  $.ajax({
    url: "/zebedee/users?email=" + email,
    dataType: 'json',
    contentType: 'application/json',
    type: 'DELETE',
    success: function () {
      console.log('User deleted');
      alert('User deleted');
      viewController('users');
    },
    error: function (response) {
      if (response.status === 403 || response.status === 401) {
        alert("You are not permitted to delete users.")
      } else {
        handleApiError(response);
      }
    }
  });
}
{'fraction_non_alphanumeric': 0.15567765567765568, 'fraction_numerical': 0.01098901098901099, 'mean_word_length': 2.6925675675675675, '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': '2645152', 'n_tokens_mistral': 328, 'n_tokens_neox': 314, 'n_words': 78}