<commit_before>﻿using CSharpMinifier.GUI.Properties;
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.IO;
using System.Linq;
using System.Windows.Forms;

namespace CSharpMinifier.GUI
{
	public partial class frmMain : Form
	{
		class ListBoxItem
		{
			public string Key { get; set; }
			public string Value { get; set; }

			public ListBoxItem(string key, string value)
			{
				Key = key;
				Value = value;
			}

			public override string ToString()
			{
				return Value;
			}
		}

		void FillList(string[] fileNames)
		{
			Sources = new Dictionary<string, string>();
			foreach (var fileName in fileNames)
			{
				var lbItem = new ListBoxItem(fileName, Path.GetFileName(fileName));
                try
                {
                    Sources[lbItem.Key] = File.ReadAllText(lbItem.Key);
                    lbInputFiles.Items.Add(lbItem);
                }
                catch(Exception e)
                { }
                
			}
		}

		Dictionary<string, string> Sources = new Dictionary<string, string>();

		public frmMain()
		{
			InitializeComponent();

			if (!Settings.Default.WindowLocation.IsEmpty)
				Location = Settings.Default.WindowLocation;
			if (!Settings.Default.WindowSize.IsEmpty)
				Size = Settings.Default.WindowSize;
			WindowState = (FormWindowState)Enum.Parse(typeof(FormWindowState), Settings.Default.WindowState);<commit_msg>Replace Spaces by tabs.<commit_after>﻿using CSharpMinifier.GUI.Properties;
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.IO;
using System.Linq;
using System.Windows.Forms;

namespace CSharpMinifier.GUI
{
	public partial class frmMain : Form
	{
		class ListBoxItem
		{
			public string Key { get; set; }
			public string Value { get; set; }

			public ListBoxItem(string key, string value)
			{
				Key = key;
				Value = value;
			}

			public override string ToString()
			{
				return Value;
			}
		}

		void FillList(string[] fileNames)
		{
			Sources = new Dictionary<string, string>();
			foreach (var fileName in fileNames)
			{
				var lbItem = new ListBoxItem(fileName, Path.GetFileName(fileName));
				try
				{
					Sources[lbItem.Key] = File.ReadAllText(lbItem.Key);
					lbInputFiles.Items.Add(lbItem);
				}
				catch(Exception e)
				{ }
                
			}
		}

		Dictionary<string, string> Sources = new Dictionary<string, string>();

		public frmMain()
		{
			InitializeComponent();

			if (!Settings.Default.WindowLocation.IsEmpty)
				Location = Settings.Default.WindowLocation;
			if (!Settings.Default.WindowSize.IsEmpty)
				Size = Settings.Default.WindowSize;
			WindowState = (FormWindowState)Enum.Parse(typeof(FormWindowState), Settings.Default.WindowState);
{'fraction_non_alphanumeric': 0.10341074020319303, 'fraction_numerical': 0.0, 'mean_word_length': 3.0014513788098696, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1854389', 'n_tokens_mistral': 967, 'n_tokens_neox': 808, 'n_words': 184}