<commit_before>﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            var tests = new Tests();
            tests.Test1();
        }
    }

    public class Tests
    {
        [Fact]
        public void Test1()
        {
            Game game = new Game();
            game.OnTick();
            Assert.Equal(15, game.CurrentPiece.Location.X);
        }
    }

    enum Orientation
    {
        North,
        East,
        South,
        West
    }

    class Game
    {
        public Piece CurrentPiece;

        public Game()
        {
            this.CurrentPiece = new Piece.I();
            this.CurrentPiece.Location.X = 16;
            this.CurrentPiece.Location.Y = 5;
        }

        public void OnTick()
        {
            this.CurrentPiece.Location.X--;
        }
    }

    /// <summary>
    /// A 2d shape composed of 4 blocks
    /// </summary>
    class Piece
    {
        protected Piece() { }

        public Orientation Orientation = Orientation.North;
        public Location Location;

        public class I : Piece
        {
        }
    }
}<commit_msg>REFACTOR: Piece.DropOneStep<commit_after>﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            var tests = new Tests();
            tests.Test1();
        }
    }

    public class Tests
    {
        [Fact]
        public void Test1()
        {
            Game game = new Game();
            game.OnTick();
            Assert.Equal(15, game.CurrentPiece.Location.X);
        }
    }

    enum Orientation
    {
        North,
        East,
        South,
        West
    }

    class Game
    {
        public Piece CurrentPiece;

        public Game()
        {
            this.CurrentPiece = new Piece.I();
            this.CurrentPiece.Location.X = 16;
            this.CurrentPiece.Location.Y = 5;
        }

        public void OnTick()
        {
            this.CurrentPiece.DropOneStep();
        }
    }

    /// <summary>
    /// A 2d shape composed of 4 blocks
    /// </summary>
    class Piece
    {
        protected Piece() { }

        public Orientation Orientation = Orientation.North;
        public Location Location;

        public class I : Piece
        {
        }

        internal void DropOneStep()
        {
            this.Location.X--;
        }
    }
}
{'fraction_non_alphanumeric': 0.09569377990430622, 'fraction_numerical': 0.00736105999263894, 'mean_word_length': 1.411712511091393, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3170277', 'n_tokens_mistral': 795, 'n_tokens_neox': 760, 'n_words': 183}