<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
using JetBrains.Annotations;
using Orchard.Localization;
using Orchard.ContentManagement;
using Orchard.Settings;
using Orchard.Tags.Models;
using Orchard.Tags.ViewModels;
using Orchard.Tags.Services;
using Orchard.UI.Notify;

namespace Orchard.Tags.Controllers {
    [ValidateInput(false)]
    public class AdminController : Controller {
        private readonly ITagService _tagService;

        public AdminController(ITagService tagService) {
            _tagService = tagService;
            T = NullLocalizer.Instance;
        }


        public IOrchardServices Services { get; set; }
        protected virtual ISite CurrentSite { get; [UsedImplicitly] private set; }
        
        public Localizer T { get; set; }

        public ActionResult Index() {
            try {
                IEnumerable<Tag> tags = _tagService.GetTags();
                var entries = tags.Select(tag => CreateTagEntry(tag)).ToList();
                var model = new TagsAdminIndexViewModel { Tags = entries };
                return View(model);
            }<commit_msg>- Fixing 16273 : Missing IOrchardServices services in constructor<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
using JetBrains.Annotations;
using Orchard.Localization;
using Orchard.ContentManagement;
using Orchard.Settings;
using Orchard.Tags.Models;
using Orchard.Tags.ViewModels;
using Orchard.Tags.Services;
using Orchard.UI.Notify;

namespace Orchard.Tags.Controllers {
    [ValidateInput(false)]
    public class AdminController : Controller {
        private readonly ITagService _tagService;

        public AdminController(IOrchardServices services, ITagService tagService)
        {
            Services = services;
            _tagService = tagService;
            T = NullLocalizer.Instance;
        }


        public IOrchardServices Services { get; set; }
        protected virtual ISite CurrentSite { get; [UsedImplicitly] private set; }
        
        public Localizer T { get; set; }

        public ActionResult Index() {
            try {
                IEnumerable<Tag> tags = _tagService.GetTags();
                var entries = tags.Select(tag => CreateTagEntry(tag)).ToList();
                var model = new TagsAdminIndexViewModel { Tags = entries };
                return View(model);
            }
{'fraction_non_alphanumeric': 0.08190709046454768, 'fraction_numerical': 0.002037489812550937, 'mean_word_length': 2.7028657616892913, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '5832119', 'n_tokens_mistral': 673, 'n_tokens_neox': 635, 'n_words': 169}