<commit_before>#include "XmlManager.h"
#include <cstring>



namespace Pslrk
{
namespace Core
{

XmlManager::XmlManager (const std::string & fileName)
            : xmlDocument ()
            , fileName    (fileName)
{
    if (!xmlDocument.load_file (fileName.c_str () ) ) {
        throw ExceptionXmlErrorLoadFile ();<commit_msg>Fixed erasing of XML declaration.<commit_after>#include "XmlManager.h"
#include <cstring>



namespace Pslrk
{
namespace Core
{

XmlManager::XmlManager (const std::string & fileName)
            : xmlDocument ()
            , fileName    (fileName)
{
    if (!xmlDocument.load_file (fileName.c_str (), pugi::parse_default | pugi::parse_comments | pugi::parse_declaration) ) {
        throw ExceptionXmlErrorLoadFile ();
{'fraction_non_alphanumeric': 0.11748998664886515, 'fraction_numerical': 0.0, 'mean_word_length': 3.573170731707317, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '4879581', 'n_tokens_mistral': 229, 'n_tokens_neox': 229, 'n_words': 47}