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

using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Containers.Markdown;
using osuTK;

namespace osu.Game.Graphics.Containers.Markdown
{
    public class OsuMarkdownListItem : CompositeDrawable
    {
        private readonly int level;
        private const float default_left_padding = 20;

        [Resolved]
        private IMarkdownTextComponent parentTextComponent { get; set; }

        public FillFlowContainer Content { get; }

        public OsuMarkdownListItem(int level)
        {
            this.level = level;

            AutoSizeAxes = Axes.Y;
            RelativeSizeAxes = Axes.X;
            Padding = new MarginPadding { Left = default_left_padding };

            InternalChildren = new Drawable[]
            {
                Content = new FillFlowContainer
                {
                    AutoSizeAxes = Axes.Y,
                    RelativeSizeAxes = Axes.X,
                    Direction = FillDirection.Vertical,
                    Spacing = new Vector2(10, 10),
                }
            };
        }

        [BackgroundDependencyLoader]
        private void load()
        {
            var marker = parentTextComponent.CreateSpriteText();
            marker.Text = "●";
            marker.Font = OsuFont.GetFont(size: marker.Font.Size / 2);
            marker.Origin = Anchor.Centre;
            marker.X = -default_left_padding / 2;
            marker.Y = marker.Font.Size;

            AddInternal(marker);
        }
    }
}<commit_msg>create list marker based on its level<commit_after>// Copyright (c) <NAME> <<EMAIL>>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.

using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Containers.Markdown;
using osuTK;

namespace osu.Game.Graphics.Containers.Markdown
{
    public class OsuMarkdownListItem : CompositeDrawable
    {
        private readonly int level;
        private const float default_left_padding = 20;

        [Resolved]
        private IMarkdownTextComponent parentTextComponent { get; set; }

        public FillFlowContainer Content { get; }

        public OsuMarkdownListItem(int level)
        {
            this.level = level;

            AutoSizeAxes = Axes.Y;
            RelativeSizeAxes = Axes.X;
            Padding = new MarginPadding { Left = default_left_padding };

            InternalChildren = new Drawable[]
            {
                Content = new FillFlowContainer
                {
                    AutoSizeAxes = Axes.Y,
                    RelativeSizeAxes = Axes.X,
                    Direction = FillDirection.Vertical,
                    Spacing = new Vector2(10, 10),
                }
            };
        }

        [BackgroundDependencyLoader]
        private void load()
        {
            var marker = parentTextComponent.CreateSpriteText();
            marker.Text = createTextMarker();
            marker.Font = OsuFont.GetFont(size: marker.Font.Size / 2);
            marker.Origin = Anchor.Centre;
            marker.X = -default_left_padding / 2;
            marker.Y = marker.Font.Size;

            AddInternal(marker);
        }

        private string createTextMarker()
        {
            switch (level)
            {
                case 1:
                    return "●";

                case 2:
                    return "○";

                default:
                    return "■";
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.08046895816679989, 'fraction_numerical': 0.005329070077271516, 'mean_word_length': 1.6737891737891737, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1085965', 'n_tokens_mistral': 1028, 'n_tokens_neox': 958, 'n_words': 238}