<commit_before>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Threading;
using System.Runtime.InteropServices;

namespace MagiWol {

    internal partial class MainForm : Form {

        private MagiWolDocument.Document _document;
        private Medo.Configuration.RecentFiles _recent;


        public MainForm() {
            InitializeComponent();
            this.Font = SystemFonts.MessageBoxFont;
            Medo.Windows.Forms.TaskbarProgress.DefaultOwner = this;
            Medo.Windows.Forms.TaskbarProgress.DoNotThrowNotImplementedException = true;

            float dpiRatioX, dpiRatioY;
            using (var g = this.CreateGraphics()) {
                var dpiX = g.DpiX;
                var dpiY = g.DpiY;
                dpiRatioX = (float)Math.Round(dpiX / 96, 2);
                dpiRatioY = (float)Math.Round(dpiY / 96, 2);
            }
            mnu.ImageScalingSize = new Size((int)(16 * dpiRatioX), (int)(16 * dpiRatioY));
            mnu.Scale(new SizeF(dpiRatioX, dpiRatioY));
            mnx.ImageScalingSize = new Size((int)(16 * dpiRatioX), (int)(16 * dpiRatioY));
            mnx.Scale(new SizeF(dpiRatioX, dpiRatioY));


            this._document = new MagiWolDocument.Document();
            this._recent = new Medo.Configuration.RecentFiles();


            list.ListViewItemSorter = _listColumnSorter;
            this._listColumnSorter.SortColumn = 0;
            this._listColumnSorter.Order = SortOrder.Ascending;
            list.Sort();
        }

        private bool _suppressMenuKey;

        private void MainForm_Deactivate(object sender, EventArgs e) {<commit_msg>Open toolbar button does not show dropdown in NoRegistryWrites mode.<commit_after>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Threading;
using System.Runtime.InteropServices;

namespace MagiWol {

    internal partial class MainForm : Form {

        private MagiWolDocument.Document _document;
        private Medo.Configuration.RecentFiles _recent;


        public MainForm() {
            InitializeComponent();
            this.Font = SystemFonts.MessageBoxFont;
            Medo.Windows.Forms.TaskbarProgress.DefaultOwner = this;
            Medo.Windows.Forms.TaskbarProgress.DoNotThrowNotImplementedException = true;

            float dpiRatioX, dpiRatioY;
            using (var g = this.CreateGraphics()) {
                var dpiX = g.DpiX;
                var dpiY = g.DpiY;
                dpiRatioX = (float)Math.Round(dpiX / 96, 2);
                dpiRatioY = (float)Math.Round(dpiY / 96, 2);
            }
            mnu.ImageScalingSize = new Size((int)(16 * dpiRatioX), (int)(16 * dpiRatioY));
            mnu.Scale(new SizeF(dpiRatioX, dpiRatioY));
            mnx.ImageScalingSize = new Size((int)(16 * dpiRatioX), (int)(16 * dpiRatioY));
            mnx.Scale(new SizeF(dpiRatioX, dpiRatioY));

            if (Medo.Configuration.Settings.NoRegistryWrites) { mnxFileOpen.DropDownButtonWidth = 0; }

            this._document = new MagiWolDocument.Document();
            this._recent = new Medo.Configuration.RecentFiles();

            list.ListViewItemSorter = _listColumnSorter;
            this._listColumnSorter.SortColumn = 0;
            this._listColumnSorter.Order = SortOrder.Ascending;
            list.Sort();
        }

        private bool _suppressMenuKey;

        private void MainForm_Deactivate(object sender, EventArgs e) {
{'fraction_non_alphanumeric': 0.09479305740987984, 'fraction_numerical': 0.008277703604806409, 'mean_word_length': 2.530631479736098, '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': '5493625', 'n_tokens_mistral': 1125, 'n_tokens_neox': 1060, 'n_words': 223}