<commit_before>﻿using System;
using Umbraco.Core.Models;
using Umbraco.Core.Models.PublishedContent;

namespace Umbraco.Core
{
    /// <summary>
    /// Provides extension methods for content variations.
    /// </summary>
    public static class ContentVariationExtensions
    {
        /// <summary>
        /// Determines whether the content type is invariant.
        /// </summary>
        /// <param name="contentType">The content type.</param>
        /// <returns>
        /// A value indicating whether the content type is invariant.
        /// </returns>
        public static bool VariesByNothing(this ISimpleContentType contentType) => contentType.Variations.VariesByNothing();

        /// <summary>
        /// Determines whether the content type is invariant.
        /// </summary>
        /// <param name="contentType">The content type.</param>
        /// <returns>
        /// A value indicating whether the content type is invariant.
        /// </returns>
        public static bool VariesByNothing(this IContentTypeBase contentType) => contentType.Variations.VariesByNothing();

        /// <summary>
        /// Determines whether the content type varies by segment.
        /// </summary>
        public static bool VariesBySegment(this ISimpleContentType contentType) => contentType.Variations.VariesBySegment();

        /// <summary>
        /// Determines whether the content type is invariant.
        /// </summary>
        /// <param name="contentType">The content type.</param>
        /// <returns>
        /// A value indicating whether the content type is invariant.
        /// </returns>
        public static bool VariesByNothing(this IPublishedContentType contentType) => contentType.Variations.VariesByNothing();

        /// <summary>
        /// Determines whether the property type is invariant.
        /// </summary>
        /// <param name="propertyType">The property type.</param>
        /// <returns>
        /// A value indicating whether the property type is invariant.
        /// </returns>
        public static bool VariesByNothing(this PropertyType propertyType) => propertyType.Variations.VariesByNothing();

        /// <summary>
        /// Determines whether the property type is invariant.
        /// </summary>
        /// <param name="propertyType">The property type.</param>
        /// <returns>
        /// A value indicating whether the property type is invariant.
        /// </returns>
        public static bool VariesByNothing(this IPublishedPropertyType propertyType) => propertyType.Variations.VariesByNothing();

        /// <summary>
        /// Determines whether a variation is invariant.<commit_msg>Remove duplicate VariesBySegment overload after merge<commit_after>﻿using System;
using Umbraco.Core.Models;
using Umbraco.Core.Models.PublishedContent;

namespace Umbraco.Core
{
    /// <summary>
    /// Provides extension methods for content variations.
    /// </summary>
    public static class ContentVariationExtensions
    {
        /// <summary>
        /// Determines whether the content type is invariant.
        /// </summary>
        /// <param name="contentType">The content type.</param>
        /// <returns>
        /// A value indicating whether the content type is invariant.
        /// </returns>
        public static bool VariesByNothing(this ISimpleContentType contentType) => contentType.Variations.VariesByNothing();

        /// <summary>
        /// Determines whether the content type is invariant.
        /// </summary>
        /// <param name="contentType">The content type.</param>
        /// <returns>
        /// A value indicating whether the content type is invariant.
        /// </returns>
        public static bool VariesByNothing(this IContentTypeBase contentType) => contentType.Variations.VariesByNothing();

        /// <summary>
        /// Determines whether the content type is invariant.
        /// </summary>
        /// <param name="contentType">The content type.</param>
        /// <returns>
        /// A value indicating whether the content type is invariant.
        /// </returns>
        public static bool VariesByNothing(this IPublishedContentType contentType) => contentType.Variations.VariesByNothing();

        /// <summary>
        /// Determines whether the property type is invariant.
        /// </summary>
        /// <param name="propertyType">The property type.</param>
        /// <returns>
        /// A value indicating whether the property type is invariant.
        /// </returns>
        public static bool VariesByNothing(this PropertyType propertyType) => propertyType.Variations.VariesByNothing();

        /// <summary>
        /// Determines whether the property type is invariant.
        /// </summary>
        /// <param name="propertyType">The property type.</param>
        /// <returns>
        /// A value indicating whether the property type is invariant.
        /// </returns>
        public static bool VariesByNothing(this IPublishedPropertyType propertyType) => propertyType.Variations.VariesByNothing();

        /// <summary>
        /// Determines whether a variation is invariant.
{'fraction_non_alphanumeric': 0.1186046511627907, 'fraction_numerical': 0.0, 'mean_word_length': 2.2438717787554996, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 82, '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': '7241101', 'n_tokens_mistral': 1237, 'n_tokens_neox': 1202, 'n_words': 385}