<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Gwen.Control;
using Gwen;

namespace Flood.Editor.Controls
{
    public class DocumentTab
    {
        Gwen.Control.TabControl tabControl;

        Dictionary<int,TabButton> tabButtons;

        public event Action<int> DocumentSelected;


        public DocumentTab(Gwen.Control.Base parent)
        {
            tabControl = new Gwen.Control.TabControl(parent);
            tabControl.Dock = Gwen.Pos.Fill;

            tabButtons = new Dictionary<int, TabButton>();

            tabControl.TabSelected += OnTabSelected;<commit_msg>Use an object initializer in DocumentTab.cs.<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Gwen.Control;
using Gwen;

namespace Flood.Editor.Controls
{
    public class DocumentTab
    {
        Gwen.Control.TabControl tabControl;

        Dictionary<int,TabButton> tabButtons;

        public event Action<int> DocumentSelected;

        public DocumentTab(Gwen.Control.Base parent)
        {
            tabControl = new Gwen.Control.TabControl(parent)
                {
                    Dock = Gwen.Pos.Fill
                };

            tabButtons = new Dictionary<int, TabButton>();

            tabControl.TabSelected += OnTabSelected;
{'fraction_non_alphanumeric': 0.0851063829787234, 'fraction_numerical': 0.0, 'mean_word_length': 2.655440414507772, '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': '3100367', 'n_tokens_mistral': 386, 'n_tokens_neox': 376, 'n_words': 86}