<commit_before>﻿using System;
using System.Windows.Forms;
using CKAN;

namespace WebBrowserPlugin
{

    public class WebBrowserPlugin : CKAN.IGUIPlugin
    {

        private readonly string VERSION = "v1.0.0";

        public override void Initialize()
        {
            var webBrowser = new WebBrowser();
            webBrowser.Dock = System.Windows.Forms.DockStyle.Fill;
            webBrowser.Location = new System.Drawing.Point(3, 3);
            webBrowser.MinimumSize = new System.Drawing.Size(20, 20);
            webBrowser.Name = "webBrowser1";
            webBrowser.Size = new System.Drawing.Size(1015, 640);
            webBrowser.TabIndex = 0;
            webBrowser.Url = new System.Uri("http://kerbalstuff.com", System.UriKind.Absolute);

            var tabPage = new TabPage();
            tabPage.Controls.Add(webBrowser);
            tabPage.Location = new System.Drawing.Point(4, 22);
            tabPage.Name = "KerbalStuffBrowserTabPage";
            tabPage.Padding = new System.Windows.Forms.Padding(3);
            tabPage.Size = new System.Drawing.Size(1021, 646);
            tabPage.TabIndex = 5;
            tabPage.Text = "KerbalStuff";
            tabPage.UseVisualStyleBackColor = true;

            Main.Instance.m_TabController.m_TabPages.Add("KerbalStuffBrowser", tabPage);
            Main.Instance.m_TabController.ShowTab("KerbalStuffBrowser", 1, false);
        }

        public override void Deinitialize()
        {
            
        }

        public override string GetName()
        {
            return "Web Browser";
        }

        public override CKAN.Version GetVersion()
        {
            return new CKAN.Version(VERSION);
        }

    }

}<commit_msg>WebBrowser should deinitialize properly<commit_after>﻿using System;
using System.Windows.Forms;
using CKAN;

namespace WebBrowserPlugin
{

    public class WebBrowserPlugin : CKAN.IGUIPlugin
    {

        private readonly string VERSION = "v1.0.0";

        public override void Initialize()
        {
            var webBrowser = new WebBrowser();
            webBrowser.Dock = System.Windows.Forms.DockStyle.Fill;
            webBrowser.Location = new System.Drawing.Point(3, 3);
            webBrowser.MinimumSize = new System.Drawing.Size(20, 20);
            webBrowser.Name = "webBrowser1";
            webBrowser.Size = new System.Drawing.Size(1015, 640);
            webBrowser.TabIndex = 0;
            webBrowser.Url = new System.Uri("http://kerbalstuff.com", System.UriKind.Absolute);

            var tabPage = new TabPage();
            tabPage.Controls.Add(webBrowser);
            tabPage.Location = new System.Drawing.Point(4, 22);
            tabPage.Name = "KerbalStuffBrowserTabPage";
            tabPage.Padding = new System.Windows.Forms.Padding(3);
            tabPage.Size = new System.Drawing.Size(1021, 646);
            tabPage.TabIndex = 5;
            tabPage.Text = "KerbalStuff";
            tabPage.UseVisualStyleBackColor = true;

            Main.Instance.m_TabController.m_TabPages.Add("KerbalStuffBrowser", tabPage);
            Main.Instance.m_TabController.ShowTab("KerbalStuffBrowser", 1, false);
        }

        public override void Deinitialize()
        {
            Main.Instance.m_TabController.HideTab("KerbalStuffBrowser");
            Main.Instance.m_TabController.m_TabPages.Remove("KerbalStuffBrowser");
        }

        public override string GetName()
        {
            return "Web Browser";
        }

        public override CKAN.Version GetVersion()
        {
            return new CKAN.Version(VERSION);
        }

    }

}
{'fraction_non_alphanumeric': 0.10002770850651149, 'fraction_numerical': 0.017179274037129398, 'mean_word_length': 2.1120689655172415, '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': '6183979', 'n_tokens_mistral': 1054, 'n_tokens_neox': 982, 'n_words': 193}