<commit_before>using System;
using System.Drawing;
using System.Windows.Forms;

namespace IronAHK.Rusty
{
    partial class Windows
    {
        public class WindowManager : Core.WindowManager
        {
            #region Find

            public override IntPtr LastFound
            {
                get
                {
                    throw new NotImplementedException();
                }
                set
                {
                    throw new NotImplementedException();
                }
            }

            public override IntPtr[] AllWindows
            {
                get { throw new NotImplementedException(); }
            }

            public override IntPtr[] ActiveWindows
            {
                get { throw new NotImplementedException(); }
            }

            public override IntPtr[] LastActiveWindows
            {
                get { throw new NotImplementedException(); }
            }

            public override IntPtr[] FindWindow(Core.WindowManager.SearchCriteria criteria)
            {
                throw new NotImplementedException();
            }

            #endregion

            #region Window

            public override Core.WindowManager CreateWindow(IntPtr id)
            {
                return new WindowManager { ID = id };
            }

            protected override IntPtr PID
            {
                get
                {
                    uint n;
                    return new IntPtr(GetWindowThreadProcessId(ID, out n));
                }
            }

            public override bool Active
            {
                get
                {
                    throw new NotImplementedException();
                }
                set
                {
                    throw new NotImplementedException();
                }
            }

            public override bool Close()
            {
                if (!IsSpecified)
                    return false;

                return DestroyWindow(ID);
            }

            public override bool Exists
            {
                get
                {
                    return IsSpecified ? IsWindow(ID) : false;
                }
            }

            public override string ClassName
            {
                get
                {
                    return IsSpecified ? GetClassName(ID) : string.Empty;
                }
            }<commit_msg>Implemented Active property in Windows window manager.<commit_after>using System;
using System.Drawing;
using System.Windows.Forms;

namespace IronAHK.Rusty
{
    partial class Windows
    {
        public class WindowManager : Core.WindowManager
        {
            #region Find

            public override IntPtr LastFound
            {
                get
                {
                    throw new NotImplementedException();
                }
                set
                {
                    throw new NotImplementedException();
                }
            }

            public override IntPtr[] AllWindows
            {
                get { throw new NotImplementedException(); }
            }

            public override IntPtr[] ActiveWindows
            {
                get { throw new NotImplementedException(); }
            }

            public override IntPtr[] LastActiveWindows
            {
                get { throw new NotImplementedException(); }
            }

            public override IntPtr[] FindWindow(Core.WindowManager.SearchCriteria criteria)
            {
                throw new NotImplementedException();
            }

            #endregion

            #region Window

            public override Core.WindowManager CreateWindow(IntPtr id)
            {
                return new WindowManager { ID = id };
            }

            protected override IntPtr PID
            {
                get
                {
                    uint n;
                    return new IntPtr(GetWindowThreadProcessId(ID, out n));
                }
            }

            public override bool Active
            {
                get
                {
                    return IsSpecified && Array.IndexOf(ActiveWindows, ID) != -1;
                }
                set
                {
                    if (IsSpecified)
                        SetActiveWindow(ID);
                }
            }

            public override bool Close()
            {
                if (!IsSpecified)
                    return false;

                return DestroyWindow(ID);
            }

            public override bool Exists
            {
                get
                {
                    return IsSpecified ? IsWindow(ID) : false;
                }
            }

            public override string ClassName
            {
                get
                {
                    return IsSpecified ? GetClassName(ID) : string.Empty;
                }
            }
{'fraction_non_alphanumeric': 0.054249547920433995, 'fraction_numerical': 0.00020092425155716296, 'mean_word_length': 0.90727969348659, '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': '4913466', 'n_tokens_mistral': 1082, 'n_tokens_neox': 979, 'n_words': 260}