<commit_before>﻿namespace Uri.Grammar
{
    using System.Diagnostics.Contracts;

    using Text.Scanning;

    public class Host : Element
    {
        public Host(IPLiteral ipLiteral, ITextContext context)
            : base(ipLiteral.Data, context)
        {
            Contract.Requires(ipLiteral != null);
            Contract.Requires(context != null);
        }

        public Host(IPv4Address ipv4Address, ITextContext context)
            : base(ipv4Address.Data, context)
        {
            Contract.Requires(ipv4Address != null);
            Contract.Requires(context != null);
        }

        public Host(RegisteredName registeredName, ITextContext context)
            : base(registeredName.Data, context)
        {
            Contract.Requires(registeredName != null);
            Contract.Requires(context != null);
        }
    }
}<commit_msg>Adding informational properties to 'Host'<commit_after>﻿namespace Uri.Grammar
{
    using System.Diagnostics;
    using System.Diagnostics.Contracts;

    using Text.Scanning;

    public class Host : Element
    {
        [DebuggerBrowsable(DebuggerBrowsableState.Never)]
        private readonly bool isIPv4;

        [DebuggerBrowsable(DebuggerBrowsableState.Never)]
        private readonly bool isIPv6;

        [DebuggerBrowsable(DebuggerBrowsableState.Never)]
        private readonly bool isRegisteredName;

        public Host(IPLiteral ipLiteral, ITextContext context)
            : base(ipLiteral.Data, context)
        {
            Contract.Requires(ipLiteral != null);
            Contract.Requires(context != null);
            this.isIPv6 = true;
        }

        public Host(IPv4Address ipv4Address, ITextContext context)
            : base(ipv4Address.Data, context)
        {
            Contract.Requires(ipv4Address != null);
            Contract.Requires(context != null);
            this.isIPv4 = true;
        }

        public Host(RegisteredName registeredName, ITextContext context)
            : base(registeredName.Data, context)
        {
            Contract.Requires(registeredName != null);
            Contract.Requires(context != null);
            this.isRegisteredName = true;
        }

        public bool IsIPv4
        {
            get
            {
                return this.isIPv4;
            }
        }

        public bool IsIPv6
        {
            get
            {
                return this.isIPv6;
            }
        }

        public bool IsRegisteredName
        {
            get
            {
                return this.isRegisteredName;
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.08093594169543536, 'fraction_numerical': 0.006137322593018795, 'mean_word_length': 1.7423764458464774, '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': '626577', 'n_tokens_mistral': 699, 'n_tokens_neox': 685, 'n_words': 131}