<commit_before>require "artii"

module Lita
  module Handlers
    class AsciiArt < Handler
      route(/^ascii\s+(.*)/i, :ascii_from_text, command: true, help: {
        'ascii TEXT' => 'Generate ASCII art from TEXT.'})

        @@art = Artii::Base.new :font => 'standard'

      def ascii_from_text(response)
        puts response.matches.first
        puts @@art.asciify(response.matches.first)
        response.reply @@art.asciify(response.matches.first)
      end
    end

    Lita.register_handler(AsciiArt)
  end
end<commit_msg>try escaping<commit_after>require "artii"

module Lita
  module Handlers
    class AsciiArt < Handler
      route(/^ascii\s+(.*)/i, :ascii_from_text, command: true, help: {
        'ascii TEXT' => 'Generate ASCII art from TEXT.'})

        @@art = Artii::Base.new :font => 'standard'

      def ascii_from_text(response)
        puts response.matches.first
        puts @@art.asciify(response.matches.first)
        puts %Q[#{@@art.asciify(response.matches.first)}]
        response.reply @@art.asciify(response.matches.first)
      end
    end

    Lita.register_handler(AsciiArt)
  end
end
{'fraction_non_alphanumeric': 0.12711111111111112, 'fraction_numerical': 0.0, 'mean_word_length': 2.923344947735192, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '1439979', 'n_tokens_mistral': 385, 'n_tokens_neox': 364, 'n_words': 78}