<commit_before>namespace Construktion.Blueprints.Recursive
{
    using System;
    using System.Collections.Generic;

    public class ArrayBlueprint : Blueprint
    {
        public bool Matches(ConstruktionContext context)
        {
            return context.RequestType.IsArray;
        }

        public object Construct(ConstruktionContext context, ConstruktionPipeline pipeline)
        {
            var arrayType = context.RequestType.GetElementType();

            var results = construct(arrayType, pipeline);

            return results;
        }

        private Array construct(Type arrayType, ConstruktionPipeline pipeline)
        {
            var count = 3;

            var items = new List<object>();
            for (var i = 0; i < count; i++)
            {
                items.Add(pipeline.Construct(new ConstruktionContext(arrayType)));
            }

            var array = Array.CreateInstance(arrayType, items.Count);

            for (var i = 0; i <= items.Count - 1; i++)
            {
                array.SetValue(items[i], i);
            }

            return array;
        }
    }
}<commit_msg>simplifying the array builder<commit_after>namespace Construktion.Blueprints.Recursive
{
    using System;

    public class ArrayBlueprint : Blueprint
    {
        public bool Matches(ConstruktionContext context)
        {
            return context.RequestType.IsArray;
        }

        public object Construct(ConstruktionContext context, ConstruktionPipeline pipeline)
        {
            var arrayType = context.RequestType.GetElementType();

            var results = construct(arrayType, pipeline);

            return results;
        }

        private Array construct(Type arrayType, ConstruktionPipeline pipeline)
        {
            var count = 3;

            var array = Array.CreateInstance(arrayType, count);

            for (var i = 0; i <= count - 1; i++)
            {
                var value = pipeline.Construct(new ConstruktionContext(arrayType));

                array.SetValue(value, i);
            }

            return array;
        }
    }
}
{'fraction_non_alphanumeric': 0.08088930936613056, 'fraction_numerical': 0.0033112582781456954, 'mean_word_length': 1.82, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 4, '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': '1364923', 'n_tokens_mistral': 544, 'n_tokens_neox': 513, 'n_words': 130}