<commit_before>﻿using System;
using System.Diagnostics;
using System.Threading;

namespace kafka_tests.Helpers
{
    public static class TaskTest
    {
        public static bool WaitFor(Func<bool> predicate, int milliSeconds = 1000)
        {
            var sw = Stopwatch.StartNew();
            while (predicate() != true)
            {
                if (sw.ElapsedMilliseconds > milliSeconds)
                    return false;
                Thread.Sleep(500);
            }
            return true;
        }
    }
}<commit_msg>Increase the base timeout for TaskTest<commit_after>﻿using System;
using System.Diagnostics;
using System.Threading;

namespace kafka_tests.Helpers
{
    public static class TaskTest
    {
        public static bool WaitFor(Func<bool> predicate, int milliSeconds = 3000)
        {
            var sw = Stopwatch.StartNew();
            while (predicate() != true)
            {
                if (sw.ElapsedMilliseconds > milliSeconds)
                    return false;
                Thread.Sleep(500);
            }
            return true;
        }
    }
}
{'fraction_non_alphanumeric': 0.0818926296633303, 'fraction_numerical': 0.012738853503184714, 'mean_word_length': 1.70935960591133, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2119802', 'n_tokens_mistral': 305, 'n_tokens_neox': 286, 'n_words': 73}