<commit_before>﻿namespace AngleSharp.Css.ValueConverters
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using AngleSharp.Dom.Css;
    using AngleSharp.Extensions;
    using AngleSharp.Parser.Css;

    sealed class PeriodicValueConverter : IValueConverter
    {
        readonly IValueConverter _converter;
        readonly String[] _labels;

        public PeriodicValueConverter(IValueConverter converter, String[] labels)
        {
            _converter = converter;
            _labels = labels.Length == 4 ? labels : Enumerable.Repeat(String.Empty, 4).ToArray();
        }

        public IPropertyValue Convert(IEnumerable<CssToken> value)
        {
            var list = new List<CssToken>(value);
            var options = new IPropertyValue[4];

            for (int i = 0; i < options.Length && list.Count != 0; i++)
            {<commit_msg>Empty list is invalid<commit_after>﻿namespace AngleSharp.Css.ValueConverters
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using AngleSharp.Dom.Css;
    using AngleSharp.Extensions;
    using AngleSharp.Parser.Css;

    sealed class PeriodicValueConverter : IValueConverter
    {
        readonly IValueConverter _converter;
        readonly String[] _labels;

        public PeriodicValueConverter(IValueConverter converter, String[] labels)
        {
            _converter = converter;
            _labels = labels.Length == 4 ? labels : Enumerable.Repeat(String.Empty, 4).ToArray();
        }

        public IPropertyValue Convert(IEnumerable<CssToken> value)
        {
            var list = new List<CssToken>(value);
            var options = new IPropertyValue[4];

            if (list.Count == 0)
                return null;

            for (int i = 0; i < options.Length && list.Count != 0; i++)
            {
{'fraction_non_alphanumeric': 0.09066378845116028, 'fraction_numerical': 0.0059363194819212085, 'mean_word_length': 2.370909090909091, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '3223681', 'n_tokens_mistral': 534, 'n_tokens_neox': 504, 'n_words': 124}