<commit_before>$(() => {
  $('#search-button').click(() => {
    const input = $('#search-input').val();

    const request = $.ajax({
      url: 'http://localhost:8080/test.php',
      method: 'POST',
      data: {
        targetUrl: input,
      },
      dataType: 'json',
    });

    request.done((msg) => {
      alert(msg);
    });

    request.fail((jqXHR, textStatus) => {
      alert( "Request failed: " + textStatus );
    });
  });
});<commit_msg>On click, div content change<commit_after>$(() => {
  $('#search-button').click(() => {
    const input = $('#search-input').val();

    const request = $.ajax({
      url: 'http://localhost:8080/test.php',
      method: 'POST',
      data: {
        targetUrl: input,
      },
      dataType: 'json',
    });

    request.done((msg) => {
      console.log(msg);
    });

    request.fail((jqXHR, textStatus) => {
      console.log(`Request failed: ${textStatus}`);

      $('#total-issues-table').text('Coucou, je suis content ^_^');
    });
  });
});
{'fraction_non_alphanumeric': 0.2297029702970297, 'fraction_numerical': 0.007920792079207921, 'mean_word_length': 2.3926174496644297, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7503844', 'n_tokens_mistral': 339, 'n_tokens_neox': 326, 'n_words': 57}