<commit_before>﻿using System.Xml.XPath;

using FluentAssertions;
using Xunit;

namespace Grobid.PdfToXml.Test
{
    public class ConverterTest
    {
        [Fact]
        public void Test()
        {
            var testSubject = new Converter();

            var pageBackFactory = new PageBlockFactory();
            var pageBlocks = pageBackFactory.Create(Sample.Pdf.OpenEssenseLinq(), 1);

            var doc = testSubject.ToXml(pageBlocks);
            doc.XPathSelectElements("/DOCUMENT/PAGE/TEXT/TOKEN").Should().HaveCount(859);
        }
    }
}
<commit_msg>Give it a better name.<commit_after>﻿using System.Xml.XPath;

using FluentAssertions;
using Xunit;

namespace Grobid.PdfToXml.Test
{
    public class ConverterTest
    {
        [Fact]
        public void EssenseShouldSpecificTokenBlocks()
        {
            var testSubject = new Converter();

            var pageBackFactory = new PageBlockFactory();
            var pageBlocks = pageBackFactory.Create(Sample.Pdf.OpenEssenseLinq(), 1);

            var doc = testSubject.ToXml(pageBlocks);
            doc.XPathSelectElements("/DOCUMENT/PAGE/TEXT/TOKEN").Should().HaveCount(859);
        }
    }
}

{'fraction_non_alphanumeric': 0.09958847736625515, 'fraction_numerical': 0.006584362139917695, 'mean_word_length': 2.2169312169312168, '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': '5515297', 'n_tokens_mistral': 362, 'n_tokens_neox': 344, 'n_words': 66}