<commit_before>﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading.Tasks;

using BZFlag.IO;

namespace ReaderTest
{
	class Program
	{
		static void Main(string[] args)
		{
			if (args.Length == 0)
			{
				Console.WriteLine("Need a bzw filename");
				return;
			}

			FileInfo file = new FileInfo(args[0]);
			StreamReader sr = file.OpenText();

			var map = Reader.ReadMap(sr);
			sr.Close();

			FileInfo newFile = new FileInfo(file.FullName + "_saved");

			if(newFile.Exists)
				newFile.Delete();

			Stream s = newFile.OpenWrite();
			StreamWriter sw = new StreamWriter(s);

			Writer.WriteMap(sw, map);
			sw.Close();
			s.Close();
		}

	}
}<commit_msg>better name for unit test output<commit_after>﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading.Tasks;

using BZFlag.IO;

namespace ReaderTest
{
	class Program
	{
		static void Main(string[] args)
		{
			if (args.Length == 0)
			{
				Console.WriteLine("Need a bzw filename");
				return;
			}

			FileInfo file = new FileInfo(args[0]);
			StreamReader sr = file.OpenText();

			var map = Reader.ReadMap(sr);
			sr.Close();

			FileInfo newFile = new FileInfo(file.FullName + "_Parsed");

			if(newFile.Exists)
				newFile.Delete();

			Stream s = newFile.OpenWrite();
			StreamWriter sw = new StreamWriter(s);

			Writer.WriteMap(sw, map);
			sw.Close();
			s.Close();
		}

	}
}
{'fraction_non_alphanumeric': 0.13480055020632736, 'fraction_numerical': 0.002751031636863824, 'mean_word_length': 3.3825301204819276, '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': '1065323', 'n_tokens_mistral': 588, 'n_tokens_neox': 487, 'n_words': 119}