<commit_before>﻿// Copyright (c) 2007-2018 ppy Pty Ltd <<EMAIL>>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE

using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Input;
using osu.Game.Rulesets.Edit;
using osu.Game.Rulesets.Objects.Drawables;
using osu.Game.Rulesets.UI;

namespace osu.Game.Screens.Edit.Screens.Compose.Layers
{
    public class HitObjectMaskLayer : CompositeDrawable
    {
        private readonly Playfield playfield;
        private readonly HitObjectComposer composer;

        private MaskContainer maskContainer;
        private SelectionBox selectionBox;

        public HitObjectMaskLayer(Playfield playfield, HitObjectComposer composer)
        {
            this.playfield = playfield;
            this.composer = composer;

            RelativeSizeAxes = Axes.Both;
        }

        [BackgroundDependencyLoader]
        private void load()
        {
            maskContainer = new MaskContainer();

            selectionBox = composer.CreateSelectionBox(maskContainer);

            var dragBox = new DragLayer(maskContainer);
            dragBox.DragEnd += () => selectionBox.UpdateVisibility();

            InternalChildren = new Drawable[]
            {
                dragBox,
                maskContainer,
                selectionBox,
                dragBox.CreateProxy()
            };
<commit_msg>Rename dragBox to dragLayer<commit_after>﻿// Copyright (c) 2007-2018 ppy Pty Ltd <<EMAIL>>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE

using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Input;
using osu.Game.Rulesets.Edit;
using osu.Game.Rulesets.Objects.Drawables;
using osu.Game.Rulesets.UI;

namespace osu.Game.Screens.Edit.Screens.Compose.Layers
{
    public class HitObjectMaskLayer : CompositeDrawable
    {
        private readonly Playfield playfield;
        private readonly HitObjectComposer composer;

        private MaskContainer maskContainer;
        private SelectionBox selectionBox;

        public HitObjectMaskLayer(Playfield playfield, HitObjectComposer composer)
        {
            this.playfield = playfield;
            this.composer = composer;

            RelativeSizeAxes = Axes.Both;
        }

        [BackgroundDependencyLoader]
        private void load()
        {
            maskContainer = new MaskContainer();

            selectionBox = composer.CreateSelectionBox(maskContainer);

            var dragLayer = new DragLayer(maskContainer);
            dragLayer.DragEnd += () => selectionBox.UpdateVisibility();

            InternalChildren = new Drawable[]
            {
                dragLayer,
                maskContainer,
                selectionBox,
                dragLayer.CreateProxy()
            };

{'fraction_non_alphanumeric': 0.08187919463087248, 'fraction_numerical': 0.005369127516778523, 'mean_word_length': 2.434331797235023, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '829013', 'n_tokens_mistral': 811, 'n_tokens_neox': 766, 'n_words': 169}