<commit_before>﻿using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.ServiceModel;
using System.ServiceModel.Web;

namespace Samples.Glitter
{
    [ServiceContract]
    [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Multiple)]
    public class StaticFilesEndpoint
    {
        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "/feed")]
        public Stream GetFile()
        {
            var assembly = Assembly.GetExecutingAssembly();
            var resourceName = "Samples.Glitter.feed.html";

            WebOperationContext.Current.OutgoingResponse.ContentType = "text/html";

            return assembly.GetManifestResourceStream(resourceName);
        }
    }
}<commit_msg>Update the sample to listen on root addresses instead of a specific path.<commit_after>﻿using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.ServiceModel;
using System.ServiceModel.Web;

namespace Samples.Glitter
{
    [ServiceContract]
    [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Multiple)]
    public class StaticFilesEndpoint
    {
        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "/")]
        public Stream GetFile()
        {
            var assembly = Assembly.GetExecutingAssembly();
            var resourceName = "Samples.Glitter.feed.html";

            WebOperationContext.Current.OutgoingResponse.ContentType = "text/html";

            return assembly.GetManifestResourceStream(resourceName);
        }
    }
}
{'fraction_non_alphanumeric': 0.0907429963459196, 'fraction_numerical': 0.0, 'mean_word_length': 3.36968085106383, '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': '6413031', 'n_tokens_mistral': 418, 'n_tokens_neox': 408, 'n_words': 87}