<commit_before>﻿using System;
using System.Text;
using System.Text.RegularExpressions;
using System.Windows;
using System.Windows.Input;
using Xceed.Wpf.Toolkit;

namespace TwitchLeecher.Gui.Controls
{
    public class TlIntegerUpDown : IntegerUpDown
    {
        #region Fields

        private int maxLength;

        #endregion Fields

        #region Dependency Properties

        #region PadZeros

        public static readonly DependencyProperty PadZerosProperty = DependencyProperty.Register(
                "PadZeros",
                typeof(bool),
                typeof(TlIntegerUpDown), new FrameworkPropertyMetadata(defaultValue: false));

        public bool PadZeros
        {
            get { return (bool)GetValue(PadZerosProperty); }
            set { SetValue(PadZerosProperty, value); }
        }

        #endregion PadZeros

        #region Loop

        public static readonly DependencyProperty LoopProperty = DependencyProperty.Register(
                "Loop",
                typeof(bool),
                typeof(TlIntegerUpDown), new FrameworkPropertyMetadata(defaultValue: false));

        public bool Loop
        {
            get { return (bool)GetValue(LoopProperty); }
            set { SetValue(LoopProperty, value); }
        }

        #endregion Loop

        #endregion Dependency Properties

        #region Methods

        protected void FocusAndSelectAll()
        {
            if (!TextBox.IsFocused)
            {
                TextBox.Focus();
            }<commit_msg>Used nameof()<commit_after>﻿using System;
using System.Text;
using System.Text.RegularExpressions;
using System.Windows;
using System.Windows.Input;
using Xceed.Wpf.Toolkit;

namespace TwitchLeecher.Gui.Controls
{
    public class TlIntegerUpDown : IntegerUpDown
    {
        #region Fields

        private int maxLength;

        #endregion Fields

        #region Dependency Properties

        #region PadZeros

        public static readonly DependencyProperty PadZerosProperty = DependencyProperty.Register(
                nameof(PadZeros),
                typeof(bool),
                typeof(TlIntegerUpDown), new FrameworkPropertyMetadata(defaultValue: false));

        public bool PadZeros
        {
            get { return (bool)GetValue(PadZerosProperty); }
            set { SetValue(PadZerosProperty, value); }
        }

        #endregion PadZeros

        #region Loop

        public static readonly DependencyProperty LoopProperty = DependencyProperty.Register(
                nameof(Loop),
                typeof(bool),
                typeof(TlIntegerUpDown), new FrameworkPropertyMetadata(defaultValue: false));

        public bool Loop
        {
            get { return (bool)GetValue(LoopProperty); }
            set { SetValue(LoopProperty, value); }
        }

        #endregion Loop

        #endregion Dependency Properties

        #region Methods

        protected void FocusAndSelectAll()
        {
            if (!TextBox.IsFocused)
            {
                TextBox.Focus();
            }
{'fraction_non_alphanumeric': 0.07259646827992151, 'fraction_numerical': 0.0, 'mean_word_length': 2.0468127490039842, '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': '5042222', 'n_tokens_mistral': 806, 'n_tokens_neox': 736, 'n_words': 179}