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

using Markdig.Syntax;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers.Markdown;
using osu.Game.Overlays;

namespace osu.Game.Graphics.Containers.Markdown
{
    public class OsuMarkdownQuoteBlock : MarkdownQuoteBlock
    {
        private Drawable background;

        public OsuMarkdownQuoteBlock(QuoteBlock quoteBlock)
            : base(quoteBlock)
        {
        }

        [BackgroundDependencyLoader]
        private void load(OverlayColourProvider colourProvider)
        {
            background.Colour = colourProvider.Content2;
        }

        protected override Drawable CreateBackground()
        {
            background = base.CreateBackground();
            background.Width = 2;
            return background;
        }

        public override MarkdownTextFlowContainer CreateTextFlow()
        {
            var textFlow = base.CreateTextFlow();
            textFlow.Margin = new MarginPadding
            {
                Vertical = 10,
                Horizontal = 20,
            };
            return textFlow;
        }
    }
}<commit_msg>simplify `CreateTextFlow` in quote block<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 Markdig.Syntax;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers.Markdown;
using osu.Game.Overlays;

namespace osu.Game.Graphics.Containers.Markdown
{
    public class OsuMarkdownQuoteBlock : MarkdownQuoteBlock
    {
        private Drawable background;

        public OsuMarkdownQuoteBlock(QuoteBlock quoteBlock)
            : base(quoteBlock)
        {
        }

        [BackgroundDependencyLoader]
        private void load(OverlayColourProvider colourProvider)
        {
            background.Colour = colourProvider.Content2;
        }

        protected override Drawable CreateBackground()
        {
            background = base.CreateBackground();
            background.Width = 2;
            return background;
        }

        public override MarkdownTextFlowContainer CreateTextFlow()
        {
            return base.CreateTextFlow().With(f => f.Margin = new MarginPadding
            {
                Vertical = 10,
                Horizontal = 20,
            });
        }
    }
}
{'fraction_non_alphanumeric': 0.07471490365709792, 'fraction_numerical': 0.0047188360204482895, 'mean_word_length': 2.1681195516811953, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 10, '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': '3314395', 'n_tokens_mistral': 676, 'n_tokens_neox': 641, 'n_words': 159}