<commit_before>
// Use Parse.Cloud.define to define as many cloud functions as you want.
// For example:
//Parse.Cloud.define("hello", function(request, response) {
  //response.success("Hello world!");
//});

Parse.Cloud.job("dropData", function(request, status) {
    Parse.Cloud.useMasterKey();
    ParseQuery<ParseObject> query = new ParseQuery<ParseObject>("Reviews");
        query.findInBackground(new FindCallback<ParseObject>() {
        public void done(List<ParseObject> reviews, ParseException e) {
            if (e == null) {
                try {
                   ParseObject.delete(reviews);
                }catch(ParseException pe) { pe.printStackTrace(); }
    
                for(ParseObject review : reviews)
                {
                     review.deleteEventually();
                }
            } else {
                Log.d("Semothing went wrong. ", e.getMessage());
            }
    }
});

}<commit_msg>Update main.js<commit_after>//Use Parse.Cloud.define to define as many cloud functions as you want.
// For example:
//Parse.Cloud.define("hello", function(request, response) {
  //response.success("Hello world!");
//});

Parse.Cloud.job("dropData", function(request, status) {
    Parse.Cloud.useMasterKey();
    var Reviews = Parse.Object.extend("Reviews");
    var query = new Parse.Query(Parse.Reviews);
    
    query.find({
      success: function(results) {
      
        for (var i = 0; i < results.length; i++) { 
          var object = results[i];
          object.destroy({
            success: function(object) {
              // The object was deleted from the Parse Cloud.
            },
            error: function(object, error) {
              // The delete failed.
              // error is a Parse.Error with an error code and message.
            }
          });
        } 
      },
      error: function(error) {
        alert("Error: " + error.code + " " + error.message);
      }
    });

}
{'fraction_non_alphanumeric': 0.1345957011258956, 'fraction_numerical': 0.0005117707267144319, 'mean_word_length': 1.9531722054380665, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 7, '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': '2168222', 'n_tokens_mistral': 530, 'n_tokens_neox': 518, 'n_words': 127}