<commit_before>﻿using System;
using System.Diagnostics.CodeAnalysis;
using Newtonsoft.Json;
using NullGuard;

namespace JsonLD.Entities
{
    /// <summary>
    /// Represents a Uri reference, which will force an expanded form
    /// when JSON-LD is serialized
    /// </summary>
    [SuppressMessage("StyleCop.CSharp.DocumentationRules", "*", Justification = "Ignore equality memebers")]
    public struct IriRef
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="IriRef"/> struct.
        /// </summary>
        /// <param name="uri">The URI.</param>
        public IriRef(string uri) : this(new Uri(uri, UriKind.RelativeOrAbsolute))
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="IriRef"/> struct.
        /// </summary>
        /// <param name="uri">The identifier.</param>
        public IriRef(Uri uri)
        {
            Value = uri;
        }

        /// <summary>
        /// Gets the URI.
        /// </summary>
        [JsonProperty(JsonLdKeywords.Id)]
        public Uri Value { [return: AllowNull] get; }

        public static bool operator ==(IriRef left, IriRef right)
        {
            return left.Equals(right);
        }

        public static bool operator !=(IriRef left, IriRef right)
        {
            return !left.Equals(right);
        }

        public bool Equals(IriRef other)
        {
            return Equals(Value, other.Value);
        }

        public override bool Equals(object obj)
        {
            if (ReferenceEquals(null, obj))
            {
                return false;
            }

            return obj is IriRef && Equals((IriRef)obj);
        }

        public override int GetHashCode()
        {
            return Value != null ? Value.GetHashCode() : 0;
        }
    }
}<commit_msg>unnecessary equality overloads<commit_after>﻿using System;
using System.Diagnostics.CodeAnalysis;
using Newtonsoft.Json;
using NullGuard;

namespace JsonLD.Entities
{
    /// <summary>
    /// Represents a Uri reference, which will force an expanded form
    /// when JSON-LD is serialized
    /// </summary>
    [SuppressMessage("StyleCop.CSharp.DocumentationRules", "*", Justification = "Ignore equality memebers")]
    public struct IriRef
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="IriRef"/> struct.
        /// </summary>
        /// <param name="uri">The URI.</param>
        public IriRef(string uri) : this(new Uri(uri, UriKind.RelativeOrAbsolute))
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="IriRef"/> struct.
        /// </summary>
        /// <param name="uri">The identifier.</param>
        public IriRef(Uri uri)
        {
            Value = uri;
        }

        /// <summary>
        /// Gets the URI.
        /// </summary>
        [JsonProperty(JsonLdKeywords.Id)]
        public Uri Value { [return: AllowNull] get; }

        public static bool operator ==(IriRef left, IriRef right)
        {
            return left.Equals(right);
        }

        public static bool operator !=(IriRef left, IriRef right)
        {
            return !left.Equals(right);
        }
    }
}
{'fraction_non_alphanumeric': 0.12530864197530864, 'fraction_numerical': 0.00030864197530864197, 'mean_word_length': 1.77008547008547, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '7531867', 'n_tokens_mistral': 909, 'n_tokens_neox': 889, 'n_words': 243}