<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Anagrams.Models;

namespace Anagrams.Controllers
{
	public class HomeController : Controller
	{
		public ActionResult Index()
		{
			ViewBag.Message = "Welcome to ASP.NET MVC!";
			//IDictionaryCache cache = DictionaryCache.GetInstance().GetAnagrams();
			return View("");
		}

		//[HttpPost]
		//public ActionResult Index(string word)
		//{
		//    IDictionaryCache cache = DictionaryCache.GetInstance().GetAnagrams(word);
		//    return View();
		//}

		public ActionResult About()<commit_msg>Added a post action for the Index form submission<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Anagrams.Models;

namespace Anagrams.Controllers
{
	public class HomeController : Controller
	{
		public ActionResult Index()
		{
			ViewBag.Message = "Welcome to ASP.NET MVC!";
			//IDictionaryCache cache = DictionaryCache.GetInstance().GetAnagrams();
			return View("");
		}

		[HttpPost]
		public ActionResult Index(string word)
		{
			IEnumerable<string> anagrams = DictionaryCache.GetInstance().GetAnagrams(word);
			return View(anagrams);
		}

		public ActionResult About()
{'fraction_non_alphanumeric': 0.1140625, 'fraction_numerical': 0.0, 'mean_word_length': 4.405063291139241, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '7134626', 'n_tokens_mistral': 423, 'n_tokens_neox': 386, 'n_words': 95}