<commit_before>$(document).ready(function() {
  $("a.load_reviews").on("click", function(e){
//Send AJAX LOW-LEVEL get request
  $.ajax({
    method: "GET",
    url: this.href
  }).done(function(response) {
//get response
    $("div.reviews").html(response)
//Load data into html
  });
  e.preventDefault();      
  })
})<commit_msg>Send AJAX HIGH-LEVEL get request<commit_after>$(document).ready(function() {
  $("a.load_reviews").on("click", function(e){
//Send AJAX HIGH-LEVEL get request
  $.get(this.href).success(function(json) {
    var $li = $("div.reviews li")
    $li.html(" ")
    json.forEach(function(review) {
      $li.append("<li>" + review + "</li>");
    });
  });
 //Load response into HTML of page
  e.preventDefault();
 });
});
{'fraction_non_alphanumeric': 0.21524064171122995, 'fraction_numerical': 0.0, 'mean_word_length': 3.623456790123457, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1671850', 'n_tokens_mistral': 260, 'n_tokens_neox': 258, 'n_words': 51}