<commit_before>﻿namespace Bender.Reflection
{
    public interface IOptional
    {
        bool HasValue { get; }
    }

    public struct Optional<T> : IOptional
    {<commit_msg>Added a generic interface to the optional type.<commit_after>﻿namespace Bender.Reflection
{
    public interface IOptional
    {
        bool HasValue { get; }
    }

    public interface IOptional<T> : IOptional
    {
        T Value { get; set; }
    }

    public struct Optional<T> : IOptional<T>
    {
{'fraction_non_alphanumeric': 0.08641975308641975, 'fraction_numerical': 0.0, 'mean_word_length': 2.5035971223021583, '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': '6794759', 'n_tokens_mistral': 144, 'n_tokens_neox': 140, 'n_words': 39}