<commit_before>class HtmlCheck < ::HTMLProofer::Check
  SCRIPT_EMBEDS_MSG = /Element script embeds close tag/
  INVALID_TAG_MSG = /Tag ([\w-:]+) invalid/
  INVALID_PREFIX = /Namespace prefix/

  def run
    @html.errors.each do |error|
      message = error.message
      line    = error.line

      if message =~ INVALID_TAG_MSG || message =~ INVALID_PREFIX
        next unless options[:validation][:report_invalid_tags]
      end

      # tags embedded in scripts are used in templating languages: http://git.io/vOovv
      next if !options[:validation][:report_script_embeds] && message =~ SCRIPT_EMBEDS_MSG<commit_msg>Escape this dash<commit_after>class HtmlCheck < ::HTMLProofer::Check
  SCRIPT_EMBEDS_MSG = /Element script embeds close tag/
  INVALID_TAG_MSG = /Tag ([\w\-:]+) invalid/
  INVALID_PREFIX = /Namespace prefix/

  def run
    @html.errors.each do |error|
      message = error.message
      line    = error.line

      if message =~ INVALID_TAG_MSG || message =~ INVALID_PREFIX
        next unless options[:validation][:report_invalid_tags]
      end

      # tags embedded in scripts are used in templating languages: http://git.io/vOovv
      next if !options[:validation][:report_script_embeds] && message =~ SCRIPT_EMBEDS_MSG
{'fraction_non_alphanumeric': 0.10336538461538461, 'fraction_numerical': 0.0, 'mean_word_length': 3.460714285714286, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6413708', 'n_tokens_mistral': 406, 'n_tokens_neox': 385, 'n_words': 99}