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

namespace VasysRomanNumeralsKata
{
    public class RomanNumeral
    {
        private int? _baseTenRepresentation = null;
        private int remainder = 0;
        private StringBuilder romanNumeralResult = new StringBuilder();

        public RomanNumeral(int baseTenNumber)
        {
            _baseTenRepresentation = baseTenNumber;
            if (_baseTenRepresentation < 1 || _baseTenRepresentation >= 4000)
                throw new ArgumentOutOfRangeException("Value cannot be represented with the given set of roman numeral values");
            remainder = (int)_baseTenRepresentation;
        }

        public string GenerateRomanNumeralRepresentation()
        {
            //if (_baseTenRepresentation < 1 || _baseTenRepresentation >= 4000)
            //    throw new ArgumentOutOfRangeException("Value cannot be represented with the given set of roman numeral values");

            // 400 to 3000
            CalculateNumeralsForGivenRepeatableNumeral(1000);

            // 40 to 300
            CalculateNumeralsForGivenRepeatableNumeral(100);

            // 4 to 30
            CalculateNumeralsForGivenRepeatableNumeral(10);<commit_msg>Improved the accuracy of some comments.<commit_after>﻿using System;
using System.Collections.Generic;
using System.Text;

namespace VasysRomanNumeralsKata
{
    public class RomanNumeral
    {
        private int? _baseTenRepresentation = null;
        private int remainder = 0;
        private StringBuilder romanNumeralResult = new StringBuilder();

        public RomanNumeral(int baseTenNumber)
        {
            _baseTenRepresentation = baseTenNumber;
            if (_baseTenRepresentation < 1 || _baseTenRepresentation >= 4000)
                throw new ArgumentOutOfRangeException("Value cannot be represented with the given set of roman numeral values");
            remainder = (int)_baseTenRepresentation;
        }

        public string GenerateRomanNumeralRepresentation()
        {
            // 4xx to 3xxx
            CalculateNumeralsForGivenRepeatableNumeral(1000);

            // 4x to 3xx
            CalculateNumeralsForGivenRepeatableNumeral(100);

            // 4 to 3x
            CalculateNumeralsForGivenRepeatableNumeral(10);
{'fraction_non_alphanumeric': 0.06022530329289428, 'fraction_numerical': 0.024263431542461005, 'mean_word_length': 2.5965732087227416, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '1442430', 'n_tokens_mistral': 644, 'n_tokens_neox': 552, 'n_words': 156}