<commit_before>module CachingHelpers
	def cached_directory
		"spec/dummy/public/refinery/cache/pages"
	end

	def cached_file_path(page)
		"#{cached_directory}#{refinery.page_path(page)}.html"
	end

	def cache_page(page)
	  Refinery::PagesController.any_instance.stub(:refinery_user?).and_return(false)
	  visit refinery.page_path(page)
	  Refinery::PagesController.any_instance.unstub(:refinery_user?)
	end

	RSpec::Matchers.define :be_cached do 
	  match do |page|
	    File.exists? (cached_file_path(page))
	  end
	end

end<commit_msg>Fix warning regarding putting a space before parentheses.<commit_after>module CachingHelpers
	def cached_directory
		"spec/dummy/public/refinery/cache/pages"
	end

	def cached_file_path(page)
		"#{cached_directory}#{refinery.page_path(page)}.html"
	end

	def cache_page(page)
	  Refinery::PagesController.any_instance.stub(:refinery_user?).and_return(false)
	  visit refinery.page_path(page)
	  Refinery::PagesController.any_instance.unstub(:refinery_user?)
	end

	RSpec::Matchers.define :be_cached do
	  match do |page|
	    File.exists?(cached_file_path(page))
	  end
	end

end
{'fraction_non_alphanumeric': 0.10842293906810035, 'fraction_numerical': 0.0, 'mean_word_length': 5.7696969696969695, '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': '7315721', 'n_tokens_mistral': 406, 'n_tokens_neox': 389, 'n_words': 61}