<commit_before><commit_msg>add logger class<commit_after>module Rack
  module SimpleAuth
    module Logger
      def self.log(logpath, env = 'development', msg)
        open("#{logpath}/#{env}_error.log", 'a') do |f|
          f << "#{msg}\n"
        end

        # Print out log to stdout for dev env
        puts msg if ENV['RACK_ENV'].eql?('development')
      end
    end # Logger
  end # SimpleAuth
end # Rack
{'fraction_non_alphanumeric': 0.1280193236714976, 'fraction_numerical': 0.0, 'mean_word_length': 2.547008547008547, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4250103', 'n_tokens_mistral': 135, 'n_tokens_neox': 133, 'n_words': 39}