<commit_before>﻿// Color conversion portions of this source file are adapted from the WinUI project. 
// (https://github.com/microsoft/microsoft-ui-xaml) 
// 
// Licensed to The Avalonia Project under MIT License, courtesy of The .NET Foundation.

using System;
using Avalonia.Utilities;

namespace Avalonia.Media
{
    /// <summary>
    /// Defines a color using the hue/saturation/value (HSV) model.
    /// </summary>
    public struct HsvColor : IEquatable<HsvColor>
    {
        /// <summary>
        /// Represents a null <see cref="HsvColor"/> with zero set for all channels.
        /// </summary>
        public static readonly HsvColor Empty = new HsvColor();

        ////////////////////////////////////////////////////////////////////////
        // Constructors
        ////////////////////////////////////////////////////////////////////////

        /// <summary>
        /// Initializes a new instance of the <see cref="HsvColor"/> struct.
        /// </summary>
        /// <param name="hue">The Hue channel value in the range from 0..360.</param>
        /// <param name="saturation">The Saturation channel value in the range from 0..1.</param>
        /// <param name="value">The Value channel value in the range from 0..1.</param>
        public HsvColor(
            double hue,
            double saturation,<commit_msg>Readonly struct<commit_after>﻿// Color conversion portions of this source file are adapted from the WinUI project. 
// (https://github.com/microsoft/microsoft-ui-xaml) 
// 
// Licensed to The Avalonia Project under MIT License, courtesy of The .NET Foundation.

using System;
using Avalonia.Utilities;

namespace Avalonia.Media
{
    /// <summary>
    /// Defines a color using the hue/saturation/value (HSV) model.
    /// </summary>
    public readonly struct HsvColor : IEquatable<HsvColor>
    {
        /// <summary>
        /// Represents a null <see cref="HsvColor"/> with zero set for all channels.
        /// </summary>
        public static readonly HsvColor Empty = new HsvColor();

        ////////////////////////////////////////////////////////////////////////
        // Constructors
        ////////////////////////////////////////////////////////////////////////

        /// <summary>
        /// Initializes a new instance of the <see cref="HsvColor"/> struct.
        /// </summary>
        /// <param name="hue">The Hue channel value in the range from 0..360.</param>
        /// <param name="saturation">The Saturation channel value in the range from 0..1.</param>
        /// <param name="value">The Value channel value in the range from 0..1.</param>
        public HsvColor(
            double hue,
            double saturation,
{'fraction_non_alphanumeric': 0.21563542052612078, 'fraction_numerical': 0.005928121526491293, 'mean_word_length': 1.5689819219790675, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, 'https://': 2, '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': '3090665', 'n_tokens_mistral': 680, 'n_tokens_neox': 655, 'n_words': 233}