<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Flood.GUI.Controls;

namespace Editor.Client.GUI
{
    /// <summary>
    /// Display a group of panes that share the same boundaries.
    /// Navigation through the panes is done with tabs.
    /// </summary>
    public class PaneGroup : TabControl
    {
        private readonly Dictionary<Pane,TabButton> paneButtons = new Dictionary<Pane,TabButton>();

        public PaneGroup(Control parent) : base(parent)
        {
            if(PaneService.FocusPaneGroup == null)
                PaneService.FocusPaneGroup = this;
        }

        public void AddPane(Pane pane)
        {
            var tabButton = AddPage(pane.Title, pane.CreateControl(this));
            paneButtons.Add(pane,tabButton);
        }

        public void RemovePane(Pane pane)
        {
            if(!paneButtons.ContainsKey(pane))
                return;

            var tabButton = paneButtons[pane];
            RemovePage(tabButton);
        }

        protected override void OnKeyboardFocus()
        {
            PaneService.FocusPaneGroup = this;
        }
    }
}
<commit_msg>Fixed usage of removed class<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Flood.GUI.Controls;

namespace Editor.Client.GUI
{
    /// <summary>
    /// Display a group of panes that share the same boundaries.
    /// Navigation through the panes is done with tabs.
    /// </summary>
    public class PaneGroup : TabControl
    {
        private readonly Dictionary<Pane,TabButton> paneButtons = new Dictionary<Pane,TabButton>();

        public PaneGroup(Control parent) : base(parent)
        {

        }

        public void AddPane(Pane pane)
        {
            var tabButton = AddPage(pane.Title, pane.CreateControl(this));
            paneButtons.Add(pane,tabButton);
        }

        public void RemovePane(Pane pane)
        {
            if(!paneButtons.ContainsKey(pane))
                return;

            var tabButton = paneButtons[pane];
            RemovePage(tabButton);
        }

    }
}

{'fraction_non_alphanumeric': 0.0945273631840796, 'fraction_numerical': 0.0, 'mean_word_length': 2.169054441260745, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '1210522', 'n_tokens_mistral': 617, 'n_tokens_neox': 597, 'n_words': 148}