<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ploeh.AutoFixture.Kernel;

namespace Ploeh.AutoFixture
{
    public class TypeGenerator : ISpecimenBuilder
    {
        #region ISpecimenBuilder Members

        public object Create(object request, ISpecimenContext context)
        {
            if (typeof(Type).Equals(request))
            {
                return typeof(object);
            }

            return new NoSpecimen(request);
        }

        #endregion
    }
}<commit_msg>Added XML comments/documentation.<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ploeh.AutoFixture.Kernel;

namespace Ploeh.AutoFixture
{
    /// <summary>
    /// Generates Type instances.
    /// </summary>
    public class TypeGenerator : ISpecimenBuilder
    {
        #region ISpecimenBuilder Members

        /// <summary>
        /// Creates a new specimen based on a request.
        /// </summary>
        /// <param name="request">The request that describes what to create.</param>
        /// <param name="context">A context that can be used to create other specimens.</param>
        /// <returns>
        /// The <see cref="object"/> <see cref="Type"/> if <paramref name="request"/> is a Type
        /// Type; otherwise a <see cref="NoSpecimen"/> instance.
        /// </returns>
        public object Create(object request, ISpecimenContext context)
        {
            if (typeof(Type).Equals(request))
            {
                return typeof(object);
            }

            return new NoSpecimen(request);
        }

        #endregion
    }
}
{'fraction_non_alphanumeric': 0.11011904761904762, 'fraction_numerical': 0.0, 'mean_word_length': 2.1014760147601477, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '3845226', 'n_tokens_mistral': 446, 'n_tokens_neox': 436, 'n_words': 121}