<commit_before>$(function () {
  // In its simplest usage, you can call confirm with no arguments. 
  // Because the default onConfirm action is to just return true, 
  // if you are confirming a button in a form, the form will submit 
  // after confirmation. 
  $('.form-confirm').confirm();

  // This uses selector so that the event can be bound to the document 
  // which allows for elements to be dynamically added to the page and still use the 
  // confirmation functions. Dynamically added elements aren't demonstrated here, but I 
  // hope you get the idea.
  $(document).confirm('.selector-confirm');

  // Here's a usage which shows off custom confirmation text and a custom method to react to the element's confirmation
  $('.alert-confirm').confirm({
    onConfirm: function (event) {
      event.preventDefault();
      $(this).html('<strong>Trololololol!</strong>');
    },
    confirmationText: 'Polo'
  });

  // When rearm is set to true, the button can continue to be confirmed.
  (function () {
    var count = 0;
    $(document).confirm({
      rearm: true,
      selector: '.rearm-confirm',
      onConfirm: function (event) {
        $(this).text('Confirmed: ' + (++count));
      }
    });
  })();
});<commit_msg>remove redundant scoping on demo<commit_after>$(function () {
  // In its simplest usage, you can call confirm with no arguments. 
  // Because the default onConfirm action is to just return true, 
  // if you are confirming a button in a form, the form will submit 
  // after confirmation. 
  $('.form-confirm').confirm();

  // This uses selector so that the event can be bound to the document 
  // which allows for elements to be dynamically added to the page and still use the 
  // confirmation functions. Dynamically added elements aren't demonstrated here, but I 
  // hope you get the idea.
  $(document).confirm('.selector-confirm');

  // Here's a usage which shows off custom confirmation text and a custom method to react to the element's confirmation
  $('.alert-confirm').confirm({
    onConfirm: function (event) {
      event.preventDefault();
      $(this).html('<strong>Trololololol!</strong>');
    },
    confirmationText: 'Polo'
  });

  // When rearm is set to true, the button can continue to be confirmed.
  var count = 0;
  $(document).confirm({
    rearm: true,
    selector: '.rearm-confirm',
    onConfirm: function (event) {
      $(this).text('Confirmed: ' + (++count));
    }
  });
});
{'fraction_non_alphanumeric': 0.11934972244250595, 'fraction_numerical': 0.0007930214115781126, 'mean_word_length': 2.782608695652174, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2037796', 'n_tokens_mistral': 698, 'n_tokens_neox': 667, 'n_words': 275}