<commit_before>require "jekyll/footnotes/version"

module Jekyll
  class FootnoteTag < Liquid::Tag
    def initialize(tag_name, id, tokens)
      raise(SyntaxError.new("invalid footnote ID")) if ['"', '<', '>'].any? { |c| id.include?(c) }
      @id = id.strip unless id.strip.empty?
      super
    end

    def render(context)
      if @id.nil?
        context.registers[:fn] ||= 0
        context.registers[:fn] = context.registers[:fn].next
        @id = context.registers[:fn]
      end
      "<sup><a href=\"#fn:#{@id}\" class=\"footnote\" rel=\"footnote\" id=\"fn-back:#{@id}\">#{@id}</a></sup>"
    end
  end

  class FootnoteBody < Liquid::Block
    def initialize(tag_name, id, tokens)
      raise(SyntaxError.new("invalid footnote ID")) if ['"', '<', '>'].any? { |c| id.include?(c) }
      @id = id.strip unless id.strip.empty?
      super
    end

    def render(context)<commit_msg>Remove invalid rel attribute<commit_after>require "jekyll/footnotes/version"

module Jekyll
  class FootnoteTag < Liquid::Tag
    def initialize(tag_name, id, tokens)
      raise(SyntaxError.new("invalid footnote ID")) if ['"', '<', '>'].any? { |c| id.include?(c) }
      @id = id.strip unless id.strip.empty?
      super
    end

    def render(context)
      if @id.nil?
        context.registers[:fn] ||= 0
        context.registers[:fn] = context.registers[:fn].next
        @id = context.registers[:fn]
      end
      "<sup><a href=\"#fn:#{@id}\" class=\"footnote\" id=\"fn-back:#{@id}\">#{@id}</a></sup>"
    end
  end

  class FootnoteBody < Liquid::Block
    def initialize(tag_name, id, tokens)
      raise(SyntaxError.new("invalid footnote ID")) if ['"', '<', '>'].any? { |c| id.include?(c) }
      @id = id.strip unless id.strip.empty?
      super
    end

    def render(context)
{'fraction_non_alphanumeric': 0.18868980963045912, 'fraction_numerical': 0.0011198208286674132, 'mean_word_length': 2.9623059866962307, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 15, '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': '6503756', 'n_tokens_mistral': 616, 'n_tokens_neox': 605, 'n_words': 129}