<commit_before>

using System;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Collections;
using System.Collections.Generic;
using System.Linq.Expressions;

using Manos.Server;
using Manos.Routing;

#if BUILD_TEMPLATES
using Manos.Templates;
#endif

namespace Manos {

	public class ManosModule {

		private RouteHandler routes = new RouteHandler ();

		public ManosModule ()
		{
			StartInternal ();
		}

		public RouteHandler Routes {
			get { return routes; }
		}

		private RouteHandler AddRouteHandler (ManosModule module, string [] patterns, string [] methods)
		{
			if (module == null)
				throw new ArgumentNullException ("module");
			if (patterns == null)
				throw new ArgumentNullException ("patterns");
			if (methods == null)<commit_msg>Add an accessor for the Cache.<commit_after>

using System;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Collections;
using System.Collections.Generic;
using System.Linq.Expressions;

using Manos.Server;
using Manos.Routing;
using Manos.Caching;

#if BUILD_TEMPLATES
using Manos.Templates;
#endif

namespace Manos {

	public class ManosModule {

		private RouteHandler routes = new RouteHandler ();

		public ManosModule ()
		{
			StartInternal ();
		}

		public RouteHandler Routes {
			get { return routes; }
		}

		public IManosCache Cache {
			get {
				return AppHost.Cache;	
			}
		}
		
		private RouteHandler AddRouteHandler (ManosModule module, string [] patterns, string [] methods)
		{
			if (module == null)
				throw new ArgumentNullException ("module");
			if (patterns == null)
				throw new ArgumentNullException ("patterns");
			if (methods == null)
{'fraction_non_alphanumeric': 0.09503885236102809, 'fraction_numerical': 0.0, 'mean_word_length': 4.057401812688822, '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': '7295849', 'n_tokens_mistral': 561, 'n_tokens_neox': 493, 'n_words': 150}