<commit_before>$(function() {
  var parent = $('#reprocess');

  $('form', parent).on('submit', function(event) {
    event.preventDefault();
    var crash_id = parent.data('crash-id');

    // make sure previous result flash messages are hidden
    $('.reprocessing-success', parent).hide();
    $('.reprocessing-error', parent).hide();

    // disable the submit button
    $('form button', parent).prop('disabled', true);

    // show a waiting message
    $('.waiting', parent).show();

    $.post('/api/Reprocessing/', { crash_ids: crash_id })
      .done(function() {
        $('.reprocessing-success', parent).show();
      })
      .error(function(jqXHR) {
        $('.reprocessing-error .status', parent).text(jqXHR.status);
        $('.reprocessing-error pre', parent).text(jqXHR.responseText);
        $('.reprocessing-error', parent).show();
      })
      .complete(function() {
        $('.waiting', parent).hide();
        $('form button', parent).prop('disabled', false);
      });
  });
});
<commit_msg>fix bug 1467412: updated crash reprocessing jQuery notation<commit_after>$(function() {
  var parent = $('#reprocess');

  $('form', parent).on('submit', function(event) {
    event.preventDefault();
    var crash_id = parent.data('crash-id');

    // make sure previous result flash messages are hidden
    $('.reprocessing-success', parent).hide();
    $('.reprocessing-error', parent).hide();

    // disable the submit button
    $('form button', parent).prop('disabled', true);

    // show a waiting message
    $('.waiting', parent).show();

    $.post('/api/Reprocessing/', { crash_ids: crash_id })
      .done(function() {
        $('.reprocessing-success', parent).show();
      })
      .fail(function(jqXHR) {
        $('.reprocessing-error .status', parent).text(jqXHR.status);
        $('.reprocessing-error pre', parent).text(jqXHR.responseText);
        $('.reprocessing-error', parent).show();
      })
      .always(function() {
        $('.waiting', parent).hide();
        $('form button', parent).prop('disabled', false);
      });
  });
});

{'fraction_non_alphanumeric': 0.20403264522323572, 'fraction_numerical': 0.003360537686029765, 'mean_word_length': 3.023166023166023, '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': '6819649', 'n_tokens_mistral': 625, 'n_tokens_neox': 605, 'n_words': 125}