<commit_before>﻿using System;
using System.Collections.Generic;
using System.Web.Mvc;
using Grace.DependencyInjection;

namespace Grace.MVC.DependencyInjection
{
	/// <summary>
	/// C# extension class for registering different MVC types
	/// </summary>
   // ReSharper disable once InconsistentNaming
	public static class IExportRegistrationBlockExtensions
	{
		/// <summary>
		/// C# extension that exports all the classes inheriting from Controller
		/// </summary>
		/// <param name="registrationBlock"></param>
		/// <param name="types"></param>
		public static IExportTypeSetConfiguration ExportController(this IExportRegistrationBlock registrationBlock, IEnumerable<Type> types)
		{
			return registrationBlock.Export(types).
											 BasedOn(typeof(Controller)).
											 ExternallyOwned();
		}
	}
}<commit_msg>Adding ExportViews<commit_after>﻿using System;
using System.Collections.Generic;
using System.Web.Mvc;
using System.Web.WebPages;
using Grace.DependencyInjection;

namespace Grace.MVC.DependencyInjection
{
	/// <summary>
	/// C# extension class for registering different MVC types
	/// </summary>
   // ReSharper disable once InconsistentNaming
	public static class IExportRegistrationBlockExtensions
	{
		/// <summary>
		/// C# extension that exports all the classes inheriting from Controller
		/// </summary>
		/// <param name="registrationBlock"></param>
		/// <param name="types"></param>
		public static IExportTypeSetConfiguration ExportController(this IExportRegistrationBlock registrationBlock, IEnumerable<Type> types)
		{
			return registrationBlock.Export(types).
											 BasedOn(typeof(Controller)).
											 ExternallyOwned();
		}

        /// <summary>
        /// C# extension that export all classes that inherit from ViewPage
        /// </summary>
        /// <param name="registrationBlock">registration block</param>
        /// <param name="types">list of types</param>
        /// <returns>configuration object</returns>
	    public static IExportTypeSetConfiguration ExportView(this IExportRegistrationBlock registrationBlock,
	        IEnumerable<Type> types)
        {
            return registrationBlock.Export(types).
                                     BasedOn(typeof(WebPage)).
                                     ExternallyOwned();
	    }
	}
}
{'fraction_non_alphanumeric': 0.10875216637781629, 'fraction_numerical': 0.0, 'mean_word_length': 3.1232142857142855, 'pattern_counts': {'":': 0, '<': 30, '<?xml version=': 0, '>': 30, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1466024', 'n_tokens_mistral': 654, 'n_tokens_neox': 573, 'n_words': 148}