<commit_before>using System.Collections.Generic;
using System.Linq;


namespace Fluency
{
	public class FluentListBuilder< T > : IFluentBuilder< IList< T > > where T : class, new()
	{
		private readonly IList< IFluentBuilder< T > > _builders = new List< IFluentBuilder< T > >();
		private readonly IList< T > _directItems = new List< T >();


		#region IFluentBuilder<IList<T>> Members

		/// <summary>
		/// Builds a list of all the items specified directly combined with a list of all items built by the specifed builders.
		/// </summary>
		/// <returns></returns>
		public IList< T > build()
		{
			// Build each builder's item and gather into collection.
			IEnumerable< T > builtItems =
					from builder in _builders
					select builder.build();

			// Merge with items added directly (without a builder)
			IEnumerable< T > allItems = _directItems.Union( builtItems );<commit_msg>Updated to use Concat rather than Union for the build method on ListBuilder<commit_after>using System.Collections.Generic;
using System.Linq;


namespace Fluency
{
	public class FluentListBuilder< T > : IFluentBuilder< IList< T > > where T : class, new()
	{
		private readonly IList< IFluentBuilder< T > > _builders = new List< IFluentBuilder< T > >();
		private readonly IList< T > _directItems = new List< T >();


		#region IFluentBuilder<IList<T>> Members

		/// <summary>
		/// Builds a list of all the items specified directly combined with a list of all items built by the specifed builders.
		/// </summary>
		/// <returns></returns>
		public IList< T > build()
		{
			// Build each builder's item and gather into collection.
			IEnumerable< T > builtItems =
					from builder in _builders
					select builder.build();

			// Merge with items added directly (without a builder)
			IEnumerable< T > allItems = _directItems.Concat( builtItems );
{'fraction_non_alphanumeric': 0.10440456769983687, 'fraction_numerical': 0.0, 'mean_word_length': 3.54320987654321, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, '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': '2118715', 'n_tokens_mistral': 598, 'n_tokens_neox': 535, 'n_words': 204}