<commit_before>require 'html_processor/node_contents'

describe HTMLProcessor::NodeContents do
  subject(:processor) { described_class.new(html) }

  let(:html) { "<p>#{inner_html}</p>" }
  let(:inner_html) { 'Some text.' }

  describe '.process' do
    subject(:processed_html) { processor.process('//p') }

    it 'returns just the inner html' do
      expect(processed_html).to eql(inner_html)
    end
  end
end<commit_msg>Improve output of HTMLProcessor::NodeContents spec<commit_after>require 'html_processor/node_contents'

describe HTMLProcessor::NodeContents do
  subject(:processor) { described_class.new(html) }

  let(:html) { "<p>#{inner_html}</p>" }
  let(:inner_html) { 'Some text.' }

  describe '.process' do
    subject(:processed_html) { processor.process('//p') }

    it 'returns just the inner HTML' do
      expect(processed_html).to eql(inner_html)
    end
  end
end
{'fraction_non_alphanumeric': 0.13948256467941508, 'fraction_numerical': 0.0, 'mean_word_length': 4.59748427672956, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4546782', 'n_tokens_mistral': 291, 'n_tokens_neox': 279, 'n_words': 61}