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

using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Textures;
using osu.Game.Graphics.UserInterface;

namespace osu.Game.Users
{
    public class Region : IHasDrawableRepresentation<DrawableFlag>
    {
        /// <summary>
        /// The name of this team.
        /// </summary>
        public string FullName;

        /// <summary>
        /// Short acronym which appears in the group boxes post-selection.
        /// </summary>
        public string Acronym;

        /// <summary>
        /// Two-letter flag acronym (ISO 3166 standard)
        /// </summary>
        public string FlagName;

        public DrawableFlag CreateDrawable()
        {
            return new DrawableFlag(FlagName);
        }
    }

    public class DrawableFlag : Container
    {
        private Sprite sprite;
        private TextureStore textures;

        private string flagName;
        public string FlagName
        {
            get { return flagName; }
            set
            {
                if (value == flagName) return;
                flagName = value;
                sprite.Texture = textures.Get($@"Flags/{flagName}");
            }
        }

        [BackgroundDependencyLoader]
        private void load(TextureStore ts)
        {
            textures = ts;
            sprite.Texture = textures.Get($@"Flags/{flagName}");
        }

        public DrawableFlag(string name)
        {
            flagName = name;

            Children = new Drawable[]
            {
                sprite = new Sprite
                {
                    RelativeSizeAxes = Axes.Both,
                },
            };<commit_msg>Give Region a default value for empty ctor.<commit_after>﻿// Copyright (c) 2007-2017 ppy Pty Ltd <<EMAIL>>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE

using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Textures;
using osu.Game.Graphics.UserInterface;

namespace osu.Game.Users
{
    public class Region : IHasDrawableRepresentation<DrawableFlag>
    {
        /// <summary>
        /// The name of this team.
        /// </summary>
        public string FullName;

        /// <summary>
        /// Short acronym which appears in the group boxes post-selection.
        /// </summary>
        public string Acronym;

        /// <summary>
        /// Two-letter flag acronym (ISO 3166 standard)
        /// </summary>
        public string FlagName;

        public DrawableFlag CreateDrawable()
        {
            return new DrawableFlag(FlagName);
        }
    }

    public class DrawableFlag : Container
    {
        private Sprite sprite;
        private TextureStore textures;

        private string flagName;
        public string FlagName
        {
            get { return flagName; }
            set
            {
                if (value == flagName) return;
                flagName = value;
                sprite.Texture = textures.Get($@"Flags/{flagName}");
            }
        }

        [BackgroundDependencyLoader]
        private void load(TextureStore ts)
        {
            textures = ts;
            sprite.Texture = textures.Get($@"Flags/{flagName}");
        }

        public DrawableFlag(string name = @"__")
        {
            flagName = name;

            Children = new Drawable[]
            {
                sprite = new Sprite
                {
                    RelativeSizeAxes = Axes.Both,
                },
            };
{'fraction_non_alphanumeric': 0.09730150492994291, 'fraction_numerical': 0.006227296315516347, 'mean_word_length': 1.6171079429735233, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '6404114', 'n_tokens_mistral': 1064, 'n_tokens_neox': 997, 'n_words': 253}