<commit_before>﻿using System.IO;
using NUnit.Framework;

namespace NGraphics.Test.SvgReader
{
    public class SvgReaderTestBase : PlatformTest
    {
        Graphic Read(string path)
        {
            using (var s = OpenResource(path))
            {
              var r = new NGraphics.Parsers.SvgReader(new StreamReader(s));
                Assert.GreaterOrEqual(r.Graphic.Children.Count, 0);
                Assert.Greater(r.Graphic.Size.Width, 1);
                Assert.Greater(r.Graphic.Size.Height, 1);
                return r.Graphic;
            }
        }

        protected void ReadAndDraw(string path)
        {
            var g = Read(path);
            var c = Platform.CreateImageCanvas(g.Size);<commit_msg>Fixing a test<commit_after>﻿using System.IO;
using NGraphics.Parsers;
using NUnit.Framework;

namespace NGraphics.Test.SvgReader
{
    public class SvgReaderTestBase : PlatformTest
    {
        Graphic Read(string path)
        {
            using (var s = OpenResource(path))
            {
              var valuesParser = new ValuesParser();

              var r = new NGraphics.Parsers.SvgReader(new StreamReader(s),new StylesParser(valuesParser),valuesParser );
                Assert.GreaterOrEqual(r.Graphic.Children.Count, 0);
                Assert.Greater(r.Graphic.Size.Width, 1);
                Assert.Greater(r.Graphic.Size.Height, 1);
                return r.Graphic;
            }
        }

        protected void ReadAndDraw(string path)
        {
            var g = Read(path);
            var c = Platform.CreateImageCanvas(g.Size);
{'fraction_non_alphanumeric': 0.09595959595959595, 'fraction_numerical': 0.003787878787878788, 'mean_word_length': 1.8923357664233578, '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': '1210826', 'n_tokens_mistral': 463, 'n_tokens_neox': 444, 'n_words': 88}