<commit_before>module LLT
  class Token
    class XmlTag < Token
      def set_functions
        [:xml_tag]
      end

      # overrides #to_xml from Containable - the tag stays at is it
      def to_xml(*args)
        to_s
      end

      def inspect
        "#{'XML tag'.blue} #{tag_status}: #{to_s}"
      end

      private

      def tag_status
        to_s.match(/\//) ? 'open' : 'close'
      end
    end
  end
end<commit_msg>Fixes open-close confusion in XmlTag<commit_after>module LLT
  class Token
    class XmlTag < Token
      def set_functions
        [:xml_tag]
      end

      # overrides #to_xml from Containable - the tag stays at is it
      def to_xml(*args)
        to_s
      end

      def inspect
        "#{'XML tag'.blue} #{tag_status}: #{to_s}"
      end

      private

      def tag_status
        to_s.match(/\//) ? 'close' : 'open'
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.0931537598204265, 'fraction_numerical': 0.0, 'mean_word_length': 1.7195121951219512, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '3361165', 'n_tokens_mistral': 302, 'n_tokens_neox': 290, 'n_words': 87}