<commit_before>module Jekyll
  module Emoji
    module Filter
      ##
      # Emojify the string. If the string is an HTML strings, certain elements
      # won't be emojified. Check the `BLACKLIST_*`` constants, and/or the docs
      # inside the README for more information.
      #
      # @param [String] input
      # @param [String] output_format
      # @param [FalseClass|TrueClass|NilClass] ascii
      # @param [FalseClass|TrueClass|NilClass] shortname
      # @param [FalseClass|TrueClass|NilClass] src
      # @return [String]
      #
      def emojify(input, output_format = nil, ascii = nil, shortname = nil, src = nil)
        # Liquid/Jekyll seem to re-create the class where filters are included
        @@__emoji_converter__ ||= Converter.new(@context.registers[:site].config)
        @@__emoji_converter__.reconfigure('format' => output_format, 'ascii' => ascii, 'shortname' => shortname, 'src' => src)

        output = @@__emoji_converter__.convert(input)

        # Revert back to old configuration
        # NOTE: This impacts performance in certain cases
        @@__emoji_converter__.reconfigure(@@__emoji_converter__.initial_conf)

        return output
      end
    end #Filter
  end #Emoji
end<commit_msg>Fix @param doc<commit_after>module Jekyll
  module Emoji
    module Filter
      ##
      # Emojify the string. If the string is an HTML strings, certain elements
      # won't be emojified. Check the `BLACKLIST_*`` constants, and/or the docs
      # inside the README for more information.
      #
      # @param [String] input
      # @param [String] output_format
      # @param [FalseClass|TrueClass|NilClass] ascii
      # @param [FalseClass|TrueClass|NilClass] shortname
      # @param [String|NilClass] src
      # @return [String]
      #
      def emojify(input, output_format = nil, ascii = nil, shortname = nil, src = nil)
        # Liquid/Jekyll seem to re-create the class where filters are included
        @@__emoji_converter__ ||= Converter.new(@context.registers[:site].config)
        @@__emoji_converter__.reconfigure('format' => output_format, 'ascii' => ascii, 'shortname' => shortname, 'src' => src)

        output = @@__emoji_converter__.convert(input)

        # Revert back to old configuration
        # NOTE: This impacts performance in certain cases
        @@__emoji_converter__.reconfigure(@@__emoji_converter__.initial_conf)

        return output
      end
    end #Filter
  end #Emoji
end
{'fraction_non_alphanumeric': 0.0984940984940985, 'fraction_numerical': 0.0, 'mean_word_length': 3.0229132569558104, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '7289434', 'n_tokens_mistral': 748, 'n_tokens_neox': 723, 'n_words': 209}