<commit_before>﻿// Copyright (c) ppy Pty Ltd <<EMAIL>>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.

using System;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Input.Events;
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
using osu.Game.Graphics.UserInterface;
using osuTK;

namespace osu.Game.Overlays.Comments.Buttons
{
    public abstract class CommentRepliesButton : CompositeDrawable
    {
        public Action Action { get; set; }

        protected string Text
        {
            get => text.Text;
            set => text.Text = value;
        }

        [Resolved]
        private OverlayColourProvider colourProvider { get; set; }

        private readonly SpriteIcon icon;
        private readonly Box background;
        private readonly OsuSpriteText text;

        public CommentRepliesButton()
        {
            AutoSizeAxes = Axes.Both;
            Margin = new MarginPadding
            {
                Vertical = 2
            };
            InternalChildren = new Drawable[]
            {
                new CircularContainer
                {
                    AutoSizeAxes = Axes.Both,
                    Masking = true,
                    Children = new Drawable[]<commit_msg>Make ctor protected<commit_after>﻿// Copyright (c) p<NAME> Ltd <<EMAIL>>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.

using System;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Input.Events;
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
using osu.Game.Graphics.UserInterface;
using osuTK;

namespace osu.Game.Overlays.Comments.Buttons
{
    public abstract class CommentRepliesButton : CompositeDrawable
    {
        public Action Action { get; set; }

        protected string Text
        {
            get => text.Text;
            set => text.Text = value;
        }

        [Resolved]
        private OverlayColourProvider colourProvider { get; set; }

        private readonly SpriteIcon icon;
        private readonly Box background;
        private readonly OsuSpriteText text;

        protected CommentRepliesButton()
        {
            AutoSizeAxes = Axes.Both;
            Margin = new MarginPadding
            {
                Vertical = 2
            };
            InternalChildren = new Drawable[]
            {
                new CircularContainer
                {
                    AutoSizeAxes = Axes.Both,
                    Masking = true,
                    Children = new Drawable[]
{'fraction_non_alphanumeric': 0.0751304347826087, 'fraction_numerical': 0.0006956521739130435, 'mean_word_length': 2.0273684210526315, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 12, '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': '6343386', 'n_tokens_mistral': 786, 'n_tokens_neox': 753, 'n_words': 210}