<commit_before>App.UsereventsController = App.AuthenticationController.extend({
  actions: {
    deleteData: function () {
      var self = this;
      
      var adapter = new App.ApplicationAdapter;
      var id = this.get('id');
      var url = adapter.buildURL('userevents', [id, 'delete-data'].join('/'));
      
      $.getJSON(url).complete(function () {
        self.get('model').reload();
      });
    }
  }
});<commit_msg>Make this a post as it deletes data<commit_after>App.UsereventsController = App.AuthenticationController.extend({
  actions: {
    deleteData: function () {
      var self = this;
      
      var adapter = new App.ApplicationAdapter;
      var id = this.get('id');
      var url = adapter.buildURL('userevents', [id, 'delete-data'].join('/'));
      
      $.post(url).complete(function () {
        self.get('model').reload();
      });
    }
  }
});
{'fraction_non_alphanumeric': 0.16497175141242937, 'fraction_numerical': 0.0, 'mean_word_length': 2.6311475409836067, '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': '4660457', 'n_tokens_mistral': 266, 'n_tokens_neox': 261, 'n_words': 51}