<commit_before>require_relative '../lib/erb_with_hash'

class ERB
  include ERBWithHash
end

RSpec.describe ERBWithHash do
  describe '#result_with_hash' do
    let(:template) {
      ERB.new "<% b = a + 1 %><%= a %> + 1 = <%= b %>"
    }

    subject { template.result_with_hash(a: 1) }

    it { is_expected.to eq "1 + 1 = 2" }
  end
end<commit_msg>remove unneccesary include in spec<commit_after>require_relative '../lib/erb_with_hash'

RSpec.describe ERBWithHash do
  describe '#result_with_hash' do
    let(:template) {
      ERB.new "<% b = a + 1 %><%= a %> + 1 = <%= b %>"
    }

    subject { template.result_with_hash(a: 1) }

    it { is_expected.to eq "1 + 1 = 2" }
  end
end
{'fraction_non_alphanumeric': 0.15160349854227406, 'fraction_numerical': 0.01749271137026239, 'mean_word_length': 2.9710982658959537, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5079260', 'n_tokens_mistral': 283, 'n_tokens_neox': 258, 'n_words': 62}