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

namespace TestLib.NullableCodeCoverage
{
    using MyNumericType = System.Nullable<IntStruct>;

    public struct IntStruct
    {
        public IntStruct(int value)
        {
            Value = value;
        }

        public readonly int Value;

        public static bool operator <(IntStruct v1, IntStruct v2)
        {
            return v1.Value < v2.Value;
        }

        public static bool operator >(IntStruct v1, IntStruct v2)
        {
            return v1.Value > v2.Value;
        }
    }

    public class SomeUtilClass1
    {
        public static string IsTooLate(DateTime? value)
        {
            if (value < DateTime.Now)
            {
                return "No!";
            }

            return "Yes :-(";
        }

        public static string IsSingleDigit(int? value)
        {
            if (value < 10)
            {
                return "Yes!";
            }

            return "No!";
        }

        static readonly IntStruct SingleDigitLimit = new IntStruct(10);

        public static string IsSingleDigit(MyNumericType value)
        {
            if (value < SingleDigitLimit)
            {
                return "Yes!";
            }

            return "No!";
        }

        public class IntClass
        {
            public IntClass(int value)
            {
                Value = value;
            }

            public readonly int Value;

            public static bool operator <(IntClass v1, IntClass v2)
            {
                return v1.Value < v2.Value;
            }

            public static bool operator >(IntClass v1, IntClass v2)
            {
                return v1.Value > v2.Value;
            }
        }

        public static string IsSingleDigit(IntClass value)
        {
            if (value < new IntClass(10))
            {
                return "Yes!";
            }

            return "No!";
        }
    }

    public class SomeUtilClass2
    {
        public static string IsTooLate(DateTime? value)
        {
            if (value.Value < DateTime.Now)
            {
                return "No!";
            }

            return "Yes :-(";
        }

        public struct IntStruct
        {
            public IntStruct(int value)
            {
                Value = value;
            }

            public readonly int Value;

            public static bool operator <(IntStruct v1, IntStruct v2)
            {
                return v1.Value < v2.Value;
            }

            public static bool operator >(IntStruct v1, IntStruct v2)
            {
                return v1.Value > v2.Value;
            }
        }

        public static string IsSingleDigit(IntStruct? value)
        {
            if (value.Value < new IntStruct(10))
            {
                return "Yes!";
            }

            return "No!";
        }
    }
}
<commit_msg>Simplified code, to make it easier to explain.<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TestLib.NullableCodeCoverage
{
    public struct IntStruct
    {
        public IntStruct(int value)
        {
            Value = value;
        }

        public readonly int Value;

        public static bool operator <(IntStruct v1, IntStruct v2)
        {
            return v1.Value < v2.Value;
        }

        public static bool operator >(IntStruct v1, IntStruct v2)
        {
            return v1.Value > v2.Value;
        }
    }

    public class SomeUtilClass1
    {
        public static string IsTooLate(DateTime? value)
        {
            if (value < DateTime.Now)
            {
                return "No!";
            }

            return "Yes :-(";
        }

        public static string IsSingleDigit(int? value)
        {
            if (value < 10)
            {
                return "Yes!";
            }

            return "No!";
        }

        public static string IsSingleDigit(IntStruct? value)
        {
            if (value < new IntStruct(10))
            {
                return "Yes!";
            }

            return "No!";
        }

        public class IntClass
        {
            public IntClass(int value)
            {
                Value = value;
            }

            public readonly int Value;

            public static bool operator <(IntClass v1, IntClass v2)
            {
                return v1.Value < v2.Value;
            }

            public static bool operator >(IntClass v1, IntClass v2)
            {
                return v1.Value > v2.Value;
            }
        }

        public static string IsSingleDigit(IntClass value)
        {
            if (value < new IntClass(10))
            {
                return "Yes!";
            }

            return "No!";
        }
    }

    public class SomeUtilClass2
    {
        public static string IsTooLate(DateTime? value)
        {
            if (value.Value < DateTime.Now)
            {
                return "No!";
            }

            return "Yes :-(";
        }

        public struct IntStruct
        {
            public IntStruct(int value)
            {
                Value = value;
            }

            public readonly int Value;

            public static bool operator <(IntStruct v1, IntStruct v2)
            {
                return v1.Value < v2.Value;
            }

            public static bool operator >(IntStruct v1, IntStruct v2)
            {
                return v1.Value > v2.Value;
            }
        }

        public static string IsSingleDigit(IntStruct? value)
        {
            if (value.Value < new IntStruct(10))
            {
                return "Yes!";
            }

            return "No!";
        }
    }
}

{'fraction_non_alphanumeric': 0.07906741003547897, 'fraction_numerical': 0.011488427099172157, 'mean_word_length': 1.1203438395415473, 'pattern_counts': {'":': 0, '<': 28, '<?xml version=': 0, '>': 16, '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': '5002611', 'n_tokens_mistral': 1605, 'n_tokens_neox': 1516, 'n_words': 405}