<commit_before>require 'logger'
class NetuitiveLogger
	@@log = Logger.new("#{File.expand_path("../../..", __FILE__)}/log/netuitive.log",'daily', 10)
	class << self
		def log
			return @@log
		end
	end
end<commit_msg>adding a hack to make the logging fault tolerant if we don't have permission to the log file<commit_after>require 'logger'
class CheaterLogger
	attr_accessor :level
	def debug(message)
	end
	def error(message)
	end
	def info(message)
	end
end

class NetuitiveLogger
	begin
		@@log = Logger.new("#{File.expand_path("../../..", __FILE__)}/log/netuitive.log",'daily', 10)
	rescue
		puts "netuitive unable to open log file"
		@@log = CheaterLogger.new
	end
	class << self
		def log
			return @@log
		end
	end
end
{'fraction_non_alphanumeric': 0.13259668508287292, 'fraction_numerical': 0.0055248618784530384, 'mean_word_length': 4.034722222222222, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2212482', 'n_tokens_mistral': 274, 'n_tokens_neox': 247, 'n_words': 76}