<commit_before>﻿using Gtk;
using NLog;
using SlimeSimulation.Controller.WindowController;
using SlimeSimulation.View.Windows;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SlimeSimulation.View.WindowComponent.SimulationControlComponent.SimulationCreaterComponent
{
    public class BeginSimulationComponent : Button
    {
        private static readonly Logger Logger = LogManager.GetCurrentClassLogger();

        private ApplicationStartWindow _enclosingWindow;
        private ApplicationStartWindowController _enclosingWindowController;

        public BeginSimulationComponent(ApplicationStartWindow enclosingWindow,
            ApplicationStartWindowController controller)
            : base (new Label("Begin simulation")) {
            _enclosingWindow = enclosingWindow;
            Clicked += BeginSimulationComponent_Clicked;
        }

        private void BeginSimulationComponent_Clicked(object sender, EventArgs e)
        {
            Logger.Debug("[BeginSimulationComponent_Clicked] Entered");<commit_msg>In BeginSimulationComponent make sure a reference is set in the constructor<commit_after>﻿using Gtk;
using NLog;
using SlimeSimulation.Controller.WindowController;
using SlimeSimulation.View.Windows;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SlimeSimulation.View.WindowComponent.SimulationControlComponent.SimulationCreaterComponent
{
    public class BeginSimulationComponent : Button
    {
        private static readonly Logger Logger = LogManager.GetCurrentClassLogger();

        private ApplicationStartWindow _enclosingWindow;
        private ApplicationStartWindowController _enclosingWindowController;

        public BeginSimulationComponent(ApplicationStartWindow enclosingWindow,
            ApplicationStartWindowController controller)
            : base (new Label("Begin simulation")) {
            _enclosingWindow = enclosingWindow;
            _enclosingWindowController = controller;
            Clicked += BeginSimulationComponent_Clicked;
        }

        private void BeginSimulationComponent_Clicked(object sender, EventArgs e)
        {
            Logger.Debug("[BeginSimulationComponent_Clicked] Entered");
{'fraction_non_alphanumeric': 0.057684029272492464, 'fraction_numerical': 0.0, 'mean_word_length': 4.210762331838565, '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': '1226029', 'n_tokens_mistral': 547, 'n_tokens_neox': 533, 'n_words': 125}