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


using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Cursor;
using osu.Framework.Graphics.Drawables;
using osu.Framework.Graphics.Sprites;
using OpenTK;
using OpenTK.Graphics;

namespace osu.Framework.VisualTests
{
    class VisualTestGame : Game
    {
        public override void Load()
        {
            base.Load();
            Host.Size = new Vector2(1366, 768);

            SampleGame test = new SampleGame();

            DrawVisualiser drawVis;

            Add(test);
            Add(drawVis = new DrawVisualiser(test));

            Add(new CursorContainer());
        }

        class SampleGame : LargeContainer
        {
            SpriteText text;
            int num = 0;

            public override void Load()
            {
                base.Load();

                Box box;

                Add(box = new Box()
                {
                    Anchor = Anchor.Centre,
                    Origin = Anchor.Centre,
                    Size = new Vector2(150, 150),
                    Colour = Color4.Tomato
                });

                Add(text = new SpriteText());

                box.RotateTo(360 * 10, 60000);
            }

            protected override void Update()
            {
                text.Text = (num++).ToString();
                base.Update();
            }
        }
    }
}<commit_msg>Add frame counter to give DrawVis a bit more activity.<commit_after>﻿//Copyright (c) 2007-2016 ppy Pty Ltd <<EMAIL>>.
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE


using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Cursor;
using osu.Framework.Graphics.Drawables;
using osu.Framework.Graphics.Sprites;
using OpenTK;
using OpenTK.Graphics;

namespace osu.Framework.VisualTests
{
    class VisualTestGame : Game
    {
        public override void Load()
        {
            base.Load();
            Host.Size = new Vector2(1366, 768);

            SampleGame test = new SampleGame();

            DrawVisualiser drawVis;

            Add(test);
            Add(drawVis = new DrawVisualiser(test));

            Add(new CursorContainer());
        }

        class SampleGame : LargeContainer
        {
            SpriteText text;
            int num = 0;

            public override void Load()
            {
                base.Load();

                Box box;

                Add(box = new Box()
                {
                    Anchor = Anchor.Centre,
                    Origin = Anchor.Centre,
                    Size = new Vector2(150, 150),
                    Colour = Color4.Tomato
                });

                Add(text = new SpriteText()
                {
                    Anchor = Anchor.Centre,
                    Origin = Anchor.Centre,
                });

                box.RotateTo(360 * 10, 60000);
            }

            protected override void Update()
            {
                base.Update();
                text.Text = $@"frame count: {num++}";
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.0971843778383288, 'fraction_numerical': 0.02119285498032092, 'mean_word_length': 1.3942028985507247, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6071162', 'n_tokens_mistral': 965, 'n_tokens_neox': 845, 'n_words': 203}