<commit_before>$(document).ready(function() {
      var form = $('form');
      form.submit(function( event ) {
        var number = $("#number").val();
        $.ajax({
          type: form.attr('method'),
          url: form.attr('action'),
          data: 'input=' + number
        }).done(function(result) {
          $('#results').html(result).attr('class', 'alert alert-success');
        }).fail(function() {
          $('#results').html('Error, Illegal string...').attr('class', 'alert alert-danger');
        });
        event.preventDefault();
      });

      

    });<commit_msg>Added some javascript to clean the input field after user has pressed the button.<commit_after>$(document).ready(function() {
      var form = $('form');
      form.submit(function( event ) {
        var number = $("#number").val();
        $.ajax({
          type: form.attr('method'),
          url: form.attr('action'),
          data: 'input=' + number
        }).done(function(result) {
          $('#results').html(result).attr('class', 'alert alert-success');
          // This cleans the input field
          document.getElementById("number").value = "";
        }).fail(function() {
          $('#results').html('Error, Illegal string...').attr('class', 'alert alert-danger');
        });
        event.preventDefault();
      });



    });
{'fraction_non_alphanumeric': 0.20029784065524944, 'fraction_numerical': 0.0, 'mean_word_length': 2.262135922330097, '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': '7571124', 'n_tokens_mistral': 355, 'n_tokens_neox': 348, 'n_words': 75}