<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.IO;

namespace BattleCity.GameLib
{
    public class MapSave
    {
        public MapSave(Map map, GameMode mode)
        {
            this.map = map;
            this.mode = mode;
        }
        private Map map;
        private GameMode mode;
        private XmlTextWriter writer = null;
        public void createXMLDoc(String filePath)
        {
            writer = new XmlTextWriter(filePath, Encoding.Unicode);<commit_msg>Small edit if Map Saver.<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.IO;

namespace BattleCity.GameLib
{
    public class MapSave
    {
        public MapSave(Map map, GameMode mode)
        {
            this.map = map;
            this.mode = mode;
        }
        private Map map;
        private GameMode mode;
        private XmlWriter writer = null;
        public void createXMLDoc(String filePath)
        {
            XmlWriterSettings settings = new XmlWriterSettings();
            settings.Indent = true;
            settings.IndentChars = "\t";
            settings.NewLineChars = "\n";
            //settings.OmitXmlDeclaration = true; // "<?xml version="1.0" encoding="utf-8"?>"

            //writer = new XmlTextWriter(filePath, Encoding.Unicode);
            writer = XmlWriter.Create(filePath,settings);
{'fraction_non_alphanumeric': 0.09140148950575491, 'fraction_numerical': 0.002031144211238998, 'mean_word_length': 2.2130434782608694, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 1, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '5151731', 'n_tokens_mistral': 408, 'n_tokens_neox': 401, 'n_words': 108}