<commit_before>﻿using System;

namespace PlayerRank
{
    public class Position : IComparable
    {
        private readonly int m_Position;
        
        public Position(int position)
        {
            m_Position = position;
        }
        
        protected bool Equals(Position other)
        {
            return m_Position.Equals(other.m_Position);
        }

        public override bool Equals(object obj)
        {
            if (ReferenceEquals(null, obj)) return false;
            if (ReferenceEquals(this, obj)) return true;
            return obj.GetType() == GetType() && Equals((Position)obj);
        }

        public override int GetHashCode()
        {
            return m_Position.GetHashCode();
        }

        public int CompareTo(object obj)<commit_msg>Helper properties for positions 1 to 10<commit_after>﻿using System;

namespace PlayerRank
{
    public class Position : IComparable
    {
        // Helper properties for more fluent api
        public static Position First = new Position(1);
        public static Position Second = new Position(2);
        public static Position Third = new Position(3);
        public static Position Fourth = new Position(4);
        public static Position Fifth = new Position(5);
        public static Position Sixth = new Position(6);
        public static Position Seventh = new Position(7);
        public static Position Eighth = new Position(8);
        public static Position Ninth = new Position(9);
        public static Position Tenth = new Position(10);

        private readonly int m_Position;
        
        public Position(int position)
        {
            m_Position = position;
        }
        
        protected bool Equals(Position other)
        {
            return m_Position.Equals(other.m_Position);
        }

        public override bool Equals(object obj)
        {
            if (ReferenceEquals(null, obj)) return false;
            if (ReferenceEquals(this, obj)) return true;
            return obj.GetType() == GetType() && Equals((Position)obj);
        }

        public override int GetHashCode()
        {
            return m_Position.GetHashCode();
        }

        public int CompareTo(object obj)
{'fraction_non_alphanumeric': 0.0764388489208633, 'fraction_numerical': 0.006294964028776978, 'mean_word_length': 2.002699055330634, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3268996', 'n_tokens_mistral': 553, 'n_tokens_neox': 532, 'n_words': 175}