<commit_before>﻿using System;
using FG5eXmlToPDF;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace FG5eXmlToPdf.Tests
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void ReadWriteTest()
        {           
            var currentDirectory = System.IO.Directory.GetCurrentDirectory();
            var character = FG5eXml.LoadCharacter($@"{currentDirectory}\rita.xml");
            FG5ePdf.Write( 
                character,
                $@"{currentDirectory}\out.pdf");
        }
    }
}
<commit_msg>Test file output using char name and total level.<commit_after>﻿using System;
using System.Linq;
using FG5eXmlToPDF;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace FG5eXmlToPdf.Tests
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void ReadWriteTest()
        {           
            var currentDirectory = System.IO.Directory.GetCurrentDirectory();
            var character = FG5eXml.LoadCharacter($@"{currentDirectory}\rita.xml");
            var charName = character.Properities.FirstOrDefault((x) => x.Name == "Name")?.Value;
            var level = character.Properities.FirstOrDefault((x) => x.Name == "LevelTotal")?.Value;
            FG5ePdf.Write( 
                character,
                $@"{currentDirectory}\{charName} ({level}).pdf");
        }
    }
}

{'fraction_non_alphanumeric': 0.11207519884309472, 'fraction_numerical': 0.0072306579898770785, 'mean_word_length': 2.3592233009708736, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7296262', 'n_tokens_mistral': 410, 'n_tokens_neox': 395, 'n_words': 71}