<commit_before>require "log4r/config"
require "airplay/logger"

module Airplay
  # Public: Handles the Airplay configuration
  #
  class Configuration
    attr_accessor :log_level, :output, :autodiscover, :host, :port

    def initialize
      Log4r.define_levels(*Log4r::Log4rConfig::LogLevels)

      @log_level = Log4r::WARN
      @autodiscover = true
      @host = "0.0.0.0"
      @port = "1337"
      @output = Log4r::Outputter.stdout
    end

    # Public: Loads the configuration into the affected parts
    #
    def load
      level = if @log_level.is_a?(Fixnum)
                @log_level
              else
                Log4r.const_get(@log_level.upcase)
              end

      Log4r::Logger.root.add @output
      Log4r::Logger.root.level = level
      Celluloid.logger = Airplay::Logger.new("airplay::celluloid")
    end
  end
end
<commit_msg>Up a notch the log level<commit_after>require "log4r/config"
require "airplay/logger"

module Airplay
  # Public: Handles the Airplay configuration
  #
  class Configuration
    attr_accessor :log_level, :output, :autodiscover, :host, :port

    def initialize
      Log4r.define_levels(*Log4r::Log4rConfig::LogLevels)

      @log_level = Log4r::ERROR
      @autodiscover = true
      @host = "0.0.0.0"
      @port = "1337"
      @output = Log4r::Outputter.stdout
    end

    # Public: Loads the configuration into the affected parts
    #
    def load
      level = if @log_level.is_a?(Fixnum)
                @log_level
              else
                Log4r.const_get(@log_level.upcase)
              end

      Log4r::Logger.root.add @output
      Log4r::Logger.root.level = level
      Celluloid.logger = Airplay::Logger.new("airplay::celluloid")
    end
  end
end

{'fraction_non_alphanumeric': 0.10034602076124567, 'fraction_numerical': 0.0196078431372549, 'mean_word_length': 2.456175298804781, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '95056', 'n_tokens_mistral': 591, 'n_tokens_neox': 571, 'n_words': 123}