<commit_before>﻿/*
Serenity - The next evolution of web server technology
Serenity/ResourceClasses/DynamicResourceClass.cs
Copyright © 2006-2007 Serenity Project (http://SerenityProject.net/)

This file is protected by the terms and conditions of the
Microsoft Community License (Ms-CL), a copy of which should
have been distributed along with this software. If not,
you may find the license information at the following URL:

http://www.microsoft.com/resources/sharedsource/licensingbasics/communitylicense.mspx
*/
using System;
using System.Collections.Generic;
using System.Text;

using Serenity.Web;

namespace Serenity.ResourceClasses
{
	internal class DynamicResourceClass : ResourceClass
	{
		public DynamicResourceClass() : base("dynamic")
		{
		}
		public override void HandleContext(CommonContext context)
		{
			ContentPage page;

			// http://localhost/dynamic/system/default

			DomainSettings settings = DomainSettings.GetBestMatch(context.Request.Url);

			if (context.Request.Url.Segments.Length > 1)
			{
				int n = 3;
				if (settings.OmitResourceClass)
				{<commit_msg>Fixed a stupid regression introduced with the last commit.<commit_after>﻿/*
Serenity - The next evolution of web server technology
Serenity/ResourceClasses/DynamicResourceClass.cs
Copyright © 2006-2007 Serenity Project (http://SerenityProject.net/)

This file is protected by the terms and conditions of the
Microsoft Community License (Ms-CL), a copy of which should
have been distributed along with this software. If not,
you may find the license information at the following URL:

http://www.microsoft.com/resources/sharedsource/licensingbasics/communitylicense.mspx
*/
using System;
using System.Collections.Generic;
using System.Text;

using Serenity.Web;

namespace Serenity.ResourceClasses
{
	internal class DynamicResourceClass : ResourceClass
	{
		public DynamicResourceClass() : base("dynamic")
		{
		}
		public override void HandleContext(CommonContext context)
		{
			ContentPage page = null;

			// http://localhost/dynamic/system/default

			DomainSettings settings = DomainSettings.GetBestMatch(context.Request.Url);

			if (context.Request.Url.Segments.Length > 1)
			{
				int n = 3;
				if (settings.OmitResourceClass)
				{
{'fraction_non_alphanumeric': 0.08333333333333333, 'fraction_numerical': 0.008960573476702509, 'mean_word_length': 4.5825, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6648835', 'n_tokens_mistral': 686, 'n_tokens_neox': 600, 'n_words': 193}