<commit_before>RSpec.shared_examples 'an ImageTemplate' do |options|
  let(:image_template) { described_class.new(options) }

  describe '#to_html' do
    it 'renders a String' do
      expect(image_template.to_html).to be_a String
    end
  end

  describe '#erb_template' do
    it 'is a valid erb template' do
      expect(File).to exist(image_template.erb_template)
    end<commit_msg>Add valid file check for shared template examples<commit_after>RSpec.shared_examples 'an ImageTemplate' do |options|
  let(:image_template) { described_class.new(options) }

  describe '#to_html' do
    it 'renders a String' do
      expect(image_template.to_html).to be_a String
    end
  end

  describe '#erb_template' do
    it 'is a valid file' do
      expect(File).to exist(image_template.erb_template)
    end
  end

  describe '#css_stylesheet' do
    it 'is a valid file' do
      expect(File).to exist(image_template.css_stylesheet)
    end
{'fraction_non_alphanumeric': 0.08829787234042553, 'fraction_numerical': 0.0, 'mean_word_length': 3.7766497461928936, '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': '5923011', 'n_tokens_mistral': 307, 'n_tokens_neox': 299, 'n_words': 84}