<commit_before>﻿namespace AngleSharp.DOM.Css
{
    using AngleSharp.Css;
    using System;
    using System.Collections.Generic;

    /// <summary>
    /// More information available:
    /// https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration
    /// </summary>
    sealed class CSSTextDecorationProperty : CSSShorthandProperty, ICssTextDecorationProperty
    {
        #region Fields

        internal static readonly IValueConverter<Tuple<Color, TextDecorationStyle, TextDecorationLine[]>> Converter = WithOptions(
                CSSTextDecorationColorProperty.Converter,
                CSSTextDecorationStyleProperty.Converter, 
                CSSTextDecorationLineProperty.SingleConverter,
            Tuple.Create(
                CSSTextDecorationColorProperty.Default,
                CSSTextDecorationStyleProperty.Default,
                CSSTextDecorationLineProperty.Default));

        readonly CSSTextDecorationColorProperty _color;
        readonly CSSTextDecorationLineProperty _line;
        readonly CSSTextDecorationStyleProperty _style;

        #endregion

        #region ctor

        internal CSSTextDecorationProperty(CSSStyleDeclaration rule)<commit_msg>Simplified<commit_after>﻿namespace AngleSharp.DOM.Css
{
    using AngleSharp.Css;
    using AngleSharp.Extensions;
    using System;
    using System.Collections.Generic;

    /// <summary>
    /// More information available:
    /// https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration
    /// </summary>
    sealed class CSSTextDecorationProperty : CSSShorthandProperty, ICssTextDecorationProperty
    {
        #region Fields

        internal static readonly IValueConverter<Tuple<Color, TextDecorationStyle, TextDecorationLine[]>> Converter = CSSTextDecorationLineProperty.Converter.
            Optional(CSSTextDecorationColorProperty.Converter, CSSTextDecorationColorProperty.Default).
            Optional(CSSTextDecorationStyleProperty.Converter, CSSTextDecorationStyleProperty.Default).
            To(m => Tuple.Create(m.Item1.Item2, m.Item2, m.Item1.Item1));

        readonly CSSTextDecorationColorProperty _color;
        readonly CSSTextDecorationLineProperty _line;
        readonly CSSTextDecorationStyleProperty _style;

        #endregion

        #region ctor

        internal CSSTextDecorationProperty(CSSStyleDeclaration rule)
{'fraction_non_alphanumeric': 0.07382265591854052, 'fraction_numerical': 0.0021213406873143827, 'mean_word_length': 3.195729537366548, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 12, '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': '4440487', 'n_tokens_mistral': 637, 'n_tokens_neox': 606, 'n_words': 104}