<commit_before># encoding: utf-8

require 'mixlib/log'

module Installer
  # This class provides a project-wide logger.
  class Log
    extend Mixlib::Log
  end
end<commit_msg>Changed Log to a module which will be included by classes.<commit_after># encoding: utf-8

require "logger"

module Installer
  # http://stackoverflow.com/questions/917566/ruby-share-logger-instance-among-module-classes#answer-6768164
  module Logging
    # This is the magical bit that gets mixed into your classes
    def logger
      Logging.logger
    end

    # Global, memorized, lazy initialized instance of a logger
    def self.logger
      @logger ||= Logger.new($stdout).tap do |log|
        log.progname = 'installer'
        log.formatter = proc do |serverity, time, progname, msg|
          "#{serverity}: #{time} - #{msg}\n"
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.09473684210526316, 'fraction_numerical': 0.017543859649122806, 'mean_word_length': 2.962962962962963, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1530548', 'n_tokens_mistral': 271, 'n_tokens_neox': 256, 'n_words': 84}