<commit_before>﻿namespace System.Windows.Forms
{
    public static class WindowsFormEx
    {
        public static void EnsureOnScreen(this System.Windows.Forms.Form form)
        {
            var screen = Screen.FromControl(form);
            System.Drawing.Point newLocation = form.Location;

            if (form.Bounds.Right > screen.Bounds.Right)
                newLocation.X = screen.Bounds.Right - form.Width - 5;
            if (form.Bounds.Bottom > screen.Bounds.Bottom)
                newLocation.Y = screen.Bounds.Bottom - form.Height - 5;
            if (form.Bounds.Left < 0)
                newLocation.X = 0;

            form.Location = newLocation;
        }
    }
}<commit_msg>Update WindowsForm.cs<commit_after>﻿namespace System.Windows.Forms
{
    public static class WindowsFormEx
    {
        public static void EnsureOnScreen(this System.Windows.Forms.Form form)
        {
            var screen = Screen.FromControl(form).WorkingArea;
            System.Drawing.Point newLocation = form.Location;

            if (form.Bounds.Right > screen.Right)
                newLocation.X = screen.Right - form.Width - 5;
            if (form.Bounds.Bottom > screen.Bottom)
                newLocation.Y = screen.Bottom - form.Height - 5;
            if (form.Bounds.Left < 0)
                newLocation.X = 0;

            form.Location = newLocation;
        }
    }
}
{'fraction_non_alphanumeric': 0.09654178674351585, 'fraction_numerical': 0.005763688760806916, 'mean_word_length': 1.8004032258064515, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '1355850', 'n_tokens_mistral': 387, 'n_tokens_neox': 368, 'n_words': 79}