<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Orchard.ContentManagement.Drivers;
using Orchard.Core.Containers.Models;
using Orchard.ContentManagement.MetaData;
using Orchard.Settings;
using Orchard.Core.Feeds;
using Orchard.Environment.Extensions;

namespace Orchard.Lists.Drivers {
    [OrchardSuppressDependency("Orchard.Core.Containers.Drivers.ContainerPartDriver")]
    public class ContainerPartDriver : Orchard.Core.Containers.Drivers.ContainerPartDriver {
        public ContainerPartDriver(
            IContentDefinitionManager contentDefinitionManager,
            IOrchardServices orchardServices,
            ISiteService siteService,
            IFeedManager feedManager)
            : base(contentDefinitionManager, orchardServices, siteService, feedManager) {
        }

        protected override DriverResult Display(ContainerPart part, string displayType, dynamic shapeHelper) {
            var shape = base.Display(part, displayType, (object)shapeHelper); // shapeHelper casting to avoid compiler error

            if (shape == null) return null;

            return Combined(
                shape,
                ContentShape("Parts_Container_Contained_SummaryAdmin",
                             () => shapeHelper.Parts_Container_Contained_SummaryAdmin(ContentPart: part))
                );
        }
    }
}<commit_msg>Removing unnecessary driver inheritance in Lists<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Orchard.ContentManagement.Drivers;
using Orchard.Core.Containers.Models;

namespace Orchard.Lists.Drivers {
    public class ContainerPartDriver : ContentPartDriver<ContainerPart>{
        protected override DriverResult Display(ContainerPart part, string displayType, dynamic shapeHelper) {
            return ContentShape("Parts_Container_Contained_SummaryAdmin",
                             () => shapeHelper.Parts_Container_Contained_SummaryAdmin(ContentPart: part)
                );
        }
    }
}
{'fraction_non_alphanumeric': 0.07301740812379111, 'fraction_numerical': 0.0, 'mean_word_length': 3.3375262054507338, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, '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': '6961680', 'n_tokens_mistral': 525, 'n_tokens_neox': 495, 'n_words': 108}