<commit_before>﻿#if NOWEBCLIENT
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;

namespace NBitcoin.Tests
{
	public class WebClient
	{
		public void DownloadFile(string url, string file)
		{
			HttpClient client = new HttpClient();
			var bytes = client.GetByteArrayAsync(url).GetAwaiter().GetResult();
			File.WriteAllBytes(file, bytes);
		}
	}
}
#endif<commit_msg>Increase WebClient timeout to 5 min to allow for large downloads.<commit_after>﻿#if NOWEBCLIENT
using System;
using System.IO;
using System.Net.Http;

namespace NBitcoin.Tests
{
	public class WebClient
	{
		public void DownloadFile(string url, string file)
		{
			HttpClient client = new HttpClient();

			// The default value is 100,000 milliseconds (100 seconds).
			// That's long enough to download Bitcoin.
			client.Timeout = TimeSpan.FromMinutes(5);

			// Changed .GetAwaiter().GetResult() to .Result
			// https://stackoverflow.com/questions/17284517/is-task-result-the-same-as-getawaiter-getresult
			var bytes = client.GetByteArrayAsync(url).Result;
			File.WriteAllBytes(file, bytes);
		}
	}
}
#endif
{'fraction_non_alphanumeric': 0.11045531197301856, 'fraction_numerical': 0.016020236087689713, 'mean_word_length': 4.346846846846847, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1653507', 'n_tokens_mistral': 421, 'n_tokens_neox': 376, 'n_words': 96}