<commit_before>﻿
using System;
using System.Linq;
namespace Challenge1
{
    public static class Generator
    {
        private static readonly Random rnd = new Random();

        public static Token[] GenerateTokens(int maxCount = 100)
        {
            return Enumerable.Range(1, rnd.Next(maxCount))
                .Select(i => new Token((char)('a' + rnd.Next(0, 25)), RandomBox()))
                .ToArray();
        }

        public static Word[] GenerateWords(int maxCount = 100)
        {
            return Enumerable.Range(1, rnd.Next(maxCount))
                .Select(i => new Word(Generator.GenerateTokens(10)))
                .ToArray();
        }

        private static Box RandomBox()
        {
            return new Box(rnd.Next(0, 100), rnd.Next(0, 100), rnd.Next(0, 100), rnd.Next(0, 100));
        }
    }
}<commit_msg>ensure generator always generates somethign<commit_after>﻿
using System;
using System.Linq;
namespace Challenge1
{
    public static class Generator
    {
        private static readonly Random rnd = new Random();

        public static Token[] GenerateTokens(int maxCount = 100)
        {
            return Enumerable.Range(1, rnd.Next(1, maxCount))
                .Select(i => new Token((char)('a' + rnd.Next(0, 25)), RandomBox()))
                .ToArray();
        }

        public static Word[] GenerateWords(int maxCount = 100)
        {
            return Enumerable.Range(1, rnd.Next(1, maxCount))
                .Select(i => new Word(Generator.GenerateTokens(10)))
                .ToArray();
        }

        private static Box RandomBox()
        {
            return new Box(rnd.Next(0, 100), rnd.Next(0, 100), rnd.Next(0, 100), rnd.Next(0, 100));
        }
    }
}
{'fraction_non_alphanumeric': 0.1258660508083141, 'fraction_numerical': 0.03579676674364896, 'mean_word_length': 1.9930915371329878, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2471308', 'n_tokens_mistral': 559, 'n_tokens_neox': 501, 'n_words': 128}