<commit_before>﻿// Copyright © 2014 Sony Computer Entertainment America LLC. See License.txt.
// Copyright © 2017 <NAME>.

using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using System.Windows.Forms.VisualStyles;

namespace Sce.Atf.Controls
{
    /// <summary>
    /// Represents a combination of a standard button on the left and a drop-down button on the right
    /// that is not limited to ToolStrip</summary>
    /// <remarks>ToolStripSplitButton is managed only by ToolStrip</remarks>
    public class SplitButton : Button
    {
        private bool _dropDownButton;
        private bool _showSplit = true;
        private bool _skipNextOpen;
        private const int PushButtonWidth = 14;
        private PushButtonState _state;
        private Rectangle _dropDownRectangle;
        private static readonly int BorderSize = SystemInformation.Border3DSize.Width * 2;

        /// <summary>
        /// Constructor</summary>
        public SplitButton()
        {
            AutoSize = true;
        }

        /// <summary>
        /// Sets whether to show button as a dropdown button</summary>
        [DefaultValue(true)]
        public bool DropDownButton
        {
            get
            {
                return _dropDownButton;
            }

            set
            {
                if (value != _dropDownButton)
                {
                    _dropDownButton = value;

                    Invalidate();
                    if (Parent != null)
                    {
                        Parent.PerformLayout();
                    }
                }
            }
        }

        /// <summary>
        /// Sets whether to show split</summary><commit_msg>Set default value for DropDownButton property to false.<commit_after>﻿// Copyright © 2014 Sony Computer Entertainment America LLC. See License.txt.
// Copyright © 2017 <NAME>.

using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using System.Windows.Forms.VisualStyles;

namespace Sce.Atf.Controls
{
    /// <summary>
    /// Represents a combination of a standard button on the left and a drop-down button on the right
    /// that is not limited to ToolStrip</summary>
    /// <remarks>ToolStripSplitButton is managed only by ToolStrip</remarks>
    public class SplitButton : Button
    {
        private bool _dropDownButton;
        private bool _showSplit = true;
        private bool _skipNextOpen;
        private const int PushButtonWidth = 14;
        private PushButtonState _state;
        private Rectangle _dropDownRectangle;
        private static readonly int BorderSize = SystemInformation.Border3DSize.Width * 2;

        /// <summary>
        /// Constructor</summary>
        public SplitButton()
        {
            AutoSize = true;
        }

        /// <summary>
        /// Sets whether to show button as a dropdown button</summary>
        [DefaultValue(false)]
        public bool DropDownButton
        {
            get
            {
                return _dropDownButton;
            }

            set
            {
                if (value != _dropDownButton)
                {
                    _dropDownButton = value;

                    Invalidate();
                    if (Parent != null)
                    {
                        Parent.PerformLayout();
                    }
                }
            }
        }

        /// <summary>
        /// Sets whether to show split</summary>
{'fraction_non_alphanumeric': 0.07989764003411999, 'fraction_numerical': 0.0068239977253340914, 'mean_word_length': 1.5660102115244348, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '3372929', 'n_tokens_mistral': 879, 'n_tokens_neox': 828, 'n_words': 264}