<commit_before>(function($){
  "use strict";

  // parser rules for editor
  var parserRules = {
    "classes": {
      "wysiwyg-clear-both": 1,
      "wysiwyg-clear-left": 1,
      "wysiwyg-clear-right": 1,
      "wysiwyg-float-left": 1,
      "wysiwyg-float-right": 1
    },
    "tags": {
      "tr": {
        "add_class": {
          "align": "align_text"
        }
      },
      "strike": {
        "remove": 1
      },
      "form": {
        "rename_tag": "div"
      },
      "rt": {
        "rename_tag": "span"
      },
      "code": {},
      "acronym": {
        "rename_tag": "span"
      },
      "br": {
        "add_class": {
          "clear": "clear_br"
        }
      },
      "details": {
        "rename_tag": "div"
      },
      "h4": {
        "add_class": {
          "align": "align_text"
        }
      },
      "em": {},
      "title": {
        "remove": 1
      },
      "multicol": {
        "rename_tag": "div"
      },
      "figure": {
        "rename_tag": "div"
      },
      "xmp": {
        "rename_tag": "span"
      },
      "small": {},
      "area": {
        "remove": 1
      },
      "time": {
        "rename_tag": "span"
      },
      "dir": {
        "rename_tag": "ul"
      },
      "bdi": {
        "rename_tag": "span"
      },
      "command": {
        "remove": 1
      },
      "ul": {},
      "progress": {
        "rename_tag": "span"
      },
      "dfn": {
        "rename_tag": "span"
      },
      "iframe": {
        "check_attributes": {
          "src": "src",
          "width": "numbers",
          "height": "numbers"
        }
      },
      "figcaption": {
        "rename_tag": "div"
      },
      "a": {
        "check_attributes": {
          "href": "href"
        },
        "set_attributes": {
          "rel": "nofollow",
          "target": "_blank"<commit_msg>add fixed version of wysihtml5n with fix for missing href in added links<commit_after>(function($){
  "use strict";

  // parser rules for editor
  var parserRules = {
    "classes": {
      "wysiwyg-clear-both": 1,
      "wysiwyg-clear-left": 1,
      "wysiwyg-clear-right": 1,
      "wysiwyg-float-left": 1,
      "wysiwyg-float-right": 1
    },
    "tags": {
      "tr": {
        "add_class": {
          "align": "align_text"
        }
      },
      "strike": {
        "remove": 1
      },
      "form": {
        "rename_tag": "div"
      },
      "rt": {
        "rename_tag": "span"
      },
      "code": {},
      "acronym": {
        "rename_tag": "span"
      },
      "br": {
        "add_class": {
          "clear": "clear_br"
        }
      },
      "details": {
        "rename_tag": "div"
      },
      "h4": {
        "add_class": {
          "align": "align_text"
        }
      },
      "em": {},
      "title": {
        "remove": 1
      },
      "multicol": {
        "rename_tag": "div"
      },
      "figure": {
        "rename_tag": "div"
      },
      "xmp": {
        "rename_tag": "span"
      },
      "small": {},
      "area": {
        "remove": 1
      },
      "time": {
        "rename_tag": "span"
      },
      "dir": {
        "rename_tag": "ul"
      },
      "bdi": {
        "rename_tag": "span"
      },
      "command": {
        "remove": 1
      },
      "ul": {},
      "progress": {
        "rename_tag": "span"
      },
      "dfn": {
        "rename_tag": "span"
      },
      "iframe": {
        "check_attributes": {
          "src": "src",
          "width": "numbers",
          "height": "numbers"
        }
      },
      "figcaption": {
        "rename_tag": "div"
      },
      "a": {
        "check_attributes": {
          "href": "url" // if you compiled master manually then change this from 'url' to 'href'
        },
        "set_attributes": {
          "rel": "nofollow",
          "target": "_blank"
{'fraction_non_alphanumeric': 0.19147266544598482, 'fraction_numerical': 0.005493068270991368, 'mean_word_length': 1.2789034564958284, 'pattern_counts': {'":': 130, '<': 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': '3106499', 'n_tokens_mistral': 1339, 'n_tokens_neox': 1340, 'n_words': 233}