<commit_before>module Adapters
  class Rouge < ShootoutAdapter
    LIBRARY = ::Rouge
    
    def version
      LIBRARY.version
    end
    
    def highlight file, source, language, format
      format = 'terminal256' if format == 'terminal'
      LIBRARY.highlight(source, language, format)
    end
    
    module Formatters<commit_msg>add Null formatter for Rouge Adapter<commit_after>module Adapters
  class Rouge < ShootoutAdapter
    LIBRARY = ::Rouge
    
    def version
      LIBRARY.version
    end
    
    def highlight file, source, language, format
      format = 'terminal256' if format == 'terminal'
      LIBRARY.highlight(source, language, format)
    end
    
    module Formatters
      class Null < LIBRARY::Formatter
        # Output nothing.
        tag 'null'
        
        def initialize(opts={})
        end
        
        def stream(tokens, &b)
          tokens.each do |tok, val|
          end
        end
      end
    end
    
    module Formatters
{'fraction_non_alphanumeric': 0.06707317073170732, 'fraction_numerical': 0.006097560975609756, 'mean_word_length': 2.0030487804878048, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 3, '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': '3345558', 'n_tokens_mistral': 301, 'n_tokens_neox': 272, 'n_words': 83}