<commit_before>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using MatchGenerator.Core;

namespace MatchGenerator
{
	/// <summary>
	/// LayoutConfigureWindow.xaml の相互作用ロジック
	/// </summary>
	public partial class LayoutConfigureWindow : Window
	{
		LayoutInformation CourtLayout;
		LayoutInformation NewCourtLayout;

		public LayoutConfigureWindow(LayoutInformation courtLayout)
		{
			InitializeComponent();

			CourtLayout = courtLayout;
			NewCourtLayout = new LayoutInformation();
		}

		private void Window_Loaded(object sender, RoutedEventArgs e)
		{
			SettingImporter importer = new SettingImporter();
			NewCourtLayout = importer.Import("Setting.ini");

			courtCountRowTextBox.Text = NewCourtLayout.Row.ToString();
			courtCountColumnTextBox.Text = NewCourtLayout.Column.ToString();
			MatchCountTextBox.Text = NewCourtLayout.CourtCount.ToString();
		}

		private void okButton_Click(object sender, RoutedEventArgs e)
		{
			CourtLayout.Row = NewCourtLayout.Row;
			CourtLayout.Column = NewCourtLayout.Column;
			CourtLayout.CourtCount = NewCourtLayout.CourtCount;

			this.Close();
		}

		private void cancelButton_Click(object sender, RoutedEventArgs e)
		{
			this.Close();
		}
	}
}<commit_msg>Fix to reflect new layout settings<commit_after>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using MatchGenerator.Core;

namespace MatchGenerator
{
	/// <summary>
	/// LayoutConfigureWindow.xaml の相互作用ロジック
	/// </summary>
	public partial class LayoutConfigureWindow : Window
	{
		LayoutInformation CourtLayout;

		public LayoutConfigureWindow(LayoutInformation courtLayout)
		{
			InitializeComponent();

			CourtLayout = courtLayout;
		}

		private void Window_Loaded(object sender, RoutedEventArgs e)
		{
			SettingImporter importer = new SettingImporter();
			LayoutInformation court_layout = importer.Import("Setting.ini");

			courtCountRowTextBox.Text = court_layout.Row.ToString();
			courtCountColumnTextBox.Text = court_layout.Column.ToString();
			MatchCountTextBox.Text = court_layout.CourtCount.ToString();
		}

		private void okButton_Click(object sender, RoutedEventArgs e)
		{
			int parsed_value;
			CourtLayout.Row = int.TryParse(courtCountRowTextBox.Text, out parsed_value) ? parsed_value : CourtLayout.Row;
			CourtLayout.Column = int.TryParse(courtCountColumnTextBox.Text, out parsed_value) ? parsed_value : CourtLayout.Column;
			CourtLayout.CourtCount = int.TryParse(MatchCountTextBox.Text, out parsed_value) ? parsed_value : CourtLayout.CourtCount;

			this.Close();
		}

		private void cancelButton_Click(object sender, RoutedEventArgs e)
		{
			this.Close();
		}
	}
}
{'fraction_non_alphanumeric': 0.09459881361223853, 'fraction_numerical': 0.0, 'mean_word_length': 5.126195028680688, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '252802', 'n_tokens_mistral': 1037, 'n_tokens_neox': 917, 'n_words': 195}