<commit_before>module Dragonfly
  module Config

    module RMagickText

      def self.apply_configuration(app)
        app.configure do |c|
          c.datastore = DataStorage::TransparentDataStore.new
          c.register_analyser(Analysis::FileCommandAnalyser)
          c.register_processor(Processing::RMagickProcessor)
          c.register_encoder(Encoding::RMagickEncoder)
          c.parameters.add_shortcut :text, Hash do |_, options|
            {
              :processing_method => :text,
              :processing_options => options,
              :format => :png
            }
          end
        end

      end<commit_msg>Oops wasn't using the correct processor in Config::RMagickText<commit_after>module Dragonfly
  module Config

    module RMagickText

      def self.apply_configuration(app)
        app.configure do |c|
          c.datastore = DataStorage::TransparentDataStore.new
          c.register_analyser(Analysis::FileCommandAnalyser)
          c.register_processor(Processing::RMagickTextProcessor)
          c.register_encoder(Encoding::RMagickEncoder)
          c.parameters.add_shortcut :text, Hash do |_, options|
            {
              :processing_method => :text,
              :processing_options => options,
              :format => :png
            }
          end
        end

      end
{'fraction_non_alphanumeric': 0.07876969242310577, 'fraction_numerical': 0.0, 'mean_word_length': 2.1462264150943398, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '7134043', 'n_tokens_mistral': 353, 'n_tokens_neox': 349, 'n_words': 66}