<commit_before>$(function() {
  $('.ckeditor').each(function() {
    CKEDITOR.replace(this, {
      extraPlugins: 'autogrow',
      height: 200,
      autoGrow_minHeight: 200,
      autoGrow_maxHeight: 600,
    });
  });
});

$(function() {
  $('.upload-answer-file').on('click', function(e) {
    e.preventDefault();
    // prompt the user to choose a file
    $('.upload-answer-form [name=file]').click();
  });

  $('.upload-answer-form [name=file]').on('change', function(e) {
    if (this.files.length > 0) {
      $('.upload-answer-file').prop('disabled', true).text('Uploading...');
      this.form.submit();
    }
  });
});
<commit_msg>Disallow <a name=...> tags when pasting into CKEditor<commit_after>$(function() {
  $('.ckeditor').each(function() {
    CKEDITOR.replace(this, {
      extraPlugins: 'autogrow',
      height: 200,
      autoGrow_minHeight: 200,
      autoGrow_maxHeight: 600,
      disallowedContent: 'a[!name]',
    });
  });
});

$(function() {
  $('.upload-answer-file').on('click', function(e) {
    e.preventDefault();
    // prompt the user to choose a file
    $('.upload-answer-form [name=file]').click();
  });

  $('.upload-answer-form [name=file]').on('change', function(e) {
    if (this.files.length > 0) {
      $('.upload-answer-file').prop('disabled', true).text('Uploading...');
      this.form.submit();
    }
  });
});

{'fraction_non_alphanumeric': 0.22490842490842491, 'fraction_numerical': 0.014652014652014652, 'mean_word_length': 3.1021021021021022, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, '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': '3512461', 'n_tokens_mistral': 491, 'n_tokens_neox': 467, 'n_words': 75}