<commit_before>﻿using FilterLists.Services.Contracts;
using Microsoft.AspNetCore.Mvc;

namespace FilterLists.Api.V1.Controllers
{
    [ApiVersion("1.0")]
    [Produces("application/json")]
    public class ListsController : Controller
    {
        private readonly IFilterListService filterListService;

        public ListsController(IFilterListService filterListService)
        {
            this.filterListService = filterListService;
        }

        [HttpGet]
        [ResponseCache(CacheProfileName = "Long-Lived")]
        public IActionResult Get()
        {
            return Json(filterListService.GetAllSummaries());
        }
    }
}<commit_msg>apply responsecache to the whole controller<commit_after>﻿using FilterLists.Services.Contracts;
using Microsoft.AspNetCore.Mvc;

namespace FilterLists.Api.V1.Controllers
{
    [ApiVersion("1.0")]
    [Produces("application/json")]
    [ResponseCache(CacheProfileName = "Long-Lived")]
    public class ListsController : Controller
    {
        private readonly IFilterListService filterListService;

        public ListsController(IFilterListService filterListService)
        {
            this.filterListService = filterListService;
        }

        [HttpGet]
        public IActionResult Get()
        {
            return Json(filterListService.GetAllSummaries());
        }
    }
}
{'fraction_non_alphanumeric': 0.08888888888888889, 'fraction_numerical': 0.0044444444444444444, 'mean_word_length': 2.9502923976608186, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1884567', 'n_tokens_mistral': 365, 'n_tokens_neox': 367, 'n_words': 63}