<commit_before>class Theme

  def self.current_theme(env = nil)
    ::RefinerySetting[:theme]
  end

	def self.current_theme_dir
		theme = self.current_theme
		theme_dir = Rails.root.join("themes",theme)
		theme_dir = Pathname.new(__FILE__).join('..','..', '..' ,'themes', theme) unless theme_dir.exist?
		theme_dir
	end

end
<commit_msg>created Theme.root since its neater<commit_after>class Theme

  def self.current_theme(env = nil)
    ::RefinerySetting[:theme]
  end

	def self.root
		Pathname.new( File.expand_path('../../../', __FILE__) )
	end

	def self.current_theme_dir
		theme = self.current_theme
		theme_dir = Rails.root.join("themes",theme)
		theme_dir = self.root.join('themes', theme) unless theme_dir.directory?
		theme_dir
	end

end

{'fraction_non_alphanumeric': 0.13715046604527298, 'fraction_numerical': 0.0, 'mean_word_length': 4.1506849315068495, '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': '2713942', 'n_tokens_mistral': 280, 'n_tokens_neox': 259, 'n_words': 53}