<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GCWZeroManager
{
    public class SizeElement : IComparable
    {
        private long bytes = 0;

        public long Bytes
        {
            get { return bytes; }
            set { bytes = value; }
        }

        public SizeElement(long bytes)
        {
            this.bytes = bytes;
        }

        public override string ToString()
        {
            if (bytes == -1)
                return "";

            long size = bytes;
            if (size < 1024)
                return "" + size + " B";

            size /= 1024;
            if (size < 1024)
                return "" + size + " KB";

            size /= 1024;
            return "" + size + " MB";
        }

        public override bool Equals(object obj)
        {
            if (obj == null)
                return false;

            SizeElement s = obj as SizeElement;
            if ((System.Object)s == null)
                return false;

            return (this.Bytes == s.Bytes);
        }

        public override int GetHashCode()
        {
            return (int)bytes;
        }

        public int CompareTo(object other)
        {
            SizeElement o = (SizeElement)other;
            if (this.Bytes > o.Bytes)
                return 1;

            if (this.Bytes == o.Bytes)
                return 0;

            return -1;
        }
    }
}<commit_msg>Minor style fixes to SizeElement<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GCWZeroManager
{
    public class SizeElement : IComparable
    {
        public long Bytes { get; private set; }

        public SizeElement(long bytes)
        {
            this.Bytes = bytes;
        }

        public override string ToString()
        {
            if (Bytes == -1)
                return "";

            long size = Bytes;
            if (size < 1024)
                return "" + size + " B";

            size /= 1024;
            if (size < 1024)
                return "" + size + " KB";

            size /= 1024;
            return "" + size + " MB";
        }

        public override bool Equals(object obj)
        {
            if (obj == null)
                return false;

            SizeElement s = obj as SizeElement;
            if ((object)s == null)
                return false;

            return (this.Bytes == s.Bytes);
        }

        public override int GetHashCode()
        {
            return (int)Bytes;
        }

        public int CompareTo(object other)
        {
            SizeElement o = (SizeElement)other;
            if (Bytes > o.Bytes)
                return 1;

            if (Bytes == o.Bytes)
                return 0;

            return -1;
        }
    }
}
{'fraction_non_alphanumeric': 0.09320252277505256, 'fraction_numerical': 0.014365802382620883, 'mean_word_length': 1.1530920060331824, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '3075684', 'n_tokens_mistral': 807, 'n_tokens_neox': 726, 'n_words': 217}