<commit_before>(function() {
  $('.feedback-form').submit(function() {
      $('.error-message').remove();
      var msg = $('#message');
      if(msg.val() === '') {
        msg.before("<p class='error-message'>can't be blank</p>");
        return false;
      }
      var form = $(this);
      var data = form.serialize();
      $.ajax({
          type: "POST",
          url: $(this).attr('action'),
          data: data,
          dataType: "JSON"
      }).success(function(json){
          form[0].reset();
          $('<h1 class="heading-large thanks">Thanks you for your feedback</h1>')
              .hide().prependTo(form).fadeIn(1000);
          setTimeout(function(){
              $(".heading-large.thanks").fadeOut("slow");<commit_msg>set `application/json` content typo for feedback ajax<commit_after>(function() {
  $('.feedback-form').submit(function() {
      $('.error-message').remove();
      var msg = $('#message');
      if(msg.val() === '') {
        msg.before("<p class='error-message'>can't be blank</p>");
        return false;
      }
      var form = $(this);
      var data = form.serialize();
      $.ajax({
          type: "POST",
          url: $(this).attr('action'),
          data: data,
          dataType: "jsonp",
          contentType: "application/json"
      }).success(function(json){
          form[0].reset();
          $('<h1 class="heading-large thanks">Thanks you for your feedback</h1>')
              .hide().prependTo(form).fadeIn(1000);
          setTimeout(function(){
              $(".heading-large.thanks").fadeOut("slow");
{'fraction_non_alphanumeric': 0.20126582278481012, 'fraction_numerical': 0.008860759493670886, 'mean_word_length': 2.206896551724138, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '2211920', 'n_tokens_mistral': 468, 'n_tokens_neox': 450, 'n_words': 87}