<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Evbpc.Framework.Windows.Forms
{
    /// <summary>
    /// Provides data for the <see cref="Control.KeyPress"/> event.
    /// </summary>
    /// <remarks>
    /// http://msdn.microsoft.com/en-us/library/system.windows.forms.KeyPressEventArgs(v=vs.110).aspx
    /// </remarks>
    public class KeyPressEventArgs : EventArgs
    {
        private bool _handled;
        private char _keyChar;

        #region Constructors
        /// <summary>
        /// Initializes a new instance of the <see cref="KeyPressEventArgs"/> class.
        /// </summary>
        /// <param name="keyChar">The ASCII character corresponding to the key the user pressed.</param>
        /// <remarks>
        /// http://msdn.microsoft.com/en-us/library/system.windows.forms.keypresseventargs.keypresseventargs(v=vs.110).aspx
        /// </remarks>
        public KeyPressEventArgs(char keyChar) { _keyChar = keyChar; }
        #endregion

        #region Properties
        /// <summary>
        /// Gets or sets a value indicating whether the <see cref="Control.KeyPress"/> event was handled.
        /// </summary>
        public bool Handled { get { return _handled; } set { _handled = value; } }
        /// <summary>
        /// Gets or sets the character corresponding to the key pressed.
        /// </summary>
        public char KeyChar { get { return _keyChar; } set { _keyChar = value; } }
        #endregion
    }
}<commit_msg>Replaced backing fields with auto-implemented properties in `Evbpc.Framework.Windows.Forms.KeyPressEventArgs`.<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Evbpc.Framework.Windows.Forms
{
    /// <summary>
    /// Provides data for the <see cref="Control.KeyPress"/> event.
    /// </summary>
    /// <remarks>
    /// http://msdn.microsoft.com/en-us/library/system.windows.forms.KeyPressEventArgs(v=vs.110).aspx
    /// </remarks>
    public class KeyPressEventArgs : EventArgs
    {
        #region Constructors
        /// <summary>
        /// Initializes a new instance of the <see cref="KeyPressEventArgs"/> class.
        /// </summary>
        /// <param name="keyChar">The ASCII character corresponding to the key the user pressed.</param>
        /// <remarks>
        /// http://msdn.microsoft.com/en-us/library/system.windows.forms.keypresseventargs.keypresseventargs(v=vs.110).aspx
        /// </remarks>
        public KeyPressEventArgs(char keyChar) { KeyChar = keyChar; }
        #endregion

        #region Properties
        /// <summary>
        /// Gets or sets a value indicating whether the <see cref="Control.KeyPress"/> event was handled.
        /// </summary>
        public bool Handled { get; set; }
        /// <summary>
        /// Gets or sets the character corresponding to the key pressed.
        /// </summary>
        public char KeyChar { get; set; }
        #endregion
    }
}
{'fraction_non_alphanumeric': 0.13492854769026255, 'fraction_numerical': 0.003988035892323031, 'mean_word_length': 2.254054054054054, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, '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': '248544', 'n_tokens_mistral': 845, 'n_tokens_neox': 833, 'n_words': 219}