<commit_before>import MediumEditor from 'medium-editor';

MediumEditor('.rich-text-editor', {
  toolbar: {
    buttons: [
      {
        name: 'bold',
        aria: pgettext('Rich text editor option', 'Bold text')
      },
      {
        name: 'italic',
        aria: pgettext('Rich text editor option', 'Italic text')
      },
      {
        name: 'h2',
        aria: pgettext('Rich text editor option', 'Header'),
        tagNames: ['h2'],
        contentDefault: '<b>T</b>',
        classList: ['custom-class-h1']
      },
      {
        name: 'h3',
        aria: pgettext('Rich text editor option', 'Subheader'),
        tagNames: ['h3'],
        contentDefault: '<b style="font-size: .75rem">T</b>',
        classList: ['custom-class-h2']
      },
      {
        name: 'quote',<commit_msg>Fix editor<commit_after>import MediumEditor from 'medium-editor';

// eslint-disable
const editor = new MediumEditor('.rich-text-editor', {
  toolbar: {
    buttons: [
      {
        name: 'bold',
        aria: pgettext('Rich text editor option', 'Bold text')
      },
      {
        name: 'italic',
        aria: pgettext('Rich text editor option', 'Italic text')
      },
      {
        name: 'h2',
        aria: pgettext('Rich text editor option', 'Header'),
        tagNames: ['h2'],
        contentDefault: '<b>T</b>',
        classList: ['custom-class-h1']
      },
      {
        name: 'h3',
        aria: pgettext('Rich text editor option', 'Subheader'),
        tagNames: ['h3'],
        contentDefault: '<b style="font-size: .75rem">T</b>',
        classList: ['custom-class-h2']
      },
      {
        name: 'quote',
{'fraction_non_alphanumeric': 0.16911764705882354, 'fraction_numerical': 0.00980392156862745, 'mean_word_length': 2.0637898686679175, 'pattern_counts': {'":': 0, '<': 11, '<?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': '2394570', 'n_tokens_mistral': 522, 'n_tokens_neox': 517, 'n_words': 118}